/* Estrutura comum da loja. As cores, fontes e o "jeito" de cada visual ficam nos arquivos de tema. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: var(--display-tracking, 0); }
p { margin: 0 0 1em; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--radius-btn); border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cta); color: var(--cta-ink); box-shadow: var(--cta-shadow); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); box-shadow: none; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* ---------- elementos que só alguns visuais mostram (o tema liga) ---------- */
.topline, .logo small, .cart-label, .card-cat, .card-summary, .card-kg, .card-link, .wa-float, .h-classic, .hero-cap, .n-full, .price-row .unit { display: none; }
.logo .brand-type { display: grid; line-height: 1; }

/* ---------- topo ---------- */
.announce { background: var(--announce-bg); color: var(--announce-ink); font-size: 13.5px; text-align: center; padding: 7px 12px; font-weight: 600; }
.header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.loc-chip { min-width: 0; }
@media (max-width: 400px) { .logo span { font-size: 15px; } .logo img { width: 30px; height: 30px; } .header-row { gap: 8px; } }
.logo img { width: 42px; height: 42px; object-fit: contain; }
.logo span { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--logo-ink); white-space: nowrap; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.loc-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; max-width: 180px;
}
.loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 999px; background: var(--brand); color: var(--brand-ink); text-decoration: none;
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--header-solid);
}
.menu-btn { display: inline-flex; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px 0 14px; }
.mobile-nav a { display: block; padding: 11px 4px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}
@media (max-width: 520px) {
  .loc-chip { max-width: 120px; padding: 6px 10px; }
  .logo span { font-size: 18px; }
  .logo img { width: 36px; height: 36px; }
}

/* ---------- aviso de região ---------- */
.zone { border-bottom: 1px solid var(--line); }
.zone-inner { display: flex; align-items: center; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.zone-icon { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; flex: none; font-size: 18px; }
.zone-text { flex: 1 1 260px; font-size: 14.5px; }
.zone-text strong { display: block; font-size: 15.5px; }
.zone[data-state="ask"] { background: var(--zone-ask-bg); }
.zone[data-state="ask"] .zone-icon { background: var(--accent); color: var(--accent-ink); }
.zone[data-state="ok"] { background: var(--zone-ok-bg); }
.zone[data-state="ok"] .zone-icon { background: var(--ok); color: #fff; }
.zone[data-state="out"] { background: var(--zone-out-bg); }
.zone[data-state="out"] .zone-icon { background: var(--danger); color: #fff; }
.cep-form { display: flex; gap: 8px; flex: 0 1 300px; }
.cep-form input { flex: 1; min-width: 0; }

/* ---------- campos ---------- */
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-input); border: 1px solid var(--line-strong);
  background: var(--input-bg); font-size: 16px;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-soft); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field small { color: var(--muted); font-size: 13px; }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; }

/* ---------- vitrine ---------- */
.hero { padding: 26px 0 8px; }
.hero-grid { display: grid; gap: 18px; align-items: center; }
.hero h1 { font-size: clamp(28px, 6vw, 46px); margin-bottom: 10px; }
.hero p.lead { color: var(--muted); font-size: clamp(15.5px, 2.4vw, 18px); max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--text); }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .tag { position: absolute; left: 14px; bottom: 14px; background: var(--surface); padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .hero { padding: 40px 0 16px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; } }

.section { padding: 26px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(22px, 4vw, 30px); margin: 0; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 6px; display: block; }

