/* =========================================================
   Ever's Beverage — folha de estilos
   Mobile-first. Duas fontes: Fraunces (títulos) e Source Sans 3 (texto).
   ========================================================= */

:root {
  --bg: #F6F3EE;
  --bg-2: #EEE9E1;
  --bg-3: #E4DED3;
  --ink: #171717;
  --ink-2: #3D3935;
  --muted: #68635D;
  --line: #DAD3C8;
  --line-2: #C7BFB2;
  --plum: #4A2F73;        /* roxo da placa/logo da Ever's */
  --plum-ink: #EFE8F0;
  --gold: #CDAA5E;        /* dourado da logo — usar só sobre fundo escuro (pouco contraste no creme) */
  --wine: #722E38;
  --copper: #B77A49;
  --copper-2: #8F5C32;
  --dark: #151515;
  --dark-ink: #D9D3C9;
  --field: #FCFBF9;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 60px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
.prose ol { padding-left: 1.2em; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* link "pular para o conteúdo": invisível até receber foco pelo teclado */
a.sr-only:focus { position: fixed; top: 8px; left: 8px; z-index: 200; width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto; background: var(--ink); color: var(--bg); font-weight: 600; border-radius: var(--radius); }

/* ---------- tipografia ---------- */
.h1, .h2, .h3, .card__name, .product__name, .logo {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.h1 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
.h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
.h3 { font-size: 1.2rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 38em; }
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper-2);
}
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--ink); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 40em; }
.plain li { list-style: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 52px; }
.section--tight { padding-block: 36px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
main { min-height: 60vh; }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding-block: 84px; }
  .section--tight { padding-block: 56px; }
  .section__head { margin-bottom: 32px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --header-h: 64px; }
  body { font-size: 1.0625rem; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #000; border-color: #000; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; padding-inline: 28px; font-size: 1rem; }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: .875rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 14px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 1.45rem; font-weight: 600; letter-spacing: -.015em; }
.logo__tag { font-family: var(--font-body); font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
/* logo vetorial (placa roxa 2:1) */
.brand { display: block; height: 42px; width: auto; aspect-ratio: 2 / 1; flex: none; }
.logo { align-items: flex-start; }
.header .brand { height: 42px; }
.footer .brand { height: 96px; }
.agegate__logo .brand { height: 72px; }
@media (min-width: 1024px) { .header .brand { height: 46px; } }
.nav { display: none; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.iconbtn {
  position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); color: var(--ink);
  transition: background-color .2s;
}
.iconbtn:hover { background: var(--bg-2); }
.iconbtn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn .badge {
  position: absolute; top: 5px; right: 3px;
  min-width: 17px; height: 17px; padding-inline: 4px;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: .68rem; font-weight: 700; line-height: 17px; text-align: center;
}
.iconbtn .badge:empty, .iconbtn .badge[data-count="0"] { display: none; }
.burger { display: inline-flex; }
.burger .bars, .burger .bars::before, .burger .bars::after {
  content: ""; display: block; width: 20px; height: 1.6px; background: currentColor; position: relative; transition: transform .25s, opacity .2s;
}
.burger .bars::before { position: absolute; top: -6px; }
.burger .bars::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] .bars { background: transparent; }
.burger[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* busca (barra abaixo do header) */
.searchbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.searchbar form { display: flex; gap: 8px; padding-block: 10px; }
.searchbar input { flex: 1; }

/* menu mobile */
.mnav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
  background: var(--bg); overflow-y: auto;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease), opacity .2s;
}
.mnav.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mnav__list > li { border-bottom: 1px solid var(--line); }
.mnav__list a, .mnav__list summary {
  display: block; padding: 16px var(--gutter);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
}
.mnav__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.mnav__list summary::-webkit-details-marker { display: none; }
.mnav__list summary::after { content: "+"; font-family: var(--font-body); font-size: 1.4rem; color: var(--muted); }
.mnav__list details[open] summary::after { content: "−"; }
.mnav__sub a { font-family: var(--font-body); font-size: 1rem; padding: 10px calc(var(--gutter) + 16px); color: var(--ink-2); }
.mnav__sub { padding-bottom: 8px; }
.mnav__foot { padding: 20px var(--gutter); color: var(--muted); font-size: .875rem; }

