/* =========================================================================
   Tokens do tema. Mesmos valores do tema de referência (Dawn/Shrine):
   largura 1400px, Poppins 700 nos títulos, Helvetica no corpo,
   botões 6px, cards/mídia 12px, grid 40px desktop / 20px mobile.
   ========================================================================= */
@font-face { font-family: Poppins; src: url(../fonts/poppins-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/poppins-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/poppins-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f2f3ee;
  --bg-white: #ffffff;
  --bg-alt: #dde2da;
  --text: #1a5632;
  --text-soft: rgba(26, 86, 50, .75);
  --accent: #718473;
  --accent-dark: #5d6e5f;
  --dark: #1a5632;
  --on-dark: #ffffff;
  --sale: #1a5632;
  --line: rgba(26, 86, 50, .15);
  --error: #b3261e;

  --font-heading: Poppins, sans-serif;
  --font-body: Helvetica, Arial, sans-serif;
  --heading-spacing: .06rem;
  --body-spacing: .06rem;

  --page-width: 1400px;
  --gutter: 1.5rem;
  --grid-gap: 20px;

  --radius-button: 6px;
  --radius-card: 12px;
  --radius-media: 12px;
  --shadow-drawer: 0 0 40px rgba(0, 0, 0, .15);
}
@media (min-width: 750px) {
  :root { --gutter: 3.2rem; --grid-gap: 40px; }
}
@media (min-width: 990px) {
  :root { --gutter: 5rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: var(--body-spacing);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 750px) { body { font-size: 16px; } }
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: var(--heading-spacing);
  line-height: 1.3;
  margin: 0 0 .6em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

.page-width { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--bg-white); padding: 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.icon { width: 22px; height: 22px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--text); position: relative; text-decoration: none;
}
.icon-btn:hover .icon { transform: scale(1.07); }
.icon-btn .icon { transition: transform .1s; }

/* ---------- Botões ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 0 2.4rem;
  background: var(--accent); color: var(--on-dark);
  border: 2px solid var(--accent); border-radius: var(--radius-button);
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  letter-spacing: .1rem; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button:active { transform: scale(.99); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button--full { width: 100%; }
.button--large { min-height: 50px; font-size: 18px; }
.button--outline { background: transparent; color: var(--text); border-color: var(--text); font-size: 13px; min-height: 42px; padding: 0 1rem; }
.button--outline:hover { background: var(--text); color: var(--on-dark); border-color: var(--text); }
.button--light { background: var(--bg-white); color: var(--text); border-color: var(--bg-white); }
.button--light:hover { background: var(--bg); border-color: var(--bg); }
.button.is-loading { color: transparent; position: relative; pointer-events: none; }
.button.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--on-dark); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-under { color: var(--text); text-decoration: underline; text-underline-offset: .3rem; font-size: 14px; }
.link-under:hover { text-decoration-thickness: 2px; }

/* ---------- Barra de anúncio (marquee) ---------- */
.announcement { background: var(--dark); color: var(--on-dark); overflow: hidden; font-size: 13px; line-height: 1; }
.announcement__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.announcement__track span { padding: 10px 2.5rem; white-space: nowrap; }
.announcement:hover .announcement__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announcement__track { animation: none; } }

/* ---------- Header ---------- */
.header { background: var(--bg-white); position: sticky; top: 0; z-index: 20; }
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-top: 10px; padding-bottom: 10px;
}
.header__left { display: flex; align-items: center; margin-left: -12px; }
.header__right { display: flex; align-items: center; justify-content: flex-end; margin-right: -12px; }
.header__logo { display: block; text-decoration: none; text-align: center; padding: 6px 0; }
.header__logo img { max-height: 70px; width: auto; margin: 0 auto; }
.header__logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 24px; letter-spacing: .06rem; }
.header__nav ul { display: none; }
.cart-count {
  position: absolute; bottom: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--text); color: var(--on-dark);
  font-size: 11px; line-height: 18px; text-align: center; letter-spacing: 0;
}
@media (min-width: 990px) {
  .header__menu-toggle { display: none; }
  .header__inner { padding-top: 20px; padding-bottom: 6px; }
  .header__logo img { max-height: 150px; }
  .header__logo-text { font-size: 40px; }
  .header__nav ul { display: flex; justify-content: center; flex-wrap: wrap; padding: 0 var(--gutter) 18px; }
  .header__nav a {
    display: block; padding: 6px 12px; font-size: 15px; text-decoration: none; letter-spacing: .1rem;
  }
  .header__nav a:hover, .header__nav a[aria-current] { text-decoration: underline; text-underline-offset: .3rem; }
}

.sub-bar {
  background: var(--dark); color: var(--on-dark); text-align: center;
  font-weight: 700; font-size: 16px; line-height: 30px; letter-spacing: .1rem;
}

