/* ============================================================
   shared.css — ملف التنسيق الموحّد لجميع صفحات المتجر
   عطاريات صاحب علوش
   ============================================================ */

/* ─── 1. المتغيرات والإعادة ─── */
:root {
    /* ─── ألوان اللوغو: أخضر داكن عميق + ذهبي أنيق ─── */
    --primary:        #1A3D2B;
    --primary-light:  #2D6045;
    --primary-dark:   #0E2A1C;
    --primary-soft:   #ECF3EE;
    --accent:         #C9A84B;
    --accent-dark:    #A8882E;
    --accent-soft:    #FBF5E6;
    --bg-color:       #F5F6F4;
    --card-bg:        #FFFFFF;
    --text-main:      #1A2B22;
    --text-muted:     #6B7D74;
    --text-hint:      #A3B0AB;
    --danger:         #DC2626;
    --success:        #16A34A;
    --whatsapp:       #25D366;
    --border-color:   #DDE4DF;
    --shadow-sm:      0 2px 8px rgba(14,42,28,0.07);
    --shadow-md:      0 6px 20px rgba(14,42,28,0.10);
    --shadow-lg:      0 12px 35px rgba(14,42,28,0.13);
    --radius:         14px;
    --radius-sm:      8px;
    --transition:     all 0.28s ease;
    --nav-height:     64px;
    --bottom-nav-h:   68px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    direction: rtl;
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-nav-h) + 10px);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ─── 2. شريط التنقل العلوي (Header / Navbar) ─── */
.site-header {
    background: var(--card-bg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* الشعار */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    background: var(--primary);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(44,95,45,0.25);
    transition: var(--transition);
}

.brand:hover .brand-icon {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.brand-text h1 {
    font-size: 17px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    white-space: nowrap;
}

.brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* روابط الديسكتوب */
.desktop-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-right: 10px;
}

.desktop-nav a {
    font-weight: 700;
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 8px;
    color: var(--text-main);
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
}

.desktop-nav a i {
    font-size: 15px;
    opacity: .75;
    transition: var(--transition);
}

.desktop-nav a:hover i,
.desktop-nav a.active i {
    opacity: 1;
    color: var(--primary);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    background: rgba(44,95,45,0.09);
    color: var(--primary);
}

/* شريط البحث */
.search-bar-desktop {
    flex: 1;
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-color);
    border: 1.5px solid #e2e8f0;
    border-radius: 25px;
    padding: 0 14px;
    transition: var(--transition);
    margin: 0 auto;
}

.search-bar-desktop:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(44,95,45,0.1);
}

.search-bar-desktop .search-icon {
    color: var(--text-muted);
    font-size: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    order: -1;
}

.search-bar-desktop .icon {
    color: var(--text-muted);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    order: -1;
}

.search-bar-desktop input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 9px 10px 9px 4px;
    font-size: 14px;
    color: var(--text-main);
    min-width: 0;
}

/* أزرار الهيدر */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    position: relative;
}

.nav-icon-btn {
    position: relative;
    background: #f1f5f9;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-icon-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.nav-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
    line-height: 1;
}

.cart-badge-wrap .nav-badge {
    background: var(--accent);
}

/* قائمة الإشعارات المنسدلة */
.notifications-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 300px;
    overflow: hidden;
    z-index: 1100;
    border: 1px solid #e2e8f0;
    animation: dropDown .2s ease;
}

.notifications-dropdown.active { display: block; }

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

.notif-header {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 14px;
}

.notif-item {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    line-height: 1.5;
}

.notif-item:last-child { border-bottom: none; }

.notif-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* البحث موبايل */
.mobile-search-wrap {
    display: none;
    padding: 12px 16px;
    background: var(--card-bg);
    border-bottom: 1px solid #edf2f7;
}

.mobile-search-wrap .search-input-box {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    gap: 10px;
    transition: var(--transition);
}

.mobile-search-wrap .search-input-box:focus-within {
    border-color: var(--primary);
    background: #fff;
}

.mobile-search-wrap .search-input-box i,
.mobile-search-wrap .search-input-box .icon {
    color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mobile-search-wrap .search-input-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-main);
}

