/* public_html/assets/css/index.css */

/* =========================================================
   0) BASE
   ========================================================= */
body { overflow-x: hidden; }

/* Nota:
   Variáveis como --container, --muted, --line, --accent, --accent-soft, --bg-clean
   devem continuar definidas no teu CSS global (ex.: style.css).
*/


/* =========================================================
   1) HERO — CARROSSEL
   ========================================================= */
.hero { padding: 0; }

.hero--boticario .hero__container{
  width: 100vw;
  height: auto;
  margin: 0;
  padding: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.hero-slider{
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f5f5;
}

.hero-slider__viewport{ overflow: hidden; }

.hero-slider__track{
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.hero-slider__track::-webkit-scrollbar{ display: none; }

.hero-slide{
  flex: 0 0 100%;
  width: 100%;
  height: clamp(260px, 46vh, 460px);
  scroll-snap-align: start;
}

.hero-slide img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}

.hero-slider__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(111,123,69,.92);
  color: #fff;

  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.hero-slider__btn:hover{ filter: brightness(1.03); }
.hero-slider__btn--prev{ left: 10px; }
.hero-slider__btn--next{ right: 10px; }

.hero-slider__dots{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
}

.hero-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.30);
  cursor: pointer;
}
.hero-dot.is-active{ background: #fff; }


/* =========================================================
   2) HERO STRIP — FAIXA (Destaque)
   ========================================================= */


.hero-strip{
  width: 100%;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 36px 0;

  display: flex;
  justify-content: center;
}

.hero-strip__inner{
  width: min(900px, calc(100% - 48px));

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

/* texto */
.hero-strip__kicker{
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(27,20,18,.55);
}

.hero-strip__title{
  margin: 0;
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-strip__text{
  margin: 0;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* botão */
.hero-strip__right{
  margin-top: 8px;
}

.hero-strip__btn{
  padding: 12px 26px;
}

/* =========================================================
   3) SEÇÕES — CLEAN / EDITORIAL
   ========================================================= */
.section{ padding: 28px 0; }

.section--clean{
  background: var(--bg-clean);
  padding-top: 64px;
  padding-bottom: 64px;
}

.grid--clean{ gap: 26px; }

/* Cabeçalho editorial centralizado */
.section-head{
  text-align: center;
  margin: 0 auto 26px;
  max-width: 78ch;
}

.section-head__eyebrow{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head__title{
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: clamp(26px, 3vw, 44px);
}

.section-head__subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-head__link{
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(27,20,18,.70);
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
.section-head__link:hover{ border-bottom-color: currentColor; }

/* Produto clean */
.pitem{
  display: grid;
  gap: 10px;
}

.pitem__media{
  display: block;
  background: #f7f7f7;
  overflow: hidden;
  padding: 10px;
}

.pitem__media img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  display: block;
}


.pitem__media:hover img{ transform: none; }


.pitem__kicker{
  margin: 0;
  font-size: 12px;
  color: rgba(27,20,18,.55);
}

.pitem__title{
  margin: 0;
  font-size: 14px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 500;
}

.pitem__price{
  margin: 0;
  font-size: 13px;
  color: rgba(27,20,18,.75);
}

.pitem__actions{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 6px;
}

.pitem__link{
  font-size: 13px;
  color: rgba(27,20,18,.75);
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
.pitem__link:hover{ border-bottom-color: currentColor; }


/* =========================================================
   4) HIGHLIGHT
   ========================================================= */
.highlight{
  padding: 36px 0;
  background: #fff;
  border: none; /* removido divisores antigos */
}

.highlight__grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: center;
}

.highlight__content{ padding: 4px 0; }

.highlight__eyebrow{
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.highlight__title{
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.0vw, 1.7rem);
  line-height: 1.2;
}

.highlight__text{
  margin: 0 0 14px;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.highlight__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
}

.highlight__note{
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.highlight__media{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f5f5f5;
  min-height: 240px;
}

.highlight__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight__badge{
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  color: #111;
  font-size: 11px;
  font-weight: 600;
}

.highlight--reverse .highlight__grid{ grid-template-columns: 1.2fr 1fr; }
.highlight--reverse .highlight__content{ order: 1; }
.highlight--reverse .highlight__media{ order: 2; }


/* =========================================================
   5) PROMO SPLIT
   ========================================================= */
.promo-split{
  background: #fff;
  padding: 70px 0;
  border: none;
}

.promo-split__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

.promo-split__media{
  overflow: hidden;
  background: #f3f3f3;
}

.promo-split__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-split__content{
  text-align: center;
  padding: 10px 0;
}

.promo-split__eyebrow{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.promo-split__title{
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 46px);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 500;
}

.promo-split__text{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}


/* =========================================================
   6) NEWSLETTER
   ========================================================= */
.newsletter{
  background: #fff;
  padding: 80px 0;
  border: none;
}

.newsletter__grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: center;
}

.newsletter__title{
  margin: 0;
  font-size: clamp(26px, 3vw, 46px);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 500;
}

.newsletter__form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.newsletter__input{
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,.12);
  outline: none;
  background: #fff;
}

.newsletter__input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* =========================================================
   7) RESPONSIVO (corrigido)
   ========================================================= */

/* Desktop/base: mais alto */
.hero-slide{
  height: clamp(340px, 60vh, 640px);
}

.hero-slide img{
  object-fit: cover;
  object-position: center 35%;
}

/* <= 1000px */
@media (max-width: 1000px){
  .hero-slider__btn{
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .highlight__grid{ grid-template-columns: 1fr; }
  .highlight--reverse .highlight__grid{ grid-template-columns: 1fr; }
  .highlight__media{ min-height: 220px; }

  .promo-split__grid{ grid-template-columns: 1fr; }
  .promo-split__content{ text-align: left; }

  .newsletter__grid{ grid-template-columns: 1fr; }
  .newsletter__form{ grid-template-columns: 1fr; }

  /* ligeiramente mais baixo em tablet */
  .hero-slide{ height: clamp(300px, 52vh, 520px); }
  .hero-slide img{ object-position: center 32%; }
}

/* <= 680px */
@media (max-width: 680px){
  .hero-strip__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* <= 520px */
@media (max-width: 520px){
  .hero--boticario .hero__container{
    width: 100%;
    margin: 0;
    left: 0;
    transform: none;
  }

  .hero-slider{
    border-radius: 0; /* full width no mobile */
  }

  .hero-strip__right{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-strip__btn{ width: auto; }

  /* mobile: mais alto para não “apertar” */
  .hero-slide{ height: clamp(360px, 62vh, 520px); }
  .hero-slide img{ object-position: center 28%; }

  .hero-slider__btn{
    width: 26px;
    height: 40px;
    border-radius: 8px;
    font-size: 20px;
    background: rgba(111,123,69,.18);
    border: 1px solid rgba(255,255,255,.25);
  }

  .hero-slider__dots{
    bottom: 9px;
    padding: 5px 9px;
    background: rgba(0,0,0,.16);
  }

  .hero-strip__inner{
    width: calc(100% - 24px);
  }
}

/* regra global (pode ficar no fim) */
a{ text-decoration: none; }
