/* Morena D'Luxo — folha única. Mobile-first, sem framework.
   Padrão de e-commerce de moda: foto grande, tipografia contida,
   sem sombra pesada, sem gradiente, sem emoji. */

@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/playfair.f8d20d0e.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/playfair-italic.3b958078.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fff;
  --areia: #f3f0ec;      /* fundo das fotos e das faixas claras */
  --surface: #fff;
  --ink: #171310;
  --marca: #1b2a41;      /* azul da marca: rodapé, faixa, botões cheios */
  --muted: #7b736b;
  --line: #e6e1da;
  --accent: #9c6b3d;
  --wa: #12874a;
  --wa-dark: #0d6b3a;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1280px;
  --radius: 2px;
  --h-topo: 54px;        /* altura do cabeçalho fixo (a barra de filtros encosta nele) */
  --card: 3 / 4;         /* proporção única de toda foto de produto */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  padding-bottom: 84px; /* espaço pro botão flutuante não cobrir o rodapé */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 14px; }

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* =====================================================================
   FAIXA + CABEÇALHO
   ===================================================================== */
.faixa {
  margin: 0;
  background: var(--marca);
  color: #eae6df;
  text-align: center;
  /* Uma linha a partir de 560px. Em tela de celular a frase inteira não
     cabe em nenhum corpo legível, então ela quebra em duas linhas curtas
     em vez de cortar a condição de frete no meio. */
  font-size: 9.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 10px;
  line-height: 1.4;
}
@media (min-width: 560px) {
  .faixa {
    font-size: 10.5px; letter-spacing: .08em; padding: 6px 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}

.topo {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topo-in {
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 14px;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--h-topo);
}
.marca {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  letter-spacing: .01em; text-decoration: none; line-height: 1.05;
  white-space: nowrap;
}
.marca span {
  display: block; font-size: 8.5px; font-family: var(--sans); font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 2px;
}
.menu { display: none; }
.carrinho-btn { margin-left: auto; }

/* =====================================================================
   HERO — faixa editorial baixa, não ocupa a tela
   ===================================================================== */
.hero { border-bottom: 1px solid var(--line); background: var(--areia); }
.hero-in {
  display: flex; align-items: stretch; gap: 14px;
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 14px;
  text-decoration: none; color: inherit;
}
.hero-foto { flex: none; width: 104px; background: #e8e3dc; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-txt {
  display: flex; flex-direction: column; justify-content: center;
  gap: 3px; padding: 14px 0; min-width: 0;
}
.hero-selo {
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
}
.hero-tit { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.hero-sub { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.hero-cta {
  align-self: flex-start; margin-top: 7px;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.hero-in:hover .hero-cta { color: var(--accent); border-color: var(--accent); }

/* =====================================================================
   BARRA DE FILTROS — chips + ordenação, colada embaixo do cabeçalho
   ===================================================================== */
.barra-filtros {
  position: sticky; top: var(--h-topo); z-index: 30;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.barra-filtros-in { display: flex; align-items: center; gap: 10px; }

.chips {
  display: flex; gap: 6px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 9px 0; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: baseline; gap: 5px;
  text-decoration: none; white-space: nowrap;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; letter-spacing: .06em; color: var(--muted);
  transition: color .16s, border-color .16s, background .16s;
}
.chip .n { font-size: 10px; color: #b0a89f; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-current='true'] .n { color: #9a938c; }

.ordem { flex: none; border-left: 1px solid var(--line); padding-left: 10px; }
.ordem select {
  font: inherit; font-size: 12px; letter-spacing: .04em; color: var(--muted);
  border: 0; background: none; padding: 6px 2px; cursor: pointer;
  max-width: 42vw;
}
.ordem select:focus { outline: 1px solid var(--ink); outline-offset: 2px; }

/* =====================================================================
   GRADE E CARDS
   ===================================================================== */
.grade {
  display: grid; gap: 10px 8px;
  /* minmax(0,...) e não 1fr puro: o nome do produto sai em uma linha só
     (nowrap), e sem isso o min-content dele estica a coluna e a grade
     estoura a tela no celular. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px 0 40px;
}
.card { position: relative; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }

.card .foto {
  position: relative; background: var(--areia);
  aspect-ratio: var(--card); overflow: hidden;
}
.card .foto picture { position: absolute; inset: 0; display: block; }
.card .foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
/* 2ª foto: entra no hover do desktop e vira a principal no modo Plus Size */
.card .f-alt { opacity: 0; transition: opacity .3s ease; }
@media (hover: hover) {
  .card:hover .f-alt { opacity: 1; }
}
.grade.modo-plus .card[data-plus] .f-alt { opacity: 1; }
@media (hover: hover) {
  .grade.modo-plus .card[data-plus]:hover .f-alt { opacity: 0; }
}

.tag-novo {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--bg); color: var(--ink);
  font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 8px;
}

.card .info { padding: 9px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.card .nome {
  font-family: var(--sans); font-size: 12.5px; font-weight: 400; letter-spacing: 0;
  margin: 0; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .preco {
  margin: 1px 0 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card .preco span {
  font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-left: 5px;
}
.card .tams {
  margin: 1px 0 0; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

/* Adicionar: fixo e pequeno no celular, aparece no hover no desktop */
.card-add {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; padding: 7px 8px; margin-top: 8px;
  cursor: pointer; width: 100%; transition: background .16s, color .16s, border-color .16s;
}
.card-add:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* No desktop o botão só aparece no hover — o espaço já fica reservado,
   então nada pula de lugar quando ele entra. */
@media (hover: hover) and (min-width: 760px) {
  .card-add { opacity: 0; pointer-events: none; transition: opacity .18s ease, background .16s, color .16s; }
  .card:hover .card-add, .card-add:focus-visible { opacity: 1; pointer-events: auto; }
}

.vazio { text-align: center; color: var(--muted); padding: 50px 0 60px; }

/* entrada suave quando o filtro muda */
@keyframes card-entra {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.grade .card:not([hidden]) { animation: card-entra .22s ease both; }

/* =====================================================================
   PÁGINA DE PRODUTO
   ===================================================================== */
.migalha { padding: 14px 0 0; font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.migalha a { text-decoration: none; }
.migalha a:hover { color: var(--ink); }

.produto { padding: 10px 0 8px; }

.galeria { margin: 0 auto; max-width: 520px; }
.palco {
  position: relative; background: var(--areia);
  aspect-ratio: var(--card); overflow: hidden;
  touch-action: pan-y;
}
.palco-item { position: absolute; inset: 0; display: block; }
.palco-item[hidden] { display: none; }
.palco-item img, .palco-item video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  display: block; background: var(--areia);
}
.item-video video { object-position: 50% 30%; }

.seta {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 44px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .86); color: var(--ink);
  font-size: 22px; line-height: 1; padding: 0;
  opacity: 0; transition: opacity .18s;
}
.seta-ant { left: 0; }
.seta-prox { right: 0; }
@media (hover: hover) {
  .palco:hover .seta { opacity: 1; }
}
.seta:focus-visible { opacity: 1; }

.miniaturas {
  display: flex; gap: 6px; margin-top: 6px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.miniaturas::-webkit-scrollbar { display: none; }
.mini {
  flex: none; width: 54px; padding: 0; border: 1px solid transparent;
  background: var(--areia); cursor: pointer; position: relative;
}
.mini img { width: 100%; height: auto; aspect-ratio: var(--card); object-fit: cover; object-position: 50% 18%; }
.mini[aria-pressed='true'] { border-color: var(--ink); }
.mini:hover { border-color: var(--muted); }
/* triângulo de play na miniatura do vídeo */
.mini-video::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-left: 11px solid #fff; border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5));
}

.produto .dados { padding: 22px 0 0; max-width: 520px; margin: 0 auto; }
.produto .categoria {
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.produto h1 { font-size: 23px; line-height: 1.2; margin: 0 0 10px; }
.produto .descricao { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.preco-grande {
  font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums;
  margin: 0 0 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.preco-grande span {
  font-size: 10.5px; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-left: 8px;
}

/* =====================================================================
   SELETOR DE TAMANHO — botões em cima, stepper por tamanho escolhido
   ===================================================================== */
.rot-grade {
  margin: 20px 0 9px; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.seletor { display: block; }
.tam-botoes { display: flex; flex-wrap: wrap; gap: 7px; }
.tam-btn {
  min-width: 50px; padding: 11px 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .1em;
  transition: border-color .16s, background .16s, color .16s;
}
.tam-btn:hover { border-color: var(--ink); }
.tam-btn[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

.tam-linhas:not(:empty) { margin-top: 10px; }
.tam-linha {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.tam-linha[hidden] { display: none; }
.tam-nome { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; min-width: 34px; }

.stepper { display: flex; align-items: center; border: 1px solid var(--line); }
.stepper button {
  width: 38px; height: 34px; border: 0; background: none; cursor: pointer;
  color: var(--ink); font-size: 16px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.stepper button:hover { background: var(--areia); }
.stepper input {
  width: 40px; height: 34px; border: 0; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); background: none; text-align: center;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stepper input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }

.btn-add {
  border: 0; background: var(--ink); color: #fff; font: inherit;
  font-size: 13.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 16px; cursor: pointer; width: 100%; margin-top: 16px;
  transition: background .16s;
}
.btn-add:hover:not(:disabled) { background: #35302b; }
.btn-add:disabled { background: var(--areia); color: #a49c93; cursor: not-allowed; }

.ajuda { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; line-height: 1.6; }
.ajuda-wa { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.link-wa {
  display: inline-flex; align-items: center; gap: 5px; color: var(--wa);
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.link-wa svg { width: 14px; height: 14px; fill: currentColor; }
.link-wa:hover { text-decoration: underline; }
.link-condicoes { color: var(--muted); }
.link-condicoes:hover { color: var(--ink); }

/* barra fixa no rodapé da tela — só no celular, só na página de produto */
.barra-produto {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
}
.bp-preco { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-preco span {
  display: block; font-size: 9.5px; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.bp-btn {
  flex: 1; border: 0; background: var(--ink); color: #fff; font: inherit;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 12px; cursor: pointer;
}
body.com-barra { padding-bottom: 78px; }
body.com-barra .wa-float { bottom: 76px; }
body.travado .barra-produto { display: none; }

/* =====================================================================
   SUGESTÕES
   ===================================================================== */
.sugestoes { padding: 34px 0 0; border-top: 1px solid var(--line); margin-top: 30px; }
.sugestoes h2 { font-size: 18px; margin: 0 0 2px; }
.sugestoes .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.sugestoes .grade { padding: 0 0 10px; }

/* =====================================================================
   BOTÃO FLUTUANTE DE WHATSAPP
   ===================================================================== */
.wa-float {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none;
  padding: 11px 16px 11px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 2px 10px rgba(23, 19, 16, .16);
}
.wa-float svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

/* =====================================================================
   RODAPÉ
   ===================================================================== */
.rodape {
  background: var(--marca); color: #cfd6e0;
  margin-top: 40px; padding: 34px 0 30px; font-size: 13px;
}
.rodape a { color: #fff; }
.rodape .marca-pe { font-family: var(--serif); font-size: 19px; color: #fff; margin: 0 0 16px; }
.rodape .bloco { margin: 0 0 18px; }
.rodape .rot {
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: #8e9bb0; margin: 0 0 4px;
}
.rodape .rot-fina { font-size: 12px; color: #8e9bb0; margin: 6px 0 0; }
.rodape .entrega {
  border-top: 1px solid #2c3d57; margin-top: 22px; padding-top: 16px;
  font-size: 11.5px; letter-spacing: .06em; color: #8e9bb0;
}

/* =====================================================================
   404
   ===================================================================== */
.erro { text-align: center; padding: 60px 0 40px; }
.erro .cod { font-family: var(--serif); font-size: 54px; margin: 0; color: var(--accent); line-height: 1; }
.erro h1 { font-size: 23px; margin: 14px 0 10px; }
.erro p { color: var(--muted); margin: 0 auto 24px; max-width: 40ch; }
.btn-linha {
  display: inline-block; border: 1px solid var(--ink); padding: 12px 24px;
  text-decoration: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}

/* =====================================================================
   TELAS MAIORES
   ===================================================================== */
@media (min-width: 560px) {
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .hero-foto { width: 150px; }
  .hero-tit { font-size: 26px; }
  .hero-sub { font-size: 13.5px; }
}

@media (min-width: 760px) {
  .wrap, .topo-in { padding: 0 24px; }
  .hero-in { padding: 0 24px; }
}

@media (min-width: 1000px) {
  :root { --h-topo: 62px; }
  body { font-size: 15px; }
  .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; }

  .marca { font-size: 19px; }
  .menu {
    display: flex; gap: 22px; margin: 0 auto;
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  }
  .menu a { text-decoration: none; color: var(--muted); padding: 4px 0; }
  .menu a:hover { color: var(--ink); }
  .carrinho-btn { margin-left: 0; }

  .hero-foto { width: 190px; }
  .hero-txt { padding: 18px 0; gap: 3px; }
  .hero-tit { font-size: 30px; }
  .hero-sub { max-width: 52ch; }

  .produto {
    display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 56px; align-items: start; padding: 20px 0 10px;
  }
  .galeria { max-width: none; margin: 0; }
  .produto .dados { max-width: 520px; margin: 0; }
  .produto .dados { padding-top: 4px; }
  .produto h1 { font-size: 28px; }
  .mini { width: 62px; }

  .barra-produto { display: none; }
  body.com-barra { padding-bottom: 84px; }
  body.com-barra .wa-float { bottom: 14px; }

  .rodape .colunas { display: flex; gap: 64px; }
  .sugestoes h2 { font-size: 21px; }
}

/* =====================================================================
   PEDIDO DE ATACADO — botão do topo, drawer, checkout
   ===================================================================== */
.carrinho-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px 6px 10px; cursor: pointer; color: var(--ink);
  font: inherit; font-size: 12.5px; font-weight: 600;
  transition: border-color .16s, background .16s;
}
.carrinho-btn:hover { border-color: var(--ink); }
.carrinho-btn.tem-itens { background: var(--ink); border-color: var(--ink); color: #fff; }
.carrinho-ico { position: relative; display: block; width: 20px; height: 20px; }
.carrinho-ico svg { width: 20px; height: 20px; }
.carrinho-qtd {
  position: absolute; top: -5px; right: -7px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.carrinho-btn:not(.tem-itens) .carrinho-qtd { background: var(--line); color: var(--muted); }
.carrinho-valor { font-variant-numeric: tabular-nums; }
.carrinho-btn:not(.tem-itens) .carrinho-valor { display: none; }

@keyframes pulso {
  0% { transform: scale(1); } 35% { transform: scale(1.16); } 100% { transform: scale(1); }
}
.carrinho-btn.pulsa .carrinho-ico { animation: pulso .45s cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- drawer / bottom sheet ---------- */
body.travado { overflow: hidden; }

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-fundo {
  position: absolute; inset: 0; background: rgba(23, 19, 16, .38);
  opacity: 0; transition: opacity .22s ease;
}
.drawer.aberto .drawer-fundo { opacity: 1; }

.drawer-painel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: 12px 12px 0 0;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.32, .72, 0, 1);
}
.drawer.aberto .drawer-painel { transform: translateY(0); }

.drawer-topo {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer-topo::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; border-radius: 999px; background: var(--line);
}
.drawer-titulo { font-size: 18px; margin: 0; }
.drawer-fechar {
  border: 0; background: none; font-size: 25px; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 0 4px; margin: -4px -4px 0 0;
}
.drawer-fechar:hover { color: var(--ink); }

.drawer-corpo { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px 8px; flex: 1; }
.drawer-pe {
  flex: none; border-top: 1px solid var(--line); background: var(--bg);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}
.drawer-pe:empty { display: none; }

/* ---------- lista do pedido ---------- */
.lista-pedido { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.item:first-child { padding-top: 2px; }
.item:last-child { border-bottom: 0; }
.item-foto { flex: none; width: 60px; background: var(--areia); }
.item-foto img { width: 100%; height: auto; aspect-ratio: var(--card); object-fit: cover; object-position: 50% 18%; }
.item-info { flex: 1; min-width: 0; }
.item-nome { font-size: 13.5px; color: var(--ink); text-decoration: none; display: block; line-height: 1.3; }
.item-tam { font-size: 11.5px; letter-spacing: .03em; color: var(--muted); margin: 3px 0 9px; }
.item-baixo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item-baixo .stepper button { width: 32px; height: 30px; font-size: 15px; }
.item-baixo .stepper input { width: 34px; height: 30px; font-size: 13px; }
.item-sub { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.item-tirar {
  flex: none; border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 19px; line-height: 1; padding: 0 2px; margin-top: -2px;
}
.item-tirar:hover { color: var(--ink); }

.vazio-pedido { text-align: center; padding: 26px 10px 34px; }
.vazio-pedido .vazio-t { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; }
.vazio-pedido p { color: var(--muted); font-size: 13px; margin: 0 auto 20px; max-width: 34ch; }
.vazio-pedido .btn-linha { background: none; cursor: pointer; font-family: inherit; color: var(--ink); }

/* ---------- adicionar rápido (vindo da grade) ---------- */
.rapido { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.rapido-foto { flex: none; width: 72px; background: var(--areia); }
.rapido-foto img { width: 100%; height: auto; aspect-ratio: var(--card); object-fit: cover; object-position: 50% 18%; }
.rapido-cat { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.rapido-info h3 { font-size: 17px; margin: 0 0 5px; line-height: 1.2; }
.rapido-info .preco { margin: 0; font-size: 15px; font-weight: 600; }
.rapido-info .preco .atacado {
  font-size: 10px; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-left: 5px;
}
.dica { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px; }
.dica-link { text-align: center; font-size: 12.5px; margin: 14px 0 4px; }
.dica-link a { color: var(--muted); }

/* ---------- progresso do mínimo ---------- */
.resumo { margin-bottom: 12px; }
.progresso { margin-bottom: 11px; }
.barra { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.barra span {
  display: block; height: 100%; background: var(--accent); border-radius: 999px;
  transition: width .4s cubic-bezier(.32, .72, 0, 1), background .3s;
}
.progresso.completo .barra span { background: var(--wa); }
.progresso-txt { font-size: 12px; color: var(--muted); margin: 7px 0 0; }
.progresso-txt strong { color: var(--accent); font-weight: 700; }
.progresso.completo .progresso-txt { color: var(--wa); font-weight: 600; }
.progresso.completo .progresso-txt::before { content: '✓ '; }

.totais {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 11px; border-top: 1px solid var(--line);
}
.totais span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.totais strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

.btn-primario {
  width: 100%; border: 0; background: var(--ink); color: #fff; font: inherit;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 16px; cursor: pointer; transition: background .16s;
}
.btn-primario:hover:not(:disabled) { background: #35302b; }
.btn-primario:disabled { background: var(--areia); color: #a49c93; cursor: not-allowed; }

/* ---------- checkout ---------- */
.checkout-txt {
  font-size: 13px; color: var(--muted); margin: 0 0 20px; line-height: 1.55;
  padding: 12px 14px; background: var(--areia); border-left: 2px solid var(--accent);
}
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form input {
  display: block; width: 100%; margin-top: 6px; padding: 13px 12px;
  border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-size: 16px; /* 16px evita o zoom automático do iOS */
  color: var(--ink); letter-spacing: normal; text-transform: none;
}
.form input:focus { outline: 0; border-color: var(--ink); }
.form-linha { display: flex; gap: 12px; }
.form-linha .cidade { flex: 1; }
.form-linha .uf { width: 82px; flex: none; }
.form-linha .uf input { text-transform: uppercase; text-align: center; }
.erro-form { color: #a3341f; font-size: 12.5px; margin: 0; }
.voltar-link {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px;
  cursor: pointer; padding: 18px 0 6px; display: block;
}
.voltar-link:hover { color: var(--ink); }

.btn-enviar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 0; background: var(--wa); color: #fff; font: inherit;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; padding: 17px;
  cursor: pointer;
}
.btn-enviar:hover { background: var(--wa-dark); }
.btn-enviar svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-enviar.enviando { opacity: .6; cursor: wait; }

.checkout-condicoes { text-align: center; font-size: 12.5px; margin: 16px 0 0; }
.checkout-condicoes a { color: var(--muted); }
.checkout-condicoes a:hover { color: var(--ink); }

/* ---------- aviso discreto ---------- */
.aviso {
  position: fixed; left: 50%; bottom: 92px; z-index: 95;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  transition: opacity .22s ease, transform .22s ease;
}
.aviso.visivel { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer-painel, .drawer-fundo, .aviso, .barra span, .card .f-alt { transition: none; }
  .carrinho-btn.pulsa .carrinho-ico { animation: none; }
  .grade .card:not([hidden]) { animation: none; }
}

@media (min-width: 1000px) {
  .drawer-painel {
    left: auto; top: 0; bottom: 0; width: 440px; max-height: none;
    border-radius: 0; transform: translateX(100%);
  }
  .drawer.aberto .drawer-painel { transform: translateX(0); }
  .drawer-topo::before { display: none; }
  .drawer-topo { padding: 22px 24px 16px; }
  .drawer-corpo { padding: 20px 24px 8px; }
  .drawer-pe { padding: 18px 24px; }
}

/* =====================================================================
   /como-comprar — condições da loja
   ===================================================================== */
.pag-topo { text-align: center; padding: 30px 0 26px; }
.pag-topo .selo {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
.pag-topo h1 { font-size: 27px; line-height: 1.18; margin: 0 auto 12px; max-width: 22ch; }
.pag-topo .sub { margin: 0 auto; max-width: 48ch; color: var(--muted); font-size: 14px; }

.minimo-cartao {
  background: var(--marca); color: #f1ece4; text-align: center;
  padding: 26px 22px 28px; margin-bottom: 14px;
}
.minimo-cartao .rot {
  font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  color: #9fb0c8; margin: 0;
}
.minimo-num {
  font-family: var(--serif); font-size: 56px; line-height: 1; font-weight: 600;
  margin: 8px 0 10px; color: #fff;
}
.minimo-num span {
  display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: #9fb0c8; margin-top: 8px;
}
.minimo-txt { margin: 0 auto; max-width: 38ch; font-size: 13px; color: #ccd4e0; }

.cartoes { display: grid; gap: 14px; }
.cartao {
  background: var(--bg); border: 1px solid var(--line);
  padding: 22px 20px 24px; margin-bottom: 14px;
}
.cartoes .cartao { margin-bottom: 0; }
.cartao .rot {
  font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.cartao h2 { font-size: 19px; line-height: 1.25; margin: 0 0 14px; }
.lista-cond { list-style: none; margin: 0; padding: 0; }
.lista-cond li {
  position: relative; padding: 8px 0 8px 22px;
  border-top: 1px solid var(--line); font-size: 13.5px;
}
.lista-cond li:first-child { border-top: 0; padding-top: 0; }
.lista-cond li::before {
  content: ''; position: absolute; left: 4px; top: 16px;
  width: 4px; height: 4px; border-radius: 999px; background: var(--accent);
}
.lista-cond li:first-child::before { top: 8px; }
.cartao .nota { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; line-height: 1.55; }
.cartao .nota a { color: var(--muted); }
.cartao .nota a:hover { color: var(--ink); }

.tabela-tam { background: var(--bg); border: 1px solid var(--line); padding: 22px 20px 24px; margin-bottom: 14px; }
.tabela-tam .rot {
  font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.tabela-tam h2 { font-size: 19px; margin: 0 0 16px; }
.tabela-rolagem { overflow-x: auto; }
.tabela-tam table { width: 100%; border-collapse: collapse; }
.tabela-tam th, .tabela-tam td { text-align: left; padding: 11px 12px; font-size: 13.5px; }
.tabela-tam thead th {
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}
.tabela-tam tbody tr { border-bottom: 1px solid var(--line); }
.tabela-tam tbody tr:last-child { border-bottom: 0; }
.tabela-tam tbody th { font-weight: 700; letter-spacing: .1em; width: 42%; font-variant-numeric: tabular-nums; }
.tabela-tam tbody td { font-variant-numeric: tabular-nums; color: var(--muted); }
.tabela-tam .linha-plus { background: var(--areia); }
.tabela-tam .linha-plus td { color: var(--ink); }
.tag-plus {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border: 1px solid var(--accent); border-radius: 999px;
  font-size: 9px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.tabela-tam .nota { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; line-height: 1.55; }
.tabela-tam .nota a { color: var(--accent); }

.fecha-condicoes { text-align: center; padding: 30px 0 10px; }
.fecha-condicoes h2 { font-size: 20px; margin: 0 0 6px; }
.fecha-condicoes p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.fecha-botoes { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }

@media (min-width: 700px) {
  .cartoes { grid-template-columns: 1fr 1fr; }
  .pag-topo h1 { font-size: 34px; }
  .cartao, .tabela-tam { padding: 26px 26px 28px; }
  .minimo-cartao { padding: 34px 26px 36px; }
  .minimo-num { font-size: 68px; }
}