@media (min-width: 1024px) {
  .burger { display: none; }
  .mnav { display: none; }
  .nav { display: flex; align-items: center; gap: 26px; margin-left: 40px; }
  .nav > li { position: relative; }
  .nav a, .nav summary { font-size: .95rem; font-weight: 500; color: var(--ink-2); padding: 6px 0; display: inline-block; transition: color .2s; }
  .nav a:hover, .nav summary:hover { color: var(--ink); }
  .nav a.is-current { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
  .nav summary { list-style: none; cursor: pointer; }
  .nav summary::-webkit-details-marker { display: none; }
  .nav .dropdown {
    position: absolute; top: calc(100% + 6px); left: -14px; min-width: 180px;
    background: var(--bg); border: 1px solid var(--line); padding: 8px 0;
    box-shadow: 0 6px 18px rgba(23, 23, 23, .06);
  }
  .nav .dropdown a { display: block; padding: 8px 16px; font-weight: 400; }
  .nav .dropdown a:hover { background: var(--bg-2); }
}

/* ---------- hero ---------- */
.hero { padding-block: 8px 36px; }
.hero__grid { display: grid; gap: 16px; }
.hero__media { order: -1; height: min(44vh, 400px); display: flex; justify-content: center; }
.hero__media img { height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.hero__title { margin-bottom: 14px; }
.hero__text { color: var(--ink-2); font-size: 1.05rem; max-width: 30em; margin-bottom: 22px; }
.hero__brand { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; display: flex; gap: 18px; flex-wrap: wrap; }
@media (min-width: 768px) {
  .hero { padding-block: 24px 56px; }
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .hero__media { order: 0; height: min(68vh, 600px); justify-content: flex-end; padding-right: 4%; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 40px 72px; }
  .hero__grid { grid-template-columns: 6fr 6fr; gap: 64px; }
  .hero__media { height: min(72vh, 660px); }
  .hero__copy { padding-left: 2%; }
}

/* ---------- filtros ---------- */
.filters {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: 26px;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; padding: 10px 12px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.toolbar .search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 380px; }
.toolbar .search input { flex: 1; }
.toolbar .count { color: var(--muted); font-size: .9rem; }

/* ---------- grid de produtos ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.grid__empty { padding: 40px 0; color: var(--muted); }
.card { display: flex; flex-direction: column; }
.card__media {
  display: block; background: var(--bg-2); aspect-ratio: 3 / 4; padding: 8%;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .45s var(--ease);
}
@media (hover: hover) { .card__media:hover img { transform: translateY(-4px); } }
.card__body { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; flex: 1; }
.card__name { font-size: 1.1rem; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card__meta { color: var(--ink-2); font-size: .92rem; }
.card__spec { color: var(--muted); font-size: .85rem; }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.price { font-weight: 600; font-size: 1.05rem; }
.price--tbd { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--muted); }
.card .btn { min-height: 44px; font-size: .9rem; padding-inline: 12px; }

/* relacionados: no celular o 3º item ficaria sozinho na linha */
@media (max-width: 859px) { .grid--3 > .card:nth-child(3) { display: none; } }
@media (min-width: 640px) { .grid { gap: 36px 24px; } }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { gap: 56px 40px; } }

/* ---------- faixa institucional (fundo escuro) ---------- */
.band { background: var(--plum); color: var(--plum-ink); }
.band .container { padding-block: 56px; display: grid; gap: 22px; }
.band .eyebrow { color: var(--gold); }
.band .h2 { color: #fff; }
.band p { color: var(--plum-ink); opacity: .9; max-width: 36em; }
.band .link { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.band .link:hover { text-decoration-color: #fff; }
@media (min-width: 860px) {
  .band .container { grid-template-columns: 5fr 7fr; gap: 48px; padding-block: 80px; align-items: start; }
  .band__aside { padding-top: 6px; }
}

/* ---------- como comprar ---------- */
.steps { display: grid; gap: 26px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 16px; }
.step__n { font-family: var(--font-display); font-size: .95rem; color: var(--copper-2); margin-bottom: 10px; }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); max-width: 28em; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- destaque editorial ---------- */
.feature { display: grid; gap: 24px; }
.feature__media { background: var(--bg-2); aspect-ratio: 4 / 5; padding: 10%; }
.feature__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.feature__copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.feature__copy p { color: var(--ink-2); max-width: 30em; }
.feature__spec { color: var(--muted); font-size: .9rem; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 5fr 1fr 5fr; align-items: center; }
  .feature__copy { grid-column: 3; }
  .feature--flip .feature__media { grid-column: 3; grid-row: 1; }
  .feature--flip .feature__copy { grid-column: 1; grid-row: 1; }
}

/* ---------- página de produto ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); padding-block: 16px 8px; }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; gap: 24px; padding-bottom: 24px; }
.product__media { background: var(--bg-2); aspect-ratio: 4 / 5; padding: 8%; }
.product__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__info { display: flex; flex-direction: column; gap: 14px; }
.product__name { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.product__sub { font-size: 1.1rem; color: var(--ink-2); margin-top: -6px; }
.product__short { color: var(--ink-2); max-width: 34em; }
.specs { display: flex; gap: 28px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { font-weight: 600; }
.product__price .price { font-size: 1.5rem; }
.product__price .price--tbd { font-size: 1.25rem; }
.buy { display: flex; gap: 10px; flex-wrap: wrap; }
.buy .btn { flex: 1 1 200px; }
.product__note { font-size: .8rem; color: var(--muted); }
.details { margin-top: 14px; }
.detail { border-top: 1px solid var(--line); padding: 18px 0; }
.detail h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin-bottom: 8px; }
.detail p, .detail li { color: var(--ink-2); }
@media (min-width: 1024px) {
  .product { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
  .product__media { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 1 / 1; padding: 6%; }
  .product__info { padding-top: 8px; }
}

/* quantidade */
.qty { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius); height: 52px; }
.qty__btn { width: 46px; font-size: 1.25rem; color: var(--ink); transition: background-color .2s; }
.qty__btn:hover { background: var(--bg-2); }
.qty input.qty__input { width: 48px; min-height: 0; height: 100%; padding: 0; text-align: center; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-weight: 600; -moz-appearance: textfield; }
.qty input.qty__input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 38px; }
.qty--sm .qty__btn { width: 34px; font-size: 1.05rem; }
.qty--sm input.qty__input { width: 36px; font-size: .9rem; }

