:root {
  --ink: #1a1714; --muted: #6b645c; --paper: #f3efe8; --card: #fff;
  --line: #ddd6cc; --accent: #8a1f1c; --accent2: #c4a574; --steel: #2c3338;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.45 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; }
.capa { min-height: 70vh; background: var(--steel); color: #f4efe8; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px 40px; }
.capa-top { display: flex; justify-content: space-between; align-items: flex-start; }
.logo { height: auto; max-height: 120px; max-width: min(360px, 70vw); width: auto; background: #fff; padding: 8px 12px; }
.logo-txt { font: 700 28px Georgia, serif; letter-spacing: .28em; }
.marca { font-size: 12px; letter-spacing: .35em; text-transform: uppercase; color: var(--accent2); }
.capa h1 { font: 400 56px/0.95 Georgia, "Times New Roman", serif; margin: 48px 0 12px; }
.capa h1 span { display: block; font-style: italic; color: var(--accent2); font-size: 28px; }
.capa .sub { max-width: 460px; color: #c9c2b8; font-size: 16px; }
.capa-foot { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: #c9c2b8; border-top: 1px solid #4a5258; padding-top: 18px; }
.barra { position: sticky; top: 0; z-index: 20; background: rgba(243,239,232,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.barra input, .barra select { border: 1px solid var(--line); background: #fff; padding: 10px 14px; font: inherit; border-radius: 2px; }
.barra input { flex: 1; min-width: 200px; }
.btn-carrinho { border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 10px 14px; font: inherit; border-radius: 2px; cursor: pointer; }
.btn-topo { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; font: 700 22px/1 Georgia, serif; box-shadow: 0 4px 16px rgba(0,0,0,.25); opacity: 0; pointer-events: none; }
.btn-topo.visivel { opacity: 1; pointer-events: auto; }
.indice { padding: 28px 56px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 28px; }
.indice a { text-decoration: none; display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.indice em { font-style: normal; color: var(--muted); }
.linha { padding: 8px 28px 36px; }
.linha-h { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); margin: 28px 8px 18px; padding-bottom: 8px; }
.linha-h h2 { margin: 0; font: 400 26px Georgia, serif; }
.linha-h .qtd { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.foto { background: #ececec; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.foto img, .carrossel img { width: 100%; height: 100%; object-fit: contain; }
.carrossel { width: 100%; height: 100%; overflow: hidden; position: relative; }
.carrossel .trilhos { display: flex; width: 200%; height: 100%; transition: transform .28s ease; }
.carrossel.ver-medida .trilhos { transform: translateX(-50%); }
.carrossel .slide { flex: 0 0 50%; width: 50%; height: 100%; object-fit: contain; background: #ececec; }
.carrossel.so-foto .trilhos { width: 100%; transform: none !important; }
.carrossel.so-foto .slide.med, .carrossel.so-foto .seta, .carrossel.so-foto .legendas { display: none; }
.carrossel.so-foto .slide { flex: 0 0 100%; width: 100%; }
.seta { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(26,23,20,.72); color: #fff; cursor: pointer; font: 700 20px/1 Georgia, serif; z-index: 2; }
.seta.esq { left: 8px; } .seta.dir { right: 8px; }
.legendas { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.legendas span { background: rgba(26,23,20,.7); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; opacity: .55; }
.carrossel:not(.ver-medida) .legendas .leg-foto { opacity: 1; }
.carrossel.ver-medida .legendas .leg-med { opacity: 1; }
.sem-foto { color: #aaa; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cod { font-weight: 700; letter-spacing: .04em; background: var(--ink); color: #fff; padding: 2px 8px; font-size: 13px; }
.emb { background: var(--accent); color: #fff; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.tit { margin: 4px 0 0; font: 650 14px/1.3 "Segoe UI", sans-serif; }
.desc { margin: 0; color: var(--muted); font-size: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pill { border: 1px solid var(--line); padding: 2px 7px; font-size: 11px; color: var(--steel); background: #faf8f4; }
.preco { font: 700 16px/1.2 Georgia, serif; margin-top: 4px; }
.preco.sem { font: 12px/1.2 "Segoe UI", sans-serif; color: var(--muted); font-weight: 400; }
.pedir { display: flex; gap: 6px; margin-top: 6px; }
.pedir .qtd { width: 64px; border: 1px solid var(--line); padding: 8px; font: inherit; }
.pedir .add { flex: 1; border: 0; background: var(--steel); color: #fff; cursor: pointer; font: 600 13px "Segoe UI", sans-serif; }
.pedir .add:hover { background: var(--accent); }
.ficha-wf { margin: 4px 0 0; font-size: 11px; line-height: 1.35; color: var(--muted); white-space: pre-line; max-height: 11em; overflow: auto; }
.oculto { display: none !important; }
.vazio { padding: 40px; text-align: center; color: var(--muted); }
.rodape { padding: 28px 56px 40px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
#login { position: fixed; inset: 0; z-index: 80; background: var(--steel); color: #f4efe8; display: flex; align-items: center; justify-content: center; padding: 24px; }
#login.ok { display: none; }
.box-login { width: min(420px, 100%); background: #24292d; padding: 32px; border: 1px solid #4a5258; }
.box-login h2 { font: 400 28px Georgia, serif; margin: 0 0 8px; }
.box-login p { color: #c9c2b8; }
.box-login label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); margin: 14px 0 6px; }
.box-login input { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #4a5258; background: #1a1714; color: #fff; }
.box-login button { margin-top: 18px; width: 100%; padding: 12px; border: 0; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
.box-login .err { color: #e8a0a0; min-height: 1.2em; font-size: 13px; }
#painel { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 50; box-shadow: -8px 0 32px rgba(0,0,0,.2); flex-direction: column; }
#painel.aberto { display: flex; }
#painel h2 { margin: 0; padding: 18px 18px 8px; font: 400 22px Georgia, serif; }
#lista-cart { flex: 1; overflow: auto; padding: 8px 18px; }
#lista-cart .lin { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
#lista-cart button { border: 0; background: none; color: var(--accent); cursor: pointer; }
.fecha-ped { padding: 16px 18px 24px; border-top: 1px solid var(--line); }
.fecha-ped label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 8px 0 4px; }
.fecha-ped input, .fecha-ped textarea { width: 100%; padding: 8px; font: inherit; border: 1px solid var(--line); }
.fecha-ped .tot { font: 700 20px Georgia, serif; margin: 12px 0; }
.fecha-ped .baixar { width: 100%; padding: 12px; border: 0; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
.fecha-ped .baixar.travado { background: #9a8f86; cursor: not-allowed; }
.fecha-ped .baixar:disabled { background: #9a8f86; cursor: not-allowed; }
.aviso-min { background: #fff4c2; border: 1px solid #e0c35a; color: #5c4a10; padding: 10px 12px; font-size: 13px; font-weight: 700; margin: 0 18px 8px; }
.aviso-min.ok-min { background: #e7f5ea; border-color: #8fbf98; color: #1e4d28; font-weight: 600; }
.fecha-ped select { width: 100%; padding: 8px; font: inherit; border: 1px solid var(--line); background: #fff; }
.fecha-ped select:disabled { background: #f3efe8; color: var(--muted); }
.hint-cond { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.ver-cond { background: none; border: 0; color: var(--accent); cursor: pointer; font: 600 12px "Segoe UI", sans-serif; padding: 8px 0 0; text-decoration: underline; }
#modal-cond { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(18,16,14,.78); align-items: center; justify-content: center; padding: 18px; }
#modal-cond.aberto { display: flex; }
.box-cond { width: min(720px, 100%); max-height: 92vh; overflow: auto; background: #1c2125; color: #f4efe8; border: 2px solid var(--accent2); padding: 28px 28px 24px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.box-cond .selo { display: inline-block; background: #ffe566; color: #1a1714; font-weight: 800; letter-spacing: .04em; padding: 8px 14px; font-size: 15px; margin-bottom: 12px; }
.box-cond h2 { font: 400 28px/1.15 Georgia, serif; margin: 0 0 8px; }
.box-cond .lead { color: #c9c2b8; margin: 0 0 18px; }
.grid-cond { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.item-cond { background: #24292d; border-left: 4px solid var(--accent); padding: 8px 10px; }
.item-cond b { color: #ffe566; margin-right: 6px; }
.item-cond .prazo { font-weight: 700; }
.item-cond .min { display: block; font-size: 12px; color: #c4a574; }
.nota-cond { margin-top: 16px; font-size: 13px; color: #c9c2b8; }
.nota-cond p { margin: 8px 0; }
.box-cond .ok-cond { margin-top: 18px; width: 100%; padding: 14px; border: 0; background: var(--accent); color: #fff; font: 700 15px "Segoe UI", sans-serif; cursor: pointer; }
@media (max-width: 640px) { .grid-cond { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .capa, .indice, .linha, .rodape { padding-left: 18px; padding-right: 18px; }
  .capa h1 { font-size: 36px; }
}

#carrega { position: fixed; inset: 0; z-index: 300; background: #16181b; color: #f4efe8; display: flex; align-items: center; justify-content: center; font: 400 22px Georgia, serif; letter-spacing: .04em; }
#carrega.ok, #login.ok { display: none !important; visibility: hidden !important; pointer-events: none !important; }
#login { z-index: 200; background: radial-gradient(1200px 600px at 20% 0%, #3a2220 0%, #16181b 55%); }
#modal-cond { z-index: 250; }
#modal-cond:not(.aberto) { display: none !important; pointer-events: none !important; }
#painel { z-index: 45; }
.btn-sair { border: 1px solid var(--line); background: #fff; padding: 10px 14px; font: inherit; cursor: pointer; }
.barra { z-index: 20; }
.barra #conta { margin-left: auto; }
.btn-busca { border: 1px solid var(--ink); background: var(--steel); color: #fff; padding: 10px 14px; font: inherit; cursor: pointer; }
.btn-topo { position: static; right: auto; bottom: auto; width: 42px; height: 42px; opacity: 1; pointer-events: auto; box-shadow: none; flex: 0 0 auto; }
.box-login { border: 1px solid #c4a574; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.box-login .selo-seguro { display: inline-block; background: #ffe566; color: #1a1714; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; margin: 0 0 12px; }
.capa { background: linear-gradient(165deg, #1c2125 0%, #2c3338 42%, #3d2a28 100%); }
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(26,23,20,.12); }
.fecha-ped .baixar { letter-spacing: .04em; font-weight: 700; }
.painel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 0 18px; }
.painel-top h2 { padding: 6px 0 !important; }
.seta-cart { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.seta-cart-ico { width: 44px; height: 44px; border-radius: 6px; background: #1e6ad6; color: #fff; font: 700 30px/44px Georgia, serif; text-align: center; box-shadow: 0 2px 8px rgba(30,106,214,.4); }
.seta-cart:hover .seta-cart-ico { background: #1557b0; }
.txt-recolhido { display: none; }
#painel.aberto.recolhido { width: 62px; overflow: hidden; }
#painel.recolhido .aviso-min, #painel.recolhido #lista-cart, #painel.recolhido .fecha-ped, #painel.recolhido .painel-top h2 { display: none !important; }
#painel.recolhido .painel-top { flex-direction: column; height: 100%; padding: 18px 8px; justify-content: flex-start; }
#painel.recolhido .txt-recolhido { display: block; writing-mode: vertical-rl; transform: rotate(180deg); color: #1e6ad6; font: 700 13px/1.25 "Segoe UI", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.seta { width: 40px; height: 40px; background: rgba(255,255,255,.28) !important; color: rgba(138,31,28,.8) !important; border: 1.5px solid rgba(138,31,28,.45); font: 700 24px/1 Georgia, serif; box-shadow: none; opacity: .7; transition: opacity .2s ease, background .2s ease; }
.seta:hover { background: rgba(255,255,255,.45) !important; opacity: .9; }
.seta.some { opacity: 0 !important; pointer-events: none; }
