/* ============================================================
   Choubaddak Design System
   ============================================================ */
:root {
    /* Brand — warm yellow/gold accent on a clean neutral-ink base */
    --ink-900: #1e1f29;
    --ink-700: #26282f;
    --ink-500: #5f6775;
    --ink-400: #8d99ae;
    --ink-300: #aab2c0;
    --ink-200: #e4e7ed;
    --ink-100: #f1f3f7;
    --ink-50:  #f7f7f9;
    --surface: #ffffff;
    --bg: #f7f7f9;

    --brand-900: #8a5c00;
    --brand-700: #c17f00;
    --brand-600: #f6a900;
    --brand-500: #ffc229;
    --brand-100: #fff3d6;
    --brand-50:  #fffaf0;

    --gold-600: #b35900;
    --gold-500: #e2832e;
    --gold-100: #fdecd8;

    --ok-600: #0a8a3e;
    --ok-100: #e7f6ec;

    --danger-600: #c62828;
    --danger-100: #fbeae8;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(20, 22, 30, 0.06);
    --shadow-sm: 0 2px 8px rgba(20, 22, 30, 0.07);
    --shadow-md: 0 8px 28px rgba(20, 22, 30, 0.10);
    --shadow-lg: 0 20px 50px rgba(20, 22, 30, 0.16);

    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
    --space-12: 48px; --space-16: 64px; --space-20: 80px;

    --font-en: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --font: var(--font-en);

    --container-max: 1280px;
    --header-h: 68px;
    --utility-h: 36px;
}

:root[dir="rtl"] { --font: var(--font-ar); }

* { box-sizing: border-box; }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink-700);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 2rem; line-height: 1.2; }
h2 { font-size: 1.45rem; line-height: 1.3; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 var(--space-3); }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-5); }
.muted { color: var(--ink-400); }
.text-sm { font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding-inline: 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: var(--ink-900); }
.btn-primary:hover { background: var(--brand-700); color: var(--ink-900); }
.btn-secondary { background: var(--ink-900); color: #fff; }
.btn-secondary:hover { background: var(--ink-700); }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--ink-200); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); }
.btn-sm { height: 32px; padding-inline: 12px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-danger-text { background: none; border: none; color: var(--danger-600); cursor: pointer; font-size: 0.85rem; }
.btn .material-symbols-outlined { font-size: 18px; }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.input, select.input, textarea.input,
input[type=text], input[type=email], input[type=tel], input[type=url],
input[type=password], input[type=number], input[type=date], input[type=time],
select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--ink-900);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-100);
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .18s, border-color .18s, transform .18s;
    display: block;
}
a.card:hover { box-shadow: var(--shadow-md); border-color: var(--ink-200); transform: translateY(-2px); }
.card-body { padding: var(--space-4); }
.card-img { aspect-ratio: 4/3; background: var(--ink-100) center/cover no-repeat; position: relative; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-pill); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-brand { background: var(--brand-100); color: var(--brand-700); }
.badge-ink { background: var(--ink-100); color: var(--ink-500); }
.badge .material-symbols-outlined, .badge-icon.material-symbols-outlined { font-size: 13px; }

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.section { padding-block: var(--space-12); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-5); gap: var(--space-4); }
.section-head .view-all { color: var(--brand-600); font-weight: 600; font-size: 0.88rem; }
.section-eyebrow { color: var(--brand-600); font-weight: 700; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; display: block; }

/* ============================================================
   Header
   ============================================================ */
