/* =============================================
   كيدز ستور - ملابس أطفال
   CSS الرئيسي
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
    --primary: #FF6B8A;
    --primary-dark: #e05570;
    --secondary: #4ECDC4;
    --accent: #FFD93D;
    --accent2: #A8E6CF;
    --dark: #2D3436;
    --text: #444;
    --text-light: #888;
    --bg-light: #FFF9F9;
    --bg-gray: #F8F9FA;
    --white: #FFFFFF;
    --border: #F0E0E0;
    --shadow: 0 4px 20px rgba(255,107,138,0.12);
    --shadow-lg: 0 10px 40px rgba(255,107,138,0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-light);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }

/* ===== GLOBAL SETTINGS ===== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1400px) {
    .container { max-width: 1440px; }
}

@media (min-width: 2000px) {
    .container { max-width: 1800px; }
    body { font-size: 18px; }
    .section-title { font-size: 42px; }
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #0b0f16;
    color: #e6eaf3;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar .container {
    max-width: 100%;
}
.top-bar a { color: #f7d5df; transition: var(--transition); }
.top-bar a:hover { color: var(--white); }
.top-bar-text {
    color: #f3f6ff;
    font-weight: 600;
}

/* ===== HEADER ===== */
.main-header {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid rgba(17, 24, 39, 0.04);
}
.main-header .row {
    display: flex;
    align-items: center;
    min-height: 94px;
}

/* Logo */
.logo-link { display: block; }
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    transition: var(--transition);
}
.logo:hover {
    transform: translateY(-2px);
}
.logo img {
    display: block;
    transition: var(--transition);
}
.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(255,107,138,0.25);
}
.logo-text {
    display: flex;
    flex-direction: column;
    margin-top: 2px;
}
.brand-name {
    font-size: 17px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: -0.5px;
}
.brand-slogan {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    opacity: 0.9;
}
[data-theme="dark"] .brand-slogan {
    color: #A0A8C0;
}

/* Search */
.search-form {
    max-width: 520px;
    margin: 0 auto;
}
.search-form .input-group {
    background: #f7f7f9;
    border: 1px solid rgba(17,24,39,0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}
.search-form .search-input {
    border: none;
    border-left: none;
    padding: 14px 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    border-radius: 0 !important;
    background: transparent;
    transition: var(--transition);
}
.search-form .search-input:focus {
    border-color: transparent;
    box-shadow: none;
    outline: none;
}
.btn-search {
    background: linear-gradient(135deg, var(--primary) 0%, #ff7e9a 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 0 18px 18px 0 !important;
    font-size: 16px;
    transition: var(--transition);
}
.btn-search:hover { background: linear-gradient(135deg, var(--primary-dark) 0%, #f16782 100%); color: white; }

/* Header Icons */
.header-icons { gap: 22px !important; margin-right: 10px; }
.icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--dark);
    font-size: 12px;
    transition: var(--transition);
    cursor: pointer;
    padding: 0 4px;
}
.icon-btn:hover { color: var(--primary); }
.icon-btn i { font-size: 22px; }
.cart-icon-wrap { position: relative; }
.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== NAV ===== */
.main-nav {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8FA3 100%);
    box-shadow: 0 3px 15px rgba(255,107,138,0.3);
    position: relative;
    z-index: 999;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 0;
}

@media (max-width: 768px) {
    .main-nav {
        display: block !important;
        padding: 6px 0 !important;
        position: sticky;
        top: 50px;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.85) !important; /* خلفية زجاجية في النهار */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }
    
    html[data-theme="dark"] .main-nav {
        background: rgba(15, 17, 23, 0.85) !important; /* خلفية زجاجية في الليل */
        border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    }
    
    .main-nav .container {
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .main-nav .container::-webkit-scrollbar {
        display: none; /* إخفاء شريط التمرير الكروم والسفاري */
    }

    .nav-list {
        display: inline-flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 0 16px !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        align-items: center;
        height: 44px;
    }

    .nav-list li {
        flex: 0 0 auto;
        position: relative;
    }

    .nav-list .nav-link {
        color: var(--dark) !important;
        background: rgba(0, 0, 0, 0.04) !important;
        padding: 8px 16px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 50px !important; /* تحويل الأزرار إلى كبسولات دائرية */
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        text-decoration: none;
    }

    html[data-theme="dark"] .nav-list .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
    }

    .nav-list .nav-link.active {
        color: white !important;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
        border-color: var(--primary) !important;
        box-shadow: 0 4px 12px rgba(255, 107, 138, 0.25) !important;
    }
    
    .nav-list .nav-link:hover:not(.active) {
        background: rgba(0, 0, 0, 0.08) !important;
        transform: translateY(-1px);
    }
    
    html[data-theme="dark"] .nav-list .nav-link:hover:not(.active) {
        background: rgba(255, 255, 255, 0.12) !important;
    }

    /* إخفاء سهم القائمة في الموبايل لتقليل الازدحام */
    .nav-list .dropdown-toggle::after {
        display: none !important;
    }
}

.nav-list .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}
.nav-list .nav-link:hover,
.nav-list .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
}
.nav-list .dropdown-toggle::after {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
}
.offers-link { color: var(--accent) !important; }
.navbar-toggler {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    margin: 8px 0;
}

/* ===== HERO SLIDER — PREMIUM ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.hero-slide {
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 70px 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
/* نظام ألوان موحّد للشرائح (عائلة وردي/ليلك) لضمان انتقال لوني متناسق */
.hero-slide-1 {
    background: linear-gradient(135deg, #FFF1F5 0%, #FFE4EC 55%, #F6EEFF 100%);
}
.hero-slide-2 {
    background: linear-gradient(135deg, #F6EEFF 0%, #FFF1F5 50%, #FFE4EC 100%);
}
.hero-slide-3 {
    background: linear-gradient(135deg, #FFE4EC 0%, #F6EEFF 55%, #FFF1F5 100%);
}

/* طبقة تعتيم محايدة فوق صورة البانر (تحافظ على ألوان الصورة الأصلية) */
.hero-slide.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to left, rgba(20,23,32,.82) 0%, rgba(20,23,32,.55) 45%, rgba(20,23,32,.18) 100%);
}

/* أشكال زخرفية ضبابية هادئة بألوان العلامة التجارية */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}
.hero-blob-1 { width: 320px; height: 320px; background: rgba(255,107,138,.20); top: -130px; right: -90px; }
.hero-blob-2 { width: 260px; height: 260px; background: rgba(167,120,255,.14); bottom: -130px; left: 8%; }

.hero-slide .container { position: relative; z-index: 2; }
.hero-content { position: relative; z-index: 2; }

/* الشارة (Badge) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FF5C80, #C9406A);
    color: #fff;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(201,64,106,.35);
    animation: bounce 2s infinite;
}
.hero-badge-primary { background: linear-gradient(135deg, #FF5C80, #C9406A); box-shadow: 0 8px 20px rgba(201,64,106,.35); }
.hero-badge-pink    { background: linear-gradient(135deg, #FF7BA3, #D6336C); box-shadow: 0 8px 20px rgba(214,51,108,.35); }
.hero-badge-success { background: linear-gradient(135deg, #2BB673, #12805A); box-shadow: 0 8px 20px rgba(18,128,90,.30); }
.hero-badge-warning { background: linear-gradient(135deg, #FFD93D, #EFA500); color: #543800; box-shadow: 0 8px 20px rgba(239,165,0,.35); }
.hero-badge-info    { background: linear-gradient(135deg, #2FB3AA, #2E7BD6); box-shadow: 0 8px 20px rgba(46,123,214,.30); }

.hero-title {
    font-size: 54px;
    font-weight: 900;
    color: #1E2430;
    line-height: 1.15;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 14px;
    letter-spacing: -.5px;
}
.hero-title span { color: var(--primary-dark); }

.hero-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: #C9406A;
    margin-bottom: 12px;
    line-height: 1.4;
}
.hero-desc {
    font-size: 16px;
    color: #525B69;
    margin-bottom: 30px;
    max-width: 520px;
    line-height: 1.9;
}

/* نص أبيض فوق صورة البانر */
.hero-slide.has-image .hero-title { color: #fff; text-shadow: 0 3px 18px rgba(0,0,0,.4); }
.hero-slide.has-image .hero-subtitle { color: #FFD9E3; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-slide.has-image .hero-desc { color: rgba(255,255,255,.92); text-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* أزرار الدعوة لاتخاذ إجراء */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}
.hero-btn i { transition: transform .3s ease; }
.hero-btn:hover i { transform: translateX(-5px); }
.hero-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.hero-btn:hover::after { left: 130%; }

/* العرض البصري (الإيموجي) */
.hero-image {
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.hero-emoji-glow {
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 45%, rgba(255,255,255,0) 70%);
    box-shadow: 0 0 60px rgba(255,107,138,.25);
}
.hero-emoji {
    position: relative;
    font-size: 190px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 24px 45px rgba(255,107,138,.3));
    animation: float 4s ease-in-out infinite;
}
.hero-image .floating-badge {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}
.badge-sale { top: 20px; right: 20px; color: var(--primary); }
.badge-new { bottom: 40px; left: 20px; color: var(--secondary); }

/* أزرار التنقل في السلايدر */
.carousel-control-prev, .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(45,52,54,.18);
    color: var(--primary);
    transition: var(--transition);
    z-index: 5;
}
.carousel-control-prev i, .carousel-control-next i { font-size: 17px; }
.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}
.carousel-control-prev { left: 22px; }
.carousel-control-next { right: 22px; }

