/* ==========================================================================
   ZARN Club — loja
   Paleta: preto/branco puros, cinza "vitrine" para produtos e vermelho
   "cartão" só para oferta, urgência e erro.
   Tipografia: Saira (variável). Largura condensada + itálico ecoa o logo.
   ========================================================================== */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --stage: #f1f1f1;
  --line: #e2e2e2;
  --mute: #6b6b6e;
  --signal: #d6211b;
  --ok: #157a3b;
  --warn: #a35a00;
  --overlay: rgba(0, 0, 0, .45);
  --whats: #25d366;

  --font: "Saira", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --topo-h: 60px;
  --pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ffffff;
    --paper: #000000;
    --stage: #18181a;
    --line: #2c2c2f;
    --mute: #a1a1a6;
    --signal: #ff5145;
    --ok: #46c776;
    --warn: #f0a640;
    --overlay: rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ffffff;
  --paper: #000000;
  --stage: #18181a;
  --line: #2c2c2f;
  --mute: #a1a1a6;
  --signal: #ff5145;
  --ok: #46c776;
  --warn: #f0a640;
  --overlay: rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--topo-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Faixa atrás da barra de status do celular, na cor do cabeçalho fixo. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
  z-index: 60;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--pill);
}
.pular:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.logo { height: auto; }
.logo--claro { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo { filter: invert(1); }
  :root:not([data-theme="light"]) .logo--claro { filter: invert(1); }
}
:root[data-theme="dark"] .logo { filter: invert(1); }

/* ------------------------------------------------------------- botões */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--pill); border: 1.5px solid transparent;
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, opacity .15s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--escuro { background: var(--ink); color: var(--paper); }
.btn--escuro:hover { opacity: .78; }
.btn--contorno { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--contorno:hover { border-color: var(--ink); }
.btn--claro { background: #fff; color: #000; }
.btn--claro:hover { background: #e6e6e6; }
.btn--contorno-claro { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--contorno-claro:hover { border-color: #fff; }
.btn--largo { width: 100%; min-height: 56px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .4; pointer-events: none; }

.icone {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink);
}
.icone:hover { background: var(--stage); }
.icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------- topo */

.aviso {
  background: var(--stage); color: var(--ink);
  text-align: center; font-size: 13px; font-weight: 500;
  padding: 9px var(--gutter);
}
.topo {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topo--rolado { border-bottom-color: var(--line); }
.topo__in {
  max-width: var(--max); margin: 0 auto; height: var(--topo-h);
  padding: 0 calc(var(--gutter) - 10px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.topo__menu { justify-self: start; }
.topo__marca { justify-self: center; display: block; padding: 8px 6px; }
.topo__marca .logo { width: 112px; }
.topo__acoes { justify-self: end; display: flex; gap: 2px; }
.topo__sacola { position: relative; }
.topo__contador {
  position: absolute; top: 6px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill);
  background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.nav { display: none; }

@media (min-width: 960px) {
  :root { --topo-h: 68px; }
  .topo__in { grid-template-columns: auto 1fr auto; gap: 24px; }
  .topo__menu { display: none; }
  .topo__marca { justify-self: start; }
  .topo__marca .logo { width: 128px; }
  .nav { display: flex; justify-content: center; gap: 4px; }
  .nav__link {
    padding: 8px 14px; text-decoration: none; font-weight: 500;
    border-bottom: 2px solid transparent;
  }
  .nav__link:hover, .nav__link[aria-current="page"] { border-bottom-color: var(--ink); }
}

.busca {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) 14px;
  display: flex; gap: 8px;
}
.busca[hidden] { display: none; }
.busca__campo {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--pill); background: var(--stage); font-size: 16px;
}
.busca__campo:focus-visible { outline-offset: 0; }
.busca__fechar { border: 0; background: transparent; padding: 0 12px; font-weight: 500; }

/* ------------------------------------------------------------- base */

main { display: block; min-height: 60vh; }
main:focus, main:focus-visible { outline: none; }
.carregando, .erro-geral { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter); color: var(--mute); }
.erro-geral h1 { color: var(--ink); font-size: 24px; margin-bottom: 8px; }
.erro-geral .btn { margin-top: 20px; }

.secao { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; }
.secao__topo { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.secao__titulo { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; font-stretch: 88%; letter-spacing: -.005em; }
.secao__acoes { display: flex; align-items: center; gap: 16px; }
.secao__link { font-weight: 500; white-space: nowrap; }
.secao__controles { display: none; gap: 8px; }
@media (min-width: 960px) { .secao__controles { display: flex; } }
.seta {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--stage);
  display: grid; place-items: center;
}
.seta:hover { background: var(--line); }
.seta:disabled { opacity: .35; cursor: default; }
.seta svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; }

/* ------------------------------------------------------------- hero */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: #000; color: #fff;
  min-height: min(80vh, 760px); display: grid; align-items: end;
}
.hero__foto {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  animation: revela 1.4s var(--ease) both;
}
.hero--foto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, .85) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 65%);
}
@keyframes revela { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.hero__in {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 14vh, 180px) var(--gutter) clamp(32px, 5vh, 64px);
  display: grid; gap: 16px; justify-items: start;
}
.hero__titulo {
  /* Acompanha a largura útil: a linha mais longa (~12 letras) sempre cabe, do celular ao monitor. */
  font-size: clamp(44px, min(calc((100vw - 2 * var(--gutter)) / 4.8), 16.5vh), 168px);
  font-weight: 800; font-style: italic; font-stretch: 58%;
  text-transform: uppercase; line-height: .86; letter-spacing: -.005em;
}
/* Cada linha um pouco mais à direita: o degrau segue a inclinação do logo. */
.hero__linha { display: block; padding-left: calc(var(--i, 0) * .32em); }
.hero__sub { max-width: 44ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .88); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (min-width: 960px) { .hero { min-height: min(88vh, 860px); } }
/* Celular: foto inteira em cima, sem texto por cima; título e botões embaixo, no preto. */
@media (max-width: 959px) {
  .hero--foto { display: block; min-height: 0; }
  .hero--foto .hero__foto {
    position: relative; inset: auto; z-index: 0; display: block;
    height: auto; aspect-ratio: 4 / 5; max-height: 64vh; max-height: 64svh;
    object-position: center 62%;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
    mask-image: linear-gradient(180deg, #000 80%, transparent);
  }
  .hero--foto::before { display: none; }
  .hero--foto .hero__in { position: relative; margin-top: -24px; padding-top: 0; }
}

/* ------------------------------------------------------- categorias */

.cats { display: grid; gap: 8px; }
.cat {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-content: end; gap: 2px;
  min-height: 280px; padding: 24px;
  background: var(--stage); text-decoration: none;
}
.cat__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s var(--ease);
}
.cat--foto { color: #fff; }
.cat--foto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .78) 100%);
}
.cat:hover .cat__img { transform: scale(1.04); }
.cat__nome {
  font-size: clamp(44px, 5vw, 64px); font-weight: 800; font-style: italic; font-stretch: 58%;
  text-transform: uppercase; line-height: .9;
}
.cat__desc { color: var(--mute); }
.cat--foto .cat__desc { color: rgba(255, 255, 255, .86); }
.cat__qtd { font-weight: 500; margin-top: 10px; text-decoration: underline; text-underline-offset: 4px; }
.cat--foto:focus-visible { outline-offset: -4px; outline-color: #fff; }
@media (min-width: 760px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat { min-height: 0; aspect-ratio: 4 / 5; padding: 32px 12% 32px 32px; clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); }
}