.utility-bar { background: var(--brand-50); color: var(--ink-500); height: var(--utility-h); font-size: 0.76rem; border-bottom: 1px solid var(--brand-100); }
.utility-bar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.utility-bar span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.util-icon.material-symbols-outlined { font-size: 15px; color: var(--brand-600); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--ink-100); position: sticky; top: 0; z-index: 100; height: var(--header-h); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: 6px; font-size: 1.2rem; font-weight: 800; color: var(--ink-900); white-space: nowrap; letter-spacing: -0.01em; }
.site-header .brand { text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.1rem; }
.brand .mark { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand .mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.main-nav { display: flex; gap: var(--space-5); flex: 1; align-items: center; }
.mobile-only-nav-actions { display: none; }
.main-nav > a, .nav-item > button { color: var(--ink-500); font-weight: 600; font-size: 0.875rem; background: none; border: none; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 4px; padding: 8px 0; }
.main-nav > a:hover, .nav-item > button:hover { color: var(--ink-900); }
.nav-item { position: relative; }
.nav-caret { font-size: 0.6rem; opacity: .6; }
.nav-dropdown {
    position: absolute; top: 100%; inset-inline-start: -14px;
    background: transparent; min-width: 280px;
    display: none; grid-template-columns: repeat(2, 1fr); gap: 2px;
    padding: calc(10px + var(--space-3)) var(--space-3) var(--space-3);
    z-index: 50;
}
.nav-dropdown::after {
    content: ""; position: absolute; inset: 10px 0 0 0; z-index: -1;
    background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.nav-dropdown.open { display: grid; }
@media (hover: hover) and (pointer: fine) {
    .nav-item:hover .nav-dropdown { display: grid; }
}
.nav-dropdown a { display: block; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--ink-700); }
.nav-dropdown a:hover { background: var(--brand-50); color: var(--brand-700); }
.header-actions { display: flex; gap: var(--space-2); align-items: center; }
.lang-switch { font-weight: 700; border-radius: var(--radius-pill) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-700); }
.icon-btn {
    width: 36px; height: 36px; border-radius: 50%; background: none; border: 1px solid var(--ink-200);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-700);
    flex-shrink: 0; transition: background .15s, border-color .15s, color .15s;
}
.icon-btn:hover { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-600); }
.icon-btn .material-symbols-outlined { font-size: 19px; }

.search-overlay {
    display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff;
    border-bottom: 1px solid var(--ink-100); box-shadow: var(--shadow-lg); padding-block: var(--space-4); z-index: 99;
}
.search-overlay.open { display: block; }
.search-overlay .search-pill, .search-overlay .search-filters-row { max-width: 560px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: var(--ink-900); color: #fff; padding-block: var(--space-16) var(--space-12); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; visibility: hidden; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,21,28,.58), rgba(20,21,28,.72) 55%, rgba(20,21,28,.85));
}
.hero:not(.shop-hero)::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: radial-gradient(900px 600px at 85% 15%, rgba(246,169,0,.28), transparent 60%);
}
.shop-hero { min-height: 380px; display: flex; align-items: flex-end; padding-block: 0 var(--space-5); }
.shop-hero .hero-inner { width: 100%; max-width: none; margin: 0; }
.shop-hero .hero-slide::after {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(20,21,28,.28) 100%);
}
.hero-slide-caption {
    position: absolute; z-index: 2; inset-inline-start: var(--space-6); bottom: var(--space-8);
    max-width: 480px; color: #fff; text-align: start;
}
.hero-slide-caption h2 { font-size: 1.6rem; margin-bottom: 6px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-slide-caption p { font-size: 0.95rem; color: rgba(255,255,255,.88); margin-bottom: var(--space-3); text-shadow: 0 1px 6px rgba(0,0,0,.4); }

.shop-search-section { padding-block: var(--space-8) var(--space-10); background: var(--surface); }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin-inline: auto; }
.hero-eyebrow { display: inline-block; color: var(--brand-500); font-weight: 700; font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-3); min-height: 1.2em; }
.hero h1 { color: #fff; font-size: 2.6rem; letter-spacing: -0.02em; margin-bottom: var(--space-3); min-height: 1.2em; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 560px; margin-inline: auto; margin-bottom: var(--space-8); min-height: 2.6em; }
.hero-dots { position: relative; z-index: 2; display: flex; justify-content: center; gap: 8px; margin-top: var(--space-6); }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); border: none; cursor: pointer; padding: 0; transition: background .2s, width .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.hero-dots button.active { background: var(--brand-600); width: 22px; border-radius: 4px; }

.search-panel {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: var(--space-3); display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: var(--space-2);
    max-width: 880px; margin-inline: auto; text-align: start;
}
.search-panel .input { border: none; background: var(--ink-50); height: 44px; }
.search-panel .input:focus { box-shadow: none; background: var(--brand-50); }
.search-panel .btn { height: 44px; padding-inline: 22px; }

