/* ============================
   CSS Variables
   ============================ */
:root {
    --navy: #1B2A4A;
    --navy2: #243659;
    --navy3: #2d4270;
    --orange: #E8500A;
    --orange2: #FF9166;
    --orange-light: rgba(232,80,10,0.08);
    --green: #16A34A;
    --red: #DC2626;
    --white: #ffffff;
    --off: #F4F6F9;
    --gray: #E5E7EB;
    --gray2: #F1F3F6;
    --text: #111827;
    --text2: #4B5563;
    --text3: #9CA3AF;
    --r: 8px;
    --radius: 10px;
    --rl: 14px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(27,42,74,0.09);
    --shadow-md: 0 4px 20px rgba(27,42,74,0.12);
    --shadow-lg: 0 8px 32px rgba(27,42,74,0.14);
}

/* ============================
   Reset
   ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Tajawal', sans-serif; background: var(--off); color: var(--text); direction: rtl; font-size: 13px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: 'Tajawal', sans-serif; }

/* ============================
   Topbar
   ============================ */
.topbar { background: var(--navy); color: rgba(255,255,255,0.82); font-size: 12.5px; font-weight: 500; padding: 3px 0; }
.tb-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.tb-promo { display: flex; align-items: center; gap: 8px; }
.tb-badge { background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.tb-sep { color: rgba(255,255,255,0.2); }
.tb-links { display: flex; align-items: center; gap: 18px; }
.tb-links a { color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 5px; transition: color .2s; }
.tb-links a:hover { color: var(--orange2); }

/* ============================
   Navbar
   الترتيب: Logo → Search → زر الأقسام → الأيقونات
   ============================ */
.navbar { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 200; }

.nb-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
}

/* ① Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-text { font-size: 28px; font-weight: 900; letter-spacing: -0.5px; display: flex; gap: 3px; }
.logo-text .roby { color: var(--navy); }
.logo-text .store { color: var(--orange); }

/* ② Search Box */
/* ② Search Box */
.search-box {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray);
    border-radius: var(--r);
    background: var(--off);
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
.search-box:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); background: #fff; }

.search-cat {
    padding: 0 16px;
    height: 44px;
    border: none;
    border-left: 1.5px solid rgba(255,255,255,0.15);
    background: var(--navy);
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    transition: background 0.2s;
}

.search-cat:hover {
    background: rgba(27,42,74,0.85);
}
.search-cat option { background: var(--white); color: var(--text); }
.search-input {
    flex: 1;
    padding: 0 14px;
    height: 44px;
    border: none;
    background: transparent;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: var(--text);
    outline: none;
    min-width: 0;
}
.search-input::placeholder { color: var(--text3); }
.search-submit {
    width: 48px;
    height: 44px;
    background: var(--orange);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
    border-radius: 0;
}
.search-submit:hover { background: var(--navy); }
.search-submit svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.5; fill: none; }

/* ③ زر الأقسام */
.cat-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: #fff;
    padding: 0 18px;
    height: 44px;
    border-radius: var(--r);
    font-size: 13.5px;
    font-weight: 700;
    flex-shrink: 0;
    border: none;
    transition: background .2s;
    white-space: nowrap;
}
.cat-dropdown-btn:hover { background: var(--orange); }
.cat-dropdown-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ④ الأيقونات */
.nb-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* زرار مدير الروبي ستور */
.btn-admin-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 40px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}
.btn-admin-nav:hover { background: var(--orange); }
.btn-admin-nav svg { width: 16px; height: 16px; stroke: #fff; fill: none; }

.nb-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r);
    color: var(--text2);
    position: relative;
    transition: all .2s;
    background: none;
    border: none;
}
.nb-action:hover { background: var(--off); color: var(--navy); }
.nb-action svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.nb-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--orange);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================
   User Menu Dropdown
   ============================ */
