/* ═══════════════════════════════════════════════════════════
   GETMAP — ملف CSS كامل (حاسوب + هاتف + بحث)
   يعوّض الملف بالكامل، لا تلصقه فوق القديم
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #006233;
    --primary-dark: #004d28;
    --primary-light: #0f8a4b;
    --accent: #c1272d;
    --accent-dark: #9c1d22;
    --gold: #f5b301;

    --mint-50:  #f3fbf6;
    --mint-100: #e3f5ea;
    --mint-200: #cfeedb;
    --mint-300: #a9dcc0;

    --bg: #f6f8f7;
    --card: #ffffff;
    --text: #1b2a22;
    --text-soft: #5b6b63;
    --border: #e2e8e4;
    --border-dark: #c5d0ca;

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .18);

    --radius: 14px;
    --nav-h: 66px;          /* يمكن لـ JS تعديله */
    --sticky-top: 124px;    /* يمكن لـ JS تعديله */
    --purple: #7c3aed;
    --text-muted: #6b7a72;
}

/* ─── أساسيات ─── */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Tajawal', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 96px;
}
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ═══════════ شريط التنقل ═══════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 clamp(12px, 4vw, 40px);
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}
.brand i { font-size: 1.4rem; }
.brand-accent { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-switcher {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: var(--mint-100);
    border-radius: 999px;
}
.lang-btn {
    width: 36px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 1.05rem;
    transition: background .2s, transform .2s;
}
.lang-btn:hover { background: var(--mint-200); }
.lang-btn.active { background: #fff; box-shadow: var(--shadow-sm); transform: scale(1.05); }

.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.05rem;
    display: grid;
    place-items: center;
    transition: background .2s, transform .2s;
}
.cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cart-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

/* ═══════════ الواجهة الرئيسية Hero ═══════════ */
.hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .12), transparent 45%),
        linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--primary-light));
    color: #fff;
    padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 40px);
    text-align: center;
}
.hero-content { max-width: 860px; margin: 0 auto; }
.hero-title {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.25;
}
.hero-highlight {
    display: inline-block;
    color: var(--gold);
}
.hero-subtitle {
    margin: 0 auto 24px;
    max-width: 640px;
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, .9);
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}
.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: .92rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.hero-feature i { color: var(--gold); }

/* ═══════════ شريط البحث ═══════════ */
.search-bar {
    position: relative;
    z-index: 960;
    background: #fff;
    padding: 10px clamp(12px, 4vw, 40px);
    border-bottom: 1px solid var(--border);
}
.search-box {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}
.search-box > i.fa-magnifying-glass {
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
}
.search-input {
    width: 100%;
    height: 46px;
    padding: 0 46px;
    border: 2px solid var(--mint-300);
    border-radius: 999px;
    background: var(--mint-50);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 98, 51, .12);
}
.search-clear {
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--mint-200);
    color: var(--primary-dark);
    display: none;
    place-items: center;
}
.search-clear:hover { background: var(--mint-300); }
.search-box.has-value .search-clear { display: grid; }

.search-info {
    max-width: 720px;
    margin: 6px auto 0;
    font-size: .82rem;
    color: var(--text-soft);
    text-align: center;
    min-height: 1.2em;
}
.no-results {
    margin: 30px auto;
    max-width: 480px;
    padding: 28px 20px;
    text-align: center;
    background: #fff;
    border: 2px dashed var(--mint-300);
    border-radius: var(--radius);
    color: var(--text-soft);
    font-weight: 700;
}
.no-results i { display: block; font-size: 2rem; color: var(--mint-300); margin-bottom: 8px; }
.search-hide { display: none !important; }
mark.search-hit {
    background: #fff3a8;
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

/* نتائج البحث (كل الأنواع) */
.search-results { max-width: 1100px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 24px) 24px; }
.search-results[hidden] { display: none; }
.sr-group { margin-bottom: 22px; }
.sr-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 10px 14px;
    border-inline-start: 6px solid var(--primary);
    border-radius: 10px;
    background: var(--mint-100);
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 900;
}
.sr-cat { font-size: .78rem; font-weight: 700; color: var(--text-soft); margin-inline-start: auto; }

