/* =====================================================================
   SANTERRE PERFUMARIA · ESTILO
   Direção: galeria branca com luz dourada. Faixas alternadas (branco,
   cinza claro e grafite), conteúdo alinhado à esquerda, o frasco como
   protagonista e o dourado da marca só nos detalhes.
   ===================================================================== */

:root {
  color-scheme: light;

  /* Cores */
  --papel: #ffffff;          /* fundo principal */
  --canvas: #f5f5f7;         /* faixas e cartões cinza */
  --tinta: #1d1d1f;          /* texto principal */
  --tinta-2: #6e6e73;        /* texto secundário */
  --linha: #d6d6d6;          /* bordas finas */
  --controle: #e8e8ed;       /* botões neutros */
  --carvao: #343233;         /* grafite da logo: botão principal e faixa da marca */
  --ouro-claro: #e6cfa6;     /* dourado da logo sobre o grafite */
  --ouro-texto: #86663a;     /* dourado legível sobre branco */
  --grad-ouro: linear-gradient(180deg, #b8935c 0%, #9a7645 55%, #7d5f33 100%);
  --grad-ouro-luz: linear-gradient(180deg, #f2ddb6 0%, #d8b886 55%, #bf9a63 100%);

  /* Tipografia (SF Pro nos aparelhos Apple, Inter nos demais) */
  --fonte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-h1: clamp(42px, 6vw, 72px);
  --t-h2: clamp(34px, 5vw, 56px);
  --t-sub: clamp(18px, 1.6vw, 21px);

  /* Forma e espaço */
  --raio: 28px;
  --raio-campo: 10px;
  --pill: 980px;
  --conteudo: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  --suave: cubic-bezier(.25, .1, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.travado, html.travado body { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--ouro-texto); }
:focus-visible { outline: 2px solid var(--ouro-texto); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.conteudo { width: 100%; max-width: calc(var(--conteudo) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.pular { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: var(--pill); background: var(--tinta); color: #fff; font-size: 14px; text-decoration: none; }
.pular:focus { top: 12px; }

/* ---------------- Faixa de aviso ---------------- */
.faixa { padding: 10px var(--gutter); background: var(--canvas); font-size: 12px; line-height: 1.33; letter-spacing: -0.003em; text-align: center; }
.faixa a { color: var(--ouro-texto); text-decoration: none; white-space: nowrap; }
.faixa a:hover { text-decoration: underline; }

/* ---------------- Navegação ---------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav-in { display: flex; align-items: center; gap: 20px; height: 52px; }
.marca { display: flex; align-items: center; gap: 10px; flex: none; color: var(--tinta); text-decoration: none; }
.marca img { width: 30px; height: 30px; border-radius: var(--raio-campo); }
.marca-nome { font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-link { padding: 8px 12px; border: 0; border-radius: var(--pill); background: none; color: var(--tinta); font-size: 12px; letter-spacing: -0.003em; text-decoration: none; cursor: pointer; opacity: .86; }
.nav-link:hover { opacity: 1; background: var(--canvas); }
.nav-acoes { display: flex; align-items: center; gap: 4px; }
.btn-icone { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--pill); background: transparent; color: var(--tinta); cursor: pointer; transition: background-color .2s var(--suave); }
.btn-icone:hover { background: var(--canvas); }
.contador { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--carvao); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; letter-spacing: 0; text-align: center; }
.contador.pulo { animation: pulo .45s var(--suave); }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px;
  border: 0; border-radius: var(--pill);
  font-size: 17px; font-weight: 600; line-height: 1.18; letter-spacing: -0.022em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--suave), color .2s var(--suave), transform .15s var(--suave);
}
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--carvao); color: #fff; }
.btn-primario:hover { background: var(--tinta); }
.btn-neutro { background: var(--controle); color: #333336; }
.btn-neutro:hover { background: #dedee3; }
.btn-ouro { background: var(--ouro-claro); color: var(--carvao); }
.btn-ouro:hover { background: #f0dcb8; }
.btn-contorno-luz { border: 1px solid rgba(230, 207, 166, .55); background: transparent; color: #f5f0e8; }
.btn-contorno-luz:hover { background: rgba(230, 207, 166, .1); }
.btn-contorno-luz .ic { stroke-width: 1.5; }
.btn-sm { min-height: 36px; padding: 8px 18px; font-size: 14px; }
.btn-bloco { width: 100%; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ---------------- Tipografia de seção ---------------- */
.secao { padding: clamp(64px, 9vw, 112px) 0; }
.secao.cinza { background: var(--canvas); }
.secao.branca { background: var(--papel); }
.secao.carvao { background: var(--carvao); color: #f5f0e8; }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; line-height: 1.33; text-transform: uppercase; }
.kicker img { width: 12px; height: auto; }
.titulo { margin: 0; font-size: var(--t-h2); font-weight: 600; line-height: 1.07; letter-spacing: -0.015em; text-wrap: balance; }
.lead { max-width: 36em; margin: 14px 0 0; color: var(--tinta-2); font-size: var(--t-sub); line-height: 1.38; letter-spacing: .005em; }

/* ---------------- Topo / carrossel ---------------- */
.hero { padding: clamp(16px, 2.6vw, 32px) 0 clamp(48px, 7vw, 88px); overflow: hidden; background: var(--papel); }
.palco-wrap { position: relative; max-width: 1440px; margin: 0 auto; }
.palco { --alt: clamp(300px, 42vw, 520px); position: relative; height: var(--alt); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.palco-item {
  position: absolute; left: 50%; bottom: 0;
  width: calc(var(--alt) * .705); height: calc(var(--alt) * .94);
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%;
  transform: translateX(-50%);
}
.palco.pronto .palco-item { transition: transform .95s cubic-bezier(.45, .05, .2, 1), opacity .7s var(--suave); }
.palco-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.palco-item:focus-visible { outline-offset: -2px; border-radius: var(--raio); }
.palco-ctrl { position: absolute; top: 0; right: max(var(--gutter), calc((100% - var(--conteudo)) / 2)); z-index: 20; display: flex; gap: 6px; }
.palco-ctrl .btn-icone { width: 36px; height: 36px; background: rgba(0, 0, 0, .05); }
.palco-ctrl .btn-icone:hover { background: rgba(0, 0, 0, .1); }
.palco-ctrl .ic { width: 18px; height: 18px; }
#heroPausa .ic { stroke-width: 2.2; }
#heroPausa[aria-pressed="true"] .ic { fill: currentColor; stroke-width: 1; }

.hero-base { display: flex; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: clamp(24px, 3.4vw, 40px); }
.hero-texto { flex: 1 1 auto; min-width: 0; }
.hero-h1 { margin: 0; font-size: var(--t-h1); font-weight: 600; line-height: 1.04; letter-spacing: -0.024em; }
.palavra { position: relative; display: inline-block; white-space: nowrap; }
.pal-base { transition: color .7s var(--suave); }
.pal-ouro { position: absolute; left: 0; top: 0; background: var(--grad-ouro); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transition: opacity .7s var(--suave); }
.palavra.ativa .pal-base { color: rgba(29, 29, 31, 0); }
.palavra.ativa .pal-ouro { opacity: 1; }
.hero-acao { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 12px; padding-bottom: 6px; text-align: right; }
.hero-atual { min-height: 20px; margin: 0; color: var(--tinta-2); font-size: 14px; line-height: 1.43; transition: opacity .35s var(--suave); }
.hero-atual strong { color: var(--tinta); font-weight: 600; }
.hero-atual.trocando { opacity: 0; }
.hero-botoes { display: flex; gap: 10px; }

/* ---------------- Estilos (atalhos) ---------------- */
.trilho { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.estilo-card {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  padding: 24px 24px 22px; border: 0; border-radius: var(--raio);
  background: var(--papel); color: var(--tinta); text-align: left; cursor: pointer;
  transition: transform .35s var(--suave);
}
.estilo-card:hover { transform: translateY(-3px); }
.estilo-fotos { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 176px; margin-bottom: 20px; }
.estilo-fotos img { width: 40%; height: auto; margin: 0 -7%; }
.estilo-fotos img:nth-child(2) { position: relative; z-index: 1; width: 47%; }
.estilo-nome { font-size: 24px; font-weight: 600; line-height: 1.17; letter-spacing: -0.01em; }
.estilo-texto { margin-top: 4px; color: var(--tinta-2); font-size: 14px; line-height: 1.43; }
.estilo-qtd { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--ouro-texto); font-size: 14px; font-weight: 600; }
.estilo-qtd .ic { width: 16px; height: 16px; transition: transform .25s var(--suave); }
.estilo-card:hover .estilo-qtd .ic { transform: translateX(3px); }

/* ---------------- Catálogo ---------------- */
.catalogo-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.busca { position: relative; flex: 0 1 360px; min-width: min(100%, 280px); }
.busca .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tinta-2); pointer-events: none; }
.busca input {
  width: 100%; height: 48px; padding: 0 18px 0 46px;
  border: 1px solid var(--linha); border-radius: var(--pill);
  background: var(--papel); color: var(--tinta); font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.busca input:focus { outline: 2px solid var(--ouro-texto); outline-offset: 1px; border-color: transparent; }
.busca input::placeholder { color: #8e8e93; }

.filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid var(--linha); border-radius: var(--pill);
  background: var(--papel); color: var(--tinta); font-size: 14px; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--suave), border-color .2s var(--suave), color .2s var(--suave);
}
.chip:hover { border-color: #ababb0; }
.chip[aria-pressed="true"] { border-color: var(--carvao); background: var(--carvao); color: #fff; }
.chip .ic { width: 16px; height: 16px; }
.filtros-sep { flex: none; width: 1px; height: 20px; margin: 0 3px; background: var(--linha); }
.contagem { display: flex; align-items: center; gap: 14px; min-height: 20px; margin: 20px 0 0; color: var(--tinta-2); font-size: 14px; }
.contagem button { padding: 0; border: 0; background: none; color: var(--ouro-texto); font-size: 14px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.produto {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 18px 18px 18px; border-radius: var(--raio); background: var(--canvas);
  transition: transform .35s var(--suave);
}
.produto:hover { transform: translateY(-3px); }
.produto-foto { display: grid; place-items: center; aspect-ratio: 4 / 5; margin: 0 0 14px; }
.produto-foto img, .estilo-fotos img, .item-foto img { mix-blend-mode: multiply; }
.produto-foto img { width: 100%; height: 100%; object-fit: contain; }
.produto-linha { margin: 0; color: var(--ouro-texto); font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.produto-linha.designer { color: var(--tinta-2); }
.produto-marca { margin: 2px 0 0; color: var(--tinta-2); font-size: 12px; line-height: 1.33; }
.produto-nome { margin: 2px 0 0; font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.016em; }
.produto-abrir { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.produto-abrir::after { content: ""; position: absolute; inset: 0; border-radius: var(--raio); }
.produto-abrir:focus-visible { outline: none; }
.produto-abrir:focus-visible::after { outline: 2px solid var(--ouro-texto); outline-offset: 3px; }
.produto-det { margin: 4px 0 0; color: var(--tinta-2); font-size: 14px; line-height: 1.36; }
.produto-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.momentos { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--tinta-2); font-size: 12px; }
.momentos span { display: inline-flex; align-items: center; gap: 4px; }
.momentos .ic { width: 15px; height: 15px; }
.produto-preco { margin: 6px 0 0; font-size: 15px; font-weight: 600; }
.produto-add {
  position: relative; z-index: 2; flex: none;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: var(--pill); background: var(--papel); color: var(--tinta); cursor: pointer;
  transition: background-color .2s var(--suave), color .2s var(--suave), transform .15s var(--suave);
}
.produto-add:hover, .produto-add.ok { background: var(--carvao); color: #fff; }
.produto-add:active { transform: scale(.92); }
.vazio { margin-top: 24px; padding: 48px 24px; border-radius: var(--raio); background: var(--canvas); color: var(--tinta-2); text-align: center; }
.vazio p { margin: 0 0 16px; }

/* ---------------- Como comprar ---------------- */
.passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
.passo { padding-top: 24px; border-top: 1px solid var(--linha); }
.passo-num { display: block; font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; background: var(--grad-ouro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.passo h3 { margin: 20px 0 6px; font-size: 21px; font-weight: 600; line-height: 1.24; letter-spacing: .005em; }
.passo p { margin: 0; color: var(--tinta-2); font-size: 15px; line-height: 1.47; }

/* ---------------- Marca (faixa grafite) ---------------- */
.marca-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.marca-mono { width: clamp(92px, 13vw, 160px); height: auto; }
.titulo-luz { color: #f5f0e8; }
.ouro-luz { background: var(--grad-ouro-luz); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead-luz { color: #bdb6ad; }
.marca-botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------- Rodapé ---------------- */
.rodape { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--canvas); color: var(--tinta-2); font-size: 12px; line-height: 1.5; }
.rodape-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.rodape p { margin: 0; }
.rodape nav { display: flex; gap: 18px; }
.rodape a { color: var(--tinta); text-decoration: none; }
.rodape a:hover { text-decoration: underline; }

/* ---------------- Detalhe do perfume ---------------- */
.dialogo, .gaveta { position: fixed; inset: 0; z-index: 60; display: flex; }
.dialogo { align-items: center; justify-content: center; padding: 24px; }
.dialogo-fundo, .gaveta-fundo { position: absolute; inset: 0; background: rgba(29, 29, 31, .44); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: aparecer .3s var(--suave) both; }
.dialogo-painel { position: relative; display: flex; width: min(1000px, 100%); max-height: min(860px, calc(100dvh - 48px)); overflow: hidden; border-radius: var(--raio); background: var(--papel); animation: subir .42s cubic-bezier(.2, .8, .2, 1) both; }
.dialogo-painel:focus { outline: none; }
.dialogo-fechar { position: absolute; top: 14px; right: 14px; z-index: 5; background: var(--controle); }
.dialogo-fechar:hover { background: #dedee3; }
.dialogo-conteudo { display: flex; width: 100%; min-height: 0; }
.det { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.det-rolagem { display: grid; grid-template-columns: 42% minmax(0, 1fr); flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.det-foto { position: sticky; top: 0; align-self: start; display: grid; place-items: center; padding: 56px 28px 40px; }
.det-foto img { width: 100%; max-width: 320px; height: auto; }
.det-info { padding: 52px 44px 32px 8px; }
.det-kicker { margin: 0; color: var(--ouro-texto); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.det-kicker.designer { color: var(--tinta-2); }
.det-nome { margin: 6px 0 0; padding-right: 44px; font-size: clamp(30px, 3.6vw, 40px); font-weight: 600; line-height: 1.08; letter-spacing: -0.012em; text-wrap: balance; }
.det-meta { margin: 10px 0 0; color: var(--tinta-2); font-size: 14px; line-height: 1.43; }
.det-preco { margin: 12px 0 0; font-size: 21px; font-weight: 600; }
.det-desc { margin: 18px 0 0; font-size: 17px; line-height: 1.47; }
.det-bloco { margin-top: 28px; padding-top: 24px; border-top: 1px solid #ececef; }
.det-h { margin: 0 0 14px; color: var(--tinta-2); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.selos { display: flex; flex-wrap: wrap; gap: 8px; }
.selos + .selos { margin-top: 8px; }
.selo { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px dashed #c7c7cc; border-radius: var(--pill); color: #a1a1a6; font-size: 14px; }
.selo .ic { width: 16px; height: 16px; }
.selo.on { border: 1px solid var(--carvao); background: var(--carvao); color: #fff; }
.det-ideal { margin: 14px 0 0; font-size: 15px; line-height: 1.47; }
.det-ideal span { color: var(--tinta-2); }
.piramide { display: grid; gap: 18px; }
.nivel { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: start; gap: 14px; }
.nivel-rot strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.nivel-rot span { display: block; color: var(--tinta-2); font-size: 12px; line-height: 1.33; }
.notas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.notas li { padding: 6px 12px; border: 1px solid var(--linha); border-radius: var(--pill); font-size: 14px; line-height: 1.25; }
.acordes { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
.acordes li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.acordes i { width: 10px; height: 10px; border-radius: 50%; background: var(--cor, #a07f4f); }
.det-acao { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px 44px 18px; border-top: 1px solid #ececef; background: var(--papel); }
.det-acao .btn-primario { flex: 1 1 220px; }
.det-links { display: flex; flex-wrap: wrap; gap: 6px 20px; width: 100%; }
.link-acao { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ouro-texto); font-size: 14px; text-decoration: none; cursor: pointer; }
.link-acao:hover { text-decoration: underline; }
.link-acao .ic { width: 16px; height: 16px; }

.qtd { display: inline-flex; align-items: center; height: 44px; border-radius: var(--pill); background: var(--controle); }
.qtd button { display: grid; place-items: center; width: 42px; height: 44px; padding: 0; border: 0; background: none; color: var(--tinta); cursor: pointer; border-radius: var(--pill); }
.qtd button:disabled { opacity: .35; cursor: default; }
.qtd output { min-width: 22px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.qtd.pequena { height: 34px; }
.qtd.pequena button { width: 34px; height: 34px; }
.qtd.pequena .ic { width: 16px; height: 16px; }

/* ---------------- Sacola ---------------- */
.gaveta { justify-content: flex-end; }
.gaveta-painel { position: relative; display: flex; flex-direction: column; width: min(440px, 100%); height: 100%; background: var(--papel); animation: entrar-dir .42s cubic-bezier(.2, .8, .2, 1) both; }
.gaveta-painel:focus { outline: none; }
.gaveta-topo { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 10px 24px; }
.gaveta-topo h2 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.14; letter-spacing: -0.009em; }
.gaveta-itens { flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px; overscroll-behavior: contain; }
.item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #ececef; }
.item-foto { display: grid; place-items: center; width: 60px; height: 80px; border-radius: var(--raio-campo); background: var(--canvas); }
.item-foto img { width: 100%; height: 100%; object-fit: contain; }
.item-marca { margin: 0; color: var(--tinta-2); font-size: 12px; }
.item-nome { margin: 1px 0 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
.item-det { margin: 2px 0 0; color: var(--tinta-2); font-size: 12px; }
.item-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.item-remover { padding: 0; border: 0; background: none; color: var(--tinta-2); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.gaveta-vazia { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; color: var(--tinta-2); text-align: center; }
.gaveta-vazia p { margin: 0; }
.ic-grande { width: 40px; height: 40px; stroke-width: 1.2; }
.gaveta-rodape { display: grid; gap: 12px; padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid #ececef; }
.campo label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.campo label span { color: var(--tinta-2); font-weight: 400; }
.campo input, .campo textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--linha); border-radius: var(--raio-campo); background: var(--papel); color: var(--tinta); font-size: 16px; line-height: 1.35; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: 2px solid var(--ouro-texto); outline-offset: 1px; border-color: transparent; }
.sacola-total { display: flex; justify-content: space-between; gap: 12px; margin: 2px 0 0; font-size: 15px; }
.sacola-total strong { font-weight: 600; }
.sacola-nota { margin: 0; color: var(--tinta-2); font-size: 12px; text-align: center; }

/* Barra fixa da sacola (celular) */
.barra-sacola { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: none; }
.barra-sacola .btn { justify-content: space-between; width: 100%; padding: 12px 20px; }
.barra-sacola .btn span { display: inline-flex; align-items: center; gap: 8px; }

/* Aviso rápido */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 20px; border-radius: 26px;
  background: var(--carvao); color: #fff; font-size: 14px;
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
  transition: opacity .25s var(--suave), transform .25s var(--suave);
}
.toast.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast span { line-height: 1.3; overflow-wrap: anywhere; }
.toast button { flex: none; padding: 7px 14px; border: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }

/* Borrifada ao adicionar (desenhada em canvas pelo js/app.js) */
.borrifo { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; }
#navSacola.recebeu { animation: recebeu .62s cubic-bezier(.3, .7, .4, 1); }

/* ---------------- Animações ---------------- */
@keyframes recebeu { 30% { transform: scale(1.16); } 62% { transform: scale(.96); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes subir-folha { from { transform: translateY(100%); } }
@keyframes entrar-dir { from { transform: translateX(100%); } }
@keyframes pulo { 40% { transform: scale(1.3); } }

/* ---------------- Responsivo ---------------- */
@media (max-width: 1080px) {
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .trilho {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 6px; scrollbar-width: none;
  }
  .trilho::-webkit-scrollbar { display: none; }
  .estilo-card { flex: 0 0 min(76%, 290px); scroll-snap-align: start; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-acoes { margin-left: auto; }
  .filtros {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
  }
  .filtros::-webkit-scrollbar { display: none; }
  .passos { grid-template-columns: 1fr; gap: 0; }
  .passo { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding: 22px 0; }
  .passo-num { grid-row: span 2; font-size: 44px; }
  .passo h3 { margin: 2px 0 4px; }
}

@media (max-width: 760px) {
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .produto { padding: 12px 12px 14px; border-radius: 22px; }
  .produto-abrir::after { border-radius: 22px; }
  .produto-nome { font-size: 15px; }
  .produto-det { font-size: 12px; }
  .produto-add { width: 34px; height: 34px; }
  .barra-sacola { display: block; }
  .barra-sacola[hidden] { display: none; }
  body.com-barra { padding-bottom: 76px; }
  body.com-barra .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

  .dialogo { align-items: flex-end; padding: 0; }
  .dialogo-painel { width: 100%; height: 94dvh; max-height: 94dvh; border-radius: var(--raio) var(--raio) 0 0; animation: subir-folha .42s cubic-bezier(.2, .8, .2, 1) both; }
  .det-rolagem { grid-template-columns: 1fr; }
  .det-foto { position: static; padding: 20px 24px 0; }
  .det-foto img { max-width: 176px; }
  .det-info { padding: 20px 24px 28px; }
  .det-nome { padding-right: 0; }
  .det-acao { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .dialogo-fechar { top: 12px; right: 12px; }

  .gaveta { align-items: flex-end; }
  .gaveta-painel { width: 100%; height: 92dvh; border-radius: var(--raio) var(--raio) 0 0; animation: subir-folha .42s cubic-bezier(.2, .8, .2, 1) both; }
}

@media (max-width: 700px) {
  .hero-base { flex-wrap: wrap; }
  .hero-acao { align-items: flex-start; text-align: left; }
  .marca-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nivel { grid-template-columns: 1fr; gap: 8px; }
  .nivel-rot { display: flex; align-items: baseline; gap: 8px; }
  .hero-botoes { width: 100%; }
  .hero-botoes .btn { flex: 1; }
}

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