/* Sushideli — cardápio de delivery */
:root {
  --bg: #0d0b0c;
  --bg-2: #141113;
  --surface: #1b1719;
  --surface-2: #241f22;
  --line: #2f292c;
  --text: #f6f1ea;
  --muted: #b3aaa3;
  --faint: #7d746e;
  --red: #ec4a43;
  --red-2: #ff5d55;
  --red-ink: #fff;
  --gold: #d1a86a;
  --gold-2: #e8c48c;
  --green: #3ecf7a;
  --amber: #f5b94a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- barra de status ---------- */
.statusbar {
  background: #0a0809; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.statusbar .wrap { display: flex; gap: 14px; align-items: center; justify-content: center; min-height: 34px; flex-wrap: wrap; padding-block: 4px; }
.statusbar b { color: var(--text); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 6px; box-shadow: 0 0 0 0 rgba(62, 207, 122, .6); animation: pulse 2s infinite; }
.dot.off { background: var(--red); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(62, 207, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 207, 122, 0); } }
.statusbar .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40; background: rgba(13, 11, 12, .92);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.header .grow { flex: 1; }
.icon-btn {
  height: 42px; min-width: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); padding: 0 12px; font-weight: 600; font-size: 14px;
}
.icon-btn svg { width: 20px; height: 20px; }
.cart-btn { background: var(--red); border-color: var(--red); color: #fff; }
.cart-btn .count {
  background: #fff; color: var(--red); border-radius: 999px; min-width: 20px; height: 20px; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.search-desktop { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 85% -10%, rgba(236, 74, 67, .22), transparent 60%),
              radial-gradient(700px 380px at -10% 120%, rgba(209, 168, 106, .16), transparent 60%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 28px 26px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 7.4vw, 56px); line-height: 1.02; margin: 0; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--red-2); }