.nb-user-menu { position: relative; }
.nb-dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border: 1px solid var(--gray); border-radius: var(--r); min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 999; overflow: hidden; }
.nb-user-menu.open .nb-dropdown { display: block; }
.nb-drop-item { display: block; width: 100%; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--text); text-align: right; background: none; border: none; cursor: pointer; font-family: 'Tajawal', sans-serif; transition: background .2s; }
.nb-drop-item:hover { background: var(--off); color: var(--navy); }
.nb-drop-logout { color: var(--red); }
.nb-drop-logout:hover { background: #FEF2F2; }

/* ============================
   User Menu Dropdown — محدث
   يشمل الأدمن والعميل
   ============================ */

/* ============================
   السهم في زرار الأدمن
   ============================ */
.nb-chevron {
    width: 14px;
    height: 14px;
    stroke: rgba(255,255,255,0.7);
    transition: transform .25s ease;
    flex-shrink: 0;
}
.nb-user-menu.open .nb-chevron {
    transform: rotate(180deg);
}

/* ============================
   Header الـ Dropdown — اسم المستخدم
   ============================ */
.nb-drop-header {
    padding: 12px 16px;
    background: var(--off);
    border-bottom: 1px solid var(--gray);
    display: flex !important;
    flex-direction: column;
    gap: 2px;
}
.nb-drop-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--navy);
}
.nb-drop-role {
    font-size: 11px;
    color: var(--text3);
    font-weight: 600;
}

/* ============================
   Divider بين الروابط والخروج
   ============================ */
.nb-drop-divider {
    height: 1px;
    background: var(--gray);
    margin: 4px 0;
}

/* ============================
   Badge عدد المفضلة في الـ Dropdown
   ============================ */
.nb-drop-badge {
    margin-right: auto;
    background: var(--orange);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ============================
   Dropdown الأدمن — أعرض شوية
   ============================ */
.nb-dropdown-admin {
    min-width: 200px;
}

/* ============================
   Dropdown العميل
   ============================ */
.nb-dropdown-user {
    min-width: 200px;
}

/* ============================
   Responsive — موبايل
   ============================ */
@media (max-width: 768px) {
    .nb-dropdown-user,
    .nb-dropdown-admin {
        left: auto;
        right: 0;
        min-width: 160px;
        max-width: 220px;
    }
}
/* ============================
   Search Toggle — موبايل بس (مخفي على ديسك توب)
   ============================ */
.nb-search-toggle { display: none; }
.mobile-search-bar { display: none; }

/* ============================
   Categories Nav
   ============================ */
.catnav { background: var(--navy2); border-top: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 199; }
.cn-scroll { overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.cn-scroll::-webkit-scrollbar { display: none; }
.cn-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; position: relative; }.cn-inner::-webkit-scrollbar { display: none; }
.cn-link { display: flex; align-items: center; gap: 6px; padding: 7px 10px; color: rgba(255,255,255,0.78); font-size: 12.5px; font-weight: 600; white-space: nowrap; border-bottom: 2.5px solid transparent; transition: all .2s; }
.cn-link:hover, .cn-link.active { color: #fff; border-bottom-color: var(--orange); }
.cn-link.hot { color: var(--orange2); }
/* ============================
   cn-item — wrapper للتصنيف اللي عنده فروع
   ============================ */
.cn-item {
    position: relative;
    display: flex;
    align-items: center;
}
 
/* ============================
   السهم جنب اسم التصنيف
   ============================ */
.cn-arrow {
    width: 13px;
    height: 13px;
    stroke: rgba(255,255,255,0.6);
    margin-left: 2px;
    transition: transform .25s ease;
    flex-shrink: 0;
}
.cn-has-dropdown.open .cn-arrow {
    transform: rotate(180deg);
    stroke: #fff;
}

/* ============================
   زرار السهم منفصل عن الرابط
   ============================ */
.cn-arrow-btn {
    background: none;
    border: none;
    padding: 4px 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background .2s;
    flex-shrink: 0;
}
.cn-arrow-btn:hover { background: rgba(255,255,255,0.1); }
 
/* ============================
   الـ Dropdown نفسه
   مخفي افتراضياً — يظهر عند hover
   ============================ */
.cn-dropdown {
    display: none;
    position: fixed;
    top: auto;
    min-width: 180px;
    background: var(--white);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray);
    z-index: 9999;
    overflow: hidden;
    animation: cnDropIn .18s ease;
}
 
/* ============================
   يظهر عند hover على الـ cn-item
   ============================ */
.cn-has-dropdown.open .cn-dropdown {
    display: block !important;
}
 
/* ============================
   Animation عند الظهور
   ============================ */
@keyframes cnDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
/* ============================
   عناصر الـ Dropdown
   ============================ */
.cn-drop-item {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all .15s;
    white-space: nowrap;
    border-bottom: 1px solid var(--gray2);
}
.cn-drop-item:last-child {
    border-bottom: none;
}
.cn-drop-item:hover {
    background: var(--orange-light);
    color: var(--orange);
    padding-right: 20px;
}
 
/* ============================
   رابط "كل التصنيف" في الأعلى
   له ستايل مختلف شوية
   ============================ */
.cn-drop-parent {
    background: var(--off);
    color: var(--navy);
    font-weight: 800;
    font-size: 13px;
    border-bottom: 2px solid var(--gray) !important;
}
.cn-drop-parent:hover {
    background: var(--navy);
    color: #fff;
    padding-right: 16px;
}
 
/* ============================
   الفرع النشط حالياً
   ============================ */
.cn-drop-active {
    color: var(--orange);
    background: var(--orange-light);
}
/* ============================
   يظهر عند click — ديسك توب وموبايل
   ============================ */
.cn-has-dropdown.open .cn-dropdown { 
    display: block !important; 
}

/* ============================
   Responsive — موبايل
   الـ Dropdown على الموبايل بيتحول لـ tap
   ============================ */
@media (max-width: 768px) {
    .cn-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0,0,0,0.15);
        animation: none;
        min-width: unset;
    }

    .cn-has-dropdown.open .cn-dropdown {
        display: block !important;
    }

    .cn-drop-item {
        color: rgba(255,255,255,0.85);
        font-size: 12px;
        padding: 8px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        background: transparent;
    }
    .cn-drop-item:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
        padding-right: 24px;
    }
    .cn-drop-parent {
        background: rgba(0,0,0,0.2);
        color: rgba(255,255,255,0.9);
    }
    .cn-drop-parent:hover {
        background: rgba(0,0,0,0.3);
        color: #fff;
        padding-right: 20px;
    }
}
/* ============================
   Alert Messages
   ============================ */