/* ---------- carrinho (drawer e página) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(21, 21, 21, .42);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 51;
  width: min(440px, 100%); background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s var(--ease);
  border-left: 1px solid var(--line);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
.cart-empty { padding: 40px 0; text-align: left; color: var(--muted); }
.cart-empty .btn { margin-top: 14px; }

.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item__media { background: var(--bg-2); aspect-ratio: 3 / 4; padding: 6px; }
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item__name { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.cart-item__spec { color: var(--muted); font-size: .85rem; }
.cart-item__row { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.cart-item__row .cart-item__remove { margin-left: auto; }
.cart-item__price { font-weight: 600; }
.cart-item__remove { font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-item__remove:hover { color: var(--wine); }

.summary { display: grid; gap: 8px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.summary__row.is-total { font-weight: 600; font-size: 1.1rem; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.summary__hint { color: var(--muted); font-size: .85rem; }
.drawer__foot .btn { margin-top: 14px; }

.cart-page { display: grid; gap: 32px; }
.cart-page__aside { border: 1px solid var(--line); padding: 20px; align-self: start; }
.cart-page__aside h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin-bottom: 14px; }
@media (min-width: 960px) {
  .cart-page { grid-template-columns: 7fr 4fr; gap: 56px; }
  .cart-page__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* cálculo de frete (componente reutilizável) */