/* مؤشرات السلايدر */
.carousel-indicators { align-items: center; gap: 8px; }
.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50px !important;
    background-color: var(--primary) !important;
    border: none !important;
    opacity: .35 !important;
    margin: 0 !important;
    transition: var(--transition);
}
.carousel-indicators button.active {
    width: 30px !important;
    opacity: 1 !important;
}

/* ظهور محتوى الشريحة النشطة */
.carousel-item.active .hero-content { animation: heroIn .8s cubic-bezier(.2,.7,.3,1); }
@keyframes heroIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: none; }
}

/* ===== SECTION TITLES ===== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.section-title {
    font-size: 34px;
    font-weight: 900;
    color: var(--dark);
    font-family: 'Tajawal', sans-serif;
}
.section-title span { color: var(--primary); }
.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to left, var(--primary), var(--secondary));
    border-radius: 4px;
    margin: 12px auto 0;
}

/* ===== CATEGORIES v2 — PREMIUM MODERN DESIGN ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
}
.categories-grid > .category-wrapper {
    display: flex;
}

@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 479px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.cat-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 220px;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none !important;
    background: linear-gradient(135deg, #fff5f7 0%, #f5f7ff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(255, 107, 138, 0.10);
    border-color: rgba(255, 107, 138, 0.12);
    text-decoration: none !important;
}

.cat-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .45s ease;
}
.cat-card:hover .cat-bg { transform: scale(1.06); }

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.70) 100%);
    z-index: 1;
}
.cat-card.no-image .cat-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.15) 40%, rgba(15,23,42,0.14) 100%);
}

.cat-card.no-image .cat-bg {
    background: var(--cat-grad, linear-gradient(135deg, #fff0f6 0%, #eef2ff 100%));
}

.cat-deco {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
    filter: blur(1px);
}
.cat-deco.d1 { top: -20px; right: -25px; background: radial-gradient(circle, var(--cat-color, rgba(255,107,138,.25)), transparent 68%); }
.cat-deco.d2 { bottom: -25px; left: -20px; background: radial-gradient(circle, var(--cat-color-2, rgba(124,58,237,.18)), transparent 68%); }

.cat-prod-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
}
.cat-card.no-image .cat-prod-badge {
    background: rgba(255,255,255,0.78);
    color: var(--cat-color-solid, #c2410c);
    border-color: rgba(255,255,255,0.9);
}

.cat-icon-box {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(8px);
}
.cat-card.no-image .cat-icon-box {
    background: rgba(255,255,255,0.78);
    color: var(--cat-color-solid, #c2410c);
    border-color: rgba(255,255,255,0.9);
}

.cat-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 120px;
    padding: 14px 14px 12px;
    color: #fff;
}
.cat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.cat-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    font-family: 'Tajawal', sans-serif;
}
.cat-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 12px;
}
.cat-card.no-image .cat-arrow-btn {
    background: rgba(255,255,255,0.78);
    border-color: rgba(255,255,255,0.9);
    color: var(--cat-color-solid, #c2410c);
}

.cat-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cat-card.no-image .cat-desc {
    color: rgba(17,24,39,0.70);
}

.cat-subtags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    min-height: 24px;
}
.cat-subtag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.cat-card.no-image .cat-subtag {
    background: rgba(255,255,255,0.8);
    border-color: rgba(15,23,42,0.04);
    color: rgba(17,24,39,0.8) !important;
}
.cat-subtag:hover {
    background: rgba(255,255,255,0.92);
    color: var(--primary) !important;
    text-decoration: none !important;
}
.cat-subtags-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    background: rgba(255,255,255,0.14);
    border: 1px dashed rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}
.cat-card.no-image .cat-subtags-more {
    background: rgba(255,255,255,0.8);
    border-color: rgba(15,23,42,0.06);
    color: rgba(15,23,42,0.72);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .cat-card { height: 190px; }
    .cat-title { font-size: 16px; }
    .cat-desc { font-size: 10.5px; }
    .cat-prod-badge { font-size: 9.5px; }
    .cat-subtag { font-size: 8.5px; }
}

/* ألوان الفئات (6 ألوان) */
.cat-col-0 { --cat-grad: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%); --cat-color: rgba(14, 165, 233, .22); --cat-color-solid: #0284c7; --cat-color-2: rgba(56, 189, 248, .18); }
.cat-col-1 { --cat-grad: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); --cat-color: rgba(219, 39, 119, .22); --cat-color-solid: #be185d; --cat-color-2: rgba(244, 114, 182, .18); }
.cat-col-2 { --cat-grad: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); --cat-color: rgba(217, 119, 6, .22); --cat-color-solid: #b45309; --cat-color-2: rgba(251, 191, 36, .18); }
.cat-col-3 { --cat-grad: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); --cat-color: rgba(5, 150, 105, .22); --cat-color-solid: #047857; --cat-color-2: rgba(52, 211, 153, .18); }
.cat-col-4 { --cat-grad: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); --cat-color: rgba(234, 88, 12, .22); --cat-color-solid: #c2410c; --cat-color-2: rgba(251, 146, 60, .18); }
.cat-col-5 { --cat-grad: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); --cat-color: rgba(124, 58, 237, .22); --cat-color-solid: #6d28d9; --cat-color-2: rgba(167, 139, 250, .18); }

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .cat-card {
        height: 180px;
    }
    .cat-title { font-size: 16px; }
    .cat-desc { font-size: 11px; }
    .cat-icon-box { width: 42px; height: 42px; font-size: 18px; }
    .cat-subtag { font-size: 9px; padding: 3px 7px; }
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.product-card:hover .product-name {
    color: var(--primary);
}
.product-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #FFF5F7, #F0FFFE);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-image .emoji-placeholder {
    font-size: 100px;
    opacity: 0.7;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.badge-new-prod {
    background: var(--secondary);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}
.badge-sale-prod {
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}
.product-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; }
.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    font-size: 14px;
}
.action-btn:hover { background: var(--primary); color: white; }
.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.4;
    transition: var(--transition);
    text-decoration: none;
}
.product-age {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}
.product-age i { color: var(--secondary); }
.product-price { margin-bottom: 15px; }
.price-current {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Tajawal', sans-serif;
}
.price-original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 8px;
}
.product-stars { color: var(--accent); font-size: 13px; }
.product-stars span { color: var(--text-light); font-size: 12px; }
.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--primary-dark), #c0416e);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255,107,138,0.4);
}