.alert { padding: 12px 20px; border-radius: var(--radius); margin: 16px 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FEF9C3; color: #854D0E; border: 1px solid #FEF08A; }

/* ============================
   WhatsApp Float Button
   ============================ */
.wa-btn { position: fixed; bottom: 24px; left: 24px; z-index: 999; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 20px rgba(37,211,102,0.4); animation: wa-pulse 2s infinite; transition: transform .2s; }
.wa-btn:hover { transform: scale(1.1); }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.65); } }

/* ============================
   Footer
   ============================ */
.footer { background: var(--navy2); margin-top: 60px; }
.footer-trust { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-trust-inner { max-width: 1320px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.ft-item { display: flex; align-items: center; gap: 12px; }
.ft-icon { font-size: 24px; flex-shrink: 0; }
.ft-item strong { display: block; font-size: 13px; font-weight: 800; color: #fff; }
.ft-item span { font-size: 11.5px; color: rgba(255,255,255,0.5); }
.footer-main { padding: 44px 0 32px; }
.footer-main-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.f-brand-col .f-logo { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.f-brand-col .f-logo span { color: var(--orange); }
.f-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.8; margin-bottom: 16px; }
.f-contact-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.f-contact-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); font-size: 13px; transition: color .2s; }
.f-contact-item:hover { color: var(--orange2); }
.f-social { display: flex; gap: 8px; }
.f-soc-btn { width: 34px; height: 34px; border-radius: var(--r); background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.f-soc-btn:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.f-col h4 { font-size: 13.5px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.f-col ul li a { color: rgba(255,255,255,0.55); font-size: 13px; transition: all .2s; display: flex; align-items: center; gap: 6px; }
.f-col ul li a:hover { color: var(--orange2); padding-right: 4px; }
.f-col-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.f-col-arrow { color: rgba(255,255,255,0.4); font-size: 18px; transition: transform .2s; display: none; }
.f-col-body { overflow: hidden; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); }
.footer-bottom-inner { max-width: 1320px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-pay { display: flex; gap: 8px; }
.pay-badge { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }

@media (max-width: 768px) {
    .footer-trust-inner { grid-template-columns: repeat(2,1fr); gap: 16px; padding: 16px; }
    .footer-main-inner { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .f-brand-col { padding: 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .f-col { border-bottom: 1px solid rgba(255,255,255,0.07); }
    .f-col-head { padding: 14px 16px; }
    .f-col-head h4 { margin-bottom: 0; }
    .f-col-arrow { display: block; }
    .f-col-body { max-height: 0; transition: max-height .3s ease; padding: 0 16px; }
    .f-col.open .f-col-body { max-height: 300px; padding: 0 16px 14px; }
    .f-col.open .f-col-arrow { transform: rotate(45deg); }
    .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; padding: 16px; }
}
/* ============================
   Live Search Dropdown
   ============================ */
.search-suggest { position: absolute; top: calc(100% + 4px); right: 0; left: 0; background: #fff; border-radius: var(--rl); box-shadow: var(--shadow-lg); border: 1px solid var(--gray); z-index: 999; max-height: 420px; overflow-y: auto; }
.sg-group-title { padding: 8px 14px; font-size: 11px; font-weight: 800; color: var(--text3); text-transform: uppercase; background: var(--off); }
.sg-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; transition: background .15s; }
.sg-item:hover { background: var(--orange-light); }
.sg-img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--r); flex-shrink: 0; }
.sg-img-placeholder { width: 40px; height: 40px; border-radius: var(--r); background: var(--off); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.sg-info { display: flex; flex-direction: column; gap: 2px; }
.sg-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.sg-label mark { background: var(--orange-light); color: var(--orange); border-radius: 2px; padding: 0 2px; }
.sg-price { font-size: 12px; font-weight: 700; color: var(--orange); }
.sg-sub { font-size: 11.5px; color: var(--text3); }
.sg-view-all { display: block; padding: 12px 14px; text-align: center; font-size: 13px; font-weight: 700; color: var(--orange); border-top: 1px solid var(--gray); transition: background .15s; }
.sg-view-all:hover { background: var(--orange-light); }

/* ============================
   Topbar — كوبون نشط
   ============================ */
.tb-coupon-active { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.9); }
.tb-badge-green { background: rgba(22,163,74,0.3); color: #86EFAC; border-color: rgba(22,163,74,0.4); }

/* ============================
   يظهر عند click — ديسك توب وموبايل
   ============================ */
.cn-has-dropdown.open .cn-dropdown { 
    display: block !important; 
}
/* ============================
   Responsive — موبايل 768px فأقل
   ============================ */
@media (max-width: 768px) {

    /* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
}

body { 
    padding-top: 52px;
}

    .nb-inner {
        height: 52px;
        padding: 0 12px;
    }

    /* --- Topbar --- */
    .topbar { display: none; }

    /* --- Navbar --- */
    .nb-inner {
        padding: 0 14px;
        height: 52px;
        gap: 8px;
    }

    /* Logo */
    .logo-text { font-size: 20px; }

    /* السيرش وزر الأقسام — مخفيين على الموبايل */
    .search-box { display: none; }
    .cat-dropdown-btn { display: none; }

    /* الأيقونات */
    .nb-actions { gap: 2px; margin-right: auto; flex-direction: row-reverse; }
    .nb-action { width: 36px; height: 36px; }
    .nb-action svg { width: 22px; height: 22px; }
    .nb-badge { top: 2px; left: 2px; }

    /* زر البحث Toggle — يظهر على الموبايل بس */
    .nb-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: var(--orange);
        border: none;
        border-radius: var(--r);
        color: #fff;
        transition: all .2s;
        flex-shrink: 0;
    }
    .nb-search-toggle:hover { background: var(--navy); }
    .nb-search-toggle svg { width: 18px; height: 18px; stroke: #fff; }

    /* Mobile Search Bar المنسدل */
    .mobile-search-bar {
        display: none;
        padding: 10px 14px;
        background: var(--white);
        border-top: 1px solid var(--gray);
        animation: slideDown .2s ease;
    }
    .mobile-search-bar.open { display: block; }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .mobile-search-form {
        display: flex;
        align-items: center;
        border: 1.5px solid var(--gray);
        border-radius: var(--r);
        background: var(--off);
        overflow: hidden;
        transition: border-color .2s;
    }
    .mobile-search-form:focus-within { border-color: var(--orange); background: #fff; }
    .mobile-search-input {
        flex: 1;
        padding: 0 14px;
        height: 42px;
        border: none;
        background: transparent;
        font-family: 'Tajawal', sans-serif;
        font-size: 14px;
        color: var(--text);
        outline: none;
    }
    .mobile-search-input::placeholder { color: var(--text3); }
    .mobile-search-submit {
        width: 44px;
        height: 42px;
        background: var(--orange);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .mobile-search-submit svg { width: 18px; height: 18px; stroke: #fff; }

    /* --- Categories Nav --- */
    .cn-inner { padding: 0 12px; }
    .cn-link { padding: 7px 10px; font-size: 12px; }

    /* --- Footer --- */
    .footer-top { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px; }
    .footer-guarantees { grid-template-columns: repeat(2,1fr); gap: 12px; padding: 16px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 16px; }

/* منع الـ Overflow */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
.container { padding-left: 12px !important; padding-right: 12px !important; }
.footer-top, .footer-guarantees, .footer-bottom { padding-right: 16px; padding-left: 16px; }
}
/* ============================
   Cart Notification — Drawer من اليمين
   زي نون
   ============================ */

/* Overlay */
.cart-notify-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 998;
    backdrop-filter: blur(2px);
}
.cart-notify-overlay.open { display: block; }

/* Drawer */
.cart-notify {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 32px rgba(27,42,74,0.15);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right .35s cubic-bezier(0.34, 1.20, 0.64, 1);
    overflow: hidden;
}
.cart-notify.open { right: 0; }

/* Header */
.cart-notify-header {
    background: var(--green);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.cart-notify-label {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* زر الإغلاق */
.cart-notify-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}
.cart-notify-close:hover { background: rgba(255,255,255,0.35); }

/* المنتج */
.cart-notify-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--gray);
    flex-shrink: 0;
}
.cart-notify-product img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--r);
    border: 1px solid var(--gray);
    flex-shrink: 0;
}
.cart-notify-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.cart-notify-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}
.cart-notify-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--orange);
}