/* ------------------------------------------------------------- cards */

.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; }
@media (min-width: 960px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 12px; } }
@media (min-width: 1280px) { .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
}
.trilho::-webkit-scrollbar { display: none; }
.trilho > * { scroll-snap-align: start; }
@media (min-width: 640px) { .trilho { grid-auto-columns: 44%; } }
@media (min-width: 960px) { .trilho { grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; margin: 0; padding: 0; scroll-padding: 0; } }
@media (min-width: 1280px) { .trilho { grid-auto-columns: calc((100% - 36px) / 4); } }

.card { min-width: 0; }
.card__link { display: block; text-decoration: none; }
.card__img { position: relative; aspect-ratio: 1; background: var(--stage); overflow: hidden; }
.card__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .25s;
}
.card__img .card__img2 { opacity: 0; }
@media (hover: hover) {
  .card__link:hover .card__img--duplo img:first-child { opacity: 0; }
  .card__link:hover .card__img2 { opacity: 1; }
}
.card__info { padding: 12px 2px 0; display: grid; gap: 1px; }
.selo { font-size: 15px; font-weight: 600; }
.selo--oferta, .selo--ultimas { color: var(--signal); }
.selo--esgotada { color: var(--mute); }
.card__nome { font-size: 16px; font-weight: 500; line-height: 1.35; }
.card__tipo { color: var(--mute); }
.preco { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 6px; font-weight: 500; }
.preco s { color: var(--mute); font-weight: 400; }
.preco__desc { color: var(--signal); font-size: 14px; }
.card--esgotada .card__img img { opacity: .55; }