/* ===== FEATURES ===== */
.features-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}
.feature-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}
.feature-text h6 { font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.feature-text p { font-size: 12px; color: var(--text-light); margin: 0; }

/* ===== OFFERS BANNER ===== */
.offer-banner {
    border-radius: var(--radius);
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.offer-banner-1 {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8FA3 100%);
}
.offer-banner-2 {
    background: linear-gradient(135deg, var(--secondary) 0%, #45B7AA 100%);
}
.offer-banner .discount-badge {
    font-size: 64px;
    font-weight: 900;
    font-family: 'Tajawal', sans-serif;
    line-height: 1;
}
.offer-banner h4 { font-size: 22px; font-weight: 700; margin: 8px 0; }
.offer-banner p { opacity: 0.9; font-size: 14px; }
.offer-banner::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    top: -50px;
    left: -50px;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,138,0.4);
    color: white;
}
.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 26px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
}
.btn-white {
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* ===== FOOTER ===== */
.main-footer { background: var(--dark); }
.footer-top { padding: 60px 0 40px; }
.footer-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 17px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.footer-desc { color: #aaa; font-size: 14px; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-right: 5px; }
.contact-info { list-style: none; padding: 0; }
.contact-info li {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info i { color: var(--primary); width: 16px; }
.social-links { display: flex; gap: 10px; }
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.newsletter .form-control {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: white;
}
.newsletter .form-control::placeholder { color: #888; }
.newsletter .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { color: #888; font-size: 14px; margin: 0; }
.payment-icons { display: flex; gap: 12px; justify-content: flex-end; }
.payment-icons i { font-size: 28px; color: #888; transition: var(--transition); }
.payment-icons i:hover { color: var(--accent); }

/* Sub-category links on Home Page */
.sub-cat-link {
    font-size: 10px;
    opacity: 0.9;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.sub-cat-link:hover {
    transform: scale(1.1);
    background-color: var(--primary) !important;
    color: white !important;
    opacity: 1;
}

/* ===== FLOATING BUTTONS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    left: 25px;
    width: 55px;
    height: 55px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    left: auto;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.show { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); background: var(--primary-dark); }

/* تعديل مواضع الأزرار العائمة في الهواتف */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 95px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .back-to-top {
        bottom: 95px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 992px) {
    .hero-slide { min-height: 460px; padding: 55px 0; }
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 19px; }
    .hero-emoji { font-size: 140px; }
    .hero-emoji-glow { width: 240px; height: 240px; }
    .hero-image { min-height: 240px; }
    .header-icons { gap: 12px !important; }
}

@media (max-width: 768px) {
    .features-section { padding: 25px 0; }
    .feature-item { gap: 8px; flex-direction: column; text-align: center; }
    .feature-icon { width: 38px; height: 38px; font-size: 15px; }
    .feature-text h6 { font-size: 12px; }
    .feature-text p { font-size: 10px; }
    
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .cat-card {
        height: 180px;
    }
    .cat-title { font-size: 16px; }
    .cat-desc { font-size: 11px; }
    .cat-icon-box { width: 42px; height: 42px; font-size: 18px; }
    .cat-subtag { font-size: 9px; padding: 3px 7px; }
    
    .product-grid { gap: 10px; }
    .product-image { height: 150px; }
    .product-image .emoji-placeholder { font-size: 46px; }
    .product-info { padding: 10px; }
    .product-category { font-size: 10px; margin-bottom: 4px; }
    .product-name { font-size: 12.5px; height: 34px; line-height: 1.35; overflow: hidden; }
    .product-age { font-size: 10.5px; margin-bottom: 8px; }
    .product-stars { font-size: 11px; }
    .price-current { font-size: 15px; }
    .price-original { font-size: 11px; margin-right: 4px; }
    .product-price { margin-bottom: 10px; }
    .btn-add-cart { padding: 7px 6px; font-size: 11.5px; }
    /* لا يوجد Hover في الهواتف: إظهار الأزرار السريعة دائماً */
    .product-actions { opacity: 1; }
    .action-btn { width: 28px; height: 28px; font-size: 11px; }
    .product-badges { top: 8px; right: 8px; }
    .product-actions { top: 8px; left: 8px; }
    .badge-new-prod, .badge-sale-prod { padding: 2px 8px; font-size: 9.5px; }
    .product-card .card-color-dot { width: 16px; height: 16px; }
    .card-colors { gap: 4px; }
    
    .offer-banner { padding: 20px 12px; }
    .offer-banner .discount-badge { font-size: 34px; }
    .offer-banner h4 { font-size: 16px; }
}

/* (أنماط البانر للشاشات الصغيرة مُعرّفة لاحقاً بعد بلوك 768px لضمان أولويتها) */

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes 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.6); }
}

/* ===== CART ===== */
.cart-table th { font-weight: 700; color: var(--dark); font-size: 14px; }
.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input {
    width: 50px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 4px;
    font-weight: 700;
}
.cart-summary {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 5px;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}

/* ===== FORMS ===== */
.form-select {
    direction: rtl !important;
    text-align: right !important;
    background-position: left 0.75rem center !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    cursor: pointer;
    background-color: white;
}
.form-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.form-card .form-label { font-weight: 600; color: var(--dark); font-size: 14px; }
.form-card .form-control, .form-card .form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    direction: rtl;
    text-align: right;
    background-position: left 0.75rem center; /* Ensure the dropdown arrow is on the left for RTL */
    background-size: 16px 12px;
}
.form-card .form-control:focus, .form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,138,0.1);
    outline: none;
}
.form-card .form-select:hover {
    border-color: #FF8EAB;
}
.form-card .form-select option {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    padding: 10px 16px;
}
/* Fix for Firefox */
.form-select::-moz-focus-inner {
    border: 0;
}

/* ===== BREADCRUMB ===== */
.page-header {
    background: linear-gradient(135deg, #FFE0E9, #FFF5D7, #E0F8F5);
    padding: 40px 0 30px;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark);
    font-family: 'Tajawal', sans-serif;
}
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-light); }

/* ===== FILTER SIDEBAR ===== */
.filter-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}
.filter-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.filter-option label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}
.filter-option input[type="checkbox"]:checked + label { color: var(--primary); font-weight: 600; }
.range-slider { accent-color: var(--primary); }

