/* =====================================================================
   Frozen Mart: deep green theme
   ===================================================================== */
:root {
  --g-950: #06231a;
  --g-900: #0a2e22;
  --g-800: #0f3d2e;
  --g-700: #145239;
  --g-600: #1b6a4a;
  --g-500: #24855d;
  --g-100: #dcebe3;
  --g-50:  #eef5f1;
  --gold:  #d8b56d;

  --bg: #f6f7f4;
  --card: #ffffff;
  --ink: #0f1d17;
  --muted: #5e6c65;
  --line: #e2e7e3;

  --ok: #1b6a4a;   --ok-bg: #e3f1e9;
  --low: #94600a;  --low-bg: #fbf0d9;
  --out: #a3362f;  --out-bg: #f9e5e3;

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 23, .05), 0 1px 3px rgba(15, 29, 23, .04);
  --shadow-md: 0 12px 32px rgba(15, 29, 23, .10);
  --shadow-lg: 0 28px 64px rgba(6, 35, 26, .25);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--g-500); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; }
svg { display: block; }
h1, h2, h3, h4 { letter-spacing: -.02em; }

.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--g-600); margin-bottom: 6px;
}

/* Promo bar */
.promo-bar {
  background: var(--g-950); color: #cfe3d8; font-size: 13px; padding: 9px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.promo-bar strong { color: #fff; }
.promo-bar .ic { color: var(--gold); width: 16px; height: 16px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  background: var(--g-800); color: #fff; border-radius: 11px;
}
.brand-logo svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--g-900); }
.brand-tag { font-size: 12px; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: #34433c; transition: color .15s; }
.nav a:hover { color: var(--g-600); }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--g-800); color: #fff; border: 0; border-radius: 10px; padding: 10px 12px 10px 14px;
  font-weight: 700; font-size: 14.5px; transition: background .15s;
}
.cart-btn:hover { background: var(--g-700); }
.cart-count {
  background: var(--gold); color: var(--g-950); border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 6px; font-size: 12.5px; font-weight: 800;
  display: grid; place-items: center;
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(36, 133, 93, .45), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(216, 181, 109, .10), transparent 60%),
    var(--g-900);
  padding: 72px 0 80px;
}
.hero::before {
  /* faint dotted texture */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
          mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: #d5e8dd; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(216, 181, 109, .2); }
.hero h1 {
  margin: 0 0 18px; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { margin: 0 0 30px; color: #c3d8cc; max-width: 540px; font-size: 17px; }
.search {
  position: relative; max-width: 560px; display: flex; align-items: center;
  background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}
.search-icon { position: absolute; left: 18px; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px;
  color: var(--ink); padding: 12px 12px 12px 42px;
}
.search-btn {
  flex: none; text-decoration: none; background: var(--g-700); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 11px 20px; border-radius: 8px; transition: background .15s;
}
.search-btn:hover { background: var(--g-600); }

.hero-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; padding: 10px 26px; backdrop-filter: blur(8px);
}
.hc-row { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hc-ic {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(216, 181, 109, .14); color: var(--gold);
}
.hc-ic svg { width: 22px; height: 22px; }
.hc-row strong { display: block; font-size: 15.5px; }
.hc-row span { color: #a9c3b5; font-size: 13.5px; }
.hc-foot { display: flex; align-items: center; gap: 8px; padding: 16px 0 12px; font-size: 13.5px; color: #c3d8cc; }

/* Shop section */
.main { padding-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2, .how h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--g-950); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card); color: #34433c;
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all .15s;
}
.chip:hover { border-color: var(--g-500); color: var(--g-700); }
.chip.active { background: var(--g-800); color: #fff; border-color: var(--g-800); }
.toolbar { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 12px 0 18px; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; font-weight: 600; color: #34433c; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: #cdd6d0; position: relative; transition: background .2s; }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s;
}
.toggle input:checked + .switch { background: var(--g-600); }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--g-500); outline-offset: 2px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; padding-bottom: 72px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.card.soldout { opacity: .62; }
.card.soldout:hover { transform: none; box-shadow: none; border-color: var(--line); }
.thumb {
  aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 68px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, #ffffff 0%, var(--g-50) 60%, var(--g-100) 100%);
}
.thumb .ph-emoji { filter: drop-shadow(0 10px 12px rgba(6, 35, 26, .15)); transition: transform .25s ease; }
.card:hover .thumb .ph-emoji { transform: scale(1.07); }
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .thumb .ph-img { transform: scale(1.05); }
.thumb::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 56px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .18), transparent); opacity: 0;
}
.thumb:has(.ph-img)::after { opacity: 1; }
.card.soldout .ph-img { filter: grayscale(.8); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: .01em;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.low { background: var(--low-bg); color: var(--low); }
.badge.out { background: var(--out-bg); color: var(--out); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-cat { font-size: 11.5px; color: var(--g-600); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.card-name { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; color: var(--g-950); }
.card-unit { font-size: 13px; color: var(--muted); }
.card-foot {
  margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.price { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--g-900); }
.add {
  background: var(--g-800); color: #fff; border: 0; border-radius: 9px; padding: 9px 15px;
  font-weight: 700; font-size: 13.5px; transition: background .15s, transform .1s;
}
.add:hover { background: var(--g-700); }
.add:active { transform: scale(.97); }
.add:disabled { background: #d3dad6; color: #75837c; cursor: not-allowed; }
.empty { color: var(--muted); text-align: center; padding: 32px 0; }

/* How it works */
.how { background: #fff; border-top: 1px solid var(--line); padding: 72px 0; text-align: center; }
.steps {
  list-style: none; padding: 0; margin: 40px 0 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left;
}
.steps li {
  position: relative; counter-increment: step; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.steps li::after {
  content: "0" counter(step); position: absolute; top: 22px; right: 26px;
  font-size: 32px; font-weight: 800; color: var(--g-100); letter-spacing: -.04em;
}
.step-ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--g-800); color: #fff; margin-bottom: 18px;
}
.step-ic svg { width: 22px; height: 22px; }
.steps h3 { margin: 0 0 6px; font-size: 17px; color: var(--g-950); }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Footer */
.footer { background: var(--g-950); color: #a9c3b5; font-size: 14px; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: 0; }
.footer p { margin: 0; }
.footer-brand .brand-logo { background: var(--g-700); }
.footer-brand .brand-name { color: #fff; }
.footer-about { margin-top: 14px !important; max-width: 300px; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 600; }
.footer-wa .ic { color: #4ade80; }
.footer-wa:hover { color: var(--gold); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: #7f9c8d; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 15;
  display: flex; align-items: center; gap: 8px;
  background: var(--g-700); color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 12px 18px 12px 14px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 30px rgba(6, 35, 26, .35); transition: transform .15s, background .15s;
}
.wa-float:hover { background: var(--g-600); transform: translateY(-2px); }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(6, 35, 26, .5); backdrop-filter: blur(2px); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%);
  background: var(--card); z-index: 30; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; color: var(--g-950); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.icon-btn:hover { background: var(--g-50); color: var(--g-800); }
.drawer-body { overflow-y: auto; padding: 16px 24px 28px; flex: 1; }
.free-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--g-50); color: var(--g-700); border: 1px solid var(--g-100);
  border-radius: 10px; padding: 11px 14px; font-size: 14px; margin-bottom: 6px;
}
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-emoji {
  width: 56px; height: 56px; border-radius: 12px; background: var(--g-50); display: grid; place-items: center;
  font-size: 28px; position: relative; overflow: hidden;
}
.cart-name { font-weight: 700; font-size: 15px; color: var(--g-950); }
.cart-price { font-size: 13px; color: var(--muted); }
.cart-price strong { color: var(--ink); }
.qty { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.qty button { width: 28px; height: 28px; border-radius: 7px; border: 0; background: transparent; font-weight: 700; font-size: 16px; color: var(--g-800); }
.qty button:hover:not(:disabled) { background: var(--g-50); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-empty { padding: 64px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cart-empty strong { color: var(--ink); font-size: 16px; }
.empty-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--g-50); color: var(--g-600);
  display: grid; place-items: center; margin-bottom: 10px;
}
.empty-icon svg { width: 28px; height: 28px; }

.checkout { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.checkout h3 { margin: 6px 0 0; font-size: 16px; color: var(--g-950); }
.checkout label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: #34433c; }
.checkout input:not([type="radio"]), .checkout textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: 11px 14px; border: 1px solid #d5ddd8; border-radius: 10px;
  background: #fff; transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--g-600); box-shadow: 0 0 0 3px rgba(27, 106, 74, .15); }
.radio-row { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-row legend { font-size: 13.5px; font-weight: 600; color: #34433c; margin-bottom: 6px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px;
  border: 1px solid #d5ddd8; border-radius: 10px; font-weight: 600; font-size: 14px; color: #34433c;
  cursor: pointer; transition: all .15s; background: #fff;
}
.seg small { background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.seg input:checked + span { border-color: var(--g-600); background: var(--g-50); color: var(--g-800); box-shadow: 0 0 0 1px var(--g-600); }
.seg input:focus-visible + span { outline: 2px solid var(--g-500); outline-offset: 2px; }

.totals { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; align-items: center; }
.totals .grand { font-weight: 800; font-size: 18px; color: var(--g-950); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.free-tag { background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 5px; letter-spacing: .05em; }
.primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--g-800); color: #fff; border: 0; border-radius: 11px; padding: 15px; font-weight: 700; font-size: 15.5px;
  transition: background .15s;
}
.primary:hover { background: var(--g-700); }
.hint { font-size: 12px; color: var(--muted); margin: 0; text-align: center; }

/* Receipt modal */
body.receipt-open { overflow: hidden; }
.receipt-modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(6, 35, 26, .65); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 32px 16px;
  animation: fadeIn .2s ease;
}
.receipt-wrap { position: relative; width: min(380px, 100%); animation: slideUp .3s cubic-bezier(.2, .8, .2, 1); }
.rcpt-x { position: absolute; top: -12px; right: -12px; z-index: 2; background: #fff; box-shadow: var(--shadow-md); border-radius: 50%; }

/* Crumpled-paper receipt */
.receipt {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 44px 34px 48px; color: #1c1c1c;
  font-family: "VT323", ui-monospace, Consolas, monospace; font-size: 20px; line-height: 1.25;
  text-transform: uppercase; letter-spacing: .02em;
  background: #ececec;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.receipt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .95; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='600'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.006 0.009' numOctaves='4' seed='8'/%3E%3CfeDiffuseLighting lighting-color='%23ffffff' surfaceScale='5' diffuseConstant='1.1'%3E%3CfeDistantLight azimuth='135' elevation='52'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: cover;
}
.receipt::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(90% 70% at 90% 100%, rgba(0, 0, 0, .08), transparent 70%);
}
.r-shop {
  margin: 0 0 14px; text-align: center; text-transform: none; letter-spacing: 0;
  font-family: "Caveat", cursive; font-weight: 500; font-size: 52px; line-height: 1;
}
.r-sub1 { text-align: center; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; letter-spacing: .01em; font-size: 15px; }
.r-sub2 { text-align: center; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 12px; margin-top: 2px; }
.r-order { margin: 30px 0 18px; }
.r-order-no { font-size: 23px; }
.r-order-meta { padding-left: 18px; }
.r-items { list-style: none; margin: 0 0 18px; padding: 0 0 0 36px; }
.r-items li { display: flex; justify-content: space-between; gap: 14px; }
.r-items li span:last-child { white-space: nowrap; }
.r-rule { border-top: 1.5px dashed #555; margin: 8px 0; }
.r-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.r-total { display: flex; justify-content: space-between; margin: 16px 0 6px; font-size: 34px; font-weight: 700; -webkit-text-stroke: .6px #1c1c1c; }
.r-customer { margin-top: 20px; font-size: 18px; color: #333; }
.r-customer div { display: flex; gap: 10px; }
.r-customer div span:first-child { flex: none; width: 76px; }
.r-customer div span:first-child::after { content: ":"; }
.r-customer div span:last-child { word-break: break-word; }
.r-foot {
  margin-top: 40px; text-align: center; line-height: 1.35;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .02em;
}
.receipt-actions { display: flex; gap: 10px; margin-top: 18px; }
.receipt-actions button { flex: 1; border-radius: 11px; padding: 13px; font-weight: 700; font-size: 15px; border: 0; }
.receipt-actions .ghost { background: #fff; color: var(--g-900); }
.receipt-actions .ghost:hover { background: var(--g-50); }
.receipt-actions .solid { background: var(--g-600); color: #fff; }
.receipt-actions .solid:hover { background: var(--g-500); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--g-900); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: transform .25s cubic-bezier(.2, .8, .2, 1); z-index: 40; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; padding: 6px 22px; }
  .hc-row { flex-direction: column; align-items: flex-start; gap: 10px; border-bottom: 0; }
  .hc-foot { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { height: 64px; }
  .brand-tag { display: none; }
  .cart-label { display: none; }
  .hero { padding: 44px 0 48px; }
  .hero p { font-size: 15.5px; }
  .hero-card { grid-template-columns: 1fr; padding: 4px 18px; }
  .hc-row { flex-direction: row; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .search-btn { display: none; }
  .main { padding-top: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .thumb { font-size: 52px; }
  .card-body { padding: 12px; }
  .card-name { font-size: 15px; }
  .price { font-size: 17px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .add { padding: 10px; }
  .how { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float { padding: 14px; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
  .receipt { padding: 34px 22px 38px; font-size: 18px; }
  .r-shop { font-size: 44px; }
  .r-items { padding-left: 16px; }
  .r-total { font-size: 28px; }
}

/* Print only the receipt */
@media print {
  body.receipt-open > *:not(.receipt-modal) { display: none !important; }
  body.receipt-open .receipt-modal { position: static; background: none; padding: 0; backdrop-filter: none; display: block; }
  body.receipt-open .receipt-wrap { margin: 0 auto; animation: none; }
  body.receipt-open .receipt { box-shadow: none; }
  body.receipt-open .rcpt-x, body.receipt-open .receipt-actions { display: none !important; }
  .receipt, .receipt::before, .receipt::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