/* ---------------------------------------------------------- catálogo */

.catalogo { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 0; }
.catalogo__titulo { font-size: clamp(26px, 3vw, 36px); font-weight: 600; font-stretch: 88%; }
.catalogo__qtd { color: var(--mute); font-weight: 400; }
.filtros {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topo-h)); z-index: 10;
  background: var(--paper); margin: 12px calc(var(--gutter) * -1) 20px; padding: 10px var(--gutter);
  display: grid; gap: 10px;
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: var(--pill);
  border: 1.5px solid var(--line); text-decoration: none; font-weight: 500; font-size: 15px;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filtros__sel { display: flex; gap: 8px; }
.seletor { position: relative; flex: 1; min-width: 0; }
.seletor select {
  width: 100%; height: 44px; padding: 0 36px 0 16px; appearance: none;
  border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--paper);
  font-size: 15px; font-weight: 500;
}
.seletor::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg);
}
@media (min-width: 960px) {
  .filtros { grid-template-columns: 1fr auto; align-items: center; }
  .chips { margin: 0; padding: 2px 0; }
  .seletor { flex: none; width: 210px; }
}
.busca-ativa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 20px; }
.link-btn { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.vazio { padding: 48px 0 24px; display: grid; justify-items: start; gap: 12px; }
.vazio h2 { font-size: 22px; font-weight: 600; }
.vazio p { color: var(--mute); max-width: 52ch; }

/* ------------------------------------------------------------ produto */

.migalhas { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 0; color: var(--mute); font-size: 14px; }
.migalhas a { color: inherit; }
.migalhas span[aria-current] { color: var(--ink); }
.pdp {
  max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 0;
  display: grid; gap: 28px;
}
@media (min-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 56px; padding-top: 24px; align-items: start; }
  .pdp__info { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topo-h) + 24px); }
}
.galeria { display: grid; gap: 8px; min-width: 0; }
.galeria__trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
}
.galeria__trilho::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .galeria__trilho { margin: 0; } }
.galeria__foto { scroll-snap-align: start; aspect-ratio: 1; background: var(--stage); overflow: hidden; }
.galeria__foto img { width: 100%; height: 100%; object-fit: cover; }
.galeria__minis { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.galeria__mini {
  flex: none; width: 72px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; overflow: hidden;
  background: var(--stage); border-radius: 6px;
}
.galeria__mini img { width: 100%; height: 100%; object-fit: cover; }
.galeria__mini[aria-current="true"] { border-color: var(--ink); }
.galeria__pontos { display: flex; justify-content: center; gap: 6px; }
.galeria__pontos span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.galeria__pontos span[aria-current="true"] { background: var(--ink); }
@media (min-width: 960px) { .galeria__pontos { display: none; } }

.pdp__info { display: grid; gap: 4px; min-width: 0; }
.pdp__nome { font-size: clamp(28px, 3vw, 36px); font-weight: 600; font-stretch: 88%; line-height: 1.1; }
.pdp__tipo { color: var(--mute); font-size: 17px; }
.pdp__info .preco { font-size: 19px; margin-top: 12px; }
.pdp__cor { color: var(--mute); margin-top: 4px; }
.tamanhos { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.tamanhos__topo { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin-bottom: 10px; }
.tamanhos legend { font-weight: 600; padding: 0; float: left; width: 100%; }
.tamanhos__grade { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.tam {
  height: 50px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper);
  font-size: 16px; font-weight: 500;
}
.tam:hover { border-color: var(--ink); }
.tam[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tam:disabled { background: var(--stage); color: var(--mute); text-decoration: line-through; cursor: not-allowed; border-color: var(--stage); }
.tamanhos__msg { min-height: 24px; margin-top: 8px; font-size: 14px; color: var(--mute); }
.tamanhos__msg--erro { color: var(--signal); font-weight: 500; }
.tamanhos__msg--alerta { color: var(--warn); font-weight: 500; }

.qtd { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--pill); }
.qtd button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; border-radius: 50%; }
.qtd button:disabled { opacity: .3; cursor: default; }
.qtd output { min-width: 28px; text-align: center; font-weight: 600; }
.pdp__qtd { display: flex; align-items: center; gap: 16px; margin: 4px 0 20px; }
.pdp__acoes { display: grid; gap: 10px; }
.pdp__desc { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.pdp__desc h2 { font-size: 18px; font-weight: 600; }
.pdp__desc p { max-width: 62ch; }
.ficha { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; }
.ficha dt { color: var(--mute); }
.ficha dd { margin: 0; font-weight: 500; }

/* ---------------------------------------------------------- como comprar */

.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: passo; }
@media (min-width: 760px) { .passos { grid-template-columns: repeat(3, 1fr); } }
.passo { counter-increment: passo; padding: 28px 24px; background: var(--stage); display: grid; gap: 6px; align-content: start; }
.passo::before {
  content: counter(passo);
  font-size: 56px; font-weight: 800; font-style: italic; font-stretch: 58%; line-height: 1;
}
.passo h3 { font-size: 19px; font-weight: 600; }
.passo p { color: var(--mute); }

/* ------------------------------------------------------------ rodapé */

.rodape { background: #000; color: #fff; margin-top: clamp(56px, 8vw, 104px); }
.rodape__in {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 24px;
  display: grid; gap: 32px;
}
@media (min-width: 760px) { .rodape__in { grid-template-columns: 2fr 1fr 1fr; } }
.rodape__marca { display: grid; gap: 16px; align-content: start; }
.rodape__marca .logo { width: 150px; }
.rodape__marca p { color: rgba(255, 255, 255, .7); max-width: 40ch; }
.rodape__col { display: grid; gap: 8px; align-content: start; }
.rodape__col h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.rodape__col a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.rodape__col a:hover { color: #fff; }
.rodape__admin { margin-top: 12px; font-size: 14px; }
.rodape__copy {
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 32px;
  color: rgba(255, 255, 255, .5); font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.rodape :focus-visible { outline-color: #fff; }

/* ------------------------------------------------------ whats flutuante */

.whats-flutuante {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whats); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.whats-flutuante:hover { transform: scale(1.06); }
.whats-flutuante svg { width: 30px; height: 30px; fill: currentColor; }
.rota-produto .whats-flutuante { display: none; }
@media (max-width: 640px) {
  .whats-flutuante { width: 50px; height: 50px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .whats-flutuante svg { width: 26px; height: 26px; }
  .rodape__copy { padding-bottom: 80px; }
}

/* ------------------------------------------------------------- gavetas */

.gaveta { position: fixed; inset: 0; z-index: 70; }
.gaveta[hidden] { display: none; }
.gaveta__fundo { position: absolute; inset: 0; background: var(--overlay); animation: fade .2s both; }
.gaveta__painel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: entra-dir .28s var(--ease) both;
}
.gaveta--esq .gaveta__painel { right: auto; left: 0; width: min(340px, 88%); animation-name: entra-esq; }
.gaveta__topo { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 24px; min-height: 64px; }
.gaveta__titulo { font-size: 22px; font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes entra-dir { from { transform: translateX(100%); } }
@keyframes entra-esq { from { transform: translateX(-100%); } }

.menu__nav { display: grid; padding: 8px 24px; }
.menu__nav a {
  padding: 10px 0; text-decoration: none;
  font-size: 30px; font-weight: 700; font-style: italic; font-stretch: 62%; text-transform: uppercase;
}
.menu__whats { margin: auto 24px 24px; width: auto; }

.sacola__itens { flex: 1; overflow-y: auto; padding: 0 24px; }
.item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.item__img { aspect-ratio: 1; background: var(--stage); overflow: hidden; }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__dados { display: grid; gap: 2px; align-content: start; min-width: 0; }
.item__nome { font-weight: 500; text-decoration: none; }
.item__meta { color: var(--mute); font-size: 14px; }
.item__linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.item__aviso { font-size: 13px; color: var(--warn); font-weight: 500; margin-top: 4px; }
.item--indisponivel .item__img, .item--indisponivel .item__nome { opacity: .5; }
.item--indisponivel .item__aviso { color: var(--signal); }
.qtd--mini button { width: 34px; height: 34px; font-size: 18px; }
.sacola__rodape { padding: 16px 24px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sacola__rodape:empty { display: none; }
.campo-texto { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.campo-texto input {
  height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 16px;
}
.campo-texto input:focus-visible { outline: none; border-color: var(--ink); }
.sacola__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; }
.sacola__nota { color: var(--mute); font-size: 13px; }
.sacola__vazia { padding: 40px 0; display: grid; gap: 16px; justify-items: start; }
.sacola__vazia p { color: var(--mute); }
.sacola__limpar { justify-self: center; font-size: 14px; color: var(--mute); }

/* ------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; z-index: 90; bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: var(--pill);
  font-weight: 500; max-width: calc(100% - 32px); text-align: center;
  transition: opacity .2s, transform .2s;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }
.toast--erro { background: var(--signal); color: #fff; }

body.travado { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