.freight { display: grid; gap: 10px; }
.freight form { display: flex; gap: 8px; }
.freight form input { flex: 1; min-width: 0; }
.freight__result { font-size: .92rem; color: var(--ink-2); }
.freight__result strong { color: var(--ink); }
.freight__error { color: var(--wine); font-size: .875rem; }

/* ---------- formulários ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .error { font-size: .8rem; color: var(--wine); }
.field.has-error input, .field.has-error select { border-color: var(--wine); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--field); border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,23,.08); }
input[readonly] { background: var(--bg-2); color: var(--ink-2); }
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2368635D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (min-width: 640px) { .form-grid--sm-2 { grid-template-columns: 1fr 1fr; } .form-grid--sm-3 { grid-template-columns: 2fr 1fr 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color .2s; }
.choice:has(input:checked) { border-color: var(--ink); }
.choice input { margin-top: 4px; accent-color: var(--ink); }
.choice__title { font-weight: 600; }
.choice__desc { font-size: .875rem; color: var(--muted); }
.notice { padding: 14px 16px; border-left: 2px solid var(--copper); background: var(--bg-2); font-size: .92rem; color: var(--ink-2); }
.notice--error { border-left-color: var(--wine); }

/* ---------- checkout ---------- */
/* grids de uma coluna no celular: minmax(0,1fr) impede que conteúdo largo (barra de etapas, tabelas) estoure a tela */
:where(.checkout, .cart-page, .two-col, .hero__grid, .feature) { grid-template-columns: minmax(0, 1fr); } /* :where = especificidade zero: as media queries de desktop continuam valendo */
:where(.checkout, .cart-page, .two-col, .hero__grid, .feature) > * { min-width: 0; }
.checkout { display: grid; gap: 32px; }
.checkout__aside { align-self: start; border: 1px solid var(--line); padding: 20px; }
.checkout__aside h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin-bottom: 12px; }
.mini-items { display: grid; gap: 10px; margin-bottom: 14px; }
.mini-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.mini-item__media { background: var(--bg-2); aspect-ratio: 3 / 4; padding: 3px; }
.mini-item__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mini-item__name { font-weight: 600; }
.mini-item__qty { color: var(--muted); font-size: .82rem; }
.stepper { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; list-style: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: none; padding: 10px 14px 10px 0; margin-right: 14px; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.stepper li .n { font-family: var(--font-display); margin-right: 6px; }
/* celular: etapas inativas mostram só o número; a atual mostra número + nome */
@media (max-width: 639px) {
  .stepper li { padding-right: 10px; margin-right: 10px; }
  .stepper li:not(.is-current) .l { display: none; }
  .stepper li .n { margin-right: 4px; }
}
.stepper li.is-current { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.stepper li.is-done { color: var(--ink-2); }
.cstep { display: grid; gap: 18px; }
.cstep h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; }
.cstep__actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; flex-wrap: wrap; }
.review { display: grid; gap: 18px; }
.review__block { border-top: 1px solid var(--line); padding-top: 12px; }
.review__block h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.review__block h3 button { font-size: .8rem; letter-spacing: 0; text-transform: none; text-decoration: underline; color: var(--ink-2); }
.review__block p { color: var(--ink-2); }
.done { max-width: 34em; display: grid; gap: 14px; }
.done h1 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; }
@media (min-width: 960px) {
  .checkout { grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; }
  .checkout__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- páginas institucionais ---------- */
.page-head { padding-block: 28px 8px; }
.page-head h1 { margin-bottom: 10px; }
.two-col { display: grid; gap: 28px; }
.two-col__media { background: var(--bg-2); aspect-ratio: 4 / 5; padding: 10%; }
.two-col__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* foto real (fachada): sem multiply, preenche o quadro */
.two-col__media--photo { padding: 0; aspect-ratio: auto; margin: 0; background: transparent; }
.two-col__media--photo img { width: 100%; height: auto; aspect-ratio: 894 / 690; object-fit: cover; object-position: center 35%; mix-blend-mode: normal; display: block; background: var(--bg-3); }
.two-col__media--photo figcaption { padding: 10px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
@media (min-width: 860px) { .two-col__media--photo { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (min-width: 860px) { .two-col { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; } }
.facts { display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .faq__body { padding-bottom: 16px; color: var(--ink-2); max-width: 40em; }
.orders { display: grid; gap: 14px; }
.order { border: 1px solid var(--line); padding: 16px; display: grid; gap: 6px; }
.order__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-weight: 600; }
.order__meta { color: var(--muted); font-size: .875rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-2); color: var(--ink-2); }

/* ---------- rodapé ---------- */
.footer { background: var(--dark); color: var(--dark-ink); margin-top: 40px; }
.footer a:hover { color: #fff; }
/* celular: Loja e Ajuda lado a lado — o rodapé em coluna única ficava longo demais */
.footer__top { padding-block: 44px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.footer__top > div:first-child, .footer__top > div:last-child { grid-column: 1 / -1; }
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: #8F8A82; }
.footer__about { max-width: 30em; font-size: .95rem; margin-top: 16px; color: #B8B2A8; }
.footer__addr { color: #B8B2A8; line-height: 1.45; margin-top: 6px; }
.footer h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8F8A82; margin-bottom: 12px; font-weight: 600; }
.footer ul li { list-style: none; padding: 5px 0; font-size: .95rem; }
.footer__legal { border-top: 1px solid #2A2A2A; padding-block: 18px 22px; display: grid; gap: 8px; font-size: .82rem; color: #8F8A82; }
.footer__legal strong { color: #D9D3C9; font-weight: 600; }
@media (min-width: 768px) {
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
  .footer__top > div:first-child, .footer__top > div:last-child { grid-column: auto; }
  .footer__legal { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- confirmação de idade ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(21, 21, 21, .6);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.agegate__box {
  width: 100%; max-width: 460px; background: var(--bg);
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  display: grid; gap: 12px;
}
.agegate__box .logo__name { font-size: 1.25rem; }
.agegate__box h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin-top: 6px; }
.agegate__box p { color: var(--ink-2); }
.agegate__actions { display: grid; gap: 8px; margin-top: 6px; }
.agegate__legal { font-size: .8rem; color: var(--muted); margin-top: 4px; }
@media (min-width: 640px) {
  .agegate { align-items: center; padding: 20px; }
  .agegate__box { padding: 36px; }
  .agegate__actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 49; /* abaixo do carrinho lateral (51) e do overlay (50) */
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg);
  padding: 12px 16px; border-radius: var(--radius); font-size: .92rem;
  display: flex; gap: 14px; align-items: center; max-width: calc(100% - 40px);
  transition: transform .25s var(--ease), opacity .25s;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast button { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (min-width: 768px) { .toast { left: auto; right: 24px; bottom: 24px; transform: translateY(12px); } .toast.is-show { transform: none; } }

/* ---------- alvos de toque no celular ----------
   Links de lista/navegação ganham área clicável maior (≈44px) sem mudar o visual. */
@media (max-width: 767px) {
  .footer ul li { padding: 0; }
  .footer ul li a { display: block; padding: 11px 0; }
  .footer ul li:not(:has(a)) { padding: 11px 0; }
  .crumbs { gap: 4px 8px; }
  .crumbs a { padding: 6px 0; }
  .link, .faq__body a, .notice a, .facts a, .card__name a { display: inline-block; padding: 6px 0; }
  .cart-item__remove { padding: 8px 0; }
  .faq summary { padding: 18px 0; }
  .mnav__sub a { padding-block: 13px; }
}

/* ---------- animações discretas ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