/* ===== PRODUCT DETAIL ===== */
.product-gallery {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.size-option, .color-option {
    display: inline-block;
    margin: 4px;
    cursor: pointer;
}
.size-option input, .color-option input { display: none; }
.size-label {
    padding: 8px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: block;
}
.size-option input:checked + .size-label {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    display: block;
    transition: var(--transition);
}
.color-option input:checked + .color-circle {
    border-color: var(--dark);
    transform: scale(1.15);
}

/* ===== ADMIN ===== */
.admin-sidebar {
    background: var(--dark);
    min-height: 100vh;
    padding: 0;
    position: sticky;
    top: 0;
}
.admin-brand {
    padding: 25px 20px;
    background: rgba(255,107,138,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #aaa;
    transition: var(--transition);
    border-right: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
}
.admin-nav-link:hover, .admin-nav-link.active {
    color: white;
    background: rgba(255,107,138,0.15);
    border-right-color: var(--primary);
}
.admin-nav-link i { font-size: 18px; color: var(--primary); width: 20px; }
.stat-card {
    border-radius: var(--radius);
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    bottom: -20px;
    right: -20px;
}
.stat-card-1 { background: linear-gradient(135deg, var(--primary), #FF8FA3); }
.stat-card-2 { background: linear-gradient(135deg, var(--secondary), #45B7AA); }
.stat-card-3 { background: linear-gradient(135deg, #FF7675, #FD79A8); }
.stat-card-4 { background: linear-gradient(135deg, #FDCB6E, #E17055); }
.stat-number { font-size: 36px; font-weight: 900; font-family: 'Tajawal', sans-serif; }
.stat-label { font-size: 14px; opacity: 0.9; }
.stat-icon { font-size: 40px; opacity: 0.3; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }

/* ===== STATUS BADGES ===== */
.status-pending { background: #FFF5E0; color: #F9A825; }
.status-processing { background: #E8F4FD; color: #2196F3; }
.status-shipped { background: #F0E8FF; color: #9C27B0; }
.status-delivered { background: #E8F5E9; color: #4CAF50; }
.status-cancelled { background: #FFE8E8; color: #F44336; }
.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.empty-state i { font-size: 80px; color: var(--border); margin-bottom: 20px; }
.empty-state h3 { color: var(--dark); font-weight: 700; margin-bottom: 12px; }

/* ===== الهيدر الجديد للهواتف ===== */
.header-mobile-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.header-logo {
    flex-shrink: 0;
}

.header-search-wrapper {
    flex: 1;
}

.header-icons-mobile {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== قائمة البروفايل المنسدلة ===== */
.profile-dropdown-wrapper {
    position: relative;
}

.profile-dropdown-wrapper .icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--dark);
    font-size: 12px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    text-decoration: none;
}

.profile-dropdown-wrapper .icon-btn:hover { 
    color: var(--primary); 
}

.profile-dropdown-wrapper .icon-btn i { 
    font-size: 20px; 
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: visible; /* Changed from hidden to allow pseudo-element bridge */
}

/* Bridge the gap between parent and dropdown to maintain hover state */
.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.profile-dropdown-header i {
    font-size: 32px;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.profile-dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.profile-dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.profile-dropdown-item.logout {
    color: #E74C3C;
}

.profile-dropdown-item.logout:hover {
    background: #FFF0F0;
}

.profile-dropdown-item.logout i {
    color: #E74C3C;
}

.profile-dropdown-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

/* ===== نافذة البروفايل للهواتف ===== */
.mobile-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.mobile-profile-modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.mobile-profile-modal-content {
    background: white;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mobile-profile-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.2s;
}

.mobile-profile-modal-close:hover {
    background: var(--primary);
    color: white;
}

.mobile-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0 30px;
}

.mobile-profile-avatar {
    font-size: 60px;
    color: var(--primary);
    line-height: 1;
}

.mobile-profile-name {
    flex: 1;
}

.mobile-profile-name strong {
    font-size: 18px;
    color: var(--dark);
    display: block;
}

.mobile-profile-email {
    font-size: 13px;
    color: var(--text-light);
    display: block;
    margin-top: 4px;
}

.mobile-profile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-profile-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
    background: #f9f9f9;
}

.mobile-profile-item:hover {
    background: #f0f0f0;
    transform: translateX(-3px);
}

.mobile-profile-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.mobile-profile-item-text {
    flex: 1;
}

.mobile-profile-item-text strong {
    font-size: 15px;
    color: var(--dark);
    display: block;
    font-weight: 800;
}

.mobile-profile-item-text span {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-top: 3px;
}

.mobile-profile-item-arrow {
    color: var(--text-light);
    font-size: 14px;
}

.mobile-profile-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.mobile-profile-logout:hover {
    background: #FFF0F0;
}

/* ===== النمط الليلي للبروفايل ===== */
[data-theme="dark"] .mobile-profile-modal-content {
    background: #1E2130;
}

[data-theme="dark"] .mobile-profile-modal-close {
    background: #252840;
    color: #D0D4E8;
}

[data-theme="dark"] .mobile-profile-modal-close:hover {
    background: var(--primary);
    color: white;
}

[data-theme="dark"] .mobile-profile-name strong {
    color: #D0D4E8;
}

[data-theme="dark"] .mobile-profile-item {
    background: #252840;
}

[data-theme="dark"] .mobile-profile-item:hover {
    background: #2A2F48;
}

[data-theme="dark"] .mobile-profile-item-text strong {
    color: #D0D4E8;
}

[data-theme="dark"] .mobile-profile-divider {
    background: #3A3F58;
}

[data-theme="dark"] .mobile-profile-logout:hover {
    background: #2A0A0A;
}

@media (min-width: 992px) {
    .mobile-profile-modal {
        display: none !important;
    }
    
    /* إظهار القائمة القديمة للشاشات الكبيرة */
    .profile-dropdown-wrapper {
        display: block !important;
    }
}

/* ===== نافذة البحث للهواتف ===== */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.mobile-search-modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-search-modal-content {
    width: 92%;
    max-width: 450px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

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

.mobile-search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.mobile-search-modal-title {
    font-size: 16px;
    font-weight: 800;
}

.mobile-search-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-search-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.mobile-search-modal-form {
    padding: 20px;
}

.mobile-search-input {
    padding: 14px 18px;
    font-size: 15px;
}

/* علامات التبويب للبحث */
.search-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    margin-top: 10px;
}

.search-tab {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text);
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.search-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
}

.search-tab-content {
    display: none;
    padding: 15px 20px 20px;
}

.search-tab-content.active {
    display: block;
}

/* منطقة رفع الصورة */
.image-search-container {
    width: 100%;
}

.image-upload-zone {
    border: 3px dashed var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-light);
}

.image-upload-zone:hover, .image-upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(255,107,138,0.05);
}

.image-upload-zone i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
}

.image-upload-zone p {
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--text);
}

.image-upload-zone small {
    color: var(--text-light);
    display: block;
}

/* إضافة تصميم للبحث بصورة في النمط الليلي */
[data-theme="dark"] .search-tab {
    background: #252840;
    border-color: #3A3F58;
    color: #D0D4E8;
}

[data-theme="dark"] .search-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .image-upload-zone {
    background: #252840;
    border-color: #3A3F58;
}

[data-theme="dark"] .image-upload-zone:hover, [data-theme="dark"] .image-upload-zone.dragover {
    background: rgba(255,107,138,0.08);
    border-color: var(--primary);
}

[data-theme="dark"] .image-upload-zone p {
    color: #D0D4E8;
}

[data-theme="dark"] .image-upload-zone small {
    color: #666B88;
}

/* ===== زر البحث بصورة للكمبيوتر ===== */
.btn-search-image {
    padding: 0 14px;
    border-radius: 0;
    border: none;
    background: var(--white);
    color: var(--dark);
    border-right: 2px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-search-image:hover {
    color: var(--primary);
}

.btn-search-image i {
    font-size: 16px;
}

/* قائمة البحث بصورة للكمبيوتر */
.desktop-image-search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    margin-top: 8px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.desktop-image-search-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.image-upload-zone-desktop {
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload-zone-desktop:hover, .image-upload-zone-desktop.dragover {
    background: rgba(255,107,138,0.05);
}

.image-upload-zone-desktop i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 8px;
}

.image-upload-zone-desktop p {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}

.image-upload-zone-desktop small {
    color: var(--text-light);
    display: block;
    font-size: 12px;
}

/* النمط الليلي للبحث بصورة للكمبيوتر */
[data-theme="dark"] .btn-search-image {
    background: #252840;
    color: #D0D4E8;
    border-color: #3A3F58;
}

[data-theme="dark"] .btn-search-image:hover {
    color: var(--primary);
}

[data-theme="dark"] .desktop-image-search-dropdown {
    background: #1E2130;
}

[data-theme="dark"] .image-upload-zone-desktop:hover, [data-theme="dark"] .image-upload-zone-desktop.dragover {
    background: rgba(255,107,138,0.08);
}

[data-theme="dark"] .image-upload-zone-desktop p {
    color: #D0D4E8;
}

[data-theme="dark"] .image-upload-zone-desktop small {
    color: #666B88;
}

/* نتائج البحث بصورة */
.image-search-results-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(255,107,138,0.1), rgba(139,69,175,0.1));
    border-radius: 10px;
    margin-bottom: 10px;
}

.image-search-results-title i {
    color: var(--primary);
}

.image-search-result-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--white);
    border-radius: 10px;
    border: 2px solid var(--border);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.image-search-result-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-search-result-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-light);
}

.image-search-result-info {
    flex: 1;
}

.image-search-result-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.image-search-result-price {
    font-size: 14px;
    font-weight: 900;
    color: var(--primary);
}

/* النمط الليلي للنتائج */
[data-theme="dark"] .image-search-results-title {
    color: #D0D4E8;
    background: rgba(255,107,138,0.15);
}

[data-theme="dark"] .image-search-result-item {
    background: #252840;
    border-color: #3A3F58;
}

[data-theme="dark"] .image-search-result-name {
    color: #D0D4E8;
}

[data-theme="dark"] .image-search-result-img {
    background: #1E2130;
}

.theme-toggle-mobile {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle-mobile:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.theme-toggle-mobile i {
    font-size: 16px;
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.header-icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.header-icon-btn i {
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .cart-summary, .filter-card { position: static !important; margin-top: 20px; }
}

@media (min-width: 769px) {
    /* العرض للشاشات الكبيرة - تصميم قديم */
    .header-mobile-row {
        display: none !important;
    }
    
    .main-header .row {
        display: flex !important;
    }
    
    .col-md-3, .col-md-5, .col-md-4 {
        display: block !important;
    }
    
    .header-icons {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    /* ===== البانر الإعلاني على الهواتف ===== */
    .hero-slide {
        min-height: 400px;
        padding: 34px 0 62px;
        text-align: center;
    }
    .hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
    .hero-badge { font-size: 11px; padding: 5px 14px; margin-bottom: 12px; }
    .hero-title { font-size: 27px; line-height: 1.35; margin-bottom: 10px; letter-spacing: 0; }
    .hero-subtitle { font-size: 15px; margin-bottom: 8px; }
    .hero-desc {
        font-size: 13.5px;
        line-height: 1.7;
        margin-bottom: 20px;
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-emoji { font-size: 96px; margin: 4px auto 16px; }
    .hero-emoji-glow { width: 180px; height: 180px; }
    .hero-actions { justify-content: center; width: 100%; }
    .hero-btn { padding: 12px 24px; font-size: 14px; }
    .hero-blob-1 { width: 200px; height: 200px; top: -70px; right: -60px; }
    .hero-blob-2 { width: 160px; height: 160px; bottom: -80px; left: 4%; }

    .hero-image { order: -1; width: 100%; min-height: 0; margin-bottom: 6px; position: relative; }
    .hero-image .floating-badge { padding: 5px 10px !important; font-size: 10px !important; white-space: nowrap; }
    .badge-sale { top: -10px !important; right: 15% !important; }
    .badge-new { bottom: 0px !important; left: 15% !important; }

    /* عند وجود صورة: تعتيم رأسي بدل الأفقي ليبقى النص واضحاً في المنتصف */
    .hero-slide.has-image::before {
        background: linear-gradient(to bottom, rgba(45,52,54,.35) 0%, rgba(45,52,54,.6) 55%, rgba(45,52,54,.85) 100%);
    }
    .hero-slide.has-image { padding: 40px 0 62px; }

    /* نقل أسهم التنقل لأسفل لتجنب تغطية النص والأزرار */
    .carousel-control-prev, .carousel-control-next {
        width: 34px;
        height: 34px;
        top: auto;
        bottom: 8px;
        transform: none;
    }
    .carousel-control-prev:hover, .carousel-control-next:hover { transform: scale(1.08); }
    .carousel-control-prev i, .carousel-control-next i { font-size: 12px; }
    .carousel-control-prev { left: 12px; right: auto; }
    .carousel-control-next { right: 12px; left: auto; }
    .carousel-indicators { margin-bottom: 18px !important; }
    
    .section-title { font-size: 24px; }
    .nav-menu { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: white; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
        z-index: 1000;
        padding: 15px;
    }
    [data-theme="dark"] .nav-menu { background: #1E2130; }
    .nav-menu.open { display: block; }
    .nav-list { flex-direction: column; gap: 5px; }
    .nav-list .nav-link { color: var(--text); padding: 12px; border-bottom: 1px solid var(--border); }
    [data-theme="dark"] .nav-list .nav-link { color: var(--text); border-bottom-color: #2A2F45; }
    
    .form-card { padding: 25px 15px; }
    .admin-sidebar { min-height: auto; position: static; }
    
    .offer-banner { padding: 25px 15px; }
    .offer-banner .discount-badge { font-size: 40px; }
    
    /* Table responsiveness */
    .table-responsive { border: 0; }
    .cart-table thead { display: none; }
    .cart-table tr { display: block; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 15px; padding: 10px; background: white; }
    [data-theme="dark"] .cart-table tr { background: #1E2130; border-color: #2A2F45; }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; border: none; padding: 8px 5px; text-align: left; }
    .cart-table td::before { content: attr(data-label); font-weight: 700; color: var(--dark); }
    
    .invoice-header .row { text-align: center; }
    .store-info { justify-content: center; margin-bottom: 20px; }
    .invoice-meta { margin-top: 15px; }

    /* الهيدر للهواتف فقط */
    .main-header .row {
        display: none !important;
    }
    
    .main-header { padding: 0; }
    
    .header-icons { 
        position: fixed; 
        bottom: 0; 
        left: 0; 
        width: 100%; 
        background: white; 
        z-index: 1000; 
        display: flex !important; 
        justify-content: space-around !important; 
        padding: 10px 0; 
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin: 0 !important;
    }
    [data-theme="dark"] .header-icons { background: #1E2130; box-shadow: 0 -2px 10px rgba(0,0,0,0.3); }
    .header-icons .icon-btn { flex-direction: column; gap: 4px; font-size: 11px; width: 25%; }
    .header-icons .icon-btn i { font-size: 18px; }
    .header-icons .icon-btn span { display: block !important; }
    
    /* تصغير شريط البحث */
    .search-form .search-input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .btn-search {
        padding: 10px 14px;
    }

    .header-icon-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    
    .header-icon-btn i {
        font-size: 14px;
    }
    
    .icon-cart-mobile {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .icon-cart-mobile i {
        font-size: 16px;
    }
    
    /* تصميم الشريط العلوي للهواتف في سطر واحد (مبسط) */
    .top-bar {
        padding: 6px 0 !important;
        font-size: 10px;
    }
    
    .top-bar .row {
        flex-direction: row;
        gap: 0;
        flex-wrap: nowrap;
    }
    
    /* الحفاظ على توصيل مجاني في الهواتف */
    .top-bar-right-col {
        display: block !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }
    
    /* جعل عمود المستخدم يأخذ المساحة المتبقية */
    .top-bar-left-col {
        width: auto !important;
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        text-align: left !important;
    }
    
    .top-bar .text-start {
        justify-content: flex-end !important;
        gap: 6px;
    }
    
    .top-bar-text {
        display: inline !important;
    }
    
    .top-bar-icon {
        font-size: 12px;
        margin: 0 2px;
    }
    
    .top-bar .mx-3 {
        margin: 0 4px !important;
        display: inline !important;
    }
    
    .top-bar small {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .top-bar .theme-toggle-btn {
        display: none !important; /* إخفاء زر تغيير النمط في الشريط العلوي للهواتف لأننا أضفناه في الهيدر */
    }
    
    /* مساحة للبار السفلي */
    body { padding-bottom: 70px; }
    
    /* تحسين الفوتر في الهواتف */
    .main-footer {
        position: relative;
        z-index: 1;
    }
    .main-footer.mt-5 {
        margin-top: 2rem !important;
    }
    .footer-top {
        padding: 40px 0 30px;
    }
    .footer-bottom {
        padding: 15px 0;
    }
    .footer-bottom .row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-bottom .text-start {
        justify-content: center !important;
    }
    .payment-icons {
        justify-content: center !important;
        gap: 10px;
    }
    .payment-icons i {
        font-size: 24px;
    }
    
    /* تحسين عرض المنتجات في الهاتف */
    .product-card { margin-bottom: 10px; }
    
    .section-title { font-size: 20px; }

    /* تفعيل شريط الأقسام (Toolbar) في الهاتف مع التمرير الأفقي */
    .main-nav { display: block !important; }
    
    /* إخفاء زر التبديل الأصلي في الهواتف لأننا أضفنا زر في الهيدر */
    .theme-toggle-btn {
        display: none !important;
    }
}

/* تحسينات قائمة إجراءات الهاتف */
.animate-menu {
    animation: slideInUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-actions-mobile .dropdown-item {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
    justify-content: flex-start;
}

.header-actions-mobile .dropdown-item:hover {
    background-color: var(--bg-gray);
    color: var(--primary);
    transform: translateX(-5px);
}

[data-theme="dark"] .header-actions-mobile .dropdown-menu {
    background-color: #1E2130 !important;
    border: 1px solid #2A2F45 !important;
}

[data-theme="dark"] .header-actions-mobile .dropdown-item {
    color: #D0D4E8 !important;
}

[data-theme="dark"] .header-actions-mobile .dropdown-item:hover {
    background-color: #2A2F45 !important;
    color: white !important;
}

[data-theme="dark"] .header-actions-mobile .header-icon-btn {
    background-color: #2A2F45 !important;
    color: white !important;
}


@media (max-width: 480px) {
    /* البانر الإعلاني على الهواتف الصغيرة */
    .hero-slide,
    .hero-slide.has-image { min-height: 360px; padding: 26px 0 58px; }
    .hero-badge { font-size: 10px; padding: 4px 12px; margin-bottom: 10px; }
    .hero-title { font-size: 23px; line-height: 1.35; margin-bottom: 8px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 6px; }
    .hero-desc { font-size: 12.5px; line-height: 1.65; margin-bottom: 16px; max-width: 95%; }
    .hero-emoji { font-size: 78px; margin: 0 auto 12px; }
    .hero-emoji-glow { width: 140px; height: 140px; }
    .hero-actions { gap: 10px; }
    .hero-btn { padding: 12px 20px; font-size: 13.5px; }
    .hero-blob-1 { width: 160px; height: 160px; top: -50px; right: -50px; }
    .hero-blob-2 { width: 130px; height: 130px; bottom: -60px; left: 0; }
    .carousel-control-prev, .carousel-control-next { width: 30px; height: 30px; bottom: 6px; }
    .carousel-control-prev i, .carousel-control-next i { font-size: 11px; }
    .carousel-control-prev { left: 10px; }
    .carousel-control-next { right: 10px; }
    .carousel-indicators { margin-bottom: 15px !important; }
}

@media (max-width: 576px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .brand-name { font-size: 14px; }
    .logo-icon { width: 36px; height: 36px; font-size: 16px; }
    .btn-primary-custom, .btn-outline-custom { width: 100%; padding: 12px; }
    .product-image { height: 140px; }
    .price-current { font-size: 14.5px; }
    .btn-add-cart { padding: 6px 4px; font-size: 11px; }
    
    /* تحسين إضافي للشريط العلوي في الهواتف الصغيرة جداً */
    .top-bar {
        padding: 6px 0 !important;
        font-size: 10px;
    }
    
    .top-bar .row {
        gap: 4px;
    }
    
    .top-bar .text-start {
        gap: 8px;
    }
}

/* ===== SETTINGS PAGE ===== */
.settings-tabs { flex-wrap:wrap; }
.settings-tabs .nav-link {
    border: 2px solid var(--border);
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    color: var(--text);
    transition: var(--transition);
}
.settings-tabs .nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.settings-tabs .nav-link:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== LOGO PREVIEW ===== */
.logo-preview {
    width: 140px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 8px;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== LOGIN PAGE ===== */
.login-required-notice {
    background: linear-gradient(135deg, #FFF5F7, #FFF0E0);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 24px;
}
.benefits-list { display: flex; flex-direction: column; gap: 8px; }
.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.benefit-item i { font-size: 16px; flex-shrink: 0; }
.input-group-text {
    background: var(--bg-light);
    border-color: var(--border);
    color: var(--text);
}
.password-strength {
    height: 5px;
    border-radius: 4px;
    width: 0;
    transition: all 0.3s ease;
    background: #eee;
}

/* ===== ORDER TRACKING BADGE ===== */
.tracking-timeline {
    position: relative;
    padding: 0;
    list-style: none;
}
.tracking-timeline::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.tracking-step {
    position: relative;
    padding: 0 42px 20px 0;
}
.tracking-step .step-dot {
    position: absolute;
    right: 6px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--border);
}
.tracking-step.done .step-dot { background: #55EFC4; box-shadow: 0 0 0 2px #55EFC4; }
.tracking-step.active .step-dot { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); animation: pulse 1.5s infinite; }

/* ===== PAGE CONTENT ===== */
.page-content { direction: rtl; line-height: 2; }
.page-content p { margin-bottom: 12px; }

/* ===== RESPONSIVE ADMIN ===== */
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-sidebar.open { display: block; position: fixed; z-index: 9999; height: 100vh; overflow-y: auto; }
    .admin-content { padding: 16px; }
    .stat-number { font-size: 24px; }
}


    }
}

/* ===== FEATURES GRID v2 ===== */
.features-section {
    background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
    padding: 50px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.feature-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(255,107,138,0.15);
    border-color: rgba(255,107,138,0.25);
}
.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFF0F4, #FFE0EB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon-wrap {
    transform: rotate(-10deg) scale(1.1);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}
.feature-content { flex: 1; }
.feature-content h6 {
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 2px 0;
    font-size: 14.5px;
    font-family: 'Tajawal', sans-serif;
}
.feature-content p {
    font-size: 11.5px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}
.feature-accent {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,138,0.12) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
}
.feature-card:hover .feature-accent { opacity: 1; top: -20px; left: -20px; }

@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature-card { padding: 12px 10px; border-radius: 14px; }
    .feature-icon-wrap { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
    .feature-content h6 { font-size: 12px; }
    .feature-content p { font-size: 10px; }
}

/* ===== dark-category-scroll-track: wrapper للتمرير الأفقي ===== */
/* على الديسكتوب: لا تمرير، فقط wrapper شفاف */
.dark-category-scroll-track {
    overflow: visible;
    display: block;
}
/* على الهاتف: يتحكم في التمرير الأفقي */
@media (max-width: 767px) {
    .dark-category-scroll-track {
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        /* لا clip هنا لأن القوائم أصبحت fixed */
    }
    .dark-category-scroll-track::-webkit-scrollbar {
        display: none;
    }
}

/* ===== DARK CATEGORY STRIP - COMPLETE REWRITE ===== */
.dark-category-strip {
    background: linear-gradient(180deg, #0a0d13 0%, #0d1219 100%);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1500;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    /* على الديسكتوب: overflow visible لإظهار القوائم المنسدلة */
    overflow: visible;
}

.dark-category-strip-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: visible;
    scrollbar-width: none;
    direction: rtl;
    min-height: 58px;
    padding: 8px 14px 8px 12px;
    position: relative;
    z-index: 1000;
}

.dark-category-strip-inner::-webkit-scrollbar {
    display: none;
}

/* على الهاتف: نستخدم scroll-wrapper منفصل للتمرير الأفقي */
@media (max-width: 767px) {
    .dark-category-strip {
        /* لا overflow هنا - نتركها للـ wrapper الداخلي */
        overflow: visible;
        padding: 0;
    }
    /* لف الداخل بـ wrapper مخصص للتمرير الأفقي */
    .dark-category-strip .container {
        padding: 0;
        max-width: 100%;
        overflow: visible;
    }
    .dark-category-strip-inner {
        flex-wrap: nowrap;
        /* نتحكم في التمرير عبر JS بدلاً من overflow-x: auto */
        overflow: visible;
        padding: 6px 10px;
        gap: 8px;
        min-height: 52px;
    }
    /* wrapper فعلي للتمرير الأفقي يلتف حول الـ inner */
    .dark-category-scroll-track {
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .dark-category-scroll-track::-webkit-scrollbar {
        display: none;
    }
}

.dark-toolbar-parent {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    z-index: 1001;
}

.dark-toolbar-parent:hover {
    z-index: 2010;
}

/* جسر أسفل العنصر الأب لسد الفراغ ومنع اختفاء القائمة عند تحريك الماوس للأسفل */
.dark-toolbar-parent.has-submenu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
    z-index: 4999;
}

@media (max-width: 767px) {
    .dark-toolbar-parent.has-submenu::after {
        display: none;
    }
}

/* على الهاتف: القائمة المنسدلة تصبح fixed لتتجاوز كل overflow */
@media (max-width: 767px) {
    .dark-toolbar-parent.open {
        z-index: 9999;
    }
}

.dark-category-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s ease;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    line-height: 1.2;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .dark-category-item {
        font-size: 13px;
        padding: 7px 10px;
        gap: 6px;
    }
}

.dark-category-item i {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

.submenu-indicator {
    font-size: 10px !important;
    margin-right: 4px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.dark-toolbar-parent:hover .submenu-indicator,
.dark-toolbar-parent.open .submenu-indicator {
    transform: rotate(180deg);
    opacity: 1;
}

.dark-category-item:hover,
.dark-toolbar-parent:hover .dark-category-item,
.dark-toolbar-parent:focus-within .dark-category-item,
.dark-toolbar-parent.open .dark-category-item {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #ffe5ef;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* ===== القائمة المنسدلة - ديسكتوب ===== */
.dark-toolbar-submenu {
    position: absolute;
    top: calc(100% + 5px);
    right: 50%;
    transform: translateX(50%) translateY(6px);
    min-width: 210px;
    background: rgba(12, 18, 24, 0.99);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 5000;
    overflow: visible;
}

/* جسر علوي بين العنصر والقائمة لمنع إغلاقها عند تحريك الماوس للأسفل */
.dark-toolbar-submenu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -15px;
    right: -15px;
    height: 22px;
    background: transparent;
    z-index: 10;
}

.dark-toolbar-parent:hover .dark-toolbar-submenu,
.dark-toolbar-parent:focus-within .dark-toolbar-submenu,
.dark-toolbar-parent.open .dark-toolbar-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(50%) translateY(0);
}

/* ===== القائمة المنسدلة - هاتف (fixed لتجاوز overflow) ===== */
@media (max-width: 767px) {
    .dark-toolbar-submenu {
        /* تحويل القائمة إلى fixed على الهاتف */
        position: fixed !important;
        /* الموضع يُحسب بـ JavaScript وتُضبط عبر CSS variables */
        top: var(--submenu-top, 120px) !important;
        right: var(--submenu-right, 10px) !important;
        left: auto !important;
        transform: translateY(8px) !important;
        min-width: 200px;
        max-width: calc(100vw - 20px);
        z-index: 99999 !important;
        /* الحجم والحواف */
        border-radius: 14px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4);
        max-height: 60vh;
        overflow-y: auto;
    }
    .dark-toolbar-submenu::before {
        /* لا نحتاج الجسر على الهاتف */
        display: none;
    }
    .dark-toolbar-parent.open .dark-toolbar-submenu {
        transform: translateY(0) !important;
    }
    /* على الهاتف لا نستخدم :hover - نستخدم .open فقط */
    .dark-toolbar-parent:hover .dark-toolbar-submenu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px) !important;
    }
    .dark-toolbar-parent:hover.open .dark-toolbar-submenu,
    .dark-toolbar-parent.open .dark-toolbar-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) !important;
    }
}

/* overlay شفاف لإغلاق القائمة عند النقر خارجها */
#toolbar-submenu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: transparent;
}
#toolbar-submenu-overlay.active {
    display: block;
}

.dark-toolbar-submenu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.dark-toolbar-submenu li {
    padding: 0;
}

.dark-toolbar-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #c8d4f0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.15s ease;
    border-radius: 8px;
    margin: 1px 6px;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

.dark-toolbar-submenu a i {
    font-size: 13px;
    width: 18px;
    text-align: center;
    color: rgba(255, 191, 208, 0.6);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.dark-toolbar-submenu a:hover {
    background: rgba(255, 107, 138, 0.1);
    color: #ffbfd0;
    padding-right: 20px;
}

.dark-toolbar-submenu a:hover i {
    color: #ff6b8a;
}

.dark-category-item.home-item {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 0 6px rgba(9, 13, 19, 0.9);
    position: relative;
    margin-left: 4px;
    flex-shrink: 0;
}

.dark-category-item.home-item i {
    font-size: 18px;
    color: #ffbfd0;
}

@media (max-width: 767px) {
    .dark-category-item.home-item {
        width: 38px;
        height: 38px;
    }
}

/* ===== PRODUCTS SCROLLER / HORIZONTAL NAV ===== */
.products-scroller-wrapper {
    position: relative;
    padding: 0 10px;
}
.products-scroller {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 20px;
}
.products-scroller::-webkit-scrollbar { display: none; }
.products-scroller > .product-col {
    scroll-snap-align: start;
    flex: 0 0 auto;
}
.scroll-btn {
    position: absolute;
    top: 40%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.12);
}
.scroll-right { right: -6px; }
.scroll-left { left: -6px; }

@media (max-width: 768px) {
    .scroll-btn { display: none; }
    .products-scroller-wrapper { padding: 0; }
}

/* ===== FLASH SALE BANNER ===== */
.flash-sale-banner {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    padding: 40px;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 60px rgba(15, 52, 96, 0.35);
}
.flash-sale-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,107,138,0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.25) 0%, transparent 45%);
    animation: bgShift 8s ease-in-out infinite alternate;
}
@keyframes bgShift {
    0% { transform: scale(1) rotate(0); }
    100% { transform: scale(1.1) rotate(3deg); }
}
.flash-sale-content {
    position: relative;
    z-index: 2;
}
.flash-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF4757, #FF6B81);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 12.5px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(255,71,87,0.4);
    animation: flashPulse 1.5s ease-in-out infinite;
}
@keyframes flashPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255,71,87,0.4); }
    50% { box-shadow: 0 4px 25px rgba(255,71,87,0.7); }
}
.flash-title {
    font-size: 32px;
    font-weight: 900;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.2;
    margin-bottom: 12px;
}
.flash-title span {
    color: #FFD93D;
    background: linear-gradient(135deg, #FFD93D, #FF9F43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.flash-desc {
    font-size: 14.5px;
    opacity: 0.85;
    margin-bottom: 20px;
}
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 8px 14px;
    min-width: 62px;
    backdrop-filter: blur(8px);
}
.cd-num {
    font-size: 26px;
    font-weight: 900;
    font-family: 'Tajawal', sans-serif;
    color: #FFD93D;
    line-height: 1;
}
.cd-label {
    font-size: 10px;
    opacity: 0.75;
    margin-top: 4px;
}
.cd-sep {
    font-size: 22px;
    font-weight: 900;
    color: #FF4757;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.flash-emoji-group {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
}
.flash-emoji {
    font-size: 80px;
    display: inline-block;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.3));
    animation: emojiFloat 3s ease-in-out infinite;
}
.flash-emoji:nth-child(1) { animation-delay: 0s; }
.flash-emoji:nth-child(2) { animation-delay: 0.5s; font-size: 100px; }
.flash-emoji:nth-child(3) { animation-delay: 1s; }
@keyframes emojiFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-18px) rotate(5deg); }
}
@media (max-width: 768px) {
    .flash-sale-banner { padding: 24px 16px; border-radius: 18px; text-align: center; }
    .flash-title { font-size: 20px; }
    .flash-desc { font-size: 12.5px; }
    .countdown-timer { justify-content: center; gap: 4px; }
    .cd-unit { min-width: 48px; padding: 6px 10px; }
    .cd-num { font-size: 18px; }
    .cd-label { font-size: 9px; }
}

