/* Conservas Sport: blocos de cor tirados das etiquetas do catálogo, potes sempre sobre prateleiras */
:root {
  --carvao: #231f20;
  --vermelho: #be121c;
  --vinho: #7a0a10;
  --ouro: #d1ab66;
  --verde: #07522f;
  --azul: #0b4f8a;
  --claro: #e9f2e4;
  --branco: #fff;
  --fonte: "Alegreya Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  --k: 1.65; /* escala dos potes: mantém a proporção real entre os tamanhos */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--carvao); color: var(--carvao); font: 500 1.1875rem/1.45 var(--fonte); font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2 { font-weight: 900; font-style: italic; line-height: .98; letter-spacing: -.01em; word-spacing: .09em; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h3 { font-weight: 800; font-size: 1.4375rem; line-height: 1.12; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }
.miolo { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pular { position: absolute; left: 16px; top: -80px; z-index: 30; background: #fff; padding: 10px 16px; }
.pular:focus { top: 12px; }

.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 26px; border: 2px solid transparent; border-radius: 4px 18px 4px 18px; font-weight: 800; text-decoration: none; transition: background .15s, color .15s; }
.botao-claro { background: #fff; color: var(--vinho); }
.botao-claro:hover { background: var(--carvao); color: #fff; }
.botao-linha { border-color: #fff; color: #fff; }
.botao-linha:hover { background: #fff; color: var(--vinho); }
.botao-vermelho { background: var(--vermelho); color: #fff; }
.botao-vermelho:hover { background: var(--vinho); }

/* Topo */
.topo { background: var(--carvao); color: #fff; position: relative; z-index: 5; }
.topo-linha { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.marca { align-self: flex-start; padding-top: 10px; }
.marca img { width: clamp(138px, 15vw, 196px); }
.topo nav { display: flex; gap: clamp(18px, 3vw, 38px); }
.topo nav a { text-decoration: none; font-weight: 700; padding-block: 10px; }
.topo nav a:hover { color: var(--ouro); }

/* Abertura */
.abertura { background: var(--vermelho); color: #fff; overflow: hidden; }
.abertura-texto { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px 64px; align-items: end; padding-top: clamp(76px, 8vw, 108px); padding-bottom: clamp(32px, 4vw, 52px); }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); }
.abertura-texto p { font-size: 1.3125rem; max-width: 32ch; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
/* três pares: vidro de 1,8 kg com o pote de 300 g à frente */
.fila { --pote: min(21.5vw, 210px); display: flex; justify-content: center; align-items: flex-end; padding: 0 0 18px; background: linear-gradient(transparent calc(100% - 52px), #98101a 0 calc(100% - 14px), var(--vinho) 0); }
.fila img { width: var(--pote); flex: none; animation: pousar .6s cubic-bezier(.3, 1.3, .5, 1) backwards; }
.fila .pequeno { position: relative; width: calc(var(--pote) * .6); margin-left: calc(var(--pote) * -.14); }
.fila .pequeno + img { margin-left: clamp(5px, 5vw - 14px, 72px); }
.fila img:nth-child(2) { animation-delay: .08s; } .fila img:nth-child(3) { animation-delay: .16s; }
.fila img:nth-child(4) { animation-delay: .24s; } .fila img:nth-child(5) { animation-delay: .32s; }
.fila img:nth-child(6) { animation-delay: .4s; }
@keyframes pousar { from { transform: translateY(-26px); } }

/* Índice das linhas */
.indice { position: sticky; top: 0; z-index: 10; background: var(--carvao); color: #fff; }
.indice .miolo { display: flex; gap: clamp(20px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; }
.indice a { flex: none; padding: 15px 0 12px; border-bottom: 4px solid transparent; text-decoration: none; font-weight: 700; }
.indice a:hover { color: var(--ouro); }
.indice a[aria-current] { border-color: var(--ouro); }
.dica { background: #fff; padding-block: 14px; }
.dica .miolo { display: flex; align-items: center; gap: 20px; }
.dica img { width: 96px; flex: none; }
.dica strong { display: block; font-size: 1.375rem; font-weight: 800; line-height: 1.2; }

/* Linhas de produtos */
.linha { --fundo: #0f0d0e; --tampo: #3a3435; --borda: var(--ouro); --texto: #fff; background: var(--fundo); color: var(--texto); padding-block: clamp(56px, 7vw, 96px); scroll-margin-top: 54px; }
.linha-real { --fundo: var(--azul); --tampo: #1767ab; --borda: #063761; }
.linha-jucara { --fundo: var(--verde); --tampo: #0d6b40; --borda: #033a20; }
.linha-conservas { --fundo: var(--claro); --tampo: #c5dcb9; --borda: #07522f; --texto: var(--carvao); }
.linha-topo { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px 64px; align-items: end; margin-bottom: 44px; }
.linha-topo p { max-width: 44ch; }
.prateleira { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; overflow: hidden; padding-bottom: 6px; }
.linha-conservas .prateleira { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.linha-jucara .prateleira { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.produto { display: flex; flex-direction: column; align-items: center; text-align: center; }
.vitrine { position: relative; width: 100%; height: calc(var(--alto, 176px) * var(--k) + 20px); display: flex; align-items: flex-end; justify-content: center; padding: 0 6px 18px; margin-bottom: 18px; }
/* a prateleira avança até o fim da fileira, mesmo quando sobra espaço */
.vitrine::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100vw; height: 48px; background: linear-gradient(var(--tampo) 36px, var(--borda) 0); }
.vitrine img { position: relative; width: calc(var(--w) * var(--k) * 1px); filter: drop-shadow(0 5px 4px rgb(0 0 0 / .28)); transition: transform .2s; }
.produto:hover .vitrine img { transform: translateY(-6px); }
.outras .produto:nth-child(n+5) { --alto: 100px; } /* fileiras só com potes pequenos */
.produto h3 { padding-inline: 8px; }
.tams { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: auto; padding: 12px 6px 0; }
.tam { min-height: 56px; padding: 8px 14px; background: transparent; border: 2px solid currentColor; border-radius: 4px 14px 4px 14px; font-weight: 700; line-height: 1; white-space: nowrap; }
.tam small { display: block; margin-top: 5px; font-size: 1rem; font-weight: 500; }
.tam::before { content: "+ "; }
.tam:hover { background: var(--texto); color: var(--fundo); }
.tam[aria-pressed="true"] { background: var(--vermelho); border-color: #fff; color: #fff; }
.tam[aria-pressed="true"]::before { content: "✓ "; }
.linha :focus-visible { outline-color: currentColor; }

.outras { margin-top: 44px; }
.outras summary { width: fit-content; min-height: 48px; padding: 10px 22px; border: 2px solid currentColor; border-radius: 4px 18px 4px 18px; font-weight: 800; cursor: pointer; }
.outras summary:hover { background: var(--carvao); color: #fff; }
.outras .prateleira { margin-top: 36px; }

/* Cortes */
.cortes { background: var(--carvao); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.cortes ul { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 32px 18px; margin-top: 40px; }
.cortes img { width: 100%; aspect-ratio: 1.08; object-fit: cover; object-position: top; border-radius: 6px 34px 6px 34px; margin-bottom: 14px; }
.cortes p { font-size: 1.0625rem; line-height: 1.35; margin-top: 5px; color: #ddd5d3; }

/* Tamanhos */
.tamanhos { background: #fff; padding-block: clamp(56px, 7vw, 96px); }
.tamanhos h2 { max-width: 17ch; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; margin-top: 28px; }
.cena { display: flex; align-items: flex-end; justify-content: center; gap: 12px; height: 300px; padding: 0 12px 16px; background: linear-gradient(transparent calc(100% - 46px), #ddd9d8 0 calc(100% - 12px), var(--vermelho) 0); }
.cena img { min-width: 0; filter: drop-shadow(0 5px 4px rgb(0 0 0 / .22)); }
.cena-p img { width: 88px; } .cena-g img { width: 144px; }
.dupla h3 { font-size: 1.875rem; margin-top: 22px; }
.dupla p { max-width: 40ch; margin-top: 6px; padding-right: 20px; }

/* Contato */
.contato { background: var(--carvao); color: #fff; padding-bottom: 72px; }
.faixas { display: block; width: 100%; height: clamp(110px, 17vw, 240px); margin-bottom: 44px; }
.contato-grade { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px 72px; }
.contato-grade p { max-width: 36ch; margin: 16px 0 24px; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; }
.inteiro { grid-column: 1 / -1; }
dt { color: var(--ouro); font-weight: 700; font-size: 1.0625rem; }
dd { font-size: 1.375rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
dd a { text-decoration: none; display: inline-block; padding-block: 4px; }
dd a:hover, .mapa { text-decoration: underline; text-underline-offset: 4px; }
.mapa { font-size: 1.125rem; }
.rodape { background: #171415; color: #cfc7c5; padding-block: 22px 96px; font-size: 1rem; }
.rodape .miolo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Lista de cotação */
.barra { position: fixed; z-index: 20; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 20px; min-height: 58px; padding: 10px 24px; background: var(--vermelho); color: #fff; border: 3px solid #fff; border-radius: 6px 22px 6px 22px; box-shadow: 0 6px 22px rgb(0 0 0 / .35); }
.barra strong { text-decoration: underline; text-underline-offset: 4px; }
.barra:hover { background: var(--vinho); }
dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 0; border-radius: 8px 32px 8px 32px; padding: 26px; color: var(--carvao); }
dialog::backdrop { background: rgb(20 12 12 / .65); }
.lista-topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.lista-topo h2 { font-size: 2.25rem; }
.lista-topo button, .limpar, .tirar { background: none; border: 0; min-height: 44px; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.lista-caixa { display: flex; align-items: center; gap: 16px; }
.lista-caixa img { width: 84px; flex: none; }
.quantidade { text-align: center; font-size: 1rem; line-height: 1.2; font-weight: 500; }
#itens { margin-block: 14px 20px; }
#itens li { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 12px; align-items: center; padding-block: 10px; border-top: 1px solid #ddd6d5; line-height: 1.25; font-weight: 700; }
#itens input { width: 100%; min-height: 44px; padding: 4px 10px; font: inherit; border: 2px solid #8b7f7d; border-radius: 4px; }
.tirar { font-size: 1rem; font-weight: 500; }
dialog .botao { width: 100%; }
.limpar { display: block; margin: 10px auto 0; }

@media (max-width: 1080px) {
  :root { --k: 1.25; }
  .cortes ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --k: .86; }
  .so-largo { display: none; }
  .topo-linha { height: 64px; }
  .abertura-texto, .linha-topo, .contato-grade { grid-template-columns: minmax(0, 1fr); }
  .abertura-texto { padding-top: 64px; gap: 20px; }
  .prateleira, .linha-conservas .prateleira { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .linha-conservas { --k: 1.05; }
  .linha-conservas .miolo > .prateleira .produto:nth-child(n+3) { --alto: 100px; }
  .vitrine { padding-inline: 2px; }
  .produto h3 { font-size: 1.25rem; }
  .tams { gap: 6px; }
  .tam { padding-inline: 10px; font-size: 1.0625rem; }
  .indice .miolo { gap: 22px; }
  .cortes ul { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cortes li { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; align-content: center; }
  .cortes img { grid-row: 1 / 3; margin: 0; border-radius: 5px 24px 5px 24px; }
  .cortes h3 { align-self: end; }
  .dupla { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .cena { height: 220px; gap: 6px; }
  .cena-p img { width: 70px; } .cena-g img { width: 104px; }
  dl { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .barra { left: 16px; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