/* ═══════════ شريط الأنواع ═══════════ */
.cats-shell,
.categories-nav-wrapper {
    position: sticky;
    top: var(--nav-h);
    z-index: 900;
    background: #fff;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 98, 51, .12);
}
.cats-shell { --d: 1; }
.cats-shell > .categories-nav-wrapper {
    position: static;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
}
.categories-nav-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.categories-nav-wrapper::-webkit-scrollbar { display: none; }

.categories-nav {
    display: flex;
    gap: 8px;
    padding: 10px clamp(12px, 4vw, 40px);
    min-width: max-content;
}
.cats-shell .categories-nav,
.categories-nav-wrapper .categories-nav { justify-content: center; }

.cat-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 6px 16px;
    border: 1.5px solid var(--mint-300);
    border-radius: 999px;
    background: var(--mint-100);
    color: var(--primary-dark);
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    scroll-snap-align: center;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.cat-emoji { font-size: 1.05rem; flex-shrink: 0; }
.cat-nav-item:hover { background: var(--mint-200); border-color: var(--primary); transform: translateY(-1px); }
.cat-nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 98, 51, .35);
}

/* أسهم التمرير */
.cats-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--accent);
    color: #fff;
    font-size: .85rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 3px 12px rgba(193, 39, 45, .5);
    touch-action: manipulation;
}
.cats-arrow.prev { inset-inline-start: 4px; }
.cats-arrow.next { inset-inline-end: 4px; }
.cats-shell.can-prev .cats-arrow.prev,
.cats-shell.can-next .cats-arrow.next { display: flex; }
.cats-shell.can-next .cats-arrow.next,
.cats-shell.can-prev:not(.can-next) .cats-arrow.prev {
    animation: arrowNudge 1.3s ease-in-out infinite;
}
@keyframes arrowNudge {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(-50%) translateX(calc(var(--d) * 5px)); }
}
@media (prefers-reduced-motion: reduce) {
    .cats-arrow { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ═══════════ المحتوى ═══════════ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px clamp(12px, 3vw, 24px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--mint-100), var(--mint-200));
    border: 1.5px solid var(--mint-300);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 98, 51, .10);
}
.category-header-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
}
.category-header-info h2 {
    margin: 0 0 4px;
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    font-weight: 900;
    color: var(--primary-dark);
}
.category-header-info p,
.category-header-info span { margin: 0; font-size: .9rem; color: var(--text-soft); }

/* ═══════════ الأكورديون ═══════════ */
.accordion { display: flex; flex-direction: column; gap: 14px; }

.accordion-item {
    overflow: clip;
    background: #fff;
    border: 1.5px solid var(--mint-300);
    border-radius: var(--radius);
    scroll-margin-top: var(--sticky-top);
    transition: box-shadow .25s, border-color .25s;
}
.accordion-item.open {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 98, 51, .16);
}

.accordion-trigger {
    position: sticky;
    top: var(--sticky-top);
    z-index: 5;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px 18px;
    border: 0;
    border-inline-start: 6px solid var(--primary);
    background: var(--mint-100);
    color: var(--primary-dark);
    text-align: start;
    transition: background .2s;
}
.accordion-trigger:hover  { background: var(--mint-200); }
.accordion-trigger:active { background: var(--mint-300); }
.accordion-item.open .accordion-trigger { background: var(--mint-200); }

.accordion-title { flex: 1; font-size: 1.05rem; font-weight: 900; color: var(--primary-dark); }
.accordion-count {
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
}
.accordion-arrow { color: var(--primary); font-size: .9rem; transition: transform .25s; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.accordion-icon { font-size: 1.3rem; }
.accordion-inner {
    background: #fff;
    padding: 16px;
}

/* ═══════════ عناصر الخرائط ═══════════ */
.accordion-inner,
.sr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
}
.accordion-inner > div:has(> .add-custom-btn),
.accordion-inner > .custom-map-form { grid-column: 1 / -1; }