/* الأزرار */
.cart-notify-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid var(--gray);
}
.btn-go-cart {
    padding: 14px;
    border-radius: var(--r);
    background: var(--navy);
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.btn-go-cart:hover { background: var(--orange); }

.btn-continue {
    padding: 14px;
    border: 1.5px solid var(--gray);
    border-radius: var(--r);
    background: var(--white);
    color: var(--text2);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: all .2s;
}
.btn-continue:hover { border-color: var(--navy); color: var(--navy); }

/* ✅ الجديد — Bottom Sheet على الموبايل */
@media (max-width: 768px) {
    .cart-notify {
        width: 100%;
        height: auto;
        max-height: 85vh;
        top: auto;
        bottom: -100%;
        right: 0;
        left: 0;
        border-radius: 20px 20px 0 0;
        transition: bottom .35s cubic-bezier(0.34, 1.20, 0.64, 1);
    }
    .cart-notify.open {
        bottom: 0;
        right: 0;
    }
}
/* عداد السلة في الـ Notification */
.cart-notify-count {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--off);
    color: var(--text2);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--gray);
}
/* ============================
   زرار العميل — زي الأدمن بس بلون تاني
   ============================ */
.btn-user-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--off);
    color: var(--navy);
    padding: 0 14px;
    height: 40px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1.5px solid var(--gray);
    transition: all .2s;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
}
.btn-user-nav:hover { background: var(--navy); color: #fff; }
.btn-user-nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
/* ============================
   Cart Notify — المنتج المضاف
   ============================ */
.cart-notify-added { padding: 12px 20px; background: rgba(22,163,74,0.06); border-bottom: 1px solid var(--gray); }
.cna-badge { font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.cart-notify-items { flex: 1; overflow-y: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-notify-item { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--gray); }
.cart-notify-item:last-child { border-bottom: none; }
.cni-img { width: 52px; height: 52px; border-radius: var(--r); overflow: hidden; flex-shrink: 0; background: var(--off); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cni-img img { width: 100%; height: 100%; object-fit: cover; }
.cni-info { flex: 1; }
.cni-name { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.cni-price { font-size: 13px; font-weight: 800; color: var(--orange); margin-top: 3px; }
.cni-qty { font-size: 11px; color: var(--text3); margin-top: 2px; }
.cni-empty { text-align: center; padding: 30px 20px; color: var(--text3); font-size: 14px; }
/* ============================
   Sticky Contact Bar
   ============================ */
.sticky-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    display: flex;
    align-items: stretch;
    height: 52px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
}
.scb-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    transition: filter .2s;
}
.scb-btn:hover { filter: brightness(1.1); }
.scb-btn span { font-family: 'Tajawal', sans-serif; }
.scb-call { background: var(--orange); }
.scb-wa   { background: #25D366; }
.scb-ms   { background: #0084FF; }

/* ============================
   على الديسك توب — مخفي
   ============================ */
@media (min-width: 769px) {
    .sticky-contact-bar { display: none; }
}

/* ============================
   مسافة للـ body عشان المحتوى مش يتغطى
   ============================ */
@media (max-width: 768px) {
    body { padding-bottom: 52px; }
}