.shop-filter-form { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }

/* Single unified search bar: text input + category + city filters + button, all merged in one pill */
.search-pill {
    display: flex; align-items: stretch;
    background: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
    overflow: hidden; max-width: 560px; margin-inline: auto;
}
.search-pill input[type="text"] {
    flex: 1 1 160px; min-width: 0; border: none; background: none; height: 56px; padding-inline: 24px;
    font-size: 0.95rem; color: var(--ink-900);
}
.search-pill input[type="text"]:focus { outline: none; box-shadow: none; }
.search-pill button {
    width: 68px; background: var(--brand-600); color: var(--ink-900); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: background .15s;
}
.search-pill button:hover { background: var(--brand-700); }

/* Category/city filters, shown below the search pill */
.search-filters-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 560px; margin: 12px auto 0; }
.search-filters-row select {
    width: auto; flex: 1 1 160px; height: 44px; border: 1px solid var(--ink-200); background: #fff;
    color: var(--ink-700); border-radius: var(--radius-pill); padding-inline: 18px; font-size: 0.85rem;
    font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm);
}
.search-filters-row select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }

/* Quick category tiles — photo card + label, horizontal carousel with arrows */
.quick-cats-carousel { position: relative; max-width: 980px; margin: var(--space-8) auto 0; }
.quick-cats {
    display: flex; gap: var(--space-4); overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none; padding: 4px 2px 8px;
}
.quick-cats::-webkit-scrollbar { display: none; }
.quick-cat {
    display: block; flex: 0 0 140px; background: none; padding: 0;
    box-shadow: none; text-align: center; transition: transform .18s;
}
.quick-cat:hover { transform: translateY(-4px); box-shadow: none; }
.quick-cat .photo {
    aspect-ratio: 5/6; border-radius: 10px; background: var(--ink-100) center/cover no-repeat;
    margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.quick-cat span { display: block; color: var(--ink-900); font-weight: 700; font-size: 0.88rem; line-height: 1.25; }
.quick-cats-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid var(--ink-200); box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; color: var(--ink-700);
}
.quick-cats-arrow:hover { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-500); }
.quick-cats-arrow.prev { inset-inline-start: -18px; }
.quick-cats-arrow.next { inset-inline-end: -18px; }
.quick-cats-arrow .material-symbols-outlined { font-size: 20px; }

/* Static "Shop by Category" grid (superdokan-style index page) */
.shop-category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5) var(--space-4); }
.shop-category-grid .quick-cat { flex: initial; }

/* ============================================================
   Promo banners (dark duo cards)
   ============================================================ */
.promo-banners { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.promo-banner {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: 170px; display: flex; align-items: flex-end;
    padding: var(--space-6); color: #fff;
    background: linear-gradient(135deg, var(--ink-900), var(--ink-700));
}
.promo-banner::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px 300px at 100% 0%, rgba(246,169,0,.40), transparent 65%);
}
.promo-banner.gold::before { background: radial-gradient(500px 300px at 100% 0%, rgba(245,166,35,.30), transparent 65%); }
.promo-banner > * { position: relative; }
.promo-banner .eyebrow { display: block; color: var(--brand-500); font-weight: 700; font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.promo-banner.gold .eyebrow { color: var(--gold-500); }
.promo-banner h3 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; }
.promo-banner .link { color: rgba(255,255,255,.78); font-size: 0.85rem; font-weight: 600; }

/* ============================================================
   Trust badges row
   ============================================================ */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.trust-item { display: flex; align-items: center; gap: var(--space-3); background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-xs); }
.trust-item .trust-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-item .trust-icon.ok { background: var(--ok-100); color: var(--ok-600); }
.trust-item .trust-icon.brand { background: var(--brand-100); color: var(--brand-600); }
.trust-item .trust-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.trust-item .trust-icon.ink { background: var(--ink-100); color: var(--ink-500); }
.trust-item h4 { font-size: 0.88rem; margin-bottom: 1px; }
.trust-item p { font-size: 0.78rem; color: var(--ink-400); margin: 0; }

/* ============================================================
   Category cards
   ============================================================ */