.custom-map-form {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--mint-50);
    border: 1.5px solid var(--mint-300);
    border-radius: 12px;
}
.custom-map-form.active { display: flex; }
.custom-map-form h4 { margin: 0; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; }
.custom-form-actions { display: flex; gap: 10px; }
.btn-sm-primary, .btn-sm-secondary { flex: 1; border-radius: 10px; font-weight: 800; border: 2px solid transparent; }
.btn-sm-primary { background: var(--primary); color: #fff; }
.btn-sm-primary:hover { background: var(--primary-dark); }
.btn-sm-secondary { background: #fff; color: var(--primary-dark); border-color: var(--border-dark); }

.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cart-btn.pulse { animation: cartPulse .35s ease; }
@keyframes cartPulse { 50% { transform: scale(1.18); } }

.map-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-inline-start: 4px solid var(--border-dark);
    border-radius: 12px;
    cursor: pointer;
    touch-action: manipulation;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .1s;
}
.map-item:hover { background: var(--mint-50); border-color: var(--mint-300); box-shadow: var(--shadow-sm); }
.map-item:active { transform: scale(.985); background: #f0fdf5; }
.map-item.selected {
    background: var(--mint-50);
    border-color: var(--primary);
    border-inline-start-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 98, 51, .12);
}

.map-check-box {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 2.5px solid var(--border-dark);
    border-radius: 8px;
    background: #fff;
    display: grid;
    place-items: center;
    color: transparent;
    transition: background .2s, border-color .2s;
}
.map-check-box i { font-size: .85rem; }
.map-item.selected .map-check-box { background: var(--primary); border-color: var(--primary); color: #fff; }

.map-name { flex: 1; min-width: 0; font-size: .98rem; font-weight: 700; line-height: 1.4; }
.map-price {
    font-size: .95rem;
    font-weight: 900;
    color: var(--primary);
    background: var(--mint-100);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* مربع الاختيار الأصلي مخفي */
.map-checkbox { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.map-item { position: relative; }
.map-item.selected { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* الكمية والملاحظات: تظهر فقط عند اختيار الخريطة */
.map-options {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease;
}
.map-item.selected + .map-options { max-height: 420px; opacity: 1; }
.map-options-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--mint-50);
    border: 1.5px solid var(--primary);
    border-top: 0;
    border-radius: 0 0 12px 12px;
}
.option-row { display: flex; align-items: center; gap: 10px; }
.option-row label { font-size: .88rem; font-weight: 800; color: var(--primary-dark); }

.qty-control, .qty-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.qty-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--mint-300);
    border-radius: 10px;
    background: var(--mint-100);
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 800;
    transition: background .2s;
}
.qty-btn:hover { background: var(--mint-200); }
.qty-value {
    width: 56px;
    height: 44px;
    text-align: center;
    border: 1.5px solid var(--border-dark);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
}

.comment-input, .custom-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-dark);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 16px;
    resize: vertical;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.comment-input { min-height: 72px; }
.comment-input:focus, .custom-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 51, .12);
}

.add-custom-btn {
    min-height: 52px;
    width: 100%;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    background: var(--mint-50);
    color: var(--primary-dark);
    font-weight: 800;
    transition: background .2s;
}
.add-custom-btn:hover { background: var(--mint-100); }

.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .88rem; border-radius: 10px; }

/* ═══════════ الشريط السفلي ═══════════ */
.sticky-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px clamp(12px, 4vw, 40px) calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 2px solid var(--primary);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
    transform: translateY(110%);
    transition: transform .3s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-info { display: flex; align-items: center; gap: 18px; }
