/* =========================================================
   Baghal Market — design tokens, shared components, storefront
   ========================================================= */
:root {
  --brand: #5b32d6;
  --brand-2: #7b58ee;
  --brand-3: #efe9ff;
  --ink: #241547;
  --ink-2: #3d2c62;
  --text: #4f4468;
  --muted: #8b819d;
  --muted-2: #a79db8;
  --bg: #fbfaff;
  --surface: #ffffff;
  --surface-2: #f7f3fd;
  --line: #ece6f6;
  --line-2: #f4effb;
  --accent: #ff7a2f;
  --accent-2: #ff4f6d;
  --accent-soft: #fff1e8;
  --green: #128a5b;
  --green-bg: #e6f8ef;
  --red: #dc4356;
  --red-bg: #ffecef;
  --warn: #b07716;
  --warn-bg: #fff5e3;
  --blue: #2563c9;
  --blue-bg: #eaf2ff;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(45, 27, 93, .05);
  --shadow-md: 0 14px 38px rgba(45, 27, 93, .09);
  --shadow-lg: 0 30px 70px rgba(35, 18, 78, .2);
  --font: 'Vazirmatn', Tahoma, sans-serif;
  --container: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  background:
    radial-gradient(ellipse 700px 420px at 12% -6%, #fff0db 0%, rgba(255, 240, 219, 0) 70%),
    radial-gradient(ellipse 760px 520px at 96% 4%, #f1e8ff 0%, rgba(241, 232, 255, 0) 70%),
    var(--bg);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
.ic { width: 1.35em; height: 1.35em; flex: 0 0 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
:focus-visible { outline: 3px solid #9b7bf2; outline-offset: 2px; border-radius: 6px; }
::selection { background: #d9c9ff; color: var(--ink); }
.skip-link { position: fixed; top: -60px; right: 16px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ---------- shared typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--brand); letter-spacing: .2px; margin-bottom: 6px; }
.eyebrow-light { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #ffe4a8; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 6px 14px; backdrop-filter: blur(4px); }
.section { margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.5px; line-height: 1.45; color: var(--ink); }
.section-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--brand); white-space: nowrap; padding: 8px 4px; }
.text-link .ic { width: 16px; height: 16px; }
.mini-link { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; color: var(--brand); padding: 4px; white-space: nowrap; }
.mini-link .ic { width: 14px; height: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 14px;
  font-size: 13px; font-weight: 800; line-height: 1.4;
  border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .18s, background .18s, color .18s;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn.accent { background: linear-gradient(135deg, #ff9a44, #ff5c39); color: #fff; box-shadow: 0 10px 24px rgba(255, 106, 57, .3); }
.btn.accent:hover { background: linear-gradient(135deg, #ffa858, #ff6c45); box-shadow: 0 12px 28px rgba(255, 106, 57, .38); }
.btn.accent:disabled { background: #e6e0ef; color: #a79db8; box-shadow: none; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: #d8ccf1; background: #fcfaff; }
.btn.ghost.danger { color: var(--red); border-color: #f6d3d9; }
.btn.ghost.danger:hover { background: var(--red-bg); }
.btn.light { background: #fff; color: var(--brand); box-shadow: 0 10px 24px rgba(20, 8, 50, .2); }
.btn.danger { background: var(--red); color: #fff; }
.btn.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 12px; border-radius: 12px; }
.btn.btn-block, .btn-block { width: 100%; }
.btn.grow { flex: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; }
.icon-btn:hover { transform: translateY(-2px); border-color: #d9cdf2; box-shadow: 0 8px 20px rgba(45, 27, 93, .1); }
.icon-btn .ic { width: 21px; height: 21px; }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn.sm .ic { width: 18px; height: 18px; }
.icon-btn.danger { color: var(--red); }
.icon-btn.danger:hover { background: var(--red-bg); border-color: #f6d3d9; }
.dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: var(--accent-2); border-radius: 50%; border: 2px solid #fff; }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.field > span { display: flex; align-items: center; gap: 4px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 13px;
  background: #fdfcff; padding: 11px 14px; font-size: 13px; font-weight: 500; color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; line-height: 1.9; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: #a98bf3; background: #fff; box-shadow: 0 0 0 4px rgba(122, 87, 238, .12); }
.field input[data-invalid], .field textarea[data-invalid] { border-color: var(--red); background: #fff8f9; }
.field.inline { flex-direction: row; align-items: center; }
.field.inline input, .field.inline select { min-height: 42px; }
.field.grow { flex: 1; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid .span-2 { grid-column: span 2; }
.field-help { font-size: 11px; color: var(--muted); margin: -2px 0 10px; }

/* ---------- alerts / chips ---------- */
.alert { display: flex; align-items: flex-start; gap: 9px; border-radius: 14px; padding: 12px 14px; font-size: 12px; line-height: 1.9; border: 1px solid transparent; }
.alert .ic { width: 19px; height: 19px; margin-top: 2px; }
.alert.warn { background: var(--warn-bg); border-color: #f6e2bb; color: #8a5d0e; }
.alert.soft { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.alert.ok { background: var(--green-bg); border-color: #c8ebd8; color: #0d6d47; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--chip-bg, var(--surface-2)); color: var(--chip, var(--ink-2)); border-radius: 999px; padding: 3px 10px; font-size: 10.5px; font-weight: 800; line-height: 1.9; white-space: nowrap; }
.status-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--chip, var(--brand)); }
.off-badge { position: absolute; top: 10px; right: 10px; z-index: 2; background: linear-gradient(135deg, #ff596c, #e72e55); color: #fff; font-size: 10.5px; font-weight: 900; border-radius: 8px; padding: 3px 7px; box-shadow: 0 4px 10px rgba(220, 40, 70, .25); }
.save-tag { font-size: 10.5px; font-weight: 800; color: var(--green); background: var(--green-bg); border-radius: 8px; padding: 2px 8px; }

/* ---------- product art / tints ---------- */
.product-art { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.product-art > span { font-size: 64px; line-height: 1; filter: drop-shadow(0 10px 12px rgba(60, 30, 10, .16)); transform: translateZ(0); transition: transform .3s var(--ease); }
.product-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.has-image > span { display: none; }
.product-art.has-image { background: #fff; }
.tint-fruits { background: linear-gradient(145deg, #fff3e7, #ffe2cf); }
.tint-dairy { background: linear-gradient(145deg, #eef5ff, #dfeaff); }
.tint-bakery { background: linear-gradient(145deg, #fff8e8, #ffedcc); }
.tint-drinks { background: linear-gradient(145deg, #eafaf5, #d8f4ec); }
.tint-snacks { background: linear-gradient(145deg, #fff0f4, #fce2ea); }
.tint-pantry { background: linear-gradient(145deg, #f5f1ff, #e9e2ff); }
.tint-care { background: linear-gradient(145deg, #ecf9ff, #ddf0fa); }
.tint-frozen { background: linear-gradient(145deg, #eef2ff, #e0e8ff); }

/* =========================================================
   TOP BAR + HEADER
   ========================================================= */
.topbar { background: linear-gradient(100deg, #241547 0%, #3b1f92 55%, #5b32d6 100%); color: #efe9ff; font-size: 11.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-note { display: flex; align-items: center; gap: 7px; font-weight: 600; min-width: 0; }
.topbar-note .ic { width: 15px; height: 15px; color: #ffc984; }
.topbar-note span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-meta { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar-hours { display: inline-flex; align-items: center; gap: 5px; color: #d9ccff; }
.topbar-hours .ic { width: 14px; height: 14px; }
.topbar-link { display: inline-flex; align-items: center; gap: 4px; color: #ffe3a6; font-weight: 700; }
.topbar-link .ic { width: 13px; height: 13px; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line-2); box-shadow: 0 4px 20px rgba(45, 27, 93, .04); }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 5px 8px rgba(255, 110, 45, .25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 25px; font-weight: 900; letter-spacing: -1px; color: var(--ink); }
.brand-text small { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.location-chip { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; min-width: 0; max-width: 260px; transition: border-color .18s, box-shadow .18s; }
.location-chip:hover { border-color: #d9cdf2; box-shadow: 0 4px 14px rgba(45, 27, 93, .07); }
.loc-icon { color: var(--brand); display: grid; place-items: center; }
.loc-icon .ic { width: 19px; height: 19px; }
.loc-text { display: flex; flex-direction: column; text-align: right; min-width: 0; line-height: 1.5; }
.loc-text small { font-size: 9.5px; color: var(--muted); }
.loc-text b { font-size: 11.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.loc-chevron { color: var(--muted); }
.loc-chevron .ic { width: 14px; height: 14px; }
.search-wrap { position: relative; flex: 1; min-width: 0; }
.search-box { width: 100%; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; min-height: 50px; padding: 0 16px; box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s; }
.search-box:focus-within { border-color: #7b58ee; box-shadow: 0 0 0 4px rgba(122, 87, 238, .12); }
.search-icon { color: var(--brand); display: grid; place-items: center; }
.search-icon .ic { width: 22px; height: 22px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13px; color: var(--ink); font-weight: 600; }
.search-box input::placeholder { color: var(--muted-2); font-weight: 500; }
.search-clear { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.search-clear:hover { background: #efe8fa; color: var(--ink); }
.search-clear .ic { width: 15px; height: 15px; }

/* search live popover */
.search-popover {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 100;
  background: #ffffff; border: 1.5px solid #ece4f9; border-radius: 20px;
  box-shadow: 0 18px 45px rgba(35, 18, 78, 0.16); padding: 16px;
  display: flex; flex-direction: column; gap: 14px; max-height: 480px; overflow-y: auto;
  animation: popIn .2s cubic-bezier(.22, .8, .3, 1);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-popover-sec { display: flex; flex-direction: column; gap: 9px; }
.search-popover-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.search-popover-head span { display: inline-flex; align-items: center; gap: 6px; }
.search-popover-head span .ic { width: 15px; height: 15px; color: var(--brand); }
.search-popover-head small { font-size: 11px; color: var(--muted); font-weight: 600; }
.search-clear-btn { font-size: 11px; font-weight: 700; color: var(--red); background: none; border: 0; padding: 2px 6px; cursor: pointer; }
.search-clear-btn:hover { text-decoration: underline; }
.search-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.schip {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: all .16s ease;
}
.schip:hover { background: #f3ecff; border-color: #d1bdf6; color: var(--brand); transform: translateY(-1px); }
.search-instant-list { display: flex; flex-direction: column; gap: 6px; }
.search-instant-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-radius: 14px; border: 1px solid #f6f3fc;
  background: #fdfcff; transition: all .15s ease; cursor: pointer;
}
.search-instant-item:hover { background: #f7f2ff; border-color: #e4d7fb; }
.search-instant-meta { display: flex; align-items: center; gap: 11px; min-width: 0; }
.search-instant-art { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.search-instant-info { display: flex; flex-direction: column; text-align: right; min-width: 0; }
.search-instant-name { font-size: 12.5px; font-weight: 850; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.search-instant-unit { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.search-instant-action { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-instant-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.search-instant-price b { font-size: 13.5px; font-weight: 900; color: var(--ink); }
.search-instant-price s { font-size: 10.5px; color: var(--muted); }
.search-instant-add {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #7b58ee);
  color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; transition: transform .15s;
}
.search-instant-add:hover { transform: scale(1.08); }
.search-instant-add .ic { width: 17px; height: 17px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--brand), #7b58ee); color: #fff; border-radius: 999px; min-height: 46px; padding: 0 16px 0 10px; font-size: 12.5px; font-weight: 800; box-shadow: 0 9px 22px rgba(91, 50, 214, .25); transition: transform .18s, box-shadow .18s; }
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(91, 50, 214, .32); }
.cart-btn-icon { display: grid; place-items: center; }
.cart-btn-icon .ic { width: 21px; height: 21px; }
.cart-badge { min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; background: #fff; color: var(--brand); border-radius: 999px; font-size: 11px; font-weight: 900; line-height: 1; }
.cart-btn.has-items .cart-badge { background: #ffdf6e; color: #6b3f00; }
.header-nav { border-top: 1px solid var(--line-2); }
.nav-scroll { display: flex; align-items: center; gap: 26px; min-height: 46px; overflow-x: auto; scrollbar-width: none; font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; transition: color .18s; }
.nav-scroll a:hover { color: var(--brand); }
.nav-scroll a:first-child { color: var(--brand); font-weight: 800; }
.nav-scroll .nav-hot { color: var(--accent-2); }
.nav-scroll .nav-hot .ic { width: 14px; height: 14px; }
.header-nav { display: block; }

/* store status banner */
.store-banner { background: var(--green-bg); border-bottom: 1px solid #cdeeda; transition: background .3s; }
.store-banner.is-closed { background: var(--warn-bg); border-color: #f3e2c1; }
.store-banner.is-paused { background: #f0edf7; border-color: #e3dcef; }
.store-banner-inner { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #18a56c; flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(24, 165, 108, .14); }
.is-closed .status-dot { background: #d19427; box-shadow: 0 0 0 4px rgba(209, 148, 39, .14); }
.is-paused .status-dot { background: #8b819d; box-shadow: 0 0 0 4px rgba(139, 129, 157, .14); }
.store-banner-copy { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.store-banner-copy b { font-weight: 900; color: #0d6d47; white-space: nowrap; }
.store-banner.is-closed .store-banner-copy b { color: #8a5d0e; }
.store-banner.is-paused .store-banner-copy b { color: #5d5273; }
.store-banner-copy span { color: #3f7d61; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-banner.is-closed .store-banner-copy span { color: #9a7229; }
.store-banner.is-paused .store-banner-copy span { color: #7a6f8e; }
.store-banner .mini-link { color: #0d6d47; }
.store-banner.is-closed .mini-link { color: #8a5d0e; }
.store-banner .status-dot { animation: pulseDot 2.4s infinite; }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 4px rgba(24, 165, 108, .14); } 50% { box-shadow: 0 0 0 7px rgba(24, 165, 108, .05); } }
.is-closed .status-dot { animation: none; }
.is-paused .status-dot { animation: none; }

/* =========================================================
   HERO
   ========================================================= */
.main { padding-top: 26px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(270px, .82fr); gap: 18px; }
.hero-main { position: relative; min-height: 398px; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 22px 50px rgba(54, 31, 118, .18); isolation: isolate; background: #2a165f; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), visibility .55s; z-index: 1; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-slide::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to left, rgba(25, 12, 58, .9) 0%, rgba(31, 16, 72, .66) 38%, rgba(31, 16, 72, .12) 72%, rgba(31, 16, 72, 0) 100%); }
.hero-slide::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 85% 110%, rgba(255, 122, 47, .35), transparent 55%); }
.hero-copy { position: absolute; inset-block: 0; right: 0; z-index: 3; width: 58%; padding: 40px 44px 58px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; }
.hero-copy h1, .hero-copy h2 { font-size: clamp(30px, 3.5vw, 45px); font-weight: 900; line-height: 1.55; letter-spacing: -1px; text-wrap: balance; margin: 12px 0 10px; color: #fff; }
.hero-copy p { font-size: 13px; line-height: 2; color: #e9e1ff; max-width: 330px; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.hero-cta .btn { min-height: 48px; border-radius: 999px; padding: 10px 24px; font-size: 13px; }
.hero-ghost { font-size: 12px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 2px; }
.hero-dots { position: absolute; z-index: 4; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .25s, background .25s; }
.hero-dots button.is-active { width: 28px; background: #fff; }
.hero-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side-card { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.side-status { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.side-status-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.status-orb { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--green-bg); color: var(--green); }
.status-orb .ic { width: 21px; height: 21px; }
.side-status.is-closed .status-orb { background: var(--warn-bg); color: var(--warn); }
.side-status.is-paused .status-orb { background: #f0edf7; color: #6d6183; }
.status-pill { font-size: 10.5px; font-weight: 900; border-radius: 999px; padding: 3px 10px; background: var(--green-bg); color: var(--green); }
.side-status.is-closed .status-pill { background: var(--warn-bg); color: var(--warn); }
.side-status.is-paused .status-pill { background: #f0edf7; color: #6d6183; }
.side-status h2 { font-size: 16px; font-weight: 900; line-height: 1.6; }
.side-status p { font-size: 11.5px; line-height: 1.9; color: var(--muted); }
.side-status-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.side-status-foot > span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.side-promo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(120deg, #ff8a35, #ff5a4a); border: 0; box-shadow: 0 14px 30px rgba(255, 106, 52, .25); }
.side-promo-icon { width: 40px; height: 40px; border-radius: 13px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: 0 0 auto; }
.side-promo-icon .ic { width: 22px; height: 22px; }
.side-promo b { display: block; font-size: 14px; font-weight: 900; }
.side-promo p { font-size: 10.5px; color: #fff4ef; line-height: 1.7; margin-top: 2px; }
.side-promo-shape { position: absolute; left: -30px; bottom: -50px; width: 130px; height: 130px; border: 22px solid rgba(255, 255, 255, .1); border-radius: 50%; }
.side-mini { padding: 14px 16px; display: grid; gap: 10px; background: rgba(255, 255, 255, .7); }
.side-mini > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.side-mini > div > span[data-icon] { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; }
.side-mini .ic { width: 19px; height: 19px; color: var(--green); }
.side-mini > div + div .ic { color: var(--brand); }
.side-mini b { grid-column: 2; grid-row: 1; font-size: 11.5px; font-weight: 800; }
.side-mini small { grid-column: 2; grid-row: 2; font-size: 9.5px; color: var(--muted); line-height: 1.5; }

/* perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.perk { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 15px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.perk-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: var(--brand-3); color: var(--brand); }
.perk:nth-child(2) .perk-icon { background: var(--green-bg); color: var(--green); }
.perk:nth-child(3) .perk-icon { background: var(--warn-bg); color: var(--warn); }
.perk:nth-child(4) .perk-icon { background: var(--accent-soft); color: #e96a25; }
.perk-icon .ic { width: 22px; height: 22px; }
.perk b { display: block; font-size: 12px; font-weight: 850; line-height: 1.6; }
.perk small { font-size: 10px; color: var(--muted); line-height: 1.6; }

/* =========================================================
   CATEGORIES
   ========================================================= */
.category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.category-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px 9px 12px; display: flex; flex-direction: column; align-items: center; gap: 7px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; min-width: 0; }
.category-card:hover, .category-card.is-active { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbb9f0; }
.category-card.is-active { background: #faf7ff; }
.cat-art { width: 100%; aspect-ratio: 1.18; border-radius: 15px; display: grid; place-items: center; font-size: 36px; line-height: 1; overflow: hidden; }
.cat-art span { filter: drop-shadow(0 6px 8px rgba(60, 30, 10, .14)); transition: transform .25s var(--ease); }
.category-card:hover .cat-art span { transform: scale(1.1) rotate(-3deg); }
.category-card b { font-size: 11.5px; font-weight: 850; text-align: center; line-height: 1.5; color: var(--ink-2); }
.category-card small { font-size: 9.5px; color: var(--muted); margin-top: -3px; }

/* =========================================================
   DEALS
   ========================================================= */
.deals-band { position: relative; overflow: hidden; border-radius: 32px; padding: 26px 26px 24px; background: linear-gradient(120deg, #fff2e8 0%, #ffe9ef 55%, #f4ecff 100%); border: 1px solid #ffe0d5; }
.deals-band::before { content: ''; position: absolute; left: -80px; top: -90px; width: 240px; height: 240px; border: 42px solid rgba(255, 255, 255, .55); border-radius: 50%; }
.deals-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.deals-title { display: flex; align-items: center; gap: 13px; }
.deals-badge { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #ff4f6d, #fa0f38); color: #fff; font-size: 10px; font-weight: 900; border-radius: 6px; padding: 2px 7px; margin-bottom: 4px; box-shadow: 0 4px 10px rgba(250, 15, 56, .25); }
.deals-badge .ic { width: 12px; height: 12px; }
.deal-spark { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, #ff8a3c, #ff4f6d); color: #fff; box-shadow: 0 8px 18px rgba(255, 94, 70, .28); }
.deal-spark .ic { width: 24px; height: 24px; }
.deals-title h2 { font-size: clamp(20px, 2.2vw, 27px); font-weight: 900; letter-spacing: -.4px; color: #7d2035; line-height: 1.3; }
.deals-title p { font-size: 11.5px; color: #a06a74; }
.deals-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.deals-countdown { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .9); border: 1.5px solid #ffccd7; border-radius: 12px; padding: 5px 9px; box-shadow: 0 4px 14px rgba(250, 15, 56, .08); }
.cd-label { font-size: 10.5px; font-weight: 800; color: #9b3b4f; margin-left: 3px; }
.cd-box { background: linear-gradient(135deg, #ff4060, #d91438); color: #fff; border-radius: 7px; padding: 2px 6px; font-size: 12px; font-weight: 900; min-width: 24px; text-align: center; }
.cd-sep { font-weight: 900; color: #d91438; }
.deals-count { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #9b3b4f; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 5px 12px; border: 1px solid #ffd5df; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; z-index: 1; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll-empty { font-size: 12px; color: var(--muted); padding: 20px 6px; }
.deal-card { flex: 0 0 178px; scroll-snap-align: start; background: #fff; border: 1px solid #f3e5f0; border-radius: 20px; padding: 10px; box-shadow: 0 8px 20px rgba(120, 50, 80, .06); display: flex; flex-direction: column; }
.deal-open { display: flex; flex-direction: column; align-items: stretch; gap: 2px; text-align: right; padding: 0; }
.deal-art { position: relative; border-radius: 14px; aspect-ratio: 1.15; overflow: hidden; display: block; }
.deal-art .product-art > span { font-size: 48px; }
.deal-art .off-badge { top: 7px; right: 7px; }
.deal-name { font-size: 11.5px; font-weight: 800; color: var(--ink-2); margin-top: 8px; line-height: 1.6; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-unit { font-size: 9.5px; color: var(--muted); }
.deal-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; line-height: 1.2; }
.price b { font-weight: 900; font-size: 17px; color: var(--ink); letter-spacing: -.3px; }
.price small { font-size: 9.5px; color: var(--muted); font-weight: 500; }
.price s { font-size: 10px; color: var(--muted-2); }
.deal-card .add-btn, .deal-card .qty-stepper { transform: scale(.92); transform-origin: left bottom; }

/* =========================================================
   PRODUCTS
   ========================================================= */
.filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; margin-bottom: 14px; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 11.5px; font-weight: 700; transition: .18s; white-space: nowrap; }
.filter-chip span { font-size: 10px; color: var(--muted); }
.filter-chip:hover { border-color: #d5c8f0; color: var(--brand); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip.is-active span { color: #d8cdf6; }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.product-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px 10px 13px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; min-width: 0; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #e0d5f5; }
.product-card.is-out { opacity: .78; }
.product-media { position: relative; border-radius: 16px; aspect-ratio: 1.06; overflow: hidden; }
.product-media .product-art { height: 100%; }
.product-media .product-art > span { transition: transform .35s var(--ease); }
.product-card:hover .product-media .product-art > span { transform: scale(1.08) rotate(-2deg); }
.product-hit { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; }
.out-badge { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(36, 21, 71, .5); color: #fff; font-size: 12px; font-weight: 900; backdrop-filter: blur(2px); }
.product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: right; font-size: 12.5px; font-weight: 800; line-height: 1.7; color: var(--ink-2); min-height: 42px; margin-top: 9px; padding: 0; }
.product-unit { font-size: 9.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 9px; }
.price-now { display: flex; align-items: baseline; gap: 4px; line-height: 1.2; }
.price-now b { font-size: 17.5px; font-weight: 900; color: var(--ink); letter-spacing: -.5px; }
.price-now small { font-size: 9.5px; color: var(--muted); font-weight: 500; }
.price-now s { display: none; }
.product-price-row .price { flex-direction: column; align-items: flex-start; gap: 1px; }
.product-price-row .price s { font-size: 10px; }
.add-btn { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(145deg, #ff9a44, #ff5c39); color: #fff; display: grid; place-items: center; box-shadow: 0 7px 16px rgba(255, 106, 57, .3); transition: transform .18s, box-shadow .18s; }
.add-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 20px rgba(255, 106, 57, .38); }
.add-btn .ic { width: 20px; height: 20px; }
.add-btn.wide { width: auto; padding: 0 18px; border-radius: 14px; gap: 6px; }
.qty-stepper { display: inline-flex; align-items: center; justify-content: space-between; gap: 2px; background: #f7f2ff; border: 1px solid #e9e0f9; border-radius: 999px; padding: 3px; min-width: 94px; }
.qty-stepper button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(45, 27, 93, .07); }
.qty-stepper button[data-inc] { background: linear-gradient(145deg, var(--brand), #7b58ee); color: #fff; }
.qty-stepper .ic { width: 16px; height: 16px; }
.qty-stepper span { font-size: 12px; font-weight: 900; min-width: 20px; text-align: center; color: var(--ink); }
.sold-out { font-size: 10.5px; font-weight: 800; color: var(--red); background: var(--red-bg); border-radius: 8px; padding: 4px 7px; white-space: nowrap; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.empty-state { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 22px; padding: 50px 24px; color: var(--muted); }
.empty-state .empty-emoji { font-size: 44px; display: block; margin-bottom: 8px; }
.empty-state h3 { font-size: 17px; color: var(--ink); font-weight: 900; margin-bottom: 4px; }
.empty-state p { font-size: 12px; margin-bottom: 16px; }
.empty-state.small { padding: 30px 18px; }

/* =========================================================
   OWNER BAND + INFO + FOOTER
   ========================================================= */
.owner-band { margin-top: 64px; border-radius: 32px; padding: 38px 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; position: relative; overflow: hidden; background: linear-gradient(115deg, #241547 0%, #3c1d83 55%, #6a3fe0 100%); color: #fff; box-shadow: 0 26px 60px rgba(45, 27, 93, .28); }
.owner-band::before { content: ''; position: absolute; left: -80px; bottom: -120px; width: 320px; height: 320px; border: 54px solid rgba(255, 255, 255, .06); border-radius: 50%; }
.owner-copy { position: relative; z-index: 1; }
.owner-copy h2 { font-size: clamp(24px, 2.7vw, 34px); font-weight: 900; line-height: 1.5; margin: 8px 0 10px; letter-spacing: -.6px; }
.owner-copy p { font-size: 12.5px; line-height: 2; color: #d9ccfa; max-width: 470px; margin-bottom: 20px; }
.owner-art { position: relative; z-index: 1; min-height: 190px; }
.owner-card { position: absolute; top: 12px; right: 8%; width: min(280px, 92%); background: #fff; color: var(--ink); border-radius: 17px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; box-shadow: 0 18px 38px rgba(12, 4, 40, .3); transform: rotate(-2deg); }
.owner-card.second { top: 104px; right: 20%; transform: rotate(2deg); }
.owner-card-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.owner-card-dot.green { background: var(--green); }
.owner-card b { display: block; font-size: 12px; }
.owner-card small { font-size: 10px; color: var(--muted); }
.owner-card-check { margin-right: auto; width: 30px; height: 30px; border-radius: 10px; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.owner-card-check .ic { width: 16px; height: 16px; }
.owner-blob { position: absolute; inset: 20px 10% 0 0; background: radial-gradient(circle at 60% 40%, rgba(255, 154, 68, .35), transparent 60%); filter: blur(20px); }
.info-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); }
.info-card-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; }
.info-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; background: var(--brand-3); color: var(--brand); display: grid; place-items: center; }
.info-icon .ic { width: 21px; height: 21px; }
.info-card:nth-child(2) .info-icon { background: var(--accent-soft); color: #e96a25; }
.info-card:nth-child(3) .info-icon { background: var(--green-bg); color: var(--green); }
.info-card h2 { font-size: 15px; font-weight: 900; }
.info-card p { font-size: 10.5px; color: var(--muted); line-height: 1.7; }
.hours-list { display: flex; flex-direction: column; gap: 7px; }
.hours-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; padding-bottom: 7px; border-bottom: 1px dashed var(--line-2); }
.hours-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list b { font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours-list b.closed { color: var(--red); }
.info-note { margin-top: 12px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--text); line-height: 1.8; }
.ticks .ic { width: 17px; height: 17px; color: var(--green); margin-top: 3px; flex: 0 0 auto; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-list a, .contact-address { display: flex; align-items: flex-start; gap: 9px; padding: 8px; border-radius: 11px; transition: background .18s; }
.contact-list a:hover { background: var(--surface-2); }
.contact-list .ic { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.contact-list b { display: block; font-size: 12px; font-weight: 800; }
.contact-list small { font-size: 9.5px; color: var(--muted); }

.site-footer { margin-top: 72px; background: #fff; border-top: 1px solid var(--line); padding-top: 42px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.brand-footer .brand-text strong { font-size: 22px; }
.footer-brand p { font-size: 11.5px; color: var(--muted); line-height: 2; margin-top: 10px; max-width: 320px; }
.footer-col h3 { font-size: 13px; font-weight: 900; margin-bottom: 10px; color: var(--ink); }
.footer-col a, .footer-col p { display: block; font-size: 11.5px; color: var(--muted); line-height: 2.2; transition: color .18s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line-2); margin-top: 30px; padding-top: 18px; padding-bottom: 20px; font-size: 10.5px; color: var(--muted); }
.footer-bottom b { color: var(--brand); }

/* =========================================================
   MOBILE NAV
   ========================================================= */
.mobile-nav { display: none; }

/* =========================================================
   DRAWER
   ========================================================= */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(25, 13, 52, .48); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.overlay.is-visible { opacity: 1; }
.drawer { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(430px, 100vw); background: #fcfaff; display: flex; flex-direction: column; transform: translateX(-104%); transition: transform .34s var(--ease); box-shadow: 30px 0 80px rgba(20, 8, 50, .25); visibility: hidden; }
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; font-weight: 900; line-height: 1.4; }
.drawer-head h2 small { font-size: 11px; color: var(--muted); font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.drawer-foot { background: #fff; border-top: 1px solid var(--line); padding: 14px 18px 16px; box-shadow: 0 -10px 30px rgba(45, 27, 93, .06); }
.cart-empty { text-align: center; padding: 48px 16px; }
.cart-empty-icon { width: 76px; height: 76px; border-radius: 24px; background: var(--brand-3); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.cart-empty-icon .ic { width: 34px; height: 34px; }
.cart-empty h3 { font-size: 17px; font-weight: 900; }
.cart-empty p { font-size: 11.5px; color: var(--muted); margin: 4px 0 18px; }
.cart-item { display: grid; grid-template-columns: 74px 1fr; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 10px; margin-bottom: 9px; }
.cart-item-art { border-radius: 12px; overflow: hidden; }
.cart-item-art .product-art > span { font-size: 38px; }
.cart-item-main { display: flex; flex-direction: column; min-width: 0; }
.cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-item-top b { font-size: 12px; font-weight: 800; line-height: 1.7; }
.link-danger { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted-2); transition: .18s; flex: 0 0 auto; }
.link-danger:hover { background: var(--red-bg); color: var(--red); }
.link-danger .ic { width: 16px; height: 16px; }
.cart-item-main > small { font-size: 9.5px; color: var(--muted); }
.cart-item-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 7px; }
.cart-item-price { font-size: 13px; font-weight: 900; color: var(--ink); }
.cart-item-price small { font-size: 9px; color: var(--muted); font-weight: 500; }
.cart-item .qty-stepper { min-width: 84px; padding: 2px; }
.cart-item .qty-stepper button { width: 28px; height: 28px; }
.cart-meter { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 10.5px; color: var(--text); margin-bottom: 10px; }
.cart-meter > span { display: flex; align-items: center; gap: 6px; }
.cart-meter .ic { width: 16px; height: 16px; color: var(--brand); }
.cart-meter.ok { background: var(--green-bg); border-color: #cdeeda; color: #0d6d47; }
.cart-meter.ok .ic { color: var(--green); }
.cart-meter.warn { background: var(--warn-bg); border-color: #f3e2c1; color: #8a5d0e; }
.cart-meter.warn .ic { color: var(--warn); }
.meter { height: 6px; background: #e3dcf2; border-radius: 99px; overflow: hidden; margin-top: 7px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #8a68f0, var(--brand)); border-radius: 99px; transition: width .4s; }
.cart-savings-banner {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #ecfdf5; border: 1.5px solid #a7f3d0; border-radius: 14px;
  color: #047857; font-size: 12px; font-weight: 850; margin-bottom: 12px;
}
.cart-savings-banner .ic { width: 18px; height: 18px; flex: 0 0 auto; color: #059669; }

.cart-coupon-box {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; margin: 10px 0 12px;
}
.cart-coupon-wrap { display: flex; gap: 8px; }
.cart-coupon-input {
  flex: 1; min-height: 40px; border: 1px solid var(--line); border-radius: 11px;
  padding: 0 12px; font-size: 12px; font-weight: 700; background: #fff;
  letter-spacing: .5px; text-transform: uppercase;
}
.cart-coupon-input:focus { outline: 0; border-color: #8a68f0; }
.cart-coupon-btn {
  padding: 0 16px; border-radius: 11px; font-size: 12px; font-weight: 850;
  background: var(--brand); color: #fff; cursor: pointer; transition: background .15s;
}
.cart-coupon-btn:hover { background: var(--brand-2); }
.cart-coupon-applied {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #f3ecff; border: 1.5px dashed var(--brand-2);
  border-radius: 12px; font-size: 11.5px; font-weight: 800; color: var(--brand);
  margin-top: 8px;
}
.cart-coupon-remove {
  font-size: 11px; color: var(--red); font-weight: 800; cursor: pointer; background: none; border: 0; padding: 0 4px;
}
.cart-coupon-remove:hover { text-decoration: underline; }

.cart-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text); padding: 4px 0; }
.cart-sum-row b { font-weight: 800; color: var(--ink); }
.cart-sum-row.discount-row { color: var(--green); }
.cart-sum-row.discount-row b { color: var(--green); }
.cart-sum-row.final { border-top: 1px dashed var(--line); margin-top: 5px; padding-top: 9px; font-size: 14px; font-weight: 900; color: var(--ink); }
.cart-sum-row.final b { color: var(--accent-2); font-size: 17px; }
.drawer-foot .btn { margin-top: 10px; }
.cart-why, .cart-foot-note { display: flex; align-items: flex-start; gap: 6px; font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 8px; }
.cart-why .ic, .cart-foot-note .ic { width: 14px; height: 14px; margin-top: 2px; flex: 0 0 auto; }
.cart-why { color: #8a5d0e; }

/* Mobile Floating Cart Bar */
.mobile-floating-cart {
  position: fixed; bottom: calc(68px + max(12px, env(safe-area-inset-bottom, 0px)));
  left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 480px;
  z-index: 68; background: #ffffff; border: 2px solid var(--brand);
  border-radius: 20px; box-shadow: 0 16px 40px rgba(35, 18, 78, 0.22);
  padding: 10px 14px; display: flex; align-items: center; justify-content: space-between;
  animation: slideUpMfc .25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpMfc {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.mfc-summary { display: flex; align-items: center; gap: 11px; }
.mfc-count-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px;
  border-radius: 999px; background: var(--brand-3); color: var(--brand);
  font-size: 11.5px; font-weight: 900;
}
.mfc-count-pill .ic { width: 15px; height: 15px; }
.mfc-price-wrap { display: flex; flex-direction: column; text-align: right; line-height: 1.35; }
.mfc-price { font-size: 13.5px; font-weight: 900; color: var(--ink); }
.mfc-saving { font-size: 10px; font-weight: 800; color: var(--green); }
.mfc-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 18px;
  border-radius: 14px; background: linear-gradient(135deg, #ff9a44, #ff5c39);
  color: #fff; font-size: 12.5px; font-weight: 900; box-shadow: 0 5px 16px rgba(255, 92, 57, 0.35);
  cursor: pointer; border: 0; transition: transform .15s;
}
.mfc-btn:active { transform: scale(.97); }
.mfc-btn .ic { width: 16px; height: 16px; }

/* Saved Address List */
.saved-address-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.saved-addr-card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fdfcff; cursor: pointer; transition: all .16s ease;
}
.saved-addr-card:hover { border-color: #cbbaf3; background: #faf7ff; }
.saved-addr-card.is-active { border-color: var(--brand); background: var(--brand-3); }
.saved-addr-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: right; }
.saved-addr-title { font-size: 12.5px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.saved-addr-badge { font-size: 9.5px; font-weight: 800; color: var(--brand); background: #fff; border: 1px solid #d5c4f7; border-radius: 999px; padding: 1px 7px; }
.saved-addr-text { font-size: 11.5px; color: var(--text); line-height: 1.6; }
.saved-addr-del { color: var(--muted); font-size: 12px; cursor: pointer; background: none; border: 0; padding: 4px; }
.saved-addr-del:hover { color: var(--red); }
.saved-addr-empty { font-size: 11.5px; color: var(--muted); text-align: center; padding: 8px 0 14px; }

/* =========================================================
   MODALS
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(24, 12, 50, .55); backdrop-filter: blur(5px); opacity: 0; transition: opacity .22s; overflow-y: auto; }
.modal.show { opacity: 1; }
.modal-card { position: relative; width: min(560px, 100%); max-height: min(90dvh, 900px); background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; transform: translateY(12px) scale(.99); transition: transform .24s var(--ease); }
.modal.show .modal-card { transform: none; }
.modal-card.modal-lg { width: min(940px, 100%); }
.modal-card.modal-sm { width: min(460px, 100%); }
.modal-close { position: absolute; top: 14px; left: 14px; z-index: 3; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 15px; border-bottom: 1px solid var(--line-2); }
.modal-head h2 { font-size: 21px; font-weight: 900; line-height: 1.4; letter-spacing: -.3px; }
.modal-body { padding: 18px 24px 24px; overflow-y: auto; }
.modal-body > * + * { margin-top: 14px; }
.form-error { display: flex; align-items: flex-start; gap: 8px; background: var(--red-bg); border: 1px solid #f6d0d7; color: #a52a3c; border-radius: 12px; padding: 10px 12px; font-size: 11.5px; font-weight: 600; line-height: 1.8; }
.form-error .ic, .alert .ic { flex: 0 0 auto; }
.fine-print { font-size: 10px; color: var(--muted); line-height: 1.8; text-align: center; margin-top: 8px; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; padding: 8px 4px; }
.detail-media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1; }
.detail-media .product-art > span { font-size: 128px; }
.detail-media .off-badge.lg { top: 14px; right: 14px; font-size: 12px; padding: 5px 10px; border-radius: 10px; }
.detail-info { display: flex; flex-direction: column; }
.detail-cat { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--brand); }
.detail-info h2 { font-size: clamp(21px, 3vw, 27px); font-weight: 900; line-height: 1.5; letter-spacing: -.4px; margin: 5px 0 2px; }
.detail-unit { font-size: 11px; color: var(--muted); }
.detail-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.detail-price .price-now b { font-size: 27px; }
.detail-price s { color: var(--muted-2); font-size: 12px; }
.detail-desc { font-size: 12.5px; color: var(--text); line-height: 2; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0; }
.detail-facts li { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.detail-facts .ic { width: 15px; height: 15px; color: var(--green); }
.detail-actions { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 12px; }
.detail-actions .action-box { flex: 1; }
.detail-actions .add-btn { width: 100%; border-radius: 14px; }
.detail-actions .qty-stepper { width: 100%; min-width: 0; }
.detail-actions .btn { min-height: 46px; }

/* checkout */
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 18px; }
.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend { font-size: 14px; font-weight: 900; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.legend-num { width: 23px; height: 23px; border-radius: 8px; background: var(--brand-3); color: var(--brand); display: inline-grid; place-items: center; font-size: 11px; font-weight: 900; }
.field-group .field + .field { margin-top: 11px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body { display: flex; flex-direction: column; gap: 2px; background: #fcfaff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; min-height: 78px; transition: .18s; }
.choice-icon { color: var(--muted); margin-bottom: 2px; }
.choice-icon .ic { width: 20px; height: 20px; }
.choice-body b { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.choice-body small { font-size: 9.5px; color: var(--muted); line-height: 1.6; }
.choice input:checked + .choice-body { border-color: var(--brand); background: #f8f4ff; box-shadow: 0 0 0 3px rgba(122, 87, 238, .1); }
.choice input:checked + .choice-body .choice-icon { color: var(--brand); }
.choice input:focus-visible + .choice-body { outline: 3px solid #9b7bf2; outline-offset: 2px; }
.chip-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-choice { position: relative; cursor: pointer; }
.chip-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-choice > span { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 6px 12px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-size: 11px; font-weight: 700; color: var(--text); transition: .18s; }
.chip-choice > span .ic { width: 15px; height: 15px; color: var(--muted); }
.chip-choice > span small { font-size: 9px; color: var(--muted); font-weight: 500; }
.chip-choice input:checked + span { border-color: var(--brand); background: #f8f4ff; color: var(--brand); box-shadow: 0 0 0 3px rgba(122, 87, 238, .08); }
.chip-choice input:checked + span .ic { color: var(--brand); }
.chip-choice input:focus-visible + span { outline: 3px solid #9b7bf2; outline-offset: 2px; }
.chip-choice.pay > span { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 12px; min-height: 58px; }
.checkout-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 10px; }
.summary-box { background: #faf7ff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.summary-box h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 900; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.summary-box h3 span { font-size: 10px; color: var(--muted); font-weight: 600; }
.summary-items { display: flex; flex-direction: column; gap: 5px; max-height: 190px; overflow-y: auto; padding: 8px 0; }
.summary-items li { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--text); }
.summary-items li small { color: var(--muted); }
.summary-items li b { font-weight: 700; white-space: nowrap; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); padding: 3px 0; }
.sum-row b { color: var(--ink-2); font-weight: 700; }
.sum-row.final { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; color: var(--ink); font-size: 14px; font-weight: 900; }
.sum-row.final b { color: var(--accent-2); font-size: 17px; }
.sum-note { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--muted); margin-top: 8px; }
.sum-note .ic { width: 14px; height: 14px; }
.aside-note { display: flex; align-items: flex-start; gap: 8px; background: var(--green-bg); border: 1px solid #cdeeda; border-radius: 13px; padding: 10px 12px; font-size: 9.5px; color: #2a7353; line-height: 1.8; }
.aside-note .ic { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }

/* tracking */
.success-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, #e7f8ef, #f3fff7); border: 1px solid #c8ebd8; border-radius: 16px; padding: 13px 15px; }
.success-check { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: 0 0 auto; animation: popIn .45s var(--ease); }
.success-check .ic { width: 22px; height: 22px; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-banner h3 { font-size: 14px; font-weight: 900; color: #0d6d47; }
.success-banner p { font-size: 10px; color: #3f7d61; line-height: 1.7; }
.track-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; background: var(--surface-2); border-radius: 15px; padding: 13px 15px; }
.track-head h3 { font-size: 24px; font-weight: 900; letter-spacing: -.5px; }
.track-head small { font-size: 10px; color: var(--muted); }
.track-status { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.track-status small { font-size: 10px; color: var(--muted); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.timeline li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 0 0 16px 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; right: 11px; top: 23px; bottom: -1px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: #bfe8d0; }
.tl-dot { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: #fff; position: relative; z-index: 1; }
.tl-dot .ic { width: 12px; height: 12px; }
.timeline li.done .tl-dot { background: var(--green); border-color: var(--green); }
.timeline li.current .tl-dot { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 50, 214, .12); }
.timeline li.current .tl-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline li b { font-size: 12px; font-weight: 800; display: block; color: var(--ink-2); }
.timeline li small { font-size: 9.5px; color: var(--muted); }
.timeline li.done b { color: var(--green); }
.track-note { display: flex; align-items: flex-start; gap: 7px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 10.5px; color: var(--text); line-height: 1.8; }
.track-note .ic { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.track-card { border: 1px solid var(--line); border-radius: 15px; padding: 13px; }
.track-card h4 { font-size: 12px; font-weight: 900; margin-bottom: 8px; color: var(--ink-2); }
.track-items { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.track-items li { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--text); }
.track-items li small { color: var(--muted); }
.track-items li b { font-weight: 700; white-space: nowrap; }
.track-line { display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; color: var(--text); line-height: 1.8; margin-bottom: 5px; }
.track-line .ic { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; margin-top: 2px; }
.track-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.track-actions .btn { min-height: 44px; }

/* account */
.profile-card { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 16px; padding: 13px 15px; }
.profile-avatar { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.profile-avatar .ic { width: 23px; height: 23px; }
.profile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profile-main b { font-size: 13px; font-weight: 900; }
.profile-main small { font-size: 10.5px; color: var(--muted); }
.profile-main span { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btn { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; font-size: 10.5px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.mini-btn:hover { border-color: #d5c8f0; background: #faf7ff; }
.mini-btn .ic { width: 14px; height: 14px; }
.account-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.account-list-head h3 { font-size: 15px; font-weight: 900; }
.account-list-head span { font-size: 10.5px; color: var(--muted); }
.order-list { display: flex; flex-direction: column; gap: 9px; }
.order-row { border: 1px solid var(--line); border-radius: 15px; padding: 12px 14px; }
.order-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-row-head > div { display: flex; align-items: center; gap: 8px; }
.order-code { font-weight: 900; font-size: 12px; }
.order-row-head > small { font-size: 9.5px; color: var(--muted); }
.order-row-mid { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 7px; }
.order-row-mid b { color: var(--ink); font-size: 13px; }
.order-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 8px; }
.order-row-foot > span { font-size: 9.5px; color: var(--muted); }
.account-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 14px; }
.account-foot small { font-size: 9.5px; color: var(--muted); line-height: 1.7; max-width: 55%; text-align: left; }

/* loyalty club card */
.loyalty-card { position: relative; display: flex; gap: 12px; margin-top: 14px; border-radius: 18px; padding: 14px 16px; overflow: hidden; color: #fff;
  background: var(--tier, var(--brand));
  background: linear-gradient(135deg, var(--tier, var(--brand)), color-mix(in srgb, var(--tier, var(--brand)) 62%, #2a1560)); }
.loyalty-orb { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.loyalty-orb .ic { width: 22px; height: 22px; color: #fff; }
.loyalty-main { flex: 1; min-width: 0; }
.loyalty-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.loyalty-top b { font-size: 12.5px; font-weight: 900; }
.loyalty-tier { font-size: 9.5px; font-weight: 800; color: var(--tier); background: var(--tier-bg); border-radius: 999px; padding: 3px 9px; }
.loyalty-points { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.loyalty-points b { font-size: 22px; font-weight: 900; }
.loyalty-points small { font-size: 10px; opacity: .85; }
.loyalty-points span { font-size: 10px; opacity: .85; margin-inline-start: auto; }
.loyalty-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); margin-top: 10px; overflow: hidden; }
.loyalty-bar i { display: block; height: 100%; background: #fff; border-radius: 999px; }
.loyalty-hint { display: block; font-size: 9.5px; opacity: .9; margin-top: 6px; }
.loyalty-redeem { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.16); font-size: 10px; font-weight: 700; }
.loyalty-redeem .ic { width: 14px; height: 14px; }
.loyalty-redeem b { font-weight: 900; }

/* checkout loyalty redeem box */
.co-loyalty { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; background: var(--surface-2); }
.co-loyalty-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.co-loyalty-head b { font-size: 12px; font-weight: 900; }
.co-loyalty-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; }
.co-loyalty-badge .ic { width: 12px; height: 12px; }
.co-loyalty-pts { font-size: 10px; color: var(--muted); margin-inline-start: auto; }
.co-loyalty-toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.co-loyalty-toggle input { width: 17px; height: 17px; accent-color: var(--brand); flex: 0 0 auto; }
.co-loyalty-toggle .ic { width: 15px; height: 15px; color: var(--brand); }
.co-loyalty-toggle small { font-weight: 600; color: var(--green); }
.co-loyalty-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 9px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.co-loyalty-hint .ic { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }

/* toast */
.toast-stack { position: fixed; z-index: 200; bottom: 22px; right: 50%; transform: translateX(50%); display: flex; flex-direction: column-reverse; gap: 8px; align-items: center; pointer-events: none; width: min(420px, calc(100vw - 24px)); }
.toast { display: flex; align-items: center; gap: 8px; background: #241547; color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 11.5px; font-weight: 600; box-shadow: 0 16px 40px rgba(20, 8, 50, .3); opacity: 0; transform: translateY(14px); transition: .25s var(--ease); max-width: 100%; }
.toast.show { opacity: 1; transform: none; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: #9b7bf2; flex: 0 0 auto; }
.toast-success .toast-dot { background: #45d18c; }
.toast-error .toast-dot { background: #ff6b7f; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(250px, .8fr); }
  .hero-copy { padding: 32px 34px 52px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(28px, 3.6vw, 38px); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-card:first-child { grid-column: span 2; }
  .owner-band { padding: 32px 34px; }
}
@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; gap: 10px; padding-block: 10px; min-height: unset; }
  .brand { order: 1; }
  .header-actions { order: 2; margin-right: auto; }
  .location-chip { order: 3; max-width: 100%; }
  .search-box { order: 4; flex-basis: 100%; }
  .header-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 360px; }
  .hero-side { display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
  .side-status { gap: 4px; }
  .side-mini { align-content: center; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: span 3; display: flex; gap: 24px; align-items: center; }
  .footer-grid .footer-col:last-child h3 { margin: 0; }
}
@media (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .side-mini { grid-column: span 2; grid-template-columns: 1fr 1fr; display: grid; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-aside { position: static; }
  .product-detail { grid-template-columns: .9fr 1.1fr; gap: 16px; }
  .detail-media .product-art > span { font-size: 96px; }
  .track-grid { grid-template-columns: 1fr; }
  .owner-band { grid-template-columns: 1fr; }
  .owner-art { min-height: 150px; display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card:first-child { grid-column: auto; }
}
@media (max-width: 780px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .container { padding-inline: 14px; }
  .topbar-inner { min-height: 32px; font-size: 10px; }
  .topbar-meta { display: none; }
  .header-inner { gap: 8px; padding-block: 9px; }
  .brand-text strong { font-size: 21px; }
  .brand-text small { display: none; }
  .brand-mark svg { width: 33px; height: 33px; }
  .header-actions { gap: 6px; }
  .header-actions .admin-link { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn .ic { width: 19px; height: 19px; }
  .cart-btn { min-height: 40px; padding: 0 12px 0 7px; gap: 6px; }
  .cart-btn-text { display: none; }
  .cart-badge { min-width: 21px; height: 21px; font-size: 10px; }
  .location-chip { padding: 6px 10px; border-radius: 12px; flex: 1; max-width: none; }
  .loc-text small { display: none; }
  .loc-text b { max-width: none; }
  .search-box { min-height: 47px; }
  .search-box input { font-size: 12px; }
  .store-banner-inner { min-height: 40px; font-size: 10.5px; gap: 7px; }
  .store-banner-copy { gap: 5px; }
  .store-banner-copy span { white-space: nowrap; }
  .store-banner .mini-link { display: none; }
  .main { padding-top: 14px; }
  .hero-main { min-height: 290px; border-radius: 26px; }
  .hero-copy { width: 66%; padding: 22px 18px 44px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(23px, 6.4vw, 30px); margin: 8px 0 6px; }
  .hero-copy p { font-size: 10.5px; line-height: 1.85; max-width: 210px; }
  .eyebrow-light { font-size: 9.5px; padding: 4px 10px; }
  .hero-cta { margin-top: 13px; gap: 10px; }
  .hero-cta .btn { min-height: 40px; padding: 8px 16px; font-size: 11px; }
  .hero-ghost { font-size: 10px; }
  .hero-slide::before { background: linear-gradient(to left, rgba(25, 12, 58, .94) 0%, rgba(31, 16, 72, .7) 50%, rgba(31, 16, 72, .16) 85%, transparent); }
  .hero-dots { bottom: 11px; }
  .hero-side { gap: 9px; grid-template-columns: 1fr 1fr; }
  .side-status { padding: 13px; grid-column: span 2; }
  .side-status h2 { font-size: 14px; }
  .side-status p { font-size: 10.5px; }
  .status-orb { width: 33px; height: 33px; border-radius: 11px; }
  .side-promo { padding: 12px 13px; }
  .side-promo b { font-size: 12px; }
  .side-promo p { font-size: 9px; }
  .side-promo-icon { width: 34px; height: 34px; }
  .side-mini { grid-column: span 2; padding: 11px 13px; gap: 7px; }
  .side-mini b { font-size: 10.5px; }
  .side-mini small { font-size: 9px; }
  .perks { gap: 8px; margin-top: 14px; }
  .perk { padding: 10px; gap: 8px; border-radius: 15px; }
  .perk-icon { width: 34px; height: 34px; border-radius: 11px; }
  .perk-icon .ic { width: 18px; height: 18px; }
  .perk b { font-size: 10.5px; }
  .perk small { font-size: 8.5px; }
  .section { margin-top: 38px; }
  .section-head { margin-bottom: 14px; gap: 10px; align-items: flex-start; }
  .section-head h2 { font-size: 19px; }
  .section-head p { font-size: 10.5px; }
  .text-link { font-size: 10.5px; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .category-card { padding: 7px 6px 9px; border-radius: 16px; gap: 5px; }
  .cat-art { border-radius: 11px; font-size: 29px; }
  .category-card b { font-size: 10px; }
  .category-card small { font-size: 8px; }
  .deals-band { padding: 16px 13px; border-radius: 22px; margin-inline: 0; }
  .deals-head { margin-bottom: 12px; }
  .deal-spark { width: 37px; height: 37px; border-radius: 12px; }
  .deals-title { gap: 9px; }
  .deals-title h2 { font-size: 16px; }
  .deals-title p { font-size: 9.5px; }
  .deals-count { font-size: 9px; padding: 4px 9px; }
  .deal-card { flex-basis: 148px; padding: 8px; border-radius: 16px; }
  .deal-art .product-art > span { font-size: 41px; }
  .deal-name { font-size: 10px; min-height: 30px; }
  .deal-unit { font-size: 8.5px; }
  .price b { font-size: 14px; }
  .deal-card .add-btn { width: 34px; height: 34px; }
  .deal-card .qty-stepper { min-width: 78px; }
  .deal-card .qty-stepper button { width: 26px; height: 26px; }
  .filter-scroll { margin-bottom: 10px; }
  .filter-chip { min-height: 36px; font-size: 10.5px; padding: 6px 11px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-card { padding: 8px 8px 11px; border-radius: 17px; }
  .product-media { border-radius: 13px; aspect-ratio: 1.1; }
  .product-media .product-art > span { font-size: 52px; }
  .product-name { font-size: 11px; min-height: 37px; margin-top: 7px; }
  .product-unit { font-size: 8.5px; }
  .price-now b { font-size: 15px; }
  .price-now small { font-size: 8.5px; }
  .add-btn { width: 38px; height: 38px; }
  .qty-stepper { min-width: 84px; }
  .qty-stepper button { width: 28px; height: 28px; }
  .qty-stepper .ic { width: 14px; height: 14px; }
  .owner-band { padding: 24px 20px; border-radius: 24px; margin-top: 38px; }
  .owner-copy h2 { font-size: 22px; }
  .owner-copy p { font-size: 11px; }
  .owner-copy .btn { min-height: 42px; font-size: 11.5px; }
  .info-grid { gap: 10px; }
  .info-card { padding: 15px; border-radius: 18px; }
  .site-footer { margin-top: 44px; padding-top: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: span 2; }
  .footer-grid .footer-col:last-child { grid-column: span 2; flex-wrap: wrap; gap: 12px; }
  .footer-grid .footer-col:last-child h3 { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 4px; align-items: flex-start; padding-bottom: 12px; }
  .mobile-nav {
    display: grid; position: fixed; z-index: 70; left: 50%; transform: translateX(-50%);
    bottom: max(10px, env(safe-area-inset-bottom, 0px)); width: calc(100% - 22px); max-width: 480px;
    grid-template-columns: repeat(5, 1fr); align-items: center; gap: 2px; padding: 7px 7px;
    background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 22px; box-shadow: 0 16px 42px rgba(35, 18, 78, .2); backdrop-filter: blur(18px);
  }
  .mnav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; color: var(--muted); font-size: 9px; font-weight: 700; padding: 2px; border-radius: 12px; }
  .mnav-item .ic { width: 22px; height: 22px; }
  .mnav-item.active, .mnav-item:hover { color: var(--brand); }
  .mnav-cart { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 58px; height: 58px; margin: -22px auto 0; border-radius: 50%; background: linear-gradient(145deg, #ff9a44, #ff5c39); color: #fff; box-shadow: 0 12px 26px rgba(255, 92, 57, .4); border: 3px solid #fff; position: relative; }
  .mnav-cart .ic { width: 23px; height: 23px; }
  .mnav-cart small { font-size: 8px; font-weight: 800; }
  .mnav-cart-badge { position: absolute; top: -4px; left: -4px; background: #fff; color: var(--accent-2); border-radius: 999px; min-width: 19px; height: 19px; display: grid; place-items: center; font-size: 9px; font-weight: 900; padding: 0 4px; border: 1px solid #ffe0d8; }
  .drawer { width: 100%; max-width: 100%; border-radius: 0; }
  .drawer-head { padding: 16px 16px 12px; }
  .drawer-foot { padding: 12px 15px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card, .modal-card.modal-lg, .modal-card.modal-sm { width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; margin-top: auto; }
  .modal-head { padding: 17px 16px 12px; }
  .modal-head h2 { font-size: 18px; }
  .modal-body { padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .modal-close { top: 10px; left: 10px; }
  .product-detail { grid-template-columns: 1fr; gap: 12px; padding: 0; }
  .detail-media { aspect-ratio: 1.45; }
  .detail-media .product-art > span { font-size: 96px; }
  .detail-info h2 { font-size: 21px; }
  .detail-desc { font-size: 11.5px; }
  .detail-facts { margin: 10px 0; }
  .detail-actions { position: sticky; bottom: 0; background: #fff; padding: 10px 0 0; margin-top: 8px; }
  .field-row { grid-template-columns: 1fr; gap: 10px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .span-2 { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .checkout-form { gap: 15px; }
  .summary-items { max-height: 150px; }
  .track-head { flex-direction: column; gap: 8px; }
  .track-status { flex-direction: row; align-items: center; }
  .track-actions { justify-content: stretch; }
  .track-actions .btn { flex: 1; font-size: 11px; padding: 8px 10px; }
  .profile-card { flex-wrap: wrap; }
  .profile-main { width: calc(100% - 60px); flex: 0 0 auto; }
  .profile-card .mini-btn { margin-right: 58px; }
  .account-foot { flex-direction: column; align-items: flex-start; }
  .account-foot small { max-width: 100%; text-align: right; }
  .toast-stack { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .admin-link { display: none; }
}
@media (max-width: 560px) {
  .hero-copy { width: 72%; }
  .hero-main { min-height: 268px; }
  .hero-copy p { display: none; }
  .hero-cta .btn { min-height: 38px; }
  .product-grid { gap: 8px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perk { padding: 9px 8px; }
  .perk-icon { width: 31px; height: 31px; border-radius: 10px; }
  .perk b { font-size: 10px; }
  .perk small { display: none; }
  .side-mini { display: none; }
  .hero-side { grid-template-columns: 1fr; }
  .side-status, .side-promo { grid-column: auto; }
  .deals-band { border-radius: 20px; }
  .deals-title h2 { font-size: 15px; }
  .deals-count { display: none; }
  .deal-card { flex-basis: 142px; }
  .owner-band { padding: 22px 17px; }
  .owner-copy h2 { font-size: 20px; }
  .owner-copy .btn { width: 100%; }
  .info-card h2 { font-size: 14px; }
  .checkout-aside { order: -1; }
  .choice-grid { grid-template-columns: 1fr; }
  .chip-choices { gap: 6px; }
  .chip-choice > span { font-size: 10px; min-height: 37px; }
  .track-grid { gap: 9px; }
  .order-row-foot { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-grid .footer-col:last-child { grid-column: auto; display: block; }
  .footer-grid .footer-col:last-child h3 { margin-bottom: 6px; }
}
@media (max-width: 380px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy { width: 80%; }
  .hero-copy h1, .hero-copy h2 { font-size: 22px; }
  .hero-ghost { display: none; }
  .brand-text strong { font-size: 19px; }
  .loc-text b { font-size: 10.5px; }
  .price-now b { font-size: 14px; }
  .product-name { font-size: 10.5px; min-height: 35px; }
  .deals-title p { display: none; }
  .drawer-head h2 { font-size: 18px; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item-art .product-art > span { font-size: 33px; }
  .qty-stepper { min-width: 78px; }
  .qty-stepper button { width: 25px; height: 25px; }
  .checkout-grid { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   LIVE ORDER STRIP (customer app)
   ========================================================= */
.live-order {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 12px; padding: 10px 14px; text-align: right;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); color: var(--ink); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.live-order:hover { border-color: #c9b8f8; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.live-order[hidden] { display: none; }
.live-order-orb {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center; background: var(--brand-3); color: var(--brand);
}
.live-order-orb .ic { width: 19px; height: 19px; }
.live-order-main { flex: 1; min-width: 0; }
.live-order-main b { display: block; font-size: 12px; font-weight: 850; }
.live-order-main small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.live-order-steps { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.live-order-steps i { width: 18px; height: 4px; border-radius: 99px; background: #e7e1f4; }
.live-order-steps i.done { background: var(--brand); }
.live-order-steps i.current { background: var(--accent); }
.live-order-go { color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.live-order-go .ic { width: 18px; height: 18px; }

/* =========================================================
   INVOICE / THERMAL RECEIPT (print)
   ========================================================= */
.print-root { display: none; }
.receipt { color: #000; background: #fff; font-family: Vazirmatn, Tahoma, sans-serif; }
.receipt-head { text-align: center; padding-bottom: 6px; border-bottom: 1px dashed #000; }
.receipt-store { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.2px; }
.receipt-head small { display: block; font-size: 9px; margin-top: 2px; }
.receipt-head span { display: block; font-size: 8.5px; line-height: 1.7; margin-top: 1px; }
.receipt-title { display: flex; align-items: center; justify-content: space-between; margin: 7px 0 5px; font-size: 10px; }
.receipt-title b { font-size: 11px; }
.receipt-title span { border: 1px solid #000; border-radius: 4px; padding: 1px 6px; font-size: 8.5px; }
.receipt-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; font-size: 8.5px; padding-bottom: 6px; border-bottom: 1px dashed #000; }
.receipt-meta > div { display: flex; justify-content: space-between; gap: 4px; }
.receipt-meta > div.wide { grid-column: span 2; display: block; }
.receipt-meta > div.wide b { display: block; margin-top: 1px; font-weight: 700; }
.receipt-meta span { color: #444; }
.receipt-meta b { font-weight: 800; }
.receipt-table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 8.5px; }
.receipt-table th { text-align: right; font-size: 8px; font-weight: 700; border-bottom: 1px solid #000; padding: 3px 2px; }
.receipt-table th:nth-child(2), .receipt-table td:nth-child(2) { text-align: center; width: 34px; }
.receipt-table th:last-child, .receipt-table td:last-child { text-align: left; width: 66px; }
.receipt-table td { padding: 3px 2px; border-bottom: 1px dotted #bbb; vertical-align: top; }
.receipt-table td small { display: block; font-size: 7px; color: #555; }
.receipt-table td b { font-weight: 700; }
.receipt-totals { display: grid; gap: 2px; font-size: 9px; padding-top: 3px; }
.receipt-totals > div { display: flex; justify-content: space-between; gap: 8px; }
.receipt-totals .discount b { color: #000; }
.receipt-totals .receipt-total { margin-top: 4px; padding-top: 5px; border-top: 1.5px solid #000; font-size: 11.5px; font-weight: 900; }
.receipt-pay { display: flex; justify-content: space-between; font-size: 8.5px; margin-top: 5px; padding-top: 4px; border-top: 1px dashed #000; }
.receipt-note { font-size: 8px; margin-top: 4px; line-height: 1.6; }
.receipt-bars { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin: 8px 0 2px; padding-top: 4px; border-top: 1px dashed #000; }
.receipt-bars i { display: block; height: 100%; background: #000; }
.receipt-foot { text-align: center; font-size: 8.5px; margin-top: 4px; }
.receipt-foot p { font-size: 9px; font-weight: 700; margin-bottom: 2px; }
.receipt-foot small { font-size: 7px; color: #333; }
.receipt.paper-80mm { width: 74mm; }
.receipt.paper-58mm { width: 52mm; font-size: 90%; }
.receipt.paper-58mm .receipt-bars { height: 20px; }
.receipt.paper-a5 { width: 100%; max-width: 148mm; padding: 4mm; }
.receipt.paper-a5 .receipt-table { font-size: 10px; }

@media print {
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body.is-printing > *:not(#printRoot) { display: none !important; }
  body.is-printing #printRoot { display: block !important; }
  body.is-printing .receipt { margin: 0 auto; box-shadow: none; }
  .receipt.paper-80mm { width: auto; max-width: 74mm; }
  .receipt.paper-58mm { width: auto; max-width: 52mm; }
  .receipt.paper-a5 { width: auto; max-width: 148mm; padding: 0; }
  .receipt { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================
   Map picker + delivery-area geo
   ========================================================= */
.map-picker {
  position: relative;
  z-index: 0;
  isolation: isolate;
  height: 320px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.map-picker.sm { height: 210px; }
.map-picker .leaflet-container { height: 100%; width: 100%; background: #e9e5f1; font-family: var(--font); }
.map-picker .leaflet-control-attribution { font-size: 9px; background: rgba(255, 255, 255, .78); }
.map-picker .leaflet-bar a { color: var(--ink); }
.map-fallback {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid #f0dcae;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  text-align: center;
}
.geo-box {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.geo-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.geo-head b { font-size: 13px; font-weight: 800; color: var(--ink); }
.geo-head-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 7px 15px rgba(91, 50, 214, .28);
}
.geo-head-icon .ic { width: 15px; height: 15px; }
.geo-status {
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 11px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.geo-status.is-in { color: var(--green); background: var(--green-bg); border-color: #b7e6cf; }
.geo-status.is-out { color: var(--red); background: var(--red-bg); border-color: #f6c3cb; }
.geo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.geo-actions .fine-print { margin: 0; text-align: right; flex: 1 1 150px; }
.saved-addr-out {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid #f6c3cb;
  border-radius: 999px;
  padding: 1px 7px;
}
@media (max-width: 640px) {
  .map-picker { height: 260px; }
  .map-picker.sm { height: 190px; }
}
