:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EEE6;
  --ink: #221C17;
  --ink-2: #4A4037;
  --ink-dim: #7A6E62;
  --border: #E7DECD;
  --border-2: #D9CDB8;
  --accent: #9C7A3C;
  --accent-ink: #7C5F2A;
  --gold: #D8B36A;
  --dark: #15110D;
  --dark-2: #221B14;
  --whats: #15803D;
  --whats-2: #166534;
  --danger: #B42318;
  --ok-bg: #ECF7EF;
  --warn: #9A5B00;
  --warn-bg: #FFF4DF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 28, 23, .06), 0 6px 20px -8px rgba(34, 28, 23, .18);
  --shadow-lg: 0 24px 60px -20px rgba(21, 17, 13, .45);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --hdr-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------ topo */
.topbar { background: var(--dark); color: #E9DDC6; font-size: 12.5px; text-align: center; padding: 7px 16px; letter-spacing: .01em; }
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(250, 247, 242, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.hdr-in { max-width: 1320px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex-shrink: 0; }
.brand-mark { width: 36px; height: 44px; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(21, 17, 13, .18)); transition: transform .2s; }
.brand:hover .brand-mark { transform: rotate(-4deg); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; gap: 3px; }
/* logo: "Lucas" + "no" em itálico dourado + "Paraguay" */
.logo-nome { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.015em; white-space: nowrap; color: var(--ink); }
.logo-nome em { font-style: italic; font-weight: 500; color: var(--accent); font-size: .86em; margin: 0 .04em; }
.logo-nome em.ult { font-size: 1em; margin: 0; }
.logo-tag { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.logo-tag::before { content: ''; width: 16px; height: 1px; background: currentColor; flex-shrink: 0; }
.busca { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px; padding: 0 14px; height: 44px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.busca:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(156, 122, 60, .15); }
.busca svg { width: 18px; height: 18px; color: var(--ink-dim); flex-shrink: 0; }
.busca input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; height: 100%; font-size: 15px; }
.busca input::-webkit-search-cancel-button { display: none; }
.busca-limpa { border: 0; background: var(--surface-2); width: 24px; height: 24px; border-radius: 50%; font-size: 16px; line-height: 1; color: var(--ink-2); }
.btn-carrinho { position: relative; display: flex; align-items: center; gap: 10px; border: 0; background: var(--dark); color: #fff; height: 44px; padding: 0 16px 0 13px; border-radius: 999px; flex-shrink: 0; transition: transform .12s; }
.btn-carrinho:active { transform: scale(.97); }
.btn-carrinho svg { width: 22px; height: 22px; color: var(--gold); }
.btn-carrinho-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-carrinho-txt span { font-size: 11px; color: #CDBFA8; }
.btn-carrinho-txt strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.badge { position: absolute; top: -4px; left: 26px; background: var(--gold); color: var(--dark); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.cats { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { border: 0; background: transparent; padding: 10px 14px 11px; font-weight: 600; font-size: 14px; color: var(--ink-dim); border-bottom: 2px solid transparent; white-space: nowrap; }
.cats button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.cats button:hover { color: var(--ink); }
.cats .cnt { font-weight: 500; color: var(--ink-dim); font-size: 12px; margin-left: 4px; }

/* ------------------------------------------------ hero */
.hero { background: radial-gradient(120% 140% at 85% 0%, #3A2C1B 0%, var(--dark) 55%); color: #F1E9DC; }
.hero-in { max-width: 1320px; margin: 0 auto; padding: 44px 16px 40px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; color: var(--gold); margin: 0 0 12px; font-weight: 600; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
.hero-p { color: #CDBFA8; font-size: 16.5px; max-width: 540px; margin: 0 0 24px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-stat { color: #A9998A; font-size: 13.5px; }
.hero-stat strong { color: #F1E9DC; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.passos li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .045); border: 1px solid rgba(216, 179, 106, .18); border-radius: var(--radius); padding: 14px 16px; }
.passos li > span { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--dark); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; font-size: 14px; }
.passos strong { display: block; font-size: 15px; }
.passos p { margin: 2px 0 0; color: #B9AA95; font-size: 13.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; height: 46px; padding: 0 22px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-ouro { background: var(--gold); color: var(--dark); }
.btn-ouro:hover { background: #E4C27E; }
.btn-escuro { background: var(--dark); color: #fff; }
.btn-escuro:hover { background: #2C2319; }
.btn-whats { background: var(--whats); color: #fff; }
.btn-whats:hover { background: var(--whats-2); }
.btn-linha { background: transparent; border: 1px solid var(--border-2); color: var(--ink); }
.btn-linha:hover { border-color: var(--accent); }
.btn-bloco { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------ destaques */
.destaques { max-width: 1320px; margin: 0 auto; padding: 30px 16px 4px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0; letter-spacing: -.01em; }
.setas { display: flex; gap: 6px; }
.setas button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); font-size: 20px; line-height: 1; color: var(--ink-2); }
.trilho { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.trilho .card { scroll-snap-align: start; }

/* ------------------------------------------------ banner Grupo VIP */
.vip { max-width: 1320px; margin: 0 auto; padding: 26px 16px 4px; }
.vip-in { position: relative; overflow: hidden; border-radius: 24px; padding: 36px 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; color: #EAF4EC;
  background: radial-gradient(90% 120% at 100% 0%, rgba(216, 179, 106, .22) 0%, rgba(216, 179, 106, 0) 55%), linear-gradient(135deg, #0A3324 0%, #0E4A31 55%, #13663F 100%); box-shadow: 0 18px 40px -22px rgba(10, 51, 36, .7); }
.vip-in::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(216, 179, 106, .25); pointer-events: none; }
.vip-selo { display: inline-flex; align-items: center; gap: 7px; background: rgba(37, 211, 102, .16); color: #7CF0A8; border: 1px solid rgba(37, 211, 102, .35); padding: 5px 12px 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vip-selo svg { width: 16px; height: 16px; }
.vip h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 10px; color: #fff; text-wrap: balance; }
.vip p { margin: 0 0 16px; color: #C4DDCB; font-size: 16px; max-width: 520px; }
.vip-lista { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.vip-lista li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #EAF4EC; }
.vip-lista li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%2315110D' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.vip-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vip-cta span { font-size: 13px; color: #A9C9B2; }
.btn-vip { background: #25D366; color: #06301B; height: 52px; padding: 0 26px; font-size: 16px; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn-vip:hover { background: #33E276; }
.btn-vip svg { width: 22px; height: 22px; }
.vip-arte { display: flex; justify-content: center; }
.chat { width: 100%; max-width: 340px; border-radius: 20px; overflow: hidden; background: #EFE7DD; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); transform: rotate(2.5deg); border: 6px solid #0B1A12; }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #0B3A2A; color: #fff; }
.chat-topo img { width: 30px; height: 36px; background: #F1E9DC; border-radius: 50%; padding: 3px 5px; object-fit: contain; }
.chat-topo strong { display: block; font-size: 13px; line-height: 1.2; }
.chat-topo small { font-size: 11.5px; color: #9FC7AE; }
.chat-corpo { padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 8px; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 14px 14px; }
.bolha { position: relative; align-self: flex-start; max-width: 88%; background: #fff; color: #1F2A24; border-radius: 4px 12px 12px 12px; padding: 8px 10px 16px; font-size: 13px; line-height: 1.35; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.bolha b { color: #0B3A2A; }
.bolha i { position: absolute; right: 8px; bottom: 3px; font-style: normal; font-size: 10px; color: #8A9A90; }
.bolha.eu { align-self: flex-end; background: #D9FDD3; border-radius: 12px 4px 12px 12px; padding-right: 54px; }
.bolha .lido { color: #34B7F1; }

/* ------------------------------------------------ catálogo */
.catalogo { max-width: 1320px; margin: 0 auto; padding: 22px 16px 60px; scroll-margin-top: calc(var(--hdr-h) + 50px); }
.linhas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.linhas::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--border-2); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--ink-2); transition: all .15s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip .cnt { opacity: .6; font-size: 12px; margin-left: 3px; }
.barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0 10px; }
.generos { display: flex; gap: 6px; flex-wrap: wrap; }
.generos .chip { padding: 6px 12px; font-size: 13px; }
.barra-dir { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select { height: 38px; border: 1px solid var(--border-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A6E62' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center/11px; border-radius: 10px; padding: 0 32px 0 12px; appearance: none; font-size: 13.5px; max-width: 220px; }
.vista { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.vista button { border: 0; background: transparent; height: 32px; padding: 0 10px; border-radius: 8px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-dim); }
.vista button svg { width: 16px; height: 16px; fill: currentColor; }
.vista button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.contagem { font-size: 13px; color: var(--ink-dim); margin: 2px 0 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; position: relative; }
.card:hover { box-shadow: var(--shadow); border-color: var(--border-2); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; display: block; border: 0; padding: 0; width: 100%; cursor: zoom-in; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .35s ease; }
.card-img img.ph { padding: 0; object-fit: cover; }
.card:hover .card-img img:not(.ph) { transform: scale(1.04); }
.selos { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 1; }
.selo { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--dark); color: var(--gold); }
.selo-novo { background: var(--gold); color: var(--dark); }
.selo-alerta { background: var(--warn-bg); color: var(--warn); }
.selo-off { background: #EDE7DD; color: var(--ink-dim); }
.card-info { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; gap: 3px; }
.card-marca { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.card-nome { font-weight: 600; font-size: 14.5px; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-meta { font-size: 12.5px; color: var(--ink-dim); min-height: 1.5em; }
.card-meta .g { display: inline-block; padding: 0 6px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; margin-right: 4px; }
.card-pe { margin-top: auto; padding-top: 9px; display: flex; flex-direction: column; gap: 9px; }
.preco { font-size: 19px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.preco small { font-size: 11.5px; font-weight: 500; color: var(--ink-dim); margin-left: 3px; }
.add { height: 40px; border: 0; border-radius: 10px; background: var(--dark); color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; transition: background .15s; }
.add:hover { background: #2C2319; }
.add svg { width: 16px; height: 16px; }
.add[disabled] { background: #E8E1D5; color: var(--ink-dim); cursor: not-allowed; }
.qtd { display: flex; align-items: center; height: 40px; border: 1.5px solid var(--dark); border-radius: 10px; overflow: hidden; background: #fff; }
.qtd button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--ink); flex-shrink: 0; }
.qtd button:hover { background: var(--surface-2); }
.qtd input { flex: 1; min-width: 0; width: 40px; text-align: center; border: 0; outline: 0; font-weight: 700; font-size: 15px; height: 100%; background: transparent; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qtd input::-webkit-outer-spin-button, .qtd input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qtd-sm { height: 34px; border-width: 1px; }
.qtd-sm button { width: 32px; font-size: 18px; }
.qtd-sm input { font-size: 14px; width: 34px; }

/* lista rápida */
.grid.lista { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.linha-p { display: grid; grid-template-columns: 56px 1fr auto 130px; gap: 14px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.linha-p:last-child { border-bottom: 0; }
.linha-p.no-pedido { background: #FBF7EE; }
.linha-p .mini { width: 56px; height: 56px; border-radius: 10px; background: #fff; border: 1px solid var(--border); overflow: hidden; padding: 0; cursor: zoom-in; }
.linha-p .mini img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.linha-p .mini img.ph { padding: 0; object-fit: cover; }
.linha-p .nm { min-width: 0; }
.linha-p .nm strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha-p .nm span { font-size: 12.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.linha-p .nm b { color: var(--accent-ink); font-weight: 700; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.linha-p .pr { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.linha-p .add { height: 34px; font-size: 13px; }

.vazio { text-align: center; padding: 50px 16px; color: var(--ink-2); }
.vazio p { max-width: 460px; margin: 0 auto 16px; }
#sentinela { height: 1px; }
.carregando { grid-column: 1 / -1; text-align: center; color: var(--ink-dim); padding: 20px; }

/* ------------------------------------------------ rodapé */
.rodape { background: var(--dark); color: #CDBFA8; padding: 34px 16px 110px; font-size: 14px; }
.rodape-in { max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rodape-marca { display: flex; gap: 14px; align-items: flex-start; }
.rodape-marca img { flex-shrink: 0; margin-top: 2px; }
.rodape .logo-nome { color: #F1E9DC; font-size: 22px; display: block; }
.rodape .logo-nome em { color: var(--gold); }
.rodape .logo-tag { color: var(--gold); margin-top: 4px; }
.rodape p { margin: 10px 0 0; max-width: 520px; }
.rodape-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.rodape-links a { color: #F1E9DC; text-decoration: none; border: 1px solid #3A3025; border-radius: 999px; padding: 8px 14px; }
.rodape-links a:hover { border-color: var(--gold); }

/* ------------------------------------------------ barra flutuante / whatsapp */
.barra-pedido { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; background: var(--dark); color: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); text-align: left; animation: sobe .25s ease; }
.barra-pedido span:first-child { display: flex; flex-direction: column; line-height: 1.2; }
.barra-pedido small { color: #B9AA95; font-size: 12px; }
.bp-total { background: var(--gold); color: var(--dark); font-weight: 700; padding: 9px 14px; border-radius: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes sobe { from { transform: translateY(20px); opacity: 0; } }
.fab-whats { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 24; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .15s; }
.fab-whats:hover { transform: scale(1.06); }
.fab-whats svg { width: 30px; height: 30px; }
body.tem-itens .fab-whats { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* ------------------------------------------------ modal produto */
.modal, .gaveta { position: fixed; inset: 0; z-index: 50; }
.modal-fundo, .gaveta-fundo { position: absolute; inset: 0; background: rgba(21, 17, 13, .55); animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.modal-caixa { position: relative; margin: 5vh auto; width: min(920px, calc(100% - 24px)); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; animation: sobe .25s ease; }
.md-img { background: #fff; display: grid; place-items: center; padding: 24px; border-right: 1px solid var(--border); min-height: 360px; }
.md-img img { width: 100%; max-height: 520px; object-fit: contain; }
.md-img img.ph { border-radius: 14px; }
.md-info { padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.md-info h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.md-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.md-tags span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.md-preco { font-size: 28px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.md-preco small { font-size: 13px; font-weight: 500; color: var(--ink-dim); }
.md-desc { color: var(--ink-2); font-size: 14.5px; margin: 0; white-space: pre-line; }
.md-cod { font-size: 12.5px; color: var(--ink-dim); }
.md-acoes { display: flex; gap: 10px; margin-top: 6px; }
.md-acoes .qtd { width: 150px; height: 48px; flex-shrink: 0; }
.md-acoes .btn { flex: 1; height: 48px; border-radius: 12px; }
.md-fechar { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 24px; line-height: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); z-index: 2; }
.disp { font-size: 13px; font-weight: 600; }
.disp.ok { color: var(--whats); }
.disp.ultimas { color: var(--warn); }
.disp.esgotado { color: var(--danger); }

/* ------------------------------------------------ gaveta (pedido) */
.gaveta-caixa { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: entra .25s ease; }
@keyframes entra { from { transform: translateX(30px); opacity: 0; } }
.gaveta-topo { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.gaveta-topo h2 { flex: 1; margin: 0; font-family: var(--serif); font-weight: 600; font-size: 21px; }
.gaveta-topo button { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; }
.gaveta-corpo { flex: 1; overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
.gaveta-pe { border-top: 1px solid var(--border); background: var(--surface); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: start; }
.item .mini { width: 58px; height: 58px; border-radius: 10px; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.item .mini img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.item .mini img.ph { padding: 0; object-fit: cover; }
.item-nm { font-size: 14px; font-weight: 600; line-height: 1.3; }
.item-nm small { display: block; color: var(--ink-dim); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.item-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.item-ctrl .qtd { width: 118px; }
.remover { border: 0; background: transparent; color: var(--ink-dim); font-size: 12.5px; text-decoration: underline; padding: 4px; }
.item-sub { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.linha-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.linha-total strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.linha-total small { color: var(--ink-dim); }
.minimo { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.minimo .trilha { height: 6px; background: rgba(154, 91, 0, .15); border-radius: 99px; margin-top: 7px; overflow: hidden; }
.minimo .trilha i { display: block; height: 100%; background: var(--warn); border-radius: 99px; }
.vazio-car { text-align: center; padding: 60px 10px; color: var(--ink-2); }
.vazio-car svg { width: 56px; height: 56px; color: var(--border-2); margin: 0 auto 12px; }

/* formulário */
.form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 10px; }
.form h3 { grid-column: 1 / -1; margin: 10px 0 -2px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.form h3:first-child { margin-top: 0; }
.campo { display: flex; flex-direction: column; gap: 5px; grid-column: span 6; min-width: 0; }
.s1 { grid-column: span 1; } .s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.campo label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.campo label i { color: var(--danger); font-style: normal; }
.campo input, .campo select, .campo textarea { height: 46px; border: 1px solid var(--border-2); border-radius: 10px; padding: 0 12px; background: var(--surface); font-size: 16px; max-width: none; width: 100%; }
.campo textarea { height: 76px; padding: 10px 12px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(156, 122, 60, .15); }
.campo.erro input, .campo.erro select { border-color: var(--danger); background: #FFF8F7; }
.campo .msg { font-size: 12px; color: var(--danger); min-height: 0; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcoes label { font-weight: 500; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 14px; }
.opcoes input { accent-color: var(--dark); width: 16px; height: 16px; margin: 0; }
.opcoes label:has(input:checked) { border-color: var(--dark); box-shadow: inset 0 0 0 1px var(--dark); background: #FBF7EE; }
.lembrar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.lembrar input { accent-color: var(--dark); width: 16px; height: 16px; }
.alerta { background: #FEF3F2; border: 1px solid #FECDCA; color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.alerta ul { margin: 4px 0 0; padding-left: 18px; }
.resumo-mini { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: 13.5px; display: flex; justify-content: space-between; margin-bottom: 14px; }

/* sucesso */
.sucesso { text-align: center; padding: 26px 6px 10px; }
.sucesso .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--whats); display: grid; place-items: center; margin: 0 auto 14px; }
.sucesso .ok svg { width: 34px; height: 34px; }
.sucesso h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; font-weight: 600; }
.sucesso p { color: var(--ink-2); margin: 0 auto 16px; max-width: 360px; }
.msg-previa { text-align: left; background: #E7F8EC; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; white-space: pre-wrap; max-height: 260px; overflow: auto; color: #183A24; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; margin-top: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 60; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); animation: sobe .2s ease; }

/* ------------------------------------------------ responsivo */
@media (min-width: 900px) {
  .barra-pedido { display: none !important; }
  body.tem-itens .fab-whats { bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 899px) {
  .vip-in { grid-template-columns: 1fr; padding: 28px 22px; gap: 26px; }
  .chat { max-width: 320px; transform: rotate(1.5deg); }
  .hero-in { grid-template-columns: 1fr; gap: 24px; padding: 30px 16px 28px; }
  .passos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .passos li { flex-direction: column; gap: 8px; padding: 12px; }
  .passos p { display: none; }
  .passos strong { font-size: 13px; line-height: 1.3; }
  .btn-carrinho-txt { display: none; }
  .btn-carrinho { width: 44px; padding: 0; justify-content: center; }
  .badge { left: auto; right: -4px; }
  .modal-caixa { grid-template-columns: 1fr; margin: auto 0 0; width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; position: absolute; bottom: 0; }
  .md-img { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; padding: 18px; }
  .md-img img { max-height: 42vh; }
  .md-info { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .md-info h2 { font-size: 22px; }
  .md-acoes .qtd { width: 128px; }
}
@media (max-width: 640px) {
  .hdr-in { flex-wrap: wrap; gap: 10px; padding: 8px 12px 10px; }
  .brand { flex: 1; gap: 9px; }
  .brand-mark { width: 30px; height: 37px; }
  .logo-nome { font-size: 19px; }
  .logo-tag { font-size: 9px; letter-spacing: .2em; }
  .vip { padding: 20px 12px 4px; }
  .vip-in { border-radius: 20px; padding: 24px 18px; }
  .vip p { font-size: 15px; }
  .vip-cta { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
  .btn-vip { width: 100%; }
  .busca { order: 3; flex-basis: 100%; height: 42px; }
  .cats { padding: 0 8px; }
  .catalogo, .destaques { padding-left: 12px; padding-right: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-info { padding: 10px 10px 11px; }
  .card-nome { font-size: 13.5px; }
  .preco { font-size: 17px; }
  .add { height: 38px; font-size: 13px; }
  .qtd { height: 38px; }
  .qtd button { width: 34px; }
  .barra { flex-direction: column; align-items: stretch; }
  .barra-dir { display: grid; grid-template-columns: 1fr 1fr; }
  .barra-dir select { max-width: none; }
  .vista { grid-column: 1 / -1; }
  .vista button { flex: 1; justify-content: center; }
  .linha-p { grid-template-columns: 48px 1fr 108px; gap: 10px; padding: 9px 10px; }
  .linha-p .mini { width: 48px; height: 48px; }
  .linha-p .pr { grid-column: 2; grid-row: 2; text-align: left; font-size: 14px; margin-top: -6px; }
  .linha-p .ctrl { grid-column: 3; grid-row: 1 / span 2; }
  .trilho { grid-auto-columns: 46%; }
  .m6 { grid-column: span 6; } .m4 { grid-column: span 4; } .m2 { grid-column: span 2; }
  .hero h1 { font-size: 27px; }
  .hero-p { font-size: 15px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