.hero p.lead { color: var(--muted); font-size: 16px; margin: 10px 0 0; max-width: 520px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .12s ease, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(236, 74, 67, .35); }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.perks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.perk {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.perk svg { width: 16px; height: 16px; color: var(--gold); }
.hero-art { display: none; }

/* ---------- aviso / fechado ---------- */
.notice { margin: 14px 0 0; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice.closed { background: rgba(236, 74, 67, .1); border: 1px solid rgba(236, 74, 67, .35); }
.notice.info { background: rgba(209, 168, 106, .1); border: 1px solid rgba(209, 168, 106, .35); }

/* ---------- repetir pedido ---------- */
.reorder {
  margin-top: 18px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
}
.reorder .txt { flex: 1; min-width: 0; font-size: 14px; }
.reorder .txt small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reorder .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- nav de categorias ---------- */
.catnav {
  position: sticky; top: var(--header-h); z-index: 30; background: rgba(13, 11, 12, .95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.catnav .wrap { padding: 0; }
.catnav ul {
  list-style: none; margin: 0; padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
}
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a {
  display: block; white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
}
.catnav a.active { color: #fff; background: var(--red); border-color: var(--red); }

/* ---------- seções ---------- */
main { padding-bottom: 120px; }
.section { padding-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 0; letter-spacing: -.2px; }
.section h2 .em { color: var(--gold); }
.section-sub { color: var(--muted); font-size: 14px; margin: 2px 0 0; }

/* carrossel de destaques */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 76%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.rail::-webkit-scrollbar { display: none; }
.feat {
  scroll-snap-align: start; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .2s;
}
.feat:hover { border-color: rgba(209, 168, 106, .5); }
.feat .ph { position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.feat .ph img { width: 100%; height: 100%; object-fit: cover; }
.feat .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.feat h3 { font-size: 16px; margin: 0; line-height: 1.25; }
.feat .desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  background: var(--red); color: #fff; letter-spacing: .2px;
}
.badge.gold { background: var(--gold); color: #1a1006; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(209, 168, 106, .14); color: var(--gold-2); margin-bottom: 4px; }
.tag.red { background: rgba(236, 74, 67, .15); color: var(--red-2); }

/* lista de produtos */
.grid { display: grid; gap: 10px; }
.card {
  display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; text-align: left; width: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: border-color .2s, transform .12s; position: relative;
}
.card:hover { border-color: rgba(209, 168, 106, .45); }
.card:active { transform: scale(.995); }
.card h3 { font-size: 15.5px; margin: 0 0 4px; line-height: 1.25; font-weight: 650; }
.card .desc { overflow-wrap: anywhere; font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { margin-top: 8px; }
.card .ph { position: relative; width: 112px; height: 112px; border-radius: 12px; overflow: hidden; background: #fff; align-self: center; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph .off { position: absolute; top: 6px; left: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 7px; }
.add {
  position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); font-size: 22px; line-height: 1; font-weight: 500;
}
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 16px; font-weight: 800; color: var(--text); }
.price .now { color: var(--green); }
.price s { color: var(--faint); font-size: 13px; }
.price .from { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- confiança / rodapé ---------- */
.trust { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.trust div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 13px; color: var(--muted); }
.trust b { display: block; color: var(--text); font-size: 14px; margin: 6px 0 2px; }
.trust svg { width: 22px; height: 22px; color: var(--gold); }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 130px; color: var(--muted); font-size: 13px; }
footer .cols { display: grid; gap: 22px; }
footer h4 { color: var(--text); font-size: 14px; margin: 0 0 8px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; max-width: 300px; }
footer .logo { height: 70px; width: auto; margin-bottom: 10px; }
footer a { color: var(--gold-2); text-decoration: none; }
.legal { margin-top: 22px; font-size: 12px; color: var(--faint); }

/* ---------- barra flutuante da sacola ---------- */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center;
  gap: 12px; background: var(--red); color: #fff; border-radius: 16px; padding: 0 16px; height: 58px; box-shadow: 0 12px 30px rgba(236, 74, 67, .4);
  transform: translateY(140%); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); font-weight: 700; max-width: 560px; margin: 0 auto;
}
.cartbar.show { transform: none; }
.cartbar .qty { background: rgba(0, 0, 0, .2); border-radius: 8px; padding: 3px 9px; font-size: 14px; }
.cartbar .lbl { flex: 1; text-align: center; }
.cartbar.bump { animation: bump .4s; }
@keyframes bump { 30% { transform: scale(1.04); } }
.wa-float {
  position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 44; width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: var(--shadow); transition: bottom .3s;
}
.wa-float svg { width: 28px; height: 28px; color: #fff; }
body:not(.has-cart) .wa-float { bottom: calc(18px + env(safe-area-inset-bottom)); }

/* ---------- sheets (produto / sacola / checkout) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 60; opacity: 0; transition: opacity .25s; }
.overlay.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 94vh; max-height: 94dvh; background: var(--bg-2);
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  border: 1px solid var(--line); border-bottom: 0;
}
.sheet.show { transform: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 17px; flex: 1; }
.sheet-close { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }

/* produto */
.p-hero { position: relative; background: #fff; aspect-ratio: 16 / 11; max-height: 42vh; width: 100%; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; }
.p-hero .sheet-close { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .55); color: #fff; }
.p-info { padding: 16px; }
.p-info h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.2; }
.p-info .desc { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.step { border-top: 8px solid var(--bg); }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--surface); position: sticky; top: 0; z-index: 1; }
.step-head b { font-size: 15px; display: block; }
.step-head small { color: var(--muted); font-size: 12px; }
.req { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.req.need { background: var(--red); color: #fff; }
.req.ok { background: rgba(62, 207, 122, .16); color: var(--green); }
.step.shake .step-head { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt .nm { flex: 1; font-size: 14px; }
.opt .pr { font-size: 13px; color: var(--muted); display: block; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--faint); flex: none; display: grid; place-items: center; }
.opt.on .radio { border-color: var(--red); }
.opt.on .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; flex: none; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: var(--red-2); font-weight: 700; }
.stepper button[disabled] { color: var(--faint); cursor: default; }
.stepper span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.stepper.single button.minus { display: none; }
.note-box { padding: 16px; border-top: 8px solid var(--bg); }
.note-box label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 8px; }
textarea, .field input, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; outline: none;
  transition: border-color .2s; font-size: 16px;
}
textarea { resize: none; min-height: 70px; }
textarea:focus, .field input:focus, .field select:focus { border-color: var(--gold); }
.add-row { display: flex; gap: 10px; align-items: center; }
.add-row .stepper { padding: 5px; }
.add-row .btn { flex: 1; justify-content: space-between; padding: 0 18px; }

/* sacola */
.cart-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cart-item .ph { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.cart-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .inf { flex: 1; min-width: 0; }
.cart-item .nm { font-weight: 600; font-size: 14px; }
.cart-item .ops { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.cart-item .edit { font-size: 12px; color: var(--gold-2); text-decoration: underline; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--faint); margin: 0 auto 10px; }
.upsell { padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
.upsell h4 { margin: 0 16px 10px; font-size: 15px; }
.upsell .rail { margin: 0; grid-auto-columns: 132px; gap: 10px; padding-inline: 16px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; position: relative; }
.mini .ph { aspect-ratio: 1; background: #fff; }
.mini .ph img { width: 100%; height: 100%; object-fit: contain; }
.mini .t { padding: 8px 9px 10px; font-size: 12.5px; line-height: 1.25; }
.mini .t b { display: block; font-size: 13px; margin-top: 3px; }
.mini .add { width: 30px; height: 30px; font-size: 20px; top: 6px; right: 6px; bottom: auto; }
.totals { padding: 14px 16px; font-size: 14px; }
.totals .ln { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.totals .ln.total { color: var(--text); font-weight: 800; font-size: 17px; padding-top: 8px; }
.free { color: var(--green); font-weight: 700; }
.progress { margin: 12px 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.progress .bar { height: 6px; background: var(--surface-2); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: 99px; transition: width .4s; }

/* checkout */
.steps-ind { display: flex; gap: 6px; padding: 0 16px 12px; }
.steps-ind i { flex: 1; height: 4px; border-radius: 9px; background: var(--surface-2); }
.steps-ind i.on { background: var(--gold); }
.form { padding: 16px; display: grid; gap: 12px; }
.form h4 { margin: 8px 0 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.form h4 small { font-weight: 400; color: var(--muted); }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }
.field.err input { border-color: var(--red); }
.field .msg { color: var(--red-2); font-size: 12px; margin-top: 5px; display: none; }
.field.err .msg { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1.1fr 2fr; gap: 10px; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer; }
.pay-opt.on { border-color: var(--gold); background: rgba(209, 168, 106, .07); }
.pay-opt .t { flex: 1; font-size: 14px; }
.pay-opt .t small { display: block; color: var(--muted); font-size: 12px; }
.pay-opt svg { width: 26px; height: 26px; color: var(--gold); }
.summary-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.summary-mini .ln { display: flex; justify-content: space-between; padding: 2px 0; color: var(--muted); }
.summary-mini .ln.total { color: var(--text); font-weight: 800; font-size: 16px; margin-top: 4px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.secure svg { width: 14px; height: 14px; color: var(--green); }
.form-error { background: rgba(236, 74, 67, .12); border: 1px solid rgba(236, 74, 67, .4); color: #ffd2cf; border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* PIX */
.pix { padding: 18px 16px; text-align: center; }
.pix h3 { margin: 4px 0 4px; font-size: 20px; }
.pix p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.qr { background: #fff; border-radius: 14px; padding: 12px; width: 220px; height: 220px; margin: 0 auto 14px; display: grid; place-items: center; }
.qr img, .qr svg { width: 100%; height: 100%; }
.copy-box { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; align-items: center; }
.copy-box code { flex: 1; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.copy-box .btn { height: 42px; padding: 0 16px; font-size: 14px; }
.timer { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--amber); background: rgba(245, 185, 74, .1); border-radius: 999px; padding: 6px 12px; margin-bottom: 12px; }
.how { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.how ol { margin: 6px 0 0; padding-left: 18px; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; margin-top: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface-2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* busca */
.search-panel { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; }
.search-top { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.search-top input { flex: 1; height: 46px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); padding: 0 18px; font-size: 16px; outline: none; }
.search-results { overflow-y: auto; padding: 14px 16px 40px; }
.search-results .grid { max-width: 760px; margin: 0 auto; }

/* toast */
.toast {
  position: fixed; left: 50%; top: 16px; z-index: 90; transform: translate(-50%, -150%); background: #fff; color: #111; padding: 11px 16px;
  border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); transition: transform .3s; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #1b9e55; flex: none; }

/* ---------- celular: produtos mais perto do topo ---------- */
@media (max-width: 719px) {
  .statusbar { font-size: 12px; }
  .statusbar .wrap { gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
  .hide-xs { display: none; }
  .hero .wrap { padding-block: 18px 18px; gap: 0; }
  .hero h1 { font-size: 31px; }
  .hero p.lead { font-size: 14.5px; margin-top: 8px; }
  .hero-cta { margin-top: 14px; flex-wrap: nowrap; }
  .hero-cta .btn { height: 44px; padding: 0 16px; font-size: 14px; }
  .hero-cta .btn-primary { flex: 1; }
  .perks { margin-top: 12px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .perks::-webkit-scrollbar { display: none; }
  .perk { white-space: nowrap; font-size: 12.5px; padding: 6px 10px; }
  .section { padding-top: 24px; }
  .section h2 { font-size: 26px; }
}

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .rail { grid-auto-columns: 300px; margin: 0; padding-inline: 0; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  footer .cols { grid-template-columns: 1.2fr 1fr 1fr; }
  .sheet { left: 50%; right: auto; bottom: 50%; width: 560px; max-height: 88vh; border-radius: 22px; transform: translate(-50%, 60%); opacity: 0; transition: transform .3s, opacity .25s; border-bottom: 1px solid var(--line); }
  .sheet.show { transform: translate(-50%, 50%); opacity: 1; }
  .sheet.side { left: auto; right: 0; top: 0; bottom: 0; width: 440px; max-height: none; border-radius: 0; transform: translateX(100%); opacity: 1; }
  .sheet.side.show { transform: none; }
  .cartbar { display: none; }
  .wa-float, body:not(.has-cart) .wa-float { bottom: 22px; right: 22px; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .card { grid-template-columns: minmax(0, 1fr) 120px; }
  .card .ph { width: 120px; height: 120px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-block: 44px 40px; }
  .hero-art { display: block; justify-self: end; width: 100%; max-width: 420px; }
  .search-desktop { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
