/* Guarantee badge on page (moved from offer cards) */
.esconder #guarantee img.guarantee-badge {
  max-width: 160px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

@media (max-width: 767px) {
  .esconder #guarantee img.guarantee-badge {
    max-width: 120px;
  }
}

/* NeuroSalt label palette — navy profundo + cobre/ambar do rotulo novo */
.esconder {
  --primary-color: #0e4c75;
  --secondary-color: #0a3550;
  --third-color: #2e83b8;
  --fourth-color: #06243d;
  --primary-color-light: #2a71a1;
  --primary-color-dark: #06243d;
  --secondary-color-light: #1d5478;
  --secondary-color-dark: #041a2e;
  --contrast-color: #e8912d;
}

.esconder .cta-headline {
  background: linear-gradient(135deg, var(--primary-color-dark), var(--primary-color));
  color: #fff;
}

.esconder .cta-headline h2 {
  color: #fff !important;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

/* Kit titles */
.esconder .products .item .item-header-description {
  display: none;
}

.esconder .products .item .item-mobile-title {
  display: block;
  text-align: center;
  padding: 0.5em 0.75em 0;
}

.esconder .products .item .item-mobile-title .line1 {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--primary-color-dark);
}

.esconder .products .item .item-mobile-title .line2 {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.2em;
  text-transform: uppercase;
  color: var(--secondary-color);
}

/* Standard offers — Basic / Most Popular */
.esconder .products .item:not(.promo) {
  border-color: var(--secondary-color);
}

.esconder .products .item:not(.promo) .item-header {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
}

.esconder .products .item:not(.promo) .item-info .price b,
.esconder .products .item:not(.promo) .item-info .price sup {
  color: var(--primary-color) !important;
}

.esconder .products .item:not(.promo) .item-info .savings > div:first-child {
  color: var(--primary-color-dark) !important;
}