.category-card { text-align: center; padding: 0; overflow: hidden; }
.category-card .card-img { aspect-ratio: 4/3; position: relative; background-color: var(--ink-100); }
.category-card .icon {
    position: absolute; bottom: -16px; inset-inline-start: 14px;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: #fff; border: 2px solid #fff; box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center; color: var(--brand-600);
}
.category-card .icon .material-symbols-outlined { font-size: 20px; }
.category-card-body { padding: var(--space-5) var(--space-3) var(--space-3); }
.category-card h3 { font-size: 0.92rem; margin-bottom: 2px; }
.category-card .count { color: var(--ink-400); font-size: 0.78rem; }

/* ============================================================
   Featured items — auto-scrolling carousel
   ============================================================ */
.featured-carousel { overflow: hidden; margin-inline: calc(var(--space-5) * -1); padding-inline: var(--space-5); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.featured-track { display: flex; gap: var(--space-5); width: max-content; animation: featured-scroll 32s linear infinite; }
.featured-carousel:hover .featured-track,
.featured-carousel.touch-active .featured-track { animation-play-state: paused; }
.featured-card { width: 250px; flex-shrink: 0; }
@keyframes featured-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
:root[dir="rtl"] .featured-track { animation-name: featured-scroll-rtl; }
@keyframes featured-scroll-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
    .featured-track { animation: none; }
}

/* ============================================================
   Business cards
   ============================================================ */
.biz-card .card-img { position: relative; }
.biz-card .logo-chip {
    position: absolute; bottom: -18px; inset-inline-start: 14px;
    width: 44px; height: 44px; border-radius: var(--radius-sm); border: 2px solid #fff;
    background: #fff var(--ink-100) center/cover no-repeat; box-shadow: var(--shadow-sm);
}
.biz-card .card-body { padding-top: var(--space-6); }
.biz-card h3 { margin-bottom: 2px; }
.biz-card .meta { color: var(--ink-400); font-size: 0.8rem; margin-bottom: 6px; }
.biz-card .desc { font-size: 0.85rem; color: var(--ink-500); margin-bottom: var(--space-3); }
.biz-card .actions { display: flex; gap: 6px; }
.biz-card .actions a { flex: 1; text-align: center; }
.sponsored-chip { position: absolute; top: 10px; inset-inline-start: 10px; }