/* ---------- Drawers / modais ---------- */
.drawer, .search-modal, .popup { position: fixed; inset: 0; z-index: 50; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); animation: fade .2s; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; width: min(420px, 90vw);
  background: var(--bg-white); display: flex; flex-direction: column;
  box-shadow: var(--shadow-drawer); animation: slide-in-right .25s ease-out;
}
.drawer--right .drawer__panel { right: 0; }
.drawer--left .drawer__panel { left: 0; animation-name: slide-in-left; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; text-align: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in-right { from { transform: translateX(100%); } }
@keyframes slide-in-left { from { transform: translateX(-100%); } }

.menu-drawer__list a { display: block; padding: 14px 24px; font-size: 18px; text-decoration: none; }
.menu-drawer__list a:hover { background: var(--bg); }

.search-modal__form {
  position: relative; background: var(--bg-white); display: flex; align-items: center; gap: 4px;
  padding-top: 20px; padding-bottom: 20px; max-width: none; animation: fade .2s;
}
.search-modal__form input {
  flex: 1; height: 46px; padding: 0 16px; border: 1px solid var(--text); border-radius: var(--radius-button);
  background: var(--bg-white);
}

/* ---------- Seções ---------- */
.section { padding: 36px 0; }
.section--tight { padding: 28px 0; }
.section--alt { background: var(--bg-alt); }
@media (min-width: 750px) { .section { padding: 52px 0; } }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 24px; }
.section__head .section__title, .section__head .page-title { margin: 0; }
.section__title { font-size: 24px; margin-bottom: 24px; }
.page-title { font-size: 30px; }
@media (min-width: 750px) {
  .section__title { font-size: 32px; }
  .page-title { font-size: 40px; }
}
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .15rem; color: var(--text-soft); margin: 0 0 .5rem; }
.empty { padding: 40px 0; text-align: center; color: var(--text-soft); }
.notice { background: var(--bg-alt); border-radius: var(--radius-button); padding: 12px 16px; font-size: 14px; }

/* ---------- Slideshow / banner ---------- */
.slideshow { position: relative; overflow: hidden; background: var(--dark); }
.slideshow__track { display: grid; }
.slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img, .slide picture { width: 100%; height: 100%; object-fit: cover; }
.slide > img, .slide picture img { min-height: 460px; max-height: 720px; }
.slideshow--banner .slide > img { min-height: 360px; max-height: 520px; }
.slide__content { position: absolute; inset: 0; display: flex; align-items: center; }
.slide__box { max-width: 560px; color: var(--on-dark); }
.slide__title { font-size: 40px; line-height: 1.1; margin-bottom: 16px; }
.slide__text { font-size: 18px; margin: 0 0 24px; }
@media (min-width: 750px) { .slide__title { font-size: 64px; } .slide__text { font-size: 20px; } }
.slideshow__controls { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; align-items: center; color: var(--on-dark); }
.slideshow__controls .icon-btn { color: var(--on-dark); }
.slideshow__dots { display: flex; gap: 8px; }
.slideshow__dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--on-dark); background: none; padding: 0; cursor: pointer; }
.slideshow__dots button[aria-current] { background: var(--on-dark); }

/* ---------- Benefícios ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
@media (min-width: 990px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: rgba(255, 255, 255, .6); border-radius: var(--radius-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 36px 16px; text-align: center; font-family: var(--font-heading); font-weight: 500; font-size: 17px; line-height: 1.4;
}
.feature .icon { width: 52px; height: 52px; stroke-width: 1.2; }
@media (min-width: 750px) { .feature { font-size: 22px; padding: 48px 20px; } }

/* ---------- Grid de produtos ---------- */
.grid { display: grid; gap: var(--grid-gap) calc(var(--grid-gap) / 2); }
.grid--products { grid-template-columns: repeat(2, 1fr); }
.grid--collections { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 750px) {
  .grid { gap: var(--grid-gap); }
  .grid--products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 990px) {
  .grid--products, .grid--collections { grid-template-columns: repeat(4, 1fr); }
}

.card { display: flex; flex-direction: column; }
.card__media {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius-card); background: var(--bg-white);
}
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.4; margin: 0; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-underline-offset: .3rem; }
.card__add { margin-top: auto; }
@media (max-width: 749px) {
  .card .button--outline { font-size: 11px; letter-spacing: .02rem; padding: 0 6px; min-height: 38px; }
}
@media (min-width: 750px) { .card__title { font-size: 16px; } }

.badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  background: var(--text); color: var(--on-dark); border-radius: 40px;
  padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .05rem; line-height: 1.4;
}
.badge--soldout { background: var(--bg-white); color: var(--text); border: 1px solid var(--line); }
.badge--inline { position: static; display: inline-block; vertical-align: middle; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; }
.price__now { font-weight: 700; }
.price__was { color: var(--text-soft); font-size: .9em; }
.price--large { font-size: 20px; margin-bottom: 4px; }
@media (min-width: 750px) { .price--large { font-size: 22px; } }

.collection-card {
  display: block; position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius-card); background: var(--bg-white); text-decoration: none;
}
.collection-card img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.collection-card:hover img { transform: scale(1.04); }
.collection-card__title {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-white); border-radius: var(--radius-button); padding: 8px 14px;
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
}
.collection-card__title .icon { width: 18px; height: 18px; }