.sticky-count { display: flex; align-items: baseline; gap: 6px; font-size: .88rem; color: var(--text-soft); }
.sticky-count strong { font-size: 1.25rem; color: var(--primary); }
.sticky-total strong { font-size: 1.3rem; font-weight: 900; color: var(--accent); }
.sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 98, 51, .35);
    transition: transform .2s, opacity .2s;
}
.sticky-btn:hover:not(:disabled) { transform: translateY(-2px); }
.sticky-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ═══════════ النافذة المنبثقة ═══════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 25, 18, .6);
    backdrop-filter: blur(3px);
}
.modal-overlay.active,
.modal-overlay.open,
.modal-overlay.show { display: flex; }

.modal-box {
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalIn .3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}
.modal-header h2 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 1rem;
    transition: background .2s;
}
.modal-close:hover { background: rgba(255, 255, 255, .32); }

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    -webkit-overflow-scrolling: touch;
}
.form-title {
    margin: 0 0 14px;
    font-size: 1.02rem;
    font-weight: 900;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9rem; }
.required { color: var(--accent); }
.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border-dark);
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 98, 51, .12); }

.summary-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--mint-50);
}
.summary-item { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.summary-item:last-child { border-bottom: 0; }
.summary-item-header { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; }
.summary-item-price { color: var(--primary); white-space: nowrap; }
.summary-item-meta { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.summary-item-comment { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #fff; font-size: .82rem; color: var(--text-soft); }
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--mint-100);
    font-weight: 800;
}
.summary-total { flex-direction: column; align-items: stretch; text-align: center; gap: 4px; }
.summary-total strong { font-size: 1.4rem; color: var(--accent); }

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: #fafcfb;
}
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 800;
    border: 2px solid transparent;
    transition: transform .2s, background .2s;
}
.btn-primary { flex: 1; background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(37, 211, 102, .4); }
.btn-primary:hover { background: #1fb957; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--primary-dark); border-color: var(--border-dark); }
.btn-secondary:hover { background: var(--mint-100); }

/* ═══════════ Toast ═══════════ */
.toast {
    position: fixed;
    inset-inline: 0;
    margin: 0 auto;
    width: max-content;
    max-width: 90vw;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 3000;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: none; }
.toast.success { background: var(--primary); }
.toast.error { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   حاسوب كبير: شبكة من عمودين للخرائط
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
    .accordion-inner { grid-template-columns: 1fr 1fr; }
    .sr-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) {
    .container { max-width: 1240px; }
}

/* ═══════════════════════════════════════════════════════════
   لوحي وهاتف
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --nav-h: 60px; }
    .brand { font-size: 1.25rem; }
    .lang-btn { width: 32px; height: 30px; font-size: .95rem; }
    .cart-btn { width: 40px; height: 40px; }
    .categories-nav { justify-content: flex-start; }

    .modal-body { grid-template-columns: 1fr; padding: 16px; }
    .category-header { padding: 16px; gap: 12px; }
    .category-header-icon { width: 46px; height: 46px; font-size: 1.5rem; }
}

@media (max-width: 640px) {
    .container { padding: 14px 10px; }

    .cats-shell .cat-nav-item,
    .categories-nav-wrapper .cat-nav-item {
        flex: 0 0 28vw;
        min-width: 0;
        padding: 5px 7px;
        gap: 4px;
        font-size: .72rem;
        white-space: normal;
        text-align: center;
    }
    .cat-emoji { font-size: .95rem; }

    .accordion-inner { padding: 10px 8px 14px; }
    .map-name { font-size: .93rem; }

    .sticky-info { gap: 10px; }
    .sticky-btn { padding: 12px 18px; font-size: .88rem; }
    .sticky-btn span { display: none; }
    .sticky-btn { min-width: 52px; justify-content: center; }

    /* Bottom Sheet */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-box {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
        animation: sheetUp .35s cubic-bezier(.4, 0, .2, 1);
    }
    .modal-footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); flex-direction: column-reverse; }
    .btn-primary, .btn-secondary { min-height: 50px; }
}
@keyframes sheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ═══ طباعة ═══ */
@media print {
    .navbar, .search-bar, .cats-shell, .categories-nav-wrapper, .sticky-bar, .toast { display: none !important; }
}