/* Product cards (shop items) — SuperDokan-style: clean card, title, price, full-width button */
.product-card { box-shadow: none; border-color: var(--ink-100); transition: border-color .18s, transform .18s; }
.product-card:hover { box-shadow: none; border-color: var(--ink-200); transform: translateY(-3px); }
.product-card .card-body { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.product-title {
    font-size: 0.9rem; font-weight: 600; color: var(--ink-700); line-height: 1.35;
    margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price { font-size: 1.1rem; font-weight: 800; color: var(--brand-700); margin: 2px 0 var(--space-3); }
.product-view-btn { margin-top: 2px; }

/* Store cards — fixed, uniform size regardless of content length */
.store-card { display: flex; flex-direction: column; height: 100%; }
.store-card .card-img { aspect-ratio: 4/3; }
.store-card .card-body { padding-top: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.store-card .product-title { min-height: calc(1.35em * 2); }
.store-card .desc {
    font-size: 0.85rem; color: var(--ink-500); margin: 0 0 var(--space-2);
    min-height: calc(1.3em * 2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.store-card .desc.sale-note { color: var(--gold-600); font-weight: 600; }
.store-card .store-phone {
    display: flex; align-items: center; gap: 4px; min-height: 20px;
    font-size: 0.82rem; color: var(--ink-500); margin-bottom: 6px;
}
.store-card .store-phone .material-symbols-outlined { font-size: 16px; color: var(--brand-600); }
.store-card .meta { margin-bottom: var(--space-3); }
.store-card .product-view-btn { margin-top: auto; }

/* ============================================================
   Location cards
   ============================================================ */
.location-card { padding: var(--space-5); }
.location-card .pin { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); font-size: 0.95rem; }
.location-card.featured { background: linear-gradient(160deg, var(--brand-900), var(--brand-700)); color: #fff; border: none; }
.location-card.featured .pin { background: rgba(255,255,255,.14); color: var(--gold-500); }
.location-card.featured .muted { color: rgba(255,255,255,.7); }

/* ============================================================
   CTA
   ============================================================ */
.cta-band { background: var(--ink-900); color: #fff; text-align: center; padding-block: var(--space-12); border-radius: var(--radius-lg); margin-inline: var(--space-5); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.72); margin-bottom: var(--space-5); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.65); margin-top: var(--space-16); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); padding-block: var(--space-12); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--space-4); font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   Breadcrumbs / page headers
   ============================================================ */
.breadcrumbs { font-size: 0.82rem; color: var(--ink-400); padding-block: var(--space-4); }
.breadcrumbs a { color: var(--ink-500); } .breadcrumbs a:hover { color: var(--brand-600); }
.page-header { padding-block: var(--space-6) var(--space-2); }

.subcat-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.subcat-list a { padding: 7px 14px; border: 1px solid var(--ink-200); border-radius: var(--radius-pill); font-size: 0.82rem; color: var(--ink-500); }
.subcat-list a:hover, .subcat-list a.active { border-color: var(--brand-600); color: var(--brand-600); background: var(--brand-50); }

.empty-state { text-align: center; padding: var(--space-16) var(--space-4); color: var(--ink-400); }
.empty-state .icon { font-size: 2rem; margin-bottom: var(--space-3); opacity: .5; }

/* ============================================================
   Business profile
   ============================================================ */
.biz-hero { background: #fff; border-bottom: 1px solid var(--ink-100); }
.biz-hero .cover { width: 100%; aspect-ratio: 16/5; min-height: 180px; background: var(--ink-100) center/cover no-repeat; }
.biz-top { display: flex; gap: var(--space-4); align-items: flex-end; padding-inline: var(--space-1); flex-wrap: wrap; }
.biz-logo { width: 84px; height: 84px; border-radius: var(--radius); border: 4px solid #fff; background: var(--ink-100) center/cover no-repeat; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.biz-top .biz-logo { margin-top: -36px; }
.biz-identity { padding-bottom: 4px; }
.biz-identity h1 { font-size: 1.5rem; }
.biz-badges { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.biz-actions { display: flex; gap: 8px; padding-block: var(--space-4); flex-wrap: wrap; }

.biz-tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--ink-100); overflow-x: auto; }
.biz-tabs a { padding: 12px 2px; font-size: 0.88rem; font-weight: 600; color: var(--ink-400); border-bottom: 2px solid transparent; white-space: nowrap; }
.biz-tabs a.active, .biz-tabs a:hover { color: var(--ink-900); border-color: var(--brand-600); }
.biz-panel { padding-block: var(--space-8); }
.biz-panel:not(.active) { display: none; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; font-size: 0.88rem; border-bottom: 1px solid var(--ink-50); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }

/* ============================================================
   App shell (portal / admin dashboards)
   ============================================================ */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 236px; background: var(--ink-900); color: rgba(255,255,255,.8); flex-shrink: 0; display: flex; flex-direction: column; }
.app-sidebar .brand { color: #fff; padding: var(--space-5) var(--space-5) var(--space-4); }
.app-sidebar nav { flex: 1; padding: var(--space-2); }
.app-sidebar a, .app-sidebar button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 10px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.72); font-size: 0.88rem; font-weight: 500; background: none; border: none; cursor: pointer; font-family: inherit; }
.app-sidebar a:hover, .app-sidebar a.active { background: rgba(255,255,255,.08); color: #fff; }
.app-sidebar .soon { margin-inline-start: auto; font-size: 0.65rem; background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: var(--radius-pill); }
.app-sidebar form { padding: 0 var(--space-2); }
.app-sidebar .material-symbols-outlined { font-size: 20px; flex-shrink: 0; }
.app-sidebar .divider { border-top: 1px solid rgba(255,255,255,.08); margin: var(--space-3) var(--space-3); }
.app-main { flex: 1; min-width: 0; padding: var(--space-8); background: var(--bg); }
.app-topbar { display: none; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.kpi-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-xs); }
.kpi-card .num { font-size: 1.7rem; font-weight: 800; color: var(--ink-900); }
.kpi-card .label { color: var(--ink-400); font-size: 0.8rem; margin-top: 2px; }

.app-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-100); }
.app-table th, .app-table td { padding: 11px 14px; border-bottom: 1px solid var(--ink-50); text-align: start; font-size: 0.86rem; }
.app-table th { background: var(--ink-50); font-weight: 700; color: var(--ink-500); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .03em; }
.app-table tr:last-child td { border-bottom: none; }
.app-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius); padding: var(--space-5); }
.soon-badge { background: var(--ink-100); color: var(--ink-400); padding: 3px 9px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 700; }

/* ============================================================
   Progress (wizard)
   ============================================================ */
.wizard-progress { margin-bottom: var(--space-6); }
.wizard-progress .track { height: 6px; background: var(--ink-100); border-radius: var(--radius-pill); overflow: hidden; }
.wizard-progress .fill { height: 100%; background: var(--brand-600); transition: width .2s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .search-panel { grid-template-columns: 1fr; }
    .shop-filter-form { grid-template-columns: 1fr 1fr; }
    .trust-row { grid-template-columns: 1fr 1fr; }
    .app-shell { flex-direction: column; }
    .app-sidebar { position: fixed; inset-inline-start: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; z-index: 200; }
    :root[dir="rtl"] .app-sidebar { transform: translateX(100%); }
    .app-sidebar.open { transform: none; }
    .app-topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding-inline: var(--space-4); background: #fff; border-bottom: 1px solid var(--ink-100); position: sticky; top: 0; z-index: 90; }
    .app-main { padding: var(--space-4); }
    .app-table { display: block; overflow-x: auto; white-space: nowrap; }
    .app-main [style*="justify-content:space-between"] { flex-wrap: wrap; gap: 10px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-category-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
    .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: var(--space-4); gap: 2px; display: none; overflow-y: auto; }
    .main-nav.open { display: flex; }
    .main-nav > a, .nav-item > button { padding: 12px 8px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--ink-50); }
    .nav-dropdown { position: static; display: none; margin: 0; padding: 0; padding-inline-start: var(--space-4); grid-template-columns: 1fr; }
    .nav-dropdown.open { display: grid; }
    .nav-dropdown::after { display: none; }
    .nav-toggle { display: inline-block; }
    .header-actions .hide-mobile { display: none; }
    .mobile-only-nav-actions { display: block; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--ink-100); }
    .mobile-only-nav-actions a:not(.btn), .mobile-only-nav-actions button:not(.btn) { display: block; padding: 10px 8px; width: 100%; text-align: start; background: none; border: none; font: inherit; color: var(--ink-700); }
    .mobile-only-nav-actions .btn { text-align: center; margin-top: var(--space-2); }
    .grid { grid-template-columns: 1fr 1fr; }
    .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
    .shop-filter-form { grid-template-columns: 1fr; }
    .shop-filter-form .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.7rem; }
    .hero p.lead { font-size: 0.92rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-banners { grid-template-columns: 1fr; }
    .trust-row { display: none; }
    .icon-btn { display: none; }
    .utility-bar-inner span:last-child { display: none; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .biz-logo { width: 64px; height: 64px; }
    .biz-top .biz-logo { margin-top: -28px; }
    .quick-cat { flex-basis: 120px; }
    .quick-cats-arrow { width: 34px; height: 34px; }
    .quick-cats-arrow.prev { inset-inline-start: -8px; }
    .quick-cats-arrow.next { inset-inline-end: -8px; }
    .shop-category-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-2); }
    .shop-hero { min-height: 220px; }
    .search-pill { height: 48px; width: 100%; max-width: 100%; }
    .search-pill input[type="text"] { height: 48px; padding-inline: 18px; font-size: 0.88rem; }
    .search-pill button { width: 48px; height: 48px; flex-shrink: 0; }
    .search-filters-row { width: 100%; max-width: 100%; }
    .search-filters-row select { flex: 1 1 0; min-width: 0; height: 44px; font-size: 0.78rem; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.25); z-index: 90; transition: transform .15s, box-shadow .15s;
}
.whatsapp-float:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
@media (max-width: 640px) {
    .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 25px; height: 25px; }
}
