/* Visual novo (padrão). Vale com <html class="v2">, ligado por js/v2.js.
   Não muda o layout: troca o azul pelo verde da marca, arredonda cantos,
   dá mais respiro e acrescenta movimento leve. */

html.v2 {
  --verde: #1fe060;
  --verde_texto: #0b8f3f;      /* verde legível sobre branco */
  --color_second: var(--verde_texto);
  --cart_number: #101214;
  --cart_number_bg: var(--verde);
  --nav_color_border: var(--verde);
  --border_title_list: var(--verde);
  --preco_color: var(--verde_texto);
  --tag_desconto_bg: var(--verde_texto);
  --color_icon_footer: var(--verde);
  --social_bg: var(--verde_texto);
  --social_bg_hover: #0a7a36;
  --color_border: #e8e8e8;
  --sombra_cartao: 0 10px 28px -8px rgba(16, 18, 20, .22);
  --raio: 14px;
}

/* ------------------------------------------------------------ cantos */
html.v2 .product { border-radius: var(--raio); border: 1px solid var(--color_border); }
html.v2 .product .image { border-radius: var(--raio) var(--raio) 0 0; overflow: hidden; }
html.v2 .mosaic a,
html.v2 .banner-extra a, html.v2 .banner-extra .peca,
html.v2 .section-banners-center a, html.v2 .section-banners-center .peca,
html.v2 .section-notices .noticia-imagem { border-radius: var(--raio); overflow: hidden; }
html.v2 .product .linha-compra .comprar,
html.v2 .product .linha-compra input,
html.v2 .product .linha-variacao select { border-radius: 10px; }
html.v2 .tag, html.v2 .product .tag, html.v2 [class*="selo"] { border-radius: 6px; }

/* ------------------------------------------------------------ respiro */
html.v2 .title-section { margin-top: 64px; margin-bottom: 36px; letter-spacing: .04em; }
html.v2 .section-showcase { margin-top: 48px; padding-top: 56px; padding-bottom: 96px; }
html.v2 .showcase-list-category { padding-top: 24px; padding-bottom: 24px; }
html.v2 .section-notices { margin-top: 24px; }
@media (max-width: 767px) {
  html.v2 .title-section { margin-top: 40px; margin-bottom: 22px; }
  html.v2 .section-showcase { margin-top: 28px; padding-top: 36px; padding-bottom: 56px; }
}

/* ---------------------------------------------------------- movimento */
html.v2 .product { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, padding-bottom .2s ease-in-out, margin-bottom .2s ease-in-out; }
html.v2 .product .space-image img { transition: transform .45s ease, opacity .3s ease; }
html.v2 .mosaic img, html.v2 .banner-extra img, html.v2 .section-banners-center img { transition: transform .5s ease; }
html.v2 .showcase-list-category .list a img,
html.v2 .showcase-list-category .list a .image { transition: transform .3s ease, box-shadow .3s ease; }
html.v2 .botao-commerce, html.v2 .botao-comprar { transition: background .25s, transform .15s, box-shadow .25s; }

@media (hover: hover) {
  html.v2 .product:hover { transform: translateY(-6px); box-shadow: var(--sombra_cartao); border-color: transparent; }
  html.v2 .product:hover .space-image img:first-child { transform: scale(1.05); }
  html.v2 .mosaic a:hover img,
  html.v2 .banner-extra a:hover img,
  html.v2 .section-banners-center a:hover img { transform: scale(1.04); }
  html.v2 .showcase-list-category .list a:hover img { transform: scale(1.06); }
  html.v2 .botao-commerce:hover, html.v2 .botao-comprar:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(16, 18, 20, .5); }
  html.v2 .nav .list > li > a { transition: color .2s; }
  html.v2 .nav .list > li:hover > a { color: var(--verde_texto); }
}

/* seções aparecem ao rolar */
html.v2 .v2-surgir { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.v2 .v2-surgir.v2-visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.v2 .v2-surgir { opacity: 1; transform: none; transition: none; }
  html.v2 .product, html.v2 .product .space-image img, html.v2 .mosaic img { transition: none; }
  html.v2 .product:hover { transform: none; }
}

/* ------------------------------------------------- faixa de benefícios */
.v2-beneficios { display: none; }
html.v2 .v2-beneficios { display: block; background: #fff; border-bottom: 1px solid var(--color_border); }
html.v2 .v2-beneficios ul { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--container); margin: 0 auto; padding: 0 20px; list-style: none; }
html.v2 .v2-beneficios li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px 12px; }
html.v2 .v2-beneficios li + li { border-left: 1px solid var(--color_border); }
html.v2 .v2-beneficios .ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #101214; }
html.v2 .v2-beneficios svg { width: 22px; height: 22px; fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.v2 .v2-beneficios strong { display: block; font-size: 16px; font-weight: 700; color: var(--color_primary); line-height: 1.2; }
html.v2 .v2-beneficios span { display: block; font-size: 13px; color: #6b6b6b; }
@media (max-width: 991px) {
  html.v2 .v2-beneficios ul { grid-template-columns: repeat(2, 1fr); padding: 0 10px; }
  html.v2 .v2-beneficios li { justify-content: flex-start; padding: 14px 8px; gap: 10px; }
  html.v2 .v2-beneficios li + li { border-left: 0; }
  html.v2 .v2-beneficios li:nth-child(even) { border-left: 1px solid var(--color_border); }
  html.v2 .v2-beneficios li:nth-child(n+3) { border-top: 1px solid var(--color_border); }
  html.v2 .v2-beneficios .ic { width: 36px; height: 36px; }
  html.v2 .v2-beneficios svg { width: 18px; height: 18px; }
  html.v2 .v2-beneficios strong { font-size: 13px; }
  html.v2 .v2-beneficios span { font-size: 11px; }
}

/* --------------------------- comprar fixo no celular (página de produto) */
@media (max-width: 767px) {
  html.v2 body.v2-tem-comprar { padding-bottom: 76px; }
  html.v2 #bt_comprar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; width: auto;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff;
    box-shadow: 0 -6px 18px -8px rgba(16, 18, 20, .35);
  }
  html.v2 #bt_comprar .botao-comprar { display: block; width: 100%; }
  /* com a gaveta do carrinho ou o menu aberto, a barra do Comprar sai da frente (ficava por cima da gaveta) */
  html.v2 body.sem-rolagem #bt_comprar { visibility: hidden; }
}