.esconder .products .item:not(.promo) .item-buy .button {
  background: linear-gradient(180deg, #35d46f, #159c48) !important;
  background-image: linear-gradient(180deg, #35d46f, #159c48) !important;
  color: #fff !important;
  text-shadow: none;
}

.esconder .products .item:not(.promo) .item-buy .button:hover {
  background-image: linear-gradient(0deg, #35d46f, #159c48) !important;
}

/* Promo offer — Best Value */
.esconder .products .item.promo {
  border-color: var(--primary-color);
}

.esconder .products .item.promo .wrapper {
  background-image: radial-gradient(var(--secondary-color-dark), var(--primary-color));
}

.esconder .products .item.promo .item-header {
  background-color: #fff !important;
  color: var(--primary-color-dark) !important;
}

.esconder .products .item.promo .item-mobile-title .line1 {
  color: #fff;
}

.esconder .products .item.promo .item-mobile-title .line2 {
  color: rgba(255, 255, 255, 0.85);
}

.esconder .products .item.promo .item-info .price b,
.esconder .products .item.promo .item-info .price sup {
  color: #fff !important;
}

.esconder .products .item.promo .item-info .price span {
  color: rgba(255, 255, 255, 0.9) !important;
}

.esconder .products .item.promo .item-info .savings > div {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.esconder .products .item.promo .item-info .savings > div:first-child {
  color: var(--contrast-color) !important;
}

.esconder .products .item.promo .item-info .savings > div:nth-child(2) {
  color: #fff !important;
}

/* linha "MONEY-BACK GUARANTEE" — visivel em todas as ofertas
   (o offer.css esconde o 2o filho de .savings, que e onde ela cai nos cards nao-promo) */
.esconder .products .item .item-info .savings > div.guarantee-line {
  display: block !important;
}

.esconder .products .item.promo .item-info .savings > div.guarantee-line {
  color: #fff !important;
}

.esconder .products .item.promo .item-buy .button {
  background: linear-gradient(180deg, #35d46f, #159c48) !important;
  background-image: linear-gradient(180deg, #35d46f, #159c48) !important;
  color: #fff !important;
  text-shadow: none;
}

.esconder .products .item.promo .item-buy .button:hover {
  background-image: linear-gradient(0deg, #35d46f, #159c48) !important;
}

.esconder .products .item.promo .item-totals .shipping span {
  color: var(--contrast-color) !important;
}

/* Buy button — single line with cart icon + card flags */
.esconder .products .item .item-buy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.esconder .products .item .item-buy .button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.esconder .products .item .item-buy .button .button-text {
  white-space: nowrap;
  font-size: 0.95em;
}

.esconder .products .item .item-buy .button .button-text-aux::before {
  display: none;
}

.esconder .products .item .item-buy .card-flags {
  max-width: 200px;
  margin: 0.35em auto 0.5em;
}

@media (min-width: 768px) {
  /* mesma logica do mobile: o botao tem width:100%, entao o respiro lateral
     vem do container */
  .esconder .products .item .item-buy {
    padding-left: 22px;
    padding-right: 22px;
  }

  .esconder .products .item .item-buy .button {
    padding: 0.5em;
  }

  .esconder .products .item .item-buy .button .button-text {
    font-size: 0.85em;
  }
}

@media (max-width: 767px) {
  /* respiro lateral no mobile: o botao tem width:100%, entao a folga tem
     que vir do container — margin no proprio botao nao encolhe a largura */
  .esconder .products .item .item-buy {
    padding-left: 33px;
    padding-right: 33px;
  }

  .esconder .products .item .item-buy .card-flags {
    display: block;
    max-width: 160px;
  }
}

/* Shared offer elements */
.esconder .products .item .item-info .price b,
.esconder .products .item .item-info .price sup {
  color: var(--primary-color);
}

.esconder .products .item .item-totals .totals span {
  color: var(--contrast-color);
}

/* laranja do rotulo do pote */
.esconder .products .item .item-totals .shipping.free,
.esconder .products .item .item-totals .shipping.free span {
  color: #c27a35 !important;
}

.esconder .products .item .item-img {
  position: relative;
  overflow: visible;
}

.esconder .products .item .item-img > img {
  display: block;
  margin: 0 auto;
  max-height: 200px;
  width: auto;
}

/* Bundle offers — base bottles + plus + free bottles */
.esconder .products .item .offer-bundle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-height: 200px;
}

.esconder .products .item .offer-bundle .bundle-base,
.esconder .products .item .offer-bundle .bundle-free {
  display: block;
  width: auto;
  max-width: 46%;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  flex-shrink: 1;
}

.esconder .products .item .offer-bundle .bundle-base {
  transform: translateY(-22px);
}

.esconder .products .item .offer-bundle .bundle-free {
  transform: translateY(22px);
}

.esconder .products .item .offer-bundle .bundle-plus {
  flex-shrink: 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-color-dark);
  align-self: center;
}

.esconder .products .item.promo .item-img {
  width: 100%;
  max-width: 380px;
  margin: 40px auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.esconder .products .item.promo .item-img > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.esconder .products .item.promo .offer-bundle {
  max-height: 220px;
  gap: 4px;
}

.esconder .products .item.promo .offer-bundle .bundle-base,
.esconder .products .item.promo .offer-bundle .bundle-free {
  max-width: 44%;
  max-height: 200px;
}

.esconder .products .item.promo .offer-bundle .bundle-base {
  transform: translateY(-28px);
}

.esconder .products .item.promo .offer-bundle .bundle-free {
  transform: translateY(28px);
}

.esconder .products .item.promo .offer-bundle .bundle-plus {
  font-size: 2.5rem;
  color: #fff;
}

.esconder .products .item:not(.promo) .item-img {
  max-width: 200px;
  margin: 20px auto;
}

.esconder .products .item:not(.promo) .item-img:has(.offer-bundle) {
  max-width: 260px;
}

/* 2 + 1 offer — larger bundle images */
.esconder .products .item.mid .item-img:has(.offer-bundle) {
  max-width: 320px;
}

.esconder .products .item.mid .offer-bundle {
  max-height: 240px;
  gap: 4px;
}

.esconder .products .item.mid .offer-bundle .bundle-base,
.esconder .products .item.mid .offer-bundle .bundle-free {
  max-width: 48%;
  max-height: 220px;
}

.esconder .products .item.mid .offer-bundle .bundle-plus {
  font-size: 2rem;
}

/* Basic + Most Popular — equal card height (basic is tallest) */
.esconder .products .productsGrid {
  align-items: stretch;
}

.esconder .products .productsGrid > a {
  display: flex;
}

.esconder .products .productsGrid > a .item.basic,
.esconder .products .productsGrid > a .item.mid {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .esconder .products .productsGrid > a .item.basic .wrapper,
  .esconder .products .productsGrid > a .item.mid .wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .esconder .products .productsGrid > a .item.basic .item-img,
  .esconder .products .productsGrid > a .item.mid .item-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
  }

  .esconder .products .productsGrid > a .item.basic .item-buy,
  .esconder .products .productsGrid > a .item.mid .item-buy {
    margin-top: auto;
  }
}

@media (max-width: 767px) {
  .esconder .products .item.promo .item-img {
    max-width: 100%;
    margin: 32px auto;
    padding: 0 10px;
  }

  .esconder .products .item.promo .offer-bundle {
    max-height: 180px;
  }

  .esconder .products .item.promo .offer-bundle .bundle-base,
  .esconder .products .item.promo .offer-bundle .bundle-free {
    max-height: 160px;
  }

  .esconder .products .item .offer-bundle .bundle-base,
  .esconder .products .item .offer-bundle .bundle-free {
    max-height: 140px;
  }

  .esconder .products .item.mid .item-img:has(.offer-bundle) {
    max-width: 100%;
  }

  .esconder .products .item.mid .offer-bundle {
    max-height: 200px;
  }

  .esconder .products .item.mid .offer-bundle .bundle-base,
  .esconder .products .item.mid .offer-bundle .bundle-free {
    max-height: 180px;
  }

  .esconder .products .item .offer-bundle .bundle-base {
    transform: translateY(-16px);
  }

  .esconder .products .item .offer-bundle .bundle-free {
    transform: translateY(16px);
  }

  .esconder .products .item.promo .offer-bundle .bundle-base {
    transform: translateY(-20px);
  }

  .esconder .products .item.promo .offer-bundle .bundle-free {
    transform: translateY(20px);
  }

  .esconder .products .item .offer-bundle .bundle-plus {
    font-size: 1.5rem;
  }

  .esconder .products .item.promo .offer-bundle .bundle-plus {
    font-size: 2rem;
  }
}

/* ============================================================
   Ajustes: imagens de combo recortadas + card promo
   ============================================================ */

/* Base: imagem nunca vaza do card */
.esconder .products .item .item-img > img {
  max-width: 100%;
  object-fit: contain;
}

/* Promo (meio): arte 3+3 em dois grupos diagonais precisa de mais altura */
.esconder .products .item.promo .item-img {
  margin: 24px auto;
}

.esconder .products .item.promo .item-img > img {
  max-height: 300px;
}

/* Mid (direita): arte 2+1 e larga — alarga o container e libera altura */
.esconder .products .item.mid .item-img {
  max-width: 320px;
}

.esconder .products .item.mid .item-img > img {
  max-height: 240px;
}

/* Fix: o card promo (meio) ficava fino porque nao recebia flex:1/width:100%
   como os cards basic e mid — o <a> pai e display:flex e o card encolhia
   para a largura do conteudo. Mesma regra dos irmaos: */
.esconder .products .productsGrid > a .item.promo {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .esconder .products .productsGrid > a .item.promo .wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .esconder .products .productsGrid > a .item.promo .item-buy {
    margin-top: auto;
  }
}

/* ============================================================
   Mobile: as artes compostas (2 / 2+1 / 3+3) precisam da largura
   toda do card. Em vez do grid de 2 colunas (img esquerda / preco
   direita), empilha as areas: titulo > imagem > preco > totais > CTA.
   ============================================================ */
@media (max-width: 767px) {
  .esconder .products .item .wrapper {
    grid-template-areas:
      "header header"
      "img img"
      "info info"
      "totals totals"
      "footer footer";
  }

  /* O chip (BEST VALUE!/Most Popular/Basic) vive dentro de .card-header,
     que e o filho direto do grid — sem grid-area ele era auto-posicionado
     em UMA celula (metade do card). Header em largura total: */
  .esconder .products .item .wrapper .card-header {
    grid-area: header;
    width: 100%;
  }

  .esconder .products .item .item-header {
    display: block;
    margin: 0 0 0.25em;
    padding: 0.35em 0.5em;
    font-size: 1em;
  }

  .esconder .products .item.promo .item-header {
    margin: 0 0 0.25em;
  }

  .esconder .products .item .item-img,
  .esconder .products .item.promo .item-img,
  .esconder .products .item.mid .item-img {
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
    padding: 0 12px;
  }

  .esconder .products .item .item-img > img {
    max-height: 190px;
    margin: 0 auto;
  }

  /* 3+3: dois grupos diagonais dividem a altura — libera mais para
     os potes renderem no mesmo tamanho visual dos outros cards */
  .esconder .products .item.promo .item-img > img {
    max-height: 270px;
  }

  /* 2+1: grupo unico preenche a altura toda — segura o tamanho e
     da respiro lateral para nao encostar nas bordas do card */
  .esconder .products .item.mid .item-img {
    padding: 0 28px;
  }

  .esconder .products .item.mid .item-img > img {
    max-height: 165px;
  }

  .esconder .products .item .item-info {
    padding: 0.25em 0 0.5em;
  }
}