/* ---------- Coleção ---------- */
.collection__desc { margin-top: -8px; color: var(--text-soft); }
.facets { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.facets select { padding: 8px 32px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-button); background: var(--bg-white); }
.facets__count { margin-left: auto; color: var(--text-soft); font-size: 14px; }
.search-inline { display: flex; gap: 10px; max-width: 560px; margin-bottom: 20px; }
.search-inline input { flex: 1; height: 46px; padding: 0 14px; border: 1px solid var(--text); border-radius: var(--radius-button); background: var(--bg-white); }

/* ---------- Produto ---------- */
.product { padding-top: 24px; }
.product__grid { display: grid; gap: 30px; }
@media (min-width: 990px) {
  .product__grid { grid-template-columns: 55% 1fr; gap: 60px; align-items: start; }
  .product__info { position: sticky; top: 30px; max-width: 540px; }
}
.product__main { background: var(--bg); border-radius: var(--radius-media); overflow: hidden; aspect-ratio: 1; }
.product__main img { width: 100%; height: 100%; object-fit: contain; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.product__thumbs button { width: 76px; height: 76px; padding: 0; border: 1px solid transparent; border-radius: 8px; overflow: hidden; background: var(--bg-white); cursor: pointer; flex: none; }
.product__thumbs button[aria-current] { border-color: var(--text); }
.product__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__title { font-size: 26px; margin-bottom: 12px; }
@media (min-width: 750px) { .product__title { font-size: 30px; } }
.product__tax { font-size: 13px; color: var(--text-soft); margin: 0 0 20px; }
.product__form { display: grid; gap: 10px; margin-bottom: 28px; }
.product__label { font-size: 13px; font-weight: 700; }
.qty {
  display: inline-flex; width: 142px; height: 46px; border: 1px solid var(--line);
  border-radius: var(--radius-button); background: var(--bg-white); overflow: hidden; margin-bottom: 14px;
}
.qty button { width: 46px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button .icon { width: 14px; height: 14px; }
.qty input { width: 50px; border: 0; text-align: center; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--small { width: 110px; height: 38px; margin: 0; }
.qty--small button { width: 34px; }
.qty--small input { width: 40px; font-size: 14px; }

.rte p { margin: 0 0 1em; }
.rte h2 { font-size: 20px; margin-top: 1.6em; }
.rte ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }

.accordion { border-top: 1px solid var(--line); }
.accordion:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 16px 0; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; line-height: 1; }
.accordion[open] summary::after { content: "–"; }
.accordion summary small { font-weight: 400; }
.accordion > p { margin: 0 0 16px; }
.nutrition { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.nutrition th, .nutrition td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.nutrition td { text-align: right; }

/* ---------- Carrinho ---------- */
.cart-lines { flex: 1; overflow-y: auto; padding: 0 24px; }
.cart-lines--page { padding: 0; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line__img { width: 84px; height: 84px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-line__title { font-size: 14px; line-height: 1.4; text-decoration: none; display: block; margin-bottom: 4px; }
.cart-line__price { font-size: 14px; margin-bottom: 8px; }
.cart-line__actions { display: flex; align-items: center; gap: 8px; }
.cart-line__remove { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text-soft); font-size: 13px; text-decoration: underline; }
.cart-line__total { font-weight: 700; font-size: 14px; }
.cart-empty { text-align: center; padding: 48px 0; }
.cart-empty p { margin-bottom: 20px; font-size: 18px; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 17px; }
.cart-note { font-size: 13px; color: var(--text-soft); margin: 0; }
.cart-page__foot { display: grid; gap: 10px; justify-items: end; margin-top: 24px; text-align: right; }
.cart-page__foot .cart-subtotal { gap: 24px; }

.free-ship { padding: 14px 24px 0; font-size: 13px; }
.cart-page .free-ship { padding: 0 0 8px; }
.free-ship__bar { height: 6px; background: var(--bg-alt); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.free-ship__bar span { display: block; height: 100%; background: var(--text); transition: width .3s; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark); margin-top: 0; padding: 48px 0 24px; font-size: 14px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 750px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { font-family: var(--font-heading); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.footer__heading { font-size: 16px; margin-bottom: 10px; }
.footer a { text-decoration: none; opacity: .9; }
.footer a:hover { text-decoration: underline; opacity: 1; }
.footer li { padding: 2px 0; }
.footer__payments { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.footer__payments span { border: 1px solid rgba(255, 255, 255, .4); border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 36px; padding-top: 18px; font-size: 12px; opacity: .8; }

/* ---------- Extras ---------- */
.scroll-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 15; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: var(--text); color: var(--on-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.popup { display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup__box { position: relative; background: var(--bg-white); border-radius: var(--radius-card); padding: 40px 28px 28px; max-width: 420px; text-align: center; animation: fade .25s; }
.popup__close { position: absolute; top: 6px; right: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--text); color: var(--on-dark); padding: 12px 20px; border-radius: var(--radius-button);
  font-size: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); animation: fade .2s;
}