/* ===== OFFER BANNER DECORATIONS ===== */
.offer-banner {
    position: relative;
    overflow: hidden;
}
.offer-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.offer-deco.deco-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    animation: float 6s ease-in-out infinite;
}
.offer-deco.deco-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    top: -50px;
    right: -40px;
    animation: float 5s ease-in-out infinite reverse;
}
.offer-banner > * { position: relative; z-index: 2; }

/* ===== SALE & NEW SECTIONS with 6-col grid ===== */
.product-col .product-card {
    animation: cardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(25px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (min-width: 1200px) {
    .col-lg-3.product-col { width: 25%; max-width: 25%; flex: 0 0 25%; }
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 24px 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255,107,138,0.12);
    border-color: rgba(255,107,138,0.2);
}
.testimonial-quote {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 40px;
    color: var(--primary);
    opacity: 0.15;
}
.testimonial-stars {
    margin-bottom: 12px;
    display: flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
    overflow: visible;
}
.testimonial-stars i {
    color: #bdbdbd;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
    width: auto;
    min-width: 16px;
    line-height: 1;
}
.testimonial-stars i.filled {
    color: #FFD93D;
    text-shadow: 0 1px 3px rgba(255,217,61,0.4);
    -webkit-text-stroke: 0.3px #f5b800;
}
.testimonial-text {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 18px;
    font-style: italic;
    min-height: 75px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed rgba(0,0,0,0.08);
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF0F4, #FFE0EB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.testimonial-author h6 {
    margin: 0;
    font-weight: 800;
    font-size: 13.5px;
    color: var(--dark);
    font-family: 'Tajawal', sans-serif;
}
.testimonial-author small {
    font-size: 11px;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .testimonial-text { min-height: 60px; }
}
@media (max-width: 576px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 18px 16px; }
    .testimonial-text { font-size: 12.5px; min-height: auto; }
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #FFF0F4 0%, #E8F8F7 100%);
}
.newsletter-card {
    position: relative;
    background: white;
    border-radius: 28px;
    padding: 50px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255,107,138,0.1);
    border: 1.5px solid rgba(255,107,138,0.1);
}
.newsletter-deco {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(78,205,196,0.15) 0%, transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(255,107,138,0.18) 0%, transparent 40%);
    pointer-events: none;
}
.newsletter-title {
    font-size: 30px;
    font-weight: 900;
    font-family: 'Tajawal', sans-serif;
    color: var(--dark);
    line-height: 1.25;
    margin: 0 0 10px 0;
}
.newsletter-title span { color: var(--primary); }
.newsletter-desc {
    font-size: 14.5px;
    color: var(--text-light);
    margin: 0;
    max-width: 450px;
}
.newsletter-form {
    position: relative;
    z-index: 2;
    display: flex;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 6px;
    transition: all 0.3s;
}
.newsletter-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,107,138,0.1);
    background: white;
}
.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    color: var(--text);
}
.newsletter-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,138,0.4);
}
.newsletter-note {
    font-size: 11.5px;
    color: var(--text-light);
    margin: 10px 8px 0 0;
}
.newsletter-note i { color: var(--secondary); }

