/* ==========================================================================
   أسواق الوفرة — المتجر الإلكتروني (مدعوم بواسطة Store Pro)
   هوية: برتقالي #ea580c + أخضر طازج #16a34a + خلفية كريمية #fffaf3
   ========================================================================== */
:root {
  --brand: #ea580c;
  --brand-600: #c2410c;
  --brand-700: #9a3412;
  --brand-soft: #fff1e6;
  --green: #16a34a;
  --green-600: #15803d;
  --green-soft: #dcfce7;
  --forest: #0f2a1b;
  --forest-2: #163b27;
  --cream: #fffaf3;
  --cream-2: #fdf3e4;
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-2: #fffaf3;
  --border: #f0e6d8;
  --border-2: #e7dccb;
  --text: #1c1917;
  --text-2: #6b5e52;
  --muted: #a8998a;
  --navy: #0f2a1b;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(68, 40, 12, .06);
  --shadow: 0 6px 20px rgba(68, 40, 12, .08);
  --shadow-lg: 0 20px 44px rgba(68, 40, 12, .14);
  --header-h: 72px;
}

html { scroll-behavior: smooth; }
body.wf { background: var(--bg); color: var(--text); overflow-x: hidden; }
body.wf.no-scroll { overflow: hidden; }
.wf img { max-width: 100%; }
.wf button { font: inherit; }
.wf input, .wf select, .wf textarea { font: inherit; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.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 { max-width: 1240px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; padding: 10px 20px; font-weight: 700; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(234, 88, 12, .25); }
.btn-primary:hover { background: var(--brand-600); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(22, 163, 74, .22); }
.btn-green:hover { background: var(--green-600); }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand-600); }
.btn-soft:hover { background: #ffe4cc; }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { background: var(--cream-2); }
.btn-outline { border-color: var(--border-2); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; box-shadow: none; }
.btn.disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--text); position: relative; flex-shrink: 0; transition: .15s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-600); }
.link-arrow svg { width: 17px; height: 17px; }