/* ─── 3. شريط التنقل السفلي (Bottom Nav) ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: var(--bottom-nav-h);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -3px 20px rgba(0,0,0,0.07);
    border-top: 1px solid #edf2f7;
    z-index: 1000;
    padding: 6px 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    flex: 1;
    position: relative;
    padding: 4px 0;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
}

.bottom-nav-item i {
    font-size: 21px;
    transition: transform .2s ease;
}

.bottom-nav-item:hover i,
.bottom-nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.bottom-nav-badge {
    position: absolute;
    top: 0;
    left: calc(50% + 4px);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

/* ─── 4. أيقونة واتساب العائمة ─── */
.whatsapp-float {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + 16px);
    left: 18px;
    width: 52px;
    height: 52px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    z-index: 900;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(37,211,102,0.55);
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.7); }
}

/* ─── 5. سلة المشتريات الجانبية ─── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.48);
    z-index: 1998;
    display: none;
    backdrop-filter: blur(2px);
}

.cart-overlay.active { display: block; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -370px;
    width: 340px;
    max-width: 95vw;
    height: 100%;
    background: var(--card-bg);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.12);
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
}

.cart-sidebar.active { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
}

.cart-header h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-cart {
    background: #f1f5f9;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.close-cart:hover { background: #e2e8f0; color: var(--danger); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.cart-item img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--bg-color);
    padding: 4px;
    border: 1px solid #edf2f7;
    flex-shrink: 0;
}

.cart-item-info { flex: 1; }

.cart-item-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-main);
    line-height: 1.4;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    padding: 3px 6px;
    border-radius: 8px;
    width: fit-content;
}

.quantity-btn {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-weight: bold;
    color: var(--primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.quantity-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.remove-item {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--danger);
    font-size: 14px;
    opacity: 0.55;
    transition: opacity .2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.remove-item:hover { opacity: 1; }

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid #edf2f7;
    background: #fafafa;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--text-main);
}

.btn-checkout {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 13px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(44,95,45,0.35);
}

.btn-checkout:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* ─── 6. نافذة تفاصيل المنتج (Modal) ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -42%) scale(.96);
    width: 92%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: 18px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all .35s cubic-bezier(.175,.885,.32,1.28);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
    border: none;
    transition: var(--transition);
}

.modal-close:hover { background: rgba(0,0,0,0.7); }

.modal-img-box {
    width: 100%;
    height: 220px;
    background: var(--bg-color);
}

.modal-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.modal-body { padding: 16px 18px; }

.modal-title {
    font-size: 17px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.modal-min-order {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(221,107,32,0.09);
    color: #C05621;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #edf2f7;
    margin-bottom: 14px;
}

.modal-price-label { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.modal-price-value { font-size: 16px; font-weight: 900; color: var(--accent); }

.modal-actions { display: flex; flex-direction: column; gap: 10px; }

.qty-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    padding: 4px;
    background: #fff;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-btn:disabled:hover { background: var(--bg-color); color: var(--primary); }

.qty-display {
    font-size: 16px;
    font-weight: 900;
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-main);
}
/* إخفاء أسهم حقل الرقم عند كتابة الكمية يدوياً */
input.qty-display::-webkit-outer-spin-button,
input.qty-display::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.qty-display { -moz-appearance: textfield; appearance: textfield; }

.modal-add-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    transition: var(--transition);
}

.modal-add-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44,95,45,0.3);
}

/* ─── 7. بطاقات المنتجات ─── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
}

.section-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.view-all-link:hover { color: var(--primary-dark); }

.products-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-scroll::-webkit-scrollbar { display: none; }

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 220px;
    flex: 0 0 220px;
    scroll-snap-align: start;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.product-img {
    width: 100%;
    height: 155px;
    object-fit: contain;
    background: #fcfcfc;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.96);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.btn-wishlist {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.btn-wishlist:hover,
.btn-wishlist.active {
    color: var(--danger);
    background: #fff;
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.product-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.min-order-badge {
    font-size: 11px;
    font-weight: 700;
    color: #C05621;
    background: rgba(221,107,32,0.09);
    padding: 4px 9px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: 900;
    color: var(--accent);
    font-size: 15px;
}

.btn-add-cart {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
}

.btn-add-cart:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* ─── 8. عناصر مشتركة أخرى ─── */
.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.page-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px dashed #e2e8f0;
}

.empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44,95,45,0.3);
}

/* ─── 9. Responsive ─── */
@media (max-width: 768px) {
    .desktop-nav,
    .search-bar-desktop {
        display: none !important;
    }

    .mobile-search-wrap {
        display: block;
    }

    .nav-container {
        padding: 0 16px;
    }

    .brand-text h1 { font-size: 15px; }
    .brand-icon { width: 38px; height: 38px; font-size: 16px; }

    .product-card {
        width: 185px;
        flex: 0 0 185px;
    }

    .product-img { height: 135px; }
}

@media (min-width: 769px) {
    .mobile-search-wrap { display: none !important; }

    /* إخفاء البوتم بار على الديسكتوب */
    .bottom-nav { display: none !important; }

    /* إزالة padding السفلي الخاص بالبوتم بار */
    body { padding-bottom: 0 !important; }

    /* تكبير زر الواتساب العائم شوية وخفض موضعه */
    .whatsapp-float {
        bottom: 24px;
        width: 56px;
        height: 56px;
    }

    /* روابط ديسكتوب تظهر دائماً */
    .desktop-nav { display: flex !important; }
}

@media (max-width: 380px) {
    .product-card { width: 165px; flex: 0 0 165px; }
}

/* ─── أيقونات عناوين الصفحات ─── */
.page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.page-header-icon.green  { background: rgba(44,95,45,0.1);  color: var(--primary); }
.page-header-icon.red    { background: rgba(229,62,62,0.1); color: var(--danger); }
.page-header-icon.orange { background: rgba(221,107,32,0.1);color: #C05621; }
.page-header-icon.blue   { background: rgba(2,132,199,0.1); color: #0284c7; }
.page-header-icon.purple { background: rgba(139,92,246,0.1);color: #7c3aed; }
.page-header-icon.teal   { background: rgba(20,184,166,0.1);color: #0d9488; }

/* تحسين البروفايل كارد */
.profile-card-enhanced {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #3a7d3b 100%);
    border-radius: var(--radius);
    padding: 22px 20px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(44,95,45,0.25);
    color: #fff;
}

.profile-card-enhanced .avatar-box {
    width: 62px;
    height: 62px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
    box-shadow: none;
}

.profile-card-enhanced .profile-info h2 { color: #fff; }
.profile-card-enhanced .profile-info p  { color: rgba(255,255,255,0.8); }

/* تحسين menu-items */
.menu-group-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 0 4px;
    margin-bottom: 8px;
}

/* أيقونات مُلوّنة في قوائم الحساب */
.menu-item-inner .icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--transition);
}

.icon-wrap.green  { background: rgba(44,95,45,0.1);  color: var(--primary); }
.icon-wrap.blue   { background: rgba(2,132,199,0.1); color: #0284c7; }
.icon-wrap.orange { background: rgba(221,107,32,0.1);color: #C05621; }
.icon-wrap.red    { background: rgba(229,62,62,0.1); color: var(--danger); }
.icon-wrap.purple { background: rgba(139,92,246,0.1);color: #7c3aed; }
.icon-wrap.teal   { background: rgba(20,184,166,0.1);color: #0d9488; }
.icon-wrap.yellow { background: rgba(234,179,8,0.12);color: #a16207; }
.icon-wrap.dark   { background: #1e293b; color: #facc15; }

.menu-item:hover .icon-wrap { transform: scale(1.1); }

/* empty state أجمل */
.empty-state i {
    display: block;
    font-size: 52px;
    margin-bottom: 16px;
}

/* page hero banner في الأقسام والمفضلة */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #3a7d3b 100%);
    border-radius: var(--radius);
    padding: 24px 22px;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 6px 20px rgba(44,95,45,0.2);
}

.page-hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.page-hero h1 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
}

.page-hero p {
    font-size: 13px;
    opacity: .82;
    margin: 0;
}

@keyframes popIn {
    from { transform: scale(.9); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
