/* ==========================================================================
   Golias Delivery — cardápio digital do cliente (mobile first)
   ========================================================================== */
:root {
  --brand: #e4572e;
  --brand-600: #c9431d;
  --brand-50: #fff2ec;
  --ink: #1c1917;
  --ink-2: #57534e;
  --muted: #8a837d;
  --line: #ece7e2;
  --bg: #faf7f4;
  --card: #fff;
  --ok: #16a34a;
  --bad: #dc2626;
  --r: 18px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 8px 24px rgba(28, 25, 23, .06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
[x-cloak] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
body.lock { overflow: hidden; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; color: #fff; background: #17130f; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(900px 380px at 85% -10%, rgba(228, 87, 46, .75), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgba(255, 154, 92, .35), transparent 60%), #17130f; }
.hero-bg.img { background-size: cover; background-position: center; }
.hero-bg.img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 19, 15, .25), rgba(23, 19, 15, .92)); }
.hero-embers { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 180, 120, .7), transparent), radial-gradient(1.5px 1.5px at 70% 60%, rgba(255, 140, 80, .6), transparent), radial-gradient(2px 2px at 40% 80%, rgba(255, 200, 150, .5), transparent), radial-gradient(1.5px 1.5px at 85% 25%, rgba(255, 160, 100, .7), transparent); opacity: .8; }
.hero .wrap { position: relative; padding-top: 28px; padding-bottom: 26px; }
.brand-row { display: flex; align-items: center; gap: 16px; }
.logo { width: 76px; height: 76px; border-radius: 22px; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 38px; background: radial-gradient(circle at 30% 20%, #ff9a5c, var(--brand) 55%, #9c2c10); box-shadow: 0 10px 30px rgba(228, 87, 46, .45), inset 0 0 0 3px rgba(255, 255, 255, .12); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-row h1 { font-family: var(--display); font-size: 30px; line-height: 1.05; margin: 0; letter-spacing: -.02em; font-weight: 800; }
.brand-row p { margin: 6px 0 0; color: #e7e1dc; font-size: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hm { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.hm .ic { width: 15px; height: 15px; opacity: .9; }
.hm.open { background: rgba(22, 163, 74, .22); border-color: rgba(74, 222, 128, .35); }
.hm.closed { background: rgba(220, 38, 38, .25); border-color: rgba(248, 113, 113, .35); }
.hm .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.hm.closed .dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .25); }
@media (min-width: 720px) { .brand-row h1 { font-size: 38px; } .logo { width: 92px; height: 92px; } .hero .wrap { padding-top: 40px; padding-bottom: 34px; } }

.closed-bar { background: #fef2f2; color: #991b1b; border-bottom: 1px solid #fecaca; font-size: 13.5px; font-weight: 500; }
.closed-bar .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 8px; align-items: center; }

/* ---------------------------------------------------------------- nav de categorias */
.catnav { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 244, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 10px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.search-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; padding: 9px 15px; border-radius: 99px; font-weight: 650; font-size: 13.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); white-space: nowrap; transition: all .15s; }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-row { display: flex; gap: 8px; flex: 1; }
.search-row input { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; background: #fff; outline: none; }
.search-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(228, 87, 46, .12); }

/* ---------------------------------------------------------------- seções e produtos */
.section { padding-top: 26px; }
.section h2 { font-family: var(--display); font-size: 22px; margin: 0 0 2px; letter-spacing: -.02em; font-weight: 750; }
.section .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.plist { display: grid; gap: 12px; }
@media (min-width: 720px) { .plist { grid-template-columns: 1fr 1fr; } }
.pcard { display: flex; gap: 14px; background: var(--card); border-radius: var(--r); padding: 14px; border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.pcard:hover { box-shadow: var(--shadow); border-color: #e2d9d1; }
.pcard:active { transform: scale(.99); }
.pcard.off { opacity: .55; cursor: not-allowed; }
.pcard .pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcard h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.pcard p { margin: 4px 0 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .price { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 15.5px; display: flex; align-items: baseline; gap: 6px; }
.pcard .price s { color: var(--muted); font-weight: 500; font-size: 13px; }
.pcard .price.promo { color: var(--ok); }
.pimg { width: 108px; height: 108px; border-radius: 14px; flex: none; overflow: hidden; background: linear-gradient(145deg, #ffe7da, #ffd0b8); display: grid; place-items: center; position: relative; }
.pimg img, .fcard .fimg img, .pm-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* fotos em pé (garrafas, latas): mostra inteira, sem cortar nem vazar */
.pimg img.tall, .fcard .fimg img.tall, .pm-img img.tall { object-fit: contain; padding: 6%; }
.pm-img img.tall { padding: 16px; }
.pimg .ph { font-size: 40px; filter: saturate(1.1); }
.add-dot { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.add-dot .ic { width: 18px; height: 18px; stroke-width: 2.5; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; letter-spacing: .02em; }
.tag.off { background: #57534e; }

/* destaques */
.featured { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.featured::-webkit-scrollbar { display: none; }
.fcard { flex: none; width: 220px; scroll-snap-align: start; background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; cursor: pointer; text-align: left; padding: 0; }
.fcard .fimg { height: 130px; overflow: hidden; background: linear-gradient(145deg, #ffe7da, #ffc3a3); display: grid; place-items: center; font-size: 54px; position: relative; }
.fcard .fbody { padding: 12px; }
.fcard h3 { margin: 0; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .price { font-weight: 800; margin-top: 4px; }
.fcard .price s { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 4px; }

.no-results { text-align: center; color: var(--muted); padding: 50px 10px; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 40px 16px 130px; }
.foot a { color: inherit; }

/* ---------------------------------------------------------------- barra da sacola */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(250, 247, 244, 0), rgba(250, 247, 244, .95) 30%); pointer-events: none; }
.cartbar button { pointer-events: auto; max-width: 848px; margin: 0 auto; width: 100%; height: 58px; border-radius: 18px; border: 0; background: var(--brand); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 18px; font-weight: 700; font-size: 15.5px; cursor: pointer; box-shadow: 0 10px 30px rgba(228, 87, 46, .4); animation: rise .25s ease; }
.cartbar .qty { background: rgba(255, 255, 255, .22); border-radius: 10px; min-width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; }
.cartbar .sp { flex: 1; text-align: left; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

/* ---------------------------------------------------------------- sheets (modal inferior) */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(23, 19, 15, .5); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px); }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: sheetIn .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheetIn { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 720px) { .sheet-wrap { align-items: center; padding: 20px; } .sheet { border-radius: 24px; max-height: 88vh; } }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet-h h3 { flex: 1; margin: 0; font-size: 17px; font-family: var(--display); letter-spacing: -.01em; }
.sheet-b { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-f { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.x-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f3efeb; display: grid; place-items: center; cursor: pointer; flex: none; }
.x-btn.float { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); z-index: 2; }

.pm-img { aspect-ratio: 4 / 3; max-height: 44vh; width: 100%; overflow: hidden; flex: none; background: linear-gradient(145deg, #ffe7da, #ffc3a3); display: grid; place-items: center; font-size: 84px; position: relative; }
.pm-body { padding: 18px; }
.pm-body h2 { font-family: var(--display); margin: 0; font-size: 23px; letter-spacing: -.02em; }
.pm-body .desc { color: var(--ink-2); margin: 8px 0 0; }
.pm-body .price { font-weight: 800; font-size: 18px; margin-top: 10px; }
.pm-body .price s { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 6px; }
.grp { margin-top: 20px; }
.grp-h { display: flex; align-items: center; gap: 8px; background: #f6f2ee; margin: 0 -18px; padding: 10px 18px; }
.grp-h b { flex: 1; }
.grp-h small { color: var(--muted); display: block; font-size: 12px; font-weight: 500; }
.req { background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .03em; text-transform: uppercase; }
.req.ok { background: var(--ok); }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt .on { flex: 1; }
.opt .op { color: var(--muted); font-size: 13.5px; }
.opt input { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; flex: none; }
.notes { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 72px; resize: vertical; outline: none; }
.notes:focus { border-color: var(--brand); }
.add-row { display: flex; gap: 12px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; height: 50px; flex: none; }
.stepper button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--brand); display: grid; place-items: center; }
.stepper button:disabled { color: #d6d3d1; }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; }
.stepper.sm { height: 36px; border-radius: 10px; }
.stepper.sm button { width: 32px; }
.btn-main { flex: 1; height: 50px; border-radius: 14px; border: 0; background: var(--brand); color: #fff; font-weight: 750; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; text-decoration: none; transition: background .15s; }
.btn-main:hover { background: var(--brand-600); }
.btn-main:disabled { background: #d6cfc8; cursor: not-allowed; }
.btn-main .sp { flex: 1; text-align: left; }
.btn-sec { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 650; cursor: pointer; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; }
.link { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; padding: 0; }

/* sacola / checkout */
.steps { display: flex; gap: 6px; padding: 12px 18px 0; }
.steps div { flex: 1; height: 4px; border-radius: 99px; background: #eee7e1; }
.steps div.on { background: var(--brand); }
.pad { padding: 18px; }
.citem { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.citem:last-child { border-bottom: 0; }
.citem .ci-info { flex: 1; min-width: 0; }
.citem b { display: block; }
.citem .ci-opts { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.citem .ci-price { font-weight: 750; margin-top: 6px; }
.summary { background: #f8f4f0; border-radius: 14px; padding: 14px; display: grid; gap: 7px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary .total { font-weight: 800; font-size: 17px; border-top: 1px dashed #dcd3ca; padding-top: 9px; margin-top: 2px; }
.summary .disc { color: var(--ok); font-weight: 600; }
.lbl { display: block; font-size: 13px; font-weight: 700; margin: 16px 0 6px; color: var(--ink-2); }
.pad > .lbl:first-child { margin-top: 0; }
.inp { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; background: #fff; outline: none; font-size: 16px; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(228, 87, 46, .12); }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; background: #f3eee9; border-radius: 14px; padding: 4px; gap: 4px; }
.toggle button { height: 44px; border: 0; background: transparent; border-radius: 11px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.pay { display: grid; gap: 8px; }
.pay label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay label.on { border-color: var(--brand); background: var(--brand-50); }
.pay input { accent-color: var(--brand); width: 20px; height: 20px; margin: 0; }
.pay .pi { width: 36px; height: 36px; border-radius: 10px; background: #f6f1ec; display: grid; place-items: center; color: var(--brand); flex: none; }
.pay b { display: block; font-size: 14.5px; }
.pay small { color: var(--muted); font-size: 12.5px; }
.coupon { display: flex; gap: 8px; }
.coupon .inp { text-transform: uppercase; }
.coupon .inp::placeholder { text-transform: none; }
.msg-err { color: var(--bad); font-size: 13px; margin-top: 6px; font-weight: 500; }
.msg-ok { color: var(--ok); font-size: 13px; margin-top: 6px; font-weight: 600; }
.alert-box { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; margin-bottom: 12px; font-weight: 500; }
.empty-cart { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-cart .e { font-size: 50px; margin-bottom: 10px; }

/* ---------------------------------------------------------------- acompanhamento do pedido */
.track-hero { background: #17130f; color: #fff; position: relative; overflow: hidden; }
.track-hero .wrap { position: relative; padding-top: 26px; padding-bottom: 60px; max-width: 620px; }
.track-hero .top-row { display: flex; align-items: center; gap: 12px; }
.track-hero .top-row .logo { width: 44px; height: 44px; border-radius: 13px; font-size: 22px; }
.track-hero h1 { font-family: var(--display); font-size: 28px; margin: 22px 0 4px; letter-spacing: -.02em; }
.track-hero p { color: #d6d3d1; margin: 0; }
.track-body { max-width: 620px; margin: -40px auto 0; padding: 0 16px 60px; position: relative; }
.tcard { background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.tcard h3 { margin: 0 0 12px; font-size: 15.5px; }
.progress-steps { display: grid; gap: 0; }
.ps { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.ps:last-child { padding-bottom: 0; }
.ps .pdot { width: 30px; height: 30px; border-radius: 50%; background: #f1ece7; color: #b8aea5; display: grid; place-items: center; flex: none; position: relative; z-index: 1; }
.ps .pdot .ic { width: 16px; height: 16px; }
.ps::after { content: ''; position: absolute; left: 14.5px; top: 30px; bottom: 0; width: 2px; background: #f1ece7; }
.ps:last-child::after { display: none; }
.ps.done .pdot { background: var(--ok); color: #fff; }
.ps.done::after { background: var(--ok); }
.ps.cur .pdot { background: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(228, 87, 46, .18); animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(228, 87, 46, .08); } }
.ps b { display: block; padding-top: 4px; }
.ps small { color: var(--muted); }
.ps.todo b { color: var(--muted); font-weight: 600; }
.pix-box { text-align: center; }
.pix-box img { width: 220px; height: 220px; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); }
.pix-code { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; background: #f6f2ee; border-radius: 10px; padding: 10px; word-break: break-all; margin: 12px 0; text-align: left; max-height: 90px; overflow: auto; }
.cancel-box { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.notfound { text-align: center; padding: 22vh 20px; }
.notfound .nf-emoji { font-size: 60px; }
.notfound h1 { font-family: var(--display); }
.notfound .btn-main { display: inline-flex; flex: none; margin-top: 10px; }
.toast-m { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 600; z-index: 80; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: rise .2s ease; max-width: calc(100% - 32px); text-align: center; }