/* ---------- Badges ---------- */
.badge { font-weight: 700; }
.badge svg { width: 13px; height: 13px; }
.badge-green { background: var(--green-soft); color: var(--green-600); }
.badge-orange { background: var(--brand-soft); color: var(--brand-600); }
.badge-dark { background: var(--forest); color: #fff; }
.badge-muted { background: #f5f0e8; color: var(--text-2); }

/* ---------- Top strip & header ---------- */
.topstrip { background: var(--forest); color: #e7f5ec; font-size: 13px; }
.topstrip .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topstrip span { display: inline-flex; align-items: center; gap: 6px; }
.topstrip svg { width: 15px; height: 15px; color: #86efac; }
.topstrip a { color: #fff; font-weight: 700; }
.topstrip .ts-side { display: flex; gap: 18px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.hd-main { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.logo svg { width: 44px; height: 44px; flex-shrink: 0; }
.logo .lg-txt b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--text); }
.logo .lg-txt small { display: block; font-size: 11px; color: var(--green-600); font-weight: 700; letter-spacing: .3px; }
.hd-search { flex: 1; min-width: 0; position: relative; max-width: 520px; }
.hd-search input { width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--border-2); background: var(--cream); padding: 0 48px 0 110px; outline: none; transition: .15s; }
.hd-search input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(234,88,12,.12); }
.hd-search > svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.hd-search button { position: absolute; left: 4px; top: 4px; bottom: 4px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; padding: 0 18px; cursor: pointer; }
.hd-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.hd-login .lbl, .hd-whole .lbl { display: inline; }
.cart-btn .cnt { position: absolute; top: -4px; left: -4px; min-width: 20px; height: 20px; border-radius: 999px; padding: 0 5px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.cart-btn .cnt:empty, .cart-btn .cnt[data-n="0"] { display: none; }
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.menu-btn { display: none; }

.mode-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #f5ede1; border: 1px solid var(--border); flex-shrink: 0; }
.mode-switch button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mode-switch button svg { width: 15px; height: 15px; }
.mode-switch button.on { background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.mode-switch button.on[data-mode="wholesale"] { background: var(--forest); color: #fff; }

.hd-nav { border-top: 1px solid var(--border); }
.hd-nav .container { display: flex; align-items: center; gap: 6px; min-height: 48px; }
.hd-nav nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.hd-nav nav::-webkit-scrollbar { display: none; }
.hd-nav nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 700; font-size: 14px; white-space: nowrap; }
.hd-nav nav a svg { width: 16px; height: 16px; }
.hd-nav nav a:hover { background: var(--cream-2); color: var(--text); }
.hd-nav nav a.active { background: var(--brand-soft); color: var(--brand-600); }
.hd-nav nav a.hot { color: #dc2626; }
.loc-chip { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--border-2); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; color: var(--text-2); max-width: 100%; min-width: 0; }
.loc-chip svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.loc-chip b { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-chip:hover { border-color: var(--brand); }

/* Mobile menu */
.mm-backdrop { position: fixed; inset: 0; background: rgba(28, 25, 23, .45); z-index: 90; opacity: 0; pointer-events: none; transition: .2s; }
.mm-backdrop.show { opacity: 1; pointer-events: auto; }
.mobile-menu { position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 88vw); background: #fff; z-index: 95; transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.mobile-menu.show { transform: none; }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mm-head .logo svg { width: 36px; height: 36px; }
.mm-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.mm-body nav { display: flex; flex-direction: column; gap: 2px; }
.mm-body nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: var(--text); font-weight: 700; }
.mm-body nav a svg { width: 19px; height: 19px; color: var(--brand); }
.mm-body nav a.active { background: var(--brand-soft); color: var(--brand-600); }
.mm-body .mode-switch { align-self: flex-start; }
.mm-body .loc-chip { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: 28px; font-weight: 800; margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--green-600); background: var(--green-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.eyebrow svg { width: 14px; height: 14px; }
.bg-white { background: #fff; }
.bg-cream2 { background: var(--cream-2); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background-color: #7c2d12; background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(67, 20, 7, .92) 0%, rgba(124, 45, 18, .78) 45%, rgba(15, 42, 27, .35) 100%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: #fdba74; }
.hero p.lead { font-size: 18px; color: #ffedd5; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.hero-badges svg { width: 15px; height: 15px; color: #86efac; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; }
.hero-stats small { color: #fed7aa; font-size: 13px; }

/* Location picker card */
.loc-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); min-width: 0; }
.loc-card h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.loc-card h3 svg { color: var(--brand); width: 22px; height: 22px; }
.loc-card .tabs2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; background: var(--cream-2); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.loc-card .tabs2 button { border: 0; background: transparent; border-radius: 9px; padding: 8px; font-weight: 700; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.loc-card .tabs2 button svg { width: 16px; height: 16px; }
.loc-card .tabs2 button.on { background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.serve-box { margin-top: 14px; border-radius: 14px; background: var(--cream); border: 1px solid var(--border); padding: 14px; }
.serve-box .sb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.serve-box .sb-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.serve-box .sb-ic svg { width: 20px; height: 20px; }
.serve-box .sb-top b { display: block; }
.serve-box .sb-top small { color: var(--text-2); font-size: 12px; }
.serve-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.serve-grid div { background: #fff; border-radius: 10px; padding: 8px; text-align: center; border: 1px solid var(--border); min-width: 0; }
.serve-grid small { display: block; color: var(--muted); font-size: 11px; }
.serve-grid b { font-size: 14px; }
.serve-warn { margin-top: 10px; font-size: 13px; color: #b45309; background: #fef3c7; border-radius: 10px; padding: 8px 10px; display: flex; gap: 6px; align-items: flex-start; }
.serve-warn svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field label .req { color: var(--brand); }
.input, .select, .textarea { width: 100%; min-width: 0; height: 46px; border: 1.5px solid var(--border-2); border-radius: 12px; padding: 0 14px; background: #fff; color: var(--text); outline: none; transition: .15s; }
.textarea { height: auto; padding: 10px 14px; min-height: 80px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(234,88,12,.12); }
.input.err, .select.err { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err-msg { font-size: 12px; color: #dc2626; display: none; }
.field.has-err .err-msg { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; position: relative; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 3px; flex-shrink: 0; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 12px; text-align: center; color: var(--text); transition: .18s; min-width: 0; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, #fff); }
.cat-card .ce { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; display: grid; place-items: center; font-size: 32px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.cat-card b { display: block; font-size: 14px; }
.cat-card small { color: var(--muted); font-size: 12px; }

/* ---------- Product cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.p-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.p-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: .18s; min-width: 0; position: relative; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.p-card .p-tile { display: grid; place-items: center; aspect-ratio: 4 / 3; font-size: 54px; background: radial-gradient(circle at 30% 25%, #fff 0%, color-mix(in srgb, var(--c) 16%, #fff) 70%); position: relative; }
.p-card .p-tile .emo { filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); transition: transform .2s; }
.p-card:hover .p-tile .emo { transform: scale(1.08) rotate(-4deg); }
.p-flags { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.p-flags .badge { font-size: 11px; padding: 2px 8px; }
.p-off { background: #dc2626; color: #fff; }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-body .p-brand { font-size: 12px; color: var(--muted); font-weight: 700; }
.p-body h3 { font-size: 14.5px; font-weight: 700; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.p-body h3 a { color: var(--text); }
.p-body h3 a:hover { color: var(--brand-600); }
.p-unit { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.p-unit svg { width: 13px; height: 13px; }
.p-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.p-price b { font-size: 19px; font-weight: 800; color: var(--text); }
.p-price b small { font-size: 12px; font-weight: 700; color: var(--text-2); margin-inline-start: 2px; }
.p-price s { color: var(--muted); font-size: 13px; }
.p-price .per { font-size: 11px; color: var(--green-600); font-weight: 700; width: 100%; }
.p-stock { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.p-stock svg { width: 13px; height: 13px; }
.p-stock.ok { color: var(--green-600); }
.p-stock.low { color: #b45309; }
.p-stock.out { color: #dc2626; }
.p-act { margin-top: 8px; }
.p-act .btn { width: 100%; padding: 9px 12px; }
.p-card.is-out .p-tile { filter: grayscale(.7); opacity: .7; }
.add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Stepper */
.stepper { display: flex; align-items: center; justify-content: space-between; border-radius: 999px; background: var(--brand); color: #fff; padding: 3px; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.stepper button:hover { background: rgba(255,255,255,.3); }
.stepper button svg { width: 16px; height: 16px; }
.stepper .q { font-weight: 800; font-size: 15px; text-align: center; flex: 1; min-width: 28px; }
.stepper .q small { display: block; font-size: 10px; font-weight: 600; opacity: .85; line-height: 1; }
.stepper.light { background: #fff; color: var(--text); border: 1.5px solid var(--border-2); }
.stepper.light button { background: var(--cream-2); color: var(--text); }
.stepper.light button:hover { background: var(--brand-soft); color: var(--brand-600); }
.stepper.wholesale { background: var(--forest); }

/* ---------- Offers / banners ---------- */
.whole-banner { border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: linear-gradient(120deg, var(--forest) 0%, #14532d 60%, #166534 100%); color: #fff; position: relative; }
.whole-banner .wb-txt { padding: 40px; }
.whole-banner h2 { font-size: 30px; font-weight: 800; }
.whole-banner p { color: #d1fae5; }
.whole-banner ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.whole-banner li { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; }
.whole-banner li svg { width: 17px; height: 17px; color: #86efac; flex-shrink: 0; }
.whole-banner .wb-art { position: relative; display: grid; place-items: center; padding: 30px; min-width: 0; }
.wb-boxes { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; transform: rotate(-6deg); }
.wb-boxes span { width: 76px; height: 76px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 36px; }
.wb-price { position: absolute; bottom: 24px; left: 24px; background: #fff; color: var(--text); border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow-lg); font-size: 13px; }
.wb-price b { color: var(--green-600); font-size: 20px; display: block; }

.promo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promo { border-radius: var(--radius-lg); padding: 22px; color: #fff; display: flex; align-items: center; gap: 14px; min-width: 0; position: relative; overflow: hidden; }
.promo .pe { font-size: 46px; flex-shrink: 0; }
.promo b { display: block; font-size: 18px; font-weight: 800; }
.promo small { opacity: .9; }
.promo a { color: #fff; font-weight: 800; font-size: 13px; text-decoration: underline; }

/* ---------- Branch strip ---------- */
.br-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.br-mini { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; border-top: 4px solid var(--c); }
.br-mini h4 { font-size: 16px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.br-mini p { font-size: 13px; color: var(--text-2); margin: 0 0 8px; }
.br-mini .meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-2); }
.br-mini .meta span { display: inline-flex; align-items: center; gap: 4px; }
.br-mini .meta svg { width: 14px; height: 14px; color: var(--brand); }
.open-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--green-soft); color: var(--green-600); white-space: nowrap; }
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.open-badge.closed { background: #fee2e2; color: #dc2626; }
.open-badge.closed::before { animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- How it works ---------- */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.step4 { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; min-width: 0; }
.step4::before { counter-increment: st; content: counter(st); position: absolute; top: 16px; left: 16px; font-size: 40px; font-weight: 800; color: var(--cream-2); line-height: 1; }
.step4 .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; position: relative; }
.step4:nth-child(2) .ic { background: #fef3c7; color: #b45309; }
.step4:nth-child(3) .ic { background: #e0f2fe; color: #0284c7; }
.step4:nth-child(4) .ic { background: var(--green-soft); color: var(--green-600); }
.step4 .ic svg { width: 24px; height: 24px; }
.step4 h4 { font-size: 17px; margin-bottom: 6px; }
.step4 p { font-size: 14px; color: var(--text-2); margin: 0; }

/* ---------- App promo ---------- */
.app-promo { background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fed7aa; border-radius: var(--radius-lg); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 36px 40px; overflow: hidden; }
.app-promo h2 { font-size: 28px; font-weight: 800; }
.app-promo ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.app-promo li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.app-promo li svg { width: 18px; height: 18px; color: var(--green); }
.store-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #1c1917; color: #fff; border: 0; border-radius: 12px; padding: 8px 16px; cursor: pointer; text-align: right; }
.store-btn svg { width: 24px; height: 24px; }
.store-btn small { display: block; font-size: 10px; opacity: .75; }
.store-btn b { display: block; font-size: 15px; line-height: 1.1; }
.phone-mock { justify-self: center; width: 220px; height: 380px; border-radius: 34px; background: #1c1917; padding: 10px; box-shadow: var(--shadow-lg); transform: rotate(-4deg); }
.phone-mock .scr { width: 100%; height: 100%; border-radius: 26px; background: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.phone-mock .scr-h { background: var(--brand); color: #fff; padding: 16px 12px 12px; font-size: 12px; font-weight: 800; }
.phone-mock .scr-h small { display: block; font-weight: 600; opacity: .85; }
.phone-mock .scr-b { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-mock .scr-b span { background: #fff; border-radius: 12px; height: 70px; display: grid; place-items: center; font-size: 28px; border: 1px solid var(--border); }
.phone-mock .scr-t { margin: auto 10px 10px; background: #fff; border-radius: 12px; padding: 8px 10px; font-size: 11px; border: 1px solid var(--border); }
.phone-mock .scr-t b { color: var(--green-600); }

/* ---------- CTA ---------- */
.cta { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,.18), transparent 40%), linear-gradient(120deg, #ea580c, #c2410c); }
.cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.cta p { margin: 0; color: #ffedd5; }
.cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Page head ---------- */
.page-head { background: linear-gradient(135deg, #fff7ed, #fffaf3 60%, #f0fdf4); border-bottom: 1px solid var(--border); padding: 28px 0; }
.page-head h1 { font-size: 30px; font-weight: 800; margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--text-2); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 14px; height: 14px; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px 0 60px; }
.filters { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: calc(var(--header-h) + 64px); max-height: calc(100vh - 160px); overflow-y: auto; }
.filters h4 { font-size: 14px; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.filters h4 svg { width: 16px; height: 16px; color: var(--brand); }
.f-block + .f-block { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.f-cats { display: flex; flex-direction: column; gap: 2px; }
.f-cats button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: right; color: var(--text-2); font-weight: 600; }
.f-cats button span.e { font-size: 18px; }
.f-cats button small { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.f-cats button:hover { background: var(--cream); }
.f-cats button.on { background: var(--brand-soft); color: var(--brand-600); }
.f-brands { display: grid; gap: 6px; }
.shop-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.shop-top .count { color: var(--text-2); font-size: 14px; }
.shop-top .count b { color: var(--text); }
.shop-top .sp { flex: 1; }
.shop-top .select { width: auto; height: 40px; border-radius: 999px; padding: 0 14px; }
.shop-search { position: relative; flex: 1 1 240px; min-width: 0; }
.shop-search input { padding-right: 40px; height: 42px; border-radius: 999px; }
.shop-search svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--border-2); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.mode-note { display: flex; align-items: center; gap: 10px; background: var(--forest); color: #e7f5ec; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.mode-note svg { width: 20px; height: 20px; color: #86efac; flex-shrink: 0; }
.mode-note b { color: #fff; }
.avail-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.avail-note svg { width: 15px; height: 15px; color: var(--brand); }
.avail-note button { border: 0; background: none; color: var(--brand-600); font-weight: 700; cursor: pointer; padding: 0; }
.filter-toggle { display: none; }

/* ---------- Product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; padding: 28px 0 40px; align-items: start; }
.pd-tile { border-radius: var(--radius-lg); aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: clamp(110px, 18vw, 180px); background: radial-gradient(circle at 30% 25%, #fff 0%, color-mix(in srgb, var(--c) 20%, #fff) 72%); border: 1px solid var(--border); position: relative; }
.pd-tile .p-flags { top: 16px; right: 16px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.pd-thumbs span { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: 34px; background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid var(--border); }
.pd-thumbs span:first-child { border: 2px solid var(--brand); }
.pd-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; margin: 14px 0; }
.price-table th, .price-table td { padding: 11px 14px; text-align: right; font-size: 14px; border-bottom: 1px solid var(--border); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { background: var(--cream); color: var(--text-2); font-size: 12px; font-weight: 800; }
.price-table td b { font-size: 16px; }
.price-table tr.sel td { background: #fff7ed; }
.price-table tr.sel.wh td { background: #f0fdf4; }
.pd-buy { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.pd-buy .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-buy .stepper { min-width: 150px; }
.pd-buy .total { margin-inline-start: auto; text-align: left; }
.pd-buy .total small { display: block; color: var(--muted); font-size: 12px; }
.pd-buy .total b { font-size: 22px; font-weight: 800; }
.avail-list { display: grid; gap: 8px; }
.avail-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.avail-row .ai { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.avail-row .ai svg { width: 16px; height: 16px; }
.avail-row b { font-size: 14px; display: block; }
.avail-row small { color: var(--muted); font-size: 12px; }
.avail-row.me { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234,88,12,.1); }
.pd-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pd-feats div { background: var(--cream); border-radius: 12px; padding: 10px; display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: var(--text-2); min-width: 0; }
.pd-feats svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding: 28px 0 60px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel + .panel { margin-top: 16px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-title h3 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.panel-title h3 svg { width: 20px; height: 20px; color: var(--brand); }
.c-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.c-line:last-child { border-bottom: 0; }
.c-tile { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; font-size: 36px; background: color-mix(in srgb, var(--c) 15%, #fff); }
.c-info { min-width: 0; }
.c-info a.nm { color: var(--text); font-weight: 700; display: block; line-height: 1.5; }
.c-info small { color: var(--text-2); font-size: 12px; }
.c-info .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.c-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.c-side .stepper { width: 128px; }
.c-side .lt { font-weight: 800; font-size: 16px; }
.c-ctrl { display: flex; gap: 10px; align-items: center; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--text-2); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link-btn svg { width: 14px; height: 14px; }
.link-btn:hover { color: var(--brand-600); }
.link-btn.danger:hover { color: #dc2626; }
.sum-rows { display: grid; gap: 10px; font-size: 14px; }
.sum-rows .r { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); }
.sum-rows .r b { color: var(--text); }
.sum-rows .r.total { border-top: 1px dashed var(--border-2); padding-top: 12px; font-size: 17px; color: var(--text); font-weight: 800; }
.sum-rows .r.total b { font-size: 21px; color: var(--brand-600); }
.sum-rows .free { color: var(--green-600); font-weight: 800; }
.progress { height: 8px; border-radius: 999px; background: #f5ede1; overflow: hidden; margin: 8px 0 4px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #4ade80); border-radius: 999px; transition: width .3s; }
.free-box { background: var(--green-soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #14532d; margin-bottom: 14px; }
.free-box.done { background: #dcfce7; }
.note-box { font-size: 12px; color: var(--text-2); background: var(--cream); border-radius: 10px; padding: 8px 10px; display: flex; gap: 6px; align-items: flex-start; }
.note-box svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.warn-box { font-size: 13px; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
.warn-box svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 64px); }

/* ---------- Checkout ---------- */
.co-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.co-step { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px 6px 6px; font-weight: 700; font-size: 13px; color: var(--muted); min-width: 0; cursor: pointer; }
.co-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2); color: var(--text-2); display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.co-step .n svg { width: 15px; height: 15px; }
.co-step span.t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-step.on { border-color: var(--brand); color: var(--brand-600); }
.co-step.on .n { background: var(--brand); color: #fff; }
.co-step.done { color: var(--green-600); cursor: pointer; }
.co-step.done .n { background: var(--green); color: #fff; }
.co-pane { display: none; }
.co-pane.on { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.co-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ful-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.opt-card { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--border-2); border-radius: var(--radius); padding: 14px; cursor: pointer; background: #fff; transition: .15s; min-width: 0; }
.opt-card input { position: absolute; width: 1px; height: 1px; opacity: 0; top: 0; right: 0; margin: 0; pointer-events: none; }
.opt-card .oi { width: 42px; height: 42px; border-radius: 12px; background: var(--cream-2); color: var(--text-2); display: grid; place-items: center; flex-shrink: 0; }
.opt-card .oi svg { width: 21px; height: 21px; }
.opt-card b { display: block; font-size: 15px; }
.opt-card small { color: var(--text-2); font-size: 12px; display: block; line-height: 1.5; }
.opt-card .ck { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; color: #fff; }
.opt-card .ck svg { width: 13px; height: 13px; opacity: 0; }
.opt-card:hover { border-color: #fdba74; }
.opt-card.on { border-color: var(--brand); background: #fffaf5; box-shadow: 0 0 0 3px rgba(234,88,12,.1); }
.opt-card.on .oi { background: var(--brand); color: #fff; }
.opt-card.on .ck { background: var(--brand); border-color: var(--brand); }
.opt-card.on .ck svg { opacity: 1; }
.opt-card:focus-within { outline: 2px solid rgba(234,88,12,.35); outline-offset: 2px; }
.opt-card.disabled { opacity: .5; pointer-events: none; }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.branch-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.review-block { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.review-block + .review-block { margin-top: 10px; }
.review-block .ri { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.review-block .ri svg { width: 18px; height: 18px; }
.review-block > div { min-width: 0; flex: 1; }
.review-block small { color: var(--muted); font-size: 12px; display: block; }
.review-block b { display: block; }
.review-block .edit { margin-inline-start: auto; }
.mini-lines { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; margin-bottom: 14px; }
.mini-line { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.mini-line .c-tile { width: 42px; height: 42px; font-size: 22px; border-radius: 12px; position: relative; }
.mini-line .c-tile i { position: absolute; top: -6px; left: -6px; font-style: normal; background: var(--forest); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.mini-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-line span small { display: block; color: var(--muted); font-size: 11px; }
.demo-fill { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: repeating-linear-gradient(135deg, #fff7ed 0 12px, #fffaf3 12px 24px); border: 1px dashed #fdba74; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: var(--brand-700); }
.demo-fill span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.demo-fill svg { width: 16px; height: 16px; }

/* Success */
.success { text-align: center; padding: 10px 0 0; }
.success .s-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; animation: pop .45s ease; }
.success .s-ic svg { width: 44px; height: 44px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.success h1 { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.order-no { display: inline-flex; align-items: center; gap: 10px; background: var(--forest); color: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: 18px; margin: 10px 0; }
.order-no button { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 999px; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; }
.order-no button svg { width: 15px; height: 15px; }
.s-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; text-align: right; }
.s-facts div { background: var(--cream); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.s-facts small { color: var(--muted); font-size: 12px; display: block; }
.s-facts b { font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; }
.otp-note { display: flex; gap: 12px; align-items: center; text-align: right; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.otp-note .code { font-size: 22px; font-weight: 800; letter-spacing: 6px; background: #fff; border-radius: 10px; padding: 4px 12px; direction: ltr; flex-shrink: 0; }
.otp-note svg { width: 22px; height: 22px; flex-shrink: 0; }
.s-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.journey-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 12px 10px; text-align: right; }
.journey-wrap h4 { margin: 0 6px 14px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.journey-wrap h4 svg { width: 18px; height: 18px; color: var(--brand); }
.processing { text-align: center; padding: 20px 0; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid var(--cream-2); border-top-color: var(--brand); margin: 0 auto 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Branches page ---------- */
.br-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 28px 0 60px; align-items: start; }
.br-list { display: grid; gap: 14px; }
.br-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; border-inline-start: 5px solid var(--c); transition: .15s; min-width: 0; }
.br-card.hl { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.br-card .bc-top { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.br-card h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.br-card h3 svg { color: var(--c); width: 20px; height: 20px; }
.br-card .addr { font-size: 13px; color: var(--text-2); margin: 4px 0 10px; }
.bc-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.bc-info div { background: var(--cream); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.bc-info small { display: block; color: var(--muted); font-size: 11px; }
.bc-info b { font-size: 13px; display: block; }
.zone-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.zone-tags span { font-size: 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border-2); padding: 3px 10px; color: var(--text-2); }
.zone-tags span b { color: var(--text); }
.zone-tags span.off { text-decoration: line-through; opacity: .6; }
.bc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-card { position: sticky; top: calc(var(--header-h) + 64px); }
.city-map { position: relative; aspect-ratio: 1 / 1.05; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background-color: #f4efe4; background-image:
  linear-gradient(rgba(180, 160, 130, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(180, 160, 130, .18) 1px, transparent 1px),
  radial-gradient(circle at 30% 70%, rgba(22,163,74,.12), transparent 25%), radial-gradient(circle at 70% 30%, rgba(22,163,74,.1), transparent 20%);
  background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%; }
.city-map .road { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(180,160,130,.35); border-radius: 4px; }
.city-map .road.h { height: 9px; left: 0; right: 0; }
.city-map .road.v { width: 9px; top: 0; bottom: 0; }
.city-map .road.d { height: 9px; width: 140%; left: -20%; transform: rotate(-28deg); }
.city-map .rlabel { position: absolute; font-size: 10px; color: #a8998a; font-weight: 700; }
.pin { position: absolute; transform: translate(-50%, -100%); border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.pin .pi { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.25); border: 3px solid #fff; }
.pin .pi svg { transform: rotate(45deg); width: 18px; height: 18px; color: #fff; }
.pin .pl { margin-top: 4px; background: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; box-shadow: var(--shadow); white-space: nowrap; color: var(--text); }
.pin.on .pi { animation: bounce .8s ease infinite alternate; }
@keyframes bounce { to { transform: rotate(-45deg) translate(3px, -3px); } }
.pin .ring { position: absolute; top: 20px; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px dashed var(--c); left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: -1; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: block; }

/* ---------- Track page ---------- */
.track-wrap { max-width: 560px; margin: 0 auto; padding: 40px 0 70px; }
.track-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.track-card .t-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.track-card .t-ic svg { width: 30px; height: 30px; }
.recent-orders { display: grid; gap: 8px; margin-top: 18px; }
.recent-orders a { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; color: var(--text); background: var(--cream); flex-wrap: wrap; }
.recent-orders a:hover { border-color: var(--brand); }
.recent-orders small { color: var(--text-2); font-size: 12px; }
.st-pill { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; color: #fff; background: var(--st, #6366f1); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #cfe3d6; margin-top: 0; }
.site-footer .ft-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; padding: 50px 0 30px; }
.site-footer .logo .lg-txt b { color: #fff; }
.site-footer .logo .lg-txt small { color: #86efac; }
.site-footer p { font-size: 14px; color: #a7c4b2; margin-top: 12px; }
.site-footer h5 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer ul a { color: #cfe3d6; }
.site-footer ul a:hover { color: #fdba74; }
.site-footer li { display: flex; align-items: center; gap: 8px; }
.site-footer li svg { width: 15px; height: 15px; color: #86efac; flex-shrink: 0; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pay-badges span { background: #fff; color: var(--text); border-radius: 6px; font-size: 11px; font-weight: 800; padding: 3px 9px; }
.pay-badges span.mada { color: #0f766e; }
.pay-badges span.apple { background: #000; color: #fff; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #a7c4b2; }
.ft-bottom a { color: #fdba74; font-weight: 700; }
.ft-bottom .by { display: inline-flex; align-items: center; gap: 8px; color: #a7c4b2; }
.ft-bottom .by img { height: 22px; width: auto; background: #fff; border-radius: 6px; padding: 2px 6px; }
.ft-bottom .powered { display: inline-flex; align-items: center; gap: 6px; }
.ft-bottom .powered svg { width: 15px; height: 15px; }

/* ---------- Drawer (mini cart) ---------- */
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(410px, 100vw); background: #fff; z-index: 96; transform: translateX(-105%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.show { transform: none; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.dr-head h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.dr-head h3 svg { color: var(--brand); }
.dr-body { flex: 1; overflow-y: auto; padding: 6px 18px; }
.dr-body .c-line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
.dr-body .c-tile { width: 56px; height: 56px; font-size: 28px; border-radius: 14px; }
.dr-body .c-side .stepper { width: 112px; }
.dr-body .stepper button { width: 28px; height: 28px; }
.dr-foot { border-top: 1px solid var(--border); padding: 14px 18px; display: grid; gap: 10px; background: var(--cream); }
.dr-foot .r { display: flex; justify-content: space-between; font-weight: 800; }
.dr-foot .btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }

/* Sticky mobile cart bar */
.cart-bar { position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 60; display: none; align-items: center; gap: 12px; background: var(--forest); color: #fff; border-radius: 999px; padding: 8px 8px 8px 16px; box-shadow: 0 12px 30px rgba(15,42,27,.35); cursor: pointer; border: 0; text-align: right; }
.cart-bar .cb-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.cart-bar .cb-ic svg { width: 20px; height: 20px; }
.cart-bar .cb-txt { flex: 1; min-width: 0; font-size: 13px; }
.cart-bar .cb-txt b { display: block; font-size: 15px; }
.cart-bar .cb-go { font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.cart-bar .cb-go svg { width: 16px; height: 16px; }

/* ---------- Modal & toast ---------- */
.wf-modal-bd { position: fixed; inset: 0; background: rgba(28,25,23,.5); z-index: 120; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .18s; }
.wf-modal-bd.show { opacity: 1; }
.wf-modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .18s; }
.wf-modal.sm { max-width: 420px; }
.wf-modal-bd.show .wf-modal { transform: none; }
.wf-modal .m-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.wf-modal .m-head h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.wf-modal .m-head h3 svg { color: var(--brand); width: 20px; height: 20px; }
.wf-modal .m-body { padding: 18px 20px; overflow-y: auto; }
.wf-modal .m-foot { display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--cream); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.wf-toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.wf-toast { background: #1c1917; color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; animation: tin .25s ease; pointer-events: auto; }
.wf-toast .ti { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); flex-shrink: 0; }
.wf-toast .ti svg { width: 16px; height: 16px; }
.wf-toast.info .ti { background: #0284c7; }
.wf-toast.error .ti { background: #dc2626; }
.wf-toast.warning .ti { background: #d97706; }
.wf-toast a { color: #fdba74; font-weight: 800; margin-inline-start: auto; white-space: nowrap; }
.wf-toast.out { opacity: 0; transform: translateY(-8px); transition: .25s; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Journey stepper (copied from Store Pro app.css, scoped) ---------- */
.journey { overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.journey .jr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-columns: repeat(var(--jr-n, 10), minmax(84px, 1fr)); min-width: calc(var(--jr-n, 10) * 84px); }
.journey .jr-step { position: relative; text-align: center; padding: 0 4px; --st: #9ca3af; display: block; }
.journey .jr-step::after { content: ""; position: absolute; top: 23px; right: calc(50% + 26px); left: calc(-50% + 26px); height: 4px; border-radius: 4px; background: #e5e7eb; }
.journey .jr-step:last-child::after { display: none; }
.journey .jr-step.done::after { background: linear-gradient(270deg, #0f766e, #14b8a6); }
.journey .jr-step.current::after { background: repeating-linear-gradient(270deg, #fdba74 0 8px, #ffedd5 8px 16px); background-size: 32px 4px; animation: jrflow 1s linear infinite; }
@keyframes jrflow { to { background-position: -32px 0; } }
.journey .jr-dot { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: #fff; border: 2px solid #e5e7eb; color: #9ca3af; position: relative; z-index: 1; }
.journey .jr-dot svg { width: 22px; height: 22px; }
.journey .jr-step.done .jr-dot { background: #0f766e; border-color: #0f766e; color: #fff; }
.journey .jr-step.current .jr-dot { background: var(--st); border-color: var(--st); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--st) 18%, transparent); }
.journey .jr-step.current .jr-dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--st); animation: jrpulse 1.8s ease-out infinite; }
@keyframes jrpulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.journey .jr-txt b { display: block; font-size: 13px; font-weight: 800; line-height: 1.35; color: var(--text); }
.journey .jr-step.upcoming .jr-txt b { color: var(--muted); font-weight: 700; }
.journey .jr-step.current .jr-txt b { color: var(--st); }
.journey .jr-txt small { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-top: 2px; }
.journey .jr-txt em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .p-grid.cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hd-whole .lbl { display: none; }
  .hd-whole { padding: 10px 12px; }
}
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .p-grid, .p-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .br-strip, .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-side, .map-card { position: static; }
  .br-layout { grid-template-columns: minmax(0, 1fr); }
  .map-card { order: -1; }
  .city-map { aspect-ratio: 16 / 11; }
  .site-footer .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hd-search { display: none; }
  .hd-main { flex-wrap: wrap; }
  .hd-search.mobile { display: block; flex: 1 1 100%; max-width: none; order: 10; margin-bottom: 10px; }
  .hd-main .mode-switch { display: none; }
  .menu-btn { display: inline-grid; }
  .hd-nav { display: none; }
  .pd { grid-template-columns: minmax(0, 1fr); }
  .whole-banner, .app-promo { grid-template-columns: minmax(0, 1fr); }
  .whole-banner .wb-art { display: none; }
  .phone-mock { display: none; }
  .cart-bar.has { display: flex; }
  body.has-cartbar .site-footer { padding-bottom: 70px; }
}
@media (min-width: 901px) { .hd-search.mobile { display: none; } }
@media (max-width: 720px) {
  .section { padding: 44px 0; }
  .sec-head h2 { font-size: 23px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .p-grid, .p-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-card .p-tile { font-size: 44px; }
  .p-body { padding: 10px; }
  .p-body h3 { font-size: 13.5px; }
  .p-price b { font-size: 17px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .co-step span.t { display: none; }
  .co-step { justify-content: center; padding: 6px; }
  .pay-grid, .branch-pick, .ful-switch { grid-template-columns: minmax(0, 1fr); }
  .s-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whole-banner .wb-txt { padding: 26px 20px; }
  .whole-banner h2, .app-promo h2, .cta h2 { font-size: 23px; }
  .whole-banner ul { grid-template-columns: minmax(0, 1fr); }
  .app-promo, .cta { padding: 26px 20px; }
  .hero .container { padding-top: 36px; padding-bottom: 40px; }
  .hero p.lead { font-size: 16px; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 21px; }
  .pd-feats { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 24px; }
  .topstrip .ts-side { display: none; }
  .c-line { grid-template-columns: 56px minmax(0, 1fr); }
  .c-line .c-tile { width: 56px; height: 56px; font-size: 28px; }
  .c-line .c-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .dr-body .c-line .c-side { grid-column: auto; flex-direction: column; align-items: flex-end; }
  .dr-body .c-line { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .site-footer .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .journey .jr-steps { display: flex; flex-direction: column; min-width: 0; }
  .journey { overflow: visible; }
  .journey .jr-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; text-align: right; padding: 0 0 14px; align-items: start; }
  .journey .jr-step::after { top: 44px; bottom: 0; right: 20px; left: auto; width: 4px; height: auto; }
  .journey .jr-step.current::after { background: repeating-linear-gradient(180deg, #fdba74 0 8px, #ffedd5 8px 16px); }
  .journey .jr-step.done::after { background: #14b8a6; }
  .journey .jr-dot { width: 44px; height: 44px; margin: 0; }
  .journey .jr-txt { padding-top: 3px; }
  .journey .jr-txt small, .journey .jr-txt em { display: inline; margin-left: 8px; }
}
@media (max-width: 480px) {
  .container { padding-inline: 14px; }
  .hd-main { gap: 8px; }
  .logo svg { width: 38px; height: 38px; }
  .logo .lg-txt b { font-size: 17px; }
  .logo .lg-txt small { display: none; }
  .hd-login .lbl { display: none; }
  .hd-login { padding: 0; width: 42px; height: 42px; }
  .hd-whole { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .serve-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .serve-grid b { font-size: 12.5px; }
  .cat-card { padding: 12px 6px; }
  .cat-card .ce { width: 50px; height: 50px; font-size: 26px; border-radius: 16px; }
  .cat-card b { font-size: 12px; }
  .cat-card small { display: none; }
  .p-act .btn { font-size: 13px; padding: 8px; }
  .stepper button { width: 30px; height: 30px; }
  .wb-price { display: none; }
  .loc-card { padding: 16px; }
  .panel { padding: 16px; }
  .track-card { padding: 20px; }
  .opt-card { padding: 12px; }
  .order-no { font-size: 16px; }
  .otp-note { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .price-table th, .price-table td { padding: 8px 6px; font-size: 12.5px; }
  .price-table td b { font-size: 13.5px; }
  .pd-info h1 { font-size: 22px; }
}
@media (max-width: 360px) {
  .p-grid, .p-grid.cols-5 { gap: 8px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print { .site-header, .site-footer, .topstrip, .cart-bar { display: none !important; } }

/* product logo next to "powered by" */
.ft-bottom .powered .pw-logo { width: 22px; height: 22px; object-fit: contain; }