.chips { position: sticky; top: 66px; z-index: 30; background: var(--bg); padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--card-shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.card-media { position: relative; aspect-ratio: 1; background: var(--media-bg); cursor: pointer; border: 0; padding: 0; width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.badge { font-size: 11.5px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: .02em; }
.badge-promo { background: var(--danger); color: #fff; }
.badge-ms { background: var(--badge-ms-bg); color: var(--badge-ms-ink); }
.badge-video { background: rgba(0,0,0,.62); color: #fff; }
.badge-off { background: #444; color: #fff; }
.card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-family: var(--font-card-title); font-weight: 700; font-size: 15.5px; line-height: 1.25; margin: 0; }
.card-name button { all: unset; cursor: pointer; }
.card-weight { color: var(--muted); font-size: 13px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.price { font-size: 20px; font-weight: 800; color: var(--price); }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.was { color: var(--muted); text-decoration: line-through; font-size: 13.5px; }
.card .btn { margin-top: 8px; min-height: 42px; }
.card[data-blocked="1"] .card-media img { filter: grayscale(.6); opacity: .7; }
.card-note { font-size: 12.5px; color: var(--danger); font-weight: 700; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); overflow: hidden; background: var(--surface); }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 20px; font-weight: 700; cursor: pointer; }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; }
.card .stepper { width: 100%; justify-content: space-between; margin-top: 8px; }

/* ---------- ficha do produto ---------- */
.sheet { border: 0; padding: 0; width: min(980px, 100%); max-height: 100dvh; margin: auto; background: var(--surface); color: var(--text); border-radius: var(--radius-lg); }
.sheet::backdrop { background: rgba(15, 12, 8, .55); }
@media (max-width: 760px) { .sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; max-height: 94dvh; } }
.sheet-inner { display: grid; gap: 0; }
@media (min-width: 760px) { .sheet-inner { grid-template-columns: 1fr 1fr; } }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 22px; cursor: pointer; }
.gallery { background: var(--media-bg); position: relative; }
.gallery-main { aspect-ratio: 1; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery-main img.cover { object-fit: cover; padding: 0; }
.gallery-main video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 58px; height: 58px; border-radius: 10px; border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--surface); cursor: pointer; position: relative; }
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35); font-size: 18px; }
.sheet-info { padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.sheet-info h2 { font-size: clamp(22px, 4vw, 30px); margin: 0; }
.sheet-info .hook { color: var(--muted); margin: 0; }
.sheet-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sheet-price .price { font-size: 30px; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.highlights { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.highlights li { display: flex; gap: 8px; font-size: 14.5px; }
.highlights li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.notice-ms { background: var(--zone-ask-bg); }
.notice-out { background: var(--zone-out-bg); }
.notice-ok { background: var(--zone-ok-bg); }
.spice { letter-spacing: 2px; }
.details { border-top: 1px solid var(--line); padding-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---------- blocos ---------- */
.ml { border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 12px; background: var(--ml-bg); color: var(--ml-ink); }
.ml strong { font-size: 18px; display: block; }
@media (min-width: 760px) { .ml { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; } }
.ml-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px; font-size: 14px; }
.trust b { display: block; font-size: 15px; margin-bottom: 2px; }

/* ---------- rodapé ---------- */
.footer { margin-top: 40px; background: var(--footer-bg); color: var(--footer-ink); padding: 34px 0 110px; font-size: 14px; }
.footer a { text-decoration: none; }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .footer { padding-bottom: 34px; } }
.footer h3 { font-size: 16px; font-family: var(--font-body); font-weight: 800; margin-bottom: 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .legal { border-top: 1px solid var(--footer-line); margin-top: 22px; padding-top: 16px; opacity: .8; font-size: 12.5px; }

/* ---------- barra do carrinho no celular ---------- */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: flex; align-items: center; gap: 12px;
  background: var(--cart-bar-bg); color: var(--cart-bar-ink); border-radius: 16px; padding: 10px 10px 10px 16px; box-shadow: var(--shadow-lg);
  text-decoration: none; transform: translateY(140%); transition: transform .25s;
}
.cart-bar.show { transform: none; }
.cart-bar .info { flex: 1; line-height: 1.2; }
.cart-bar .info small { display: block; opacity: .8; font-size: 12.5px; }
.cart-bar .btn { min-height: 42px; }
@media (min-width: 900px) { .cart-bar { left: auto; right: 24px; bottom: 24px; width: 360px; } }

/* ---------- carrinho e pagamento ---------- */
.checkout { display: grid; gap: 20px; padding: 18px 0 30px; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1.35fr 1fr; align-items: start; } .summary { position: sticky; top: 86px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.panel h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.step-n { width: 28px; height: 28px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); display: inline-grid; place-items: center; font-size: 14px; font-family: var(--font-body); font-weight: 800; flex: none; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item img { width: 64px; height: 64px; object-fit: contain; background: var(--media-bg); border-radius: 12px; padding: 4px; }
.line-item .name { font-weight: 700; line-height: 1.25; }
.line-item .sub { color: var(--muted); font-size: 13px; }
.line-item .right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.line-item .stepper button { width: 34px; height: 34px; font-size: 17px; }
.line-item.blocked { opacity: .65; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; cursor: pointer; background: var(--surface); }
.option input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; }
.option:has(input:checked) { border-color: var(--brand); background: var(--option-checked); }
.option b { display: block; }
.option small { color: var(--muted); }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); }
.form-grid > * { grid-column: span 6; }
@media (min-width: 560px) { .span-2 { grid-column: span 2 !important; } .span-3 { grid-column: span 3 !important; } .span-4 { grid-column: span 4 !important; } }
.totals { display: grid; gap: 8px; margin: 14px 0; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
.empty { text-align: center; padding: 40px 10px; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; background: var(--zone-out-bg); border: 1px solid var(--line); }
.alert-ok { background: var(--zone-ok-bg); }
.alert-info { background: var(--zone-ask-bg); }

/* ---------- avisos rápidos, cookies, seletor de visual ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-lg); display: grid; gap: 12px; font-size: 14px; }
.cookies .row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 760px) { .cookies { left: 24px; right: auto; width: 440px; bottom: 24px; } }
.theme-switch { position: fixed; top: auto; bottom: 90px; right: 0; z-index: 80; opacity: .9; display: grid; gap: 4px; background: #111; color: #fff; padding: 8px; border-radius: 12px 0 0 12px; font: 700 12px/1.2 system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.theme-switch button { border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; background: #333; color: #fff; font: inherit; }
.theme-switch button[aria-pressed="true"] { background: #ffd34d; color: #111; }

/* ---------- páginas de texto ---------- */
.page-head { padding: 30px 0 10px; }
.page-head h1 { font-size: clamp(28px, 5vw, 42px); }
.page-head p { color: var(--muted); max-width: 680px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 1.4em; }
.status-card { max-width: 640px; margin: 30px auto; text-align: center; }
.status-icon { width: 72px; height: 72px; border-radius: 999px; display: grid; place-items: center; margin: 0 auto 14px; font-size: 34px; color: #fff; }
.spin { width: 22px; height: 22px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 999px; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius-card); min-height: 280px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