@media (max-width: 992px) {
    .newsletter-card { padding: 30px 20px; text-align: center; border-radius: 20px; }
    .newsletter-title { font-size: 22px; }
    .newsletter-desc { font-size: 13px; margin: 0 auto 20px; }
    .newsletter-form { flex-direction: column; border-radius: 18px; padding: 8px; gap: 6px; background: transparent; border: none; }
    .newsletter-input { background: var(--bg-light); border-radius: 50px; padding: 12px 16px; border: 2px solid var(--border); }
    .newsletter-btn { border-radius: 50px; padding: 12px; }
}

/* ===== TRUST BADGES ROW ===== */
.trust-section { background: var(--bg-light); }
.trust-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.trust-item {
    background: white;
    border-radius: 16px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid transparent;
}
.trust-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(255,107,138,0.15);
}
.trust-item i {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.trust-item span {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Tajawal', sans-serif;
}

@media (max-width: 992px) {
    .trust-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 576px) {
    .trust-row { grid-template-columns: repeat(2, 1fr); }
    .trust-item { padding: 14px 8px; border-radius: 12px; }
    .trust-item i { font-size: 22px; }
    .trust-item span { font-size: 10.5px; }
}

/* ===== REVEAL-UP SCROLL ANIMATION ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
}
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PRODUCT CARD SKELETON ENHANCEMENT ===== */
.product-col:nth-child(1) { transition-delay: 0s; }
.product-col:nth-child(2) { transition-delay: 0.05s; }
.product-col:nth-child(3) { transition-delay: 0.10s; }
.product-col:nth-child(4) { transition-delay: 0.15s; }
.product-col:nth-child(5) { transition-delay: 0.20s; }
.product-col:nth-child(6) { transition-delay: 0.25s; }

/* ===== DARK MODE ADJUSTMENTS FOR NEW SECTIONS ===== */
[data-theme="dark"] .quick-search-bar { background: linear-gradient(135deg, #111827, #1a1a2e); border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .search-tag { background: #1F2937; border-color: rgba(255,255,255,0.08); color: #D1D5DB; }
[data-theme="dark"] .search-tag:hover { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border-color: var(--primary); }
[data-theme="dark"] .search-tags-label { color: #E5E7EB; }
[data-theme="dark"] .features-section { background: linear-gradient(180deg, #0f172a 0%, #111827 100%); }
[data-theme="dark"] .feature-card { background: #1F2937; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .feature-icon-wrap { background: linear-gradient(135deg, #2a1f33, #341f2e); }
[data-theme="dark"] .feature-content h6 { color: #E5E7EB; }
[data-theme="dark"] .feature-content p { color: #9CA3AF; }
[data-theme="dark"] .scroll-btn { background: #1F2937; color: var(--primary); }
[data-theme="dark"] .flash-sale-banner { background: linear-gradient(135deg, #0a0a15, #101528, #0c1c36); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
[data-theme="dark"] .testimonials-section { background: linear-gradient(180deg, #0f172a 0%, #111827 100%); }
[data-theme="dark"] .testimonial-card { background: #1F2937; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .testimonial-text { color: #D1D5DB; }
[data-theme="dark"] .testimonial-author h6 { color: #E5E7EB; }
[data-theme="dark"] .testimonial-author { border-top-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .testimonial-avatar { background: #2a1f33; }
[data-theme="dark"] .newsletter-section { background: linear-gradient(135deg, #1a1220, #0c2220); }
[data-theme="dark"] .newsletter-card { background: #1F2937; border-color: rgba(255,107,138,0.18); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
[data-theme="dark"] .newsletter-title { color: #F3F4F6; }
[data-theme="dark"] .newsletter-desc { color: #9CA3AF; }
[data-theme="dark"] .newsletter-form { background: #111827; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .newsletter-form:focus-within { background: #111827; }
[data-theme="dark"] .newsletter-input { color: #E5E7EB; }
[data-theme="dark"] .newsletter-note { color: #9CA3AF; }
[data-theme="dark"] .trust-section { background: #0f172a; }
[data-theme="dark"] .trust-item { background: #1F2937; }
[data-theme="dark"] .trust-item span { color: #E5E7EB; }

@media (max-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ===== البانر الإعلاني على الشاشات الكبيرة ===== */
@media (min-width: 1200px) {
    .hero-slide { min-height: 580px; padding: 80px 0; }
    .hero-badge { font-size: 14px; padding: 8px 22px; margin-bottom: 20px; }
    .hero-title { font-size: 60px; line-height: 1.1; margin-bottom: 16px; }
    .hero-subtitle { font-size: 24px; margin-bottom: 14px; }
    .hero-desc { font-size: 17px; line-height: 1.95; max-width: 540px; margin-bottom: 34px; }
    .hero-btn { padding: 16px 38px; font-size: 17px; }
    .hero-emoji { font-size: 210px; }
    .hero-emoji-glow { width: 380px; height: 380px; }
    .hero-image { min-height: 340px; }
    .hero-blob-1 { width: 380px; height: 380px; top: -150px; right: -110px; }
    .hero-blob-2 { width: 300px; height: 300px; bottom: -160px; left: 6%; }
    .carousel-control-prev, .carousel-control-next { width: 54px; height: 54px; }
    .carousel-control-prev i, .carousel-control-next i { font-size: 19px; }
    .carousel-control-prev { left: 30px; }
    .carousel-control-next { right: 30px; }
    .carousel-indicators { margin-bottom: 26px !important; }
    .carousel-indicators button { width: 12px !important; height: 12px !important; }
    .carousel-indicators button.active { width: 38px !important; }
}

@media (min-width: 1600px) {
    .hero-slide { min-height: 640px; padding: 90px 0; }
    .hero-title { font-size: 70px; }
    .hero-subtitle { font-size: 26px; }
    .hero-desc { font-size: 18px; max-width: 600px; line-height: 2; }
    .hero-badge { font-size: 15px; padding: 9px 24px; }
    .hero-emoji { font-size: 250px; }
    .hero-emoji-glow { width: 460px; height: 460px; }
    .hero-image { min-height: 400px; }
    .hero-blob-1 { width: 440px; height: 440px; top: -180px; right: -140px; }
    .hero-blob-2 { width: 360px; height: 360px; bottom: -200px; }
    .carousel-control-prev { left: 42px; }
    .carousel-control-next { right: 42px; }
}
