        /* ============================================
           CARTOON QATAR — لوحة الألوان الكريستالية
           ============================================ */
        :root {
            /* ---- الألوان الكريستالية الأساسية ---- */
            --crystal-violet: #6C4BF4;   /* اللون الأساسي للعلامة */
            --crystal-cyan:   #22D3EE;   /* اللمعة / التمييز */
            --crystal-pink:   #FF5FA2;   /* لمسة كرتونية */
            --crystal-amber:  #FFC94A;   /* بريق */
            --crystal-mint:   #4ADE80;
            --crystal-deep:   #241B54;   /* الأزرق الليلي العميق */
            --crystal-frost:  #F3F5FF;   /* خلفية صقيعية */
            --crystal-ice:    #E2E8FF;
            --crystal-edge:   #D7DEFF;

            /* ---- تدرجات منشورية ---- */
            --prism-gradient: linear-gradient(135deg, #6C4BF4 0%, #22D3EE 45%, #FF5FA2 100%);
            --prism-gradient-soft: linear-gradient(135deg, rgba(108,75,244,0.18) 0%, rgba(34,211,238,0.18) 50%, rgba(255,95,162,0.18) 100%);
            --prism-shine: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0) 65%, transparent 100%);

            /* ---- زجاج / كريستال ---- */
            --glass-bg: rgba(255,255,255,0.62);
            --glass-border: rgba(255,255,255,0.55);
            --glass-blur: blur(14px) saturate(150%);
            --crystal-shadow: 0 8px 28px rgba(108,75,244,0.16);
            --crystal-shadow-lg: 0 18px 48px rgba(108,75,244,0.24);
            --crystal-glow: 0 0 18px rgba(34,211,238,0.45);

            /* ---- أسماء متوافقة مع باقي الملف (لا تُحذف) ---- */
            --sand-brown: var(--crystal-violet);
            --gold-orange: var(--crystal-cyan);
            --ivory-bg: var(--crystal-frost);
            --soft-brown: var(--crystal-deep);
            --light-beige: var(--crystal-ice);
            --white: #FFFFFF;
            --text-dark: #2A2550;
            --text-light: #6B6890;
            --border-color: var(--crystal-edge);
            --success: #16A34A;
            --danger: #E11D48;
            --warning: #F59E0B;
            --paypal-blue: #003087;
            --stripe-purple: #635BFF;
            --sadad-green: #006341;
            --whatsapp-green: #25D366;
        }
        /* ===== تأثيرات تحميل الصفحة ===== */
        .page-load-effect {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--ivory-bg);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            opacity: 1;
            transition: opacity 0.5s ease-out;
        }

        .page-load-effect.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        .loading-logo {
            width: 120px;
            height: 120px;
            position: relative;
            margin-bottom: 20px;
            animation: logoFloat 3s ease-in-out infinite;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .loading-logo img {
            max-width: 120px;
            max-height: 120px;
            object-fit: contain;
        }

        .loading-logo .flower,
        .loading-logo .chocolate {
            display: none;
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
        }

        .loading-text {
            font-size: 24px;
            font-weight: 600;
            color: var(--soft-brown);
            margin-top: 20px;
            animation: textPulse 2s ease-in-out infinite;
        }

        @keyframes textPulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        /* ===== إعادة التعيين ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Cairo', sans-serif;
            background: var(--ivory-bg);
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
            opacity: 0;
            animation: fadeInBody 0.5s ease-out 0.5s forwards;
            padding-bottom: 0;
            width: 100%;
            position: relative;
        }

        @keyframes fadeInBody {
            to { opacity: 1; }
        }

        /* ===== إصلاح سفاري للآيفون ===== */
        body.overlay-active {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100% !important;
            height: 100% !important;
            overflow: hidden !important;
            touch-action: none !important;
            -webkit-overflow-scrolling: none !important;
            overscroll-behavior: none !important;
        }

        /* ===== الشعاع المنشوري السفلي ===== */
        .crystal-beam {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg,
                transparent 0%,
                var(--crystal-violet) 18%,
                var(--crystal-cyan) 38%,
                #FFFFFF 50%,
                var(--crystal-pink) 62%,
                var(--crystal-violet) 82%,
                transparent 100%);
            background-size: 220% 100%;
            z-index: 9998;
            opacity: 0.55;
            filter: blur(0.3px);
            animation: crystalBeam 9s linear infinite;
        }

        @keyframes crystalBeam {
            0%   { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* ===== شريط التواصل الاجتماعي الجانبي ===== */
        .social-sidebar {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            right: 0;
            background: rgba(128, 128, 128, 0.15);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 15px 0 0 15px;
            box-shadow: -3px 3px 15px rgba(0,0,0,0.1);
            padding: 12px 8px;
            z-index: 999;
            display: flex;
            flex-direction: column;
            gap: 15px;
            border: 1px solid rgba(255,255,255,0.2);
            border-right: none;
            transition: all 0.3s ease;
        }

        body:lang(en) .social-sidebar {
            right: auto;
            left: 0;
            border-radius: 0 15px 15px 0;
            border-right: 1px solid rgba(255,255,255,0.2);
            border-left: none;
        }

        .social-sidebar.minimized {
            transform: translateY(-50%) translateX(100%);
        }

        body:lang(en) .social-sidebar.minimized {
            transform: translateY(-50%) translateX(-100%);
        }

        .social-sidebar-toggle {
            position: absolute;
            top: 50%;
            left: -30px;
            transform: translateY(-50%);
            width: 30px;
            height: 40px;
            background: rgba(108, 75, 244, 0.8);
            color: white;
            border: none;
            border-radius: 8px 0 0 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.3s;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        body:lang(en) .social-sidebar-toggle {
            left: auto;
            right: -30px;
            border-radius: 0 8px 8px 0;
        }

        .social-sidebar-toggle:hover {
            background: rgba(34, 211, 238, 0.9);
        }

        .social-icon-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            color: white;
            font-size: 20px;
            transition: all 0.3s;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

        .social-icon-link:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 6px 12px rgba(0,0,0,0.25);
        }

        .social-icon-link.facebook { background: #1877f2; }
        .social-icon-link.twitter { background: #1da1f2; }
        .social-icon-link.instagram { background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5); }
        .social-icon-link.whatsapp { background: #25d366; }
        .social-icon-link.tiktok { background: #000000; }
        .social-icon-link.snapchat { background: #fffc00; color: #000; }
        .social-icon-link.youtube { background: #ff0000; }
        .social-icon-link.telegram { background: #0088cc; }
        .social-icon-link.linkedin { background: #0077b5; }
        .social-icon-link.pinterest { background: #bd081c; }

        /* ===== الحاوية الرئيسية ===== */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* ===== شريط اللغات فقط ===== */
        .top-bar {
            background: var(--sand-brown);
            color: white;
            padding: 8px 0;
            position: relative;
            z-index: 100;
        }

        .top-bar-content {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .language-switcher {
            display: flex;
            gap: 10px;
        }

        .language-btn {
            background: rgba(255,255,255,0.1);
            color: white;
            border: 1px solid rgba(255,255,255,0.2);
            padding: 5px 15px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .language-btn.active {
            background: white;
            color: var(--sand-brown);
        }

        .language-btn:hover {
            background: rgba(255,255,255,0.2);
        }

        /* ===== الهيدر ===== */
        .header {
            background: var(--white);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .header-main {
            padding: 15px 0;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            text-decoration: none;
            color: var(--soft-brown);
        }

        .logo-icon {
            position: relative;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* ===== شعار كريستالي متحرك (نفس أسماء العناصر القديمة) ===== */
        .logo-icon .flower,
        .logo-icon .chocolate {
            transition: all 0.3s ease;
            position: absolute;
        }

        /* جسم الجوهرة */
        .logo-icon .flower {
            width: 44px;
            height: 46px;
            top: 7px;
            left: 8px;
            background: var(--prism-gradient);
            background-size: 200% 200%;
            clip-path: polygon(50% 0%, 88% 24%, 100% 62%, 50% 100%, 0% 62%, 12% 24%);
            filter: drop-shadow(0 4px 10px rgba(108,75,244,0.45));
            animation: gemSpinHue 7s ease-in-out infinite;
        }

        /* الوميض الداخلي للجوهرة */
        .logo-icon .chocolate {
            width: 44px;
            height: 46px;
            top: 7px;
            left: 8px;
            right: auto;
            bottom: auto;
            transform: none;
            border-radius: 0;
            background: linear-gradient(120deg, transparent 34%, rgba(255,255,255,0.92) 50%, transparent 66%);
            background-size: 260% 100%;
            clip-path: polygon(50% 0%, 88% 24%, 100% 62%, 50% 100%, 0% 62%, 12% 24%);
            animation: gemGlint 3.4s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes gemSpinHue {
            0%, 100% { background-position: 0% 50%;   transform: rotate(0deg)   scale(1); }
            50%      { background-position: 100% 50%; transform: rotate(-6deg) scale(1.06); }
        }

        @keyframes gemGlint {
            0%, 100% { background-position: 200% 0; }
            55%, 100% { background-position: -120% 0; }
        }

        .logo:hover .flower { animation-duration: 2.2s; }
        .logo:hover .chocolate { animation-duration: 1.1s; }

        .site-logo-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            max-width: 60px;
            max-height: 60px;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 10;
        }

        .logo-text {
            font-size: 28px;
            font-weight: 700;
            color: var(--soft-brown);
        }

        .logo-tagline {
            font-size: 13px;
            color: var(--text-light);
            margin-top: -3px;
        }

        .header-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--text-dark);
            padding: 8px 10px;
            border-radius: 8px;
            transition: all 0.3s;
            position: relative;
            min-width: 60px;
        }

        .action-btn:hover {
            color: var(--sand-brown);
            background: var(--light-beige);
        }

        .action-btn i {
            font-size: 20px;
            margin-bottom: 3px;
        }

        .action-btn span {
            font-size: 11px;
            font-weight: 500;
        }

        .cart-badge {
            position: absolute;
            top: 3px;
            right: 3px;
            background: var(--danger);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
        }

        .main-nav {
            background: var(--white);
            border-top: 1px solid var(--border-color);
        }

        .nav-menu {
            display: flex;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-menu li {
            position: relative;
        }

        .nav-menu a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 15px 20px;
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 500;
            font-size: 15px;
            transition: all 0.3s;
            border-bottom: 2px solid transparent;
        }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--sand-brown);
            border-bottom-color: var(--sand-brown);
        }

        /* ===== البنر المتحرك ===== */
        .hero-slider {
            position: relative;
            height: 500px;
            overflow: hidden;
            margin: 20px 0;
            border-radius: 10px;
            background: transparent;
            border: none;
            box-shadow: none;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }

        .slide.active {
            opacity: 1;
        }

        .slide img, .slide video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .slide video {
            position: absolute;
            top: 0;
            left: 0;
        }

        .slide-content {
            position: absolute;
            top: 50%;
            right: 40px;
            transform: translateY(-50%);
            color: white;
            background: transparent !important;
            padding: 20px;
            border-radius: 0;
            max-width: 500px;
            backdrop-filter: none !important;
            border-left: none !important;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        body:lang(en) .slide-content {
            right: auto;
            left: 40px;
            border-left: none;
            border-right: none;
        }

        .slide-content h2 {
            font-size: 36px;
            margin-bottom: 15px;
            color: white;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .slide-content p {
            font-size: 18px;
            margin-bottom: 20px;
            line-height: 1.6;
            color: white;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }

        .slider-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid rgba(0,0,0,0.2);
        }

        .slider-dot.active {
            background: var(--gold-orange);
            transform: scale(1.2);
        }

        /* ===== أقسام المنتجات ===== */
        .categories-section {
            padding: 60px 0;
            background: var(--white);
        }

        .section-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .section-title {
            font-size: 32px;
            color: var(--soft-brown);
            margin-bottom: 10px;
            position: relative;
            display: inline-block;
            padding-bottom: 10px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 60px;
            height: 2px;
            background: var(--sand-brown);
        }

        .section-subtitle {
            color: var(--text-light);
            font-size: 16px;
            max-width: 600px;
            margin: 0 auto;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
        }

        .category-card {
            background: var(--white);
            border-radius: 8px;
            overflow: hidden;
            text-decoration: none;
            color: var(--text-dark);
            transition: all 0.3s;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            cursor: pointer;
        }

        .category-card:hover {
            border-color: var(--sand-brown);
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        /* تعديل عرض صورة الفئة - نسبة 16:9 */
        .category-img-container {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #f9f9f9;
            overflow: hidden;
        }

        .category-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .category-card:hover .category-img {
            transform: scale(1.05);
        }

        .category-info {
            padding: 20px;
            text-align: center;
        }

        .category-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--soft-brown);
        }

        .category-count {
            font-size: 14px;
            color: var(--text-light);
        }

        .featured-products {
            padding: 60px 0;
            background: var(--ivory-bg);
        }

        /* ===== تعديل عرض المنتجات ===== */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
        }

        .product-card {
            background: var(--white);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            cursor: pointer;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .product-card:hover {
            border-color: var(--sand-brown);
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        }

        /* تعديل عرض صورة المنتج - نسبة 1:1 */
        .product-img-container {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            background: #f9f9f9;
            overflow: hidden;
        }

        .product-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .product-card:hover .product-img {
            transform: scale(1.05);
        }

        .quick-add-cart {
            display: none;
        }

        .product-info {
            padding: 18px 15px;
            background: white;
            border-top: 1px solid var(--border-color);
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .product-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--soft-brown);
            line-height: 1.4;
        }

        .product-price {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 15px;
        }

        .current-price {
            font-size: 22px;
            font-weight: 800;
            color: var(--danger);
        }

        .old-price {
            font-size: 14px;
            color: var(--text-light);
            text-decoration: line-through;
        }

        .product-actions {
            display: flex;
            gap: 8px;
            margin-top: auto;
        }

        .btn-add-cart {
            flex: 1;
            background: var(--success);
            color: white;
            border: none;
            padding: 12px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 700;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
        }

        .btn-add-cart:hover {
            background: #1B5E20;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(46, 125, 50, 0.3);
        }
        /* ===== تأثير تحريك خفيف للمنتجات المميزة ===== */
        .product-card.featured {
            position: relative;
            border: 2px solid var(--gold-orange);
            box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
        }
        
        .product-card.featured::after {
            content: "⭐";
            position: absolute;
            top: 10px;
            left: 10px;
            background: var(--gold-orange);
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            z-index: 10;
        }
        
        @keyframes featuredPulse {
            0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
            100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
        }
        
        .product-card.featured {
            animation: featuredPulse 2s infinite;
        }

        /* ===== نافذة عرض المنتج ===== */
        .product-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .product-modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--white);
            border-radius: 15px;
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: slideUp 0.3s ease;
        }

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

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

        .modal-close {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--sand-brown);
            color: white;
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .modal-close:hover {
            background: var(--gold-orange);
        }

        .modal-body {
            display: flex;
            flex-direction: column;
            padding: 30px;
        }

        @media (min-width: 768px) {
            .modal-body {
                flex-direction: row;
                gap: 40px;
            }
        }

        .modal-images {
            flex: 1;
            position: relative;
        }

        .main-image {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 15px;
            background: #f9f9f9;
        }

        .thumbnail-images {
            display: flex;
            gap: 10px;
            overflow-x: auto;
        }

        .thumbnail {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            opacity: 0.6;
            transition: all 0.3s;
            background: #f9f9f9;
        }

        .thumbnail:hover,
        .thumbnail.active {
            opacity: 1;
            border: 2px solid var(--sand-brown);
        }

        .modal-info {
            flex: 1;
        }

        .modal-info h2 {
            color: var(--soft-brown);
            margin-bottom: 15px;
            font-size: 24px;
        }

        .modal-price {
            font-size: 28px;
            color: var(--danger);
            font-weight: 700;
            margin-bottom: 15px;
        }

        .modal-description {
            color: var(--text-dark);
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 25px;
        }

        .modal-add-cart {
            flex: 1;
            background: var(--success);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s;
        }

        .modal-add-cart:hover {
            background: #1B5E20;
        }

        /* ===== سلة التسوق العائمة ===== */
        .cart-sidebar {
            position: fixed;
            top: 0;
            left: -350px;
            width: 350px;
            height: 100vh;
            background: var(--white);
            z-index: 9999;
            transition: left 0.3s ease;
            display: flex;
            flex-direction: column;
            border-right: 1px solid var(--border-color);
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }

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

        .cart-header {
            padding: 20px;
            background: var(--sand-brown);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-header h3 {
            margin: 0;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .close-cart {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            touch-action: manipulation;
        }

        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            -webkit-overflow-scrolling: touch;
        }

        .cart-item {
            display: flex;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
        }

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

        .cart-item-image {
            width: 70px;
            height: 70px;
            border-radius: 6px;
            object-fit: cover;
            margin-left: 15px;
            background: #f9f9f9;
        }

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

        .cart-item-name {
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--soft-brown);
        }

        .cart-item-price {
            color: var(--danger);
            font-weight: 700;
            font-size: 16px;
        }

        .cart-item-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .quantity-control {
            display: flex;
            align-items: center;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            overflow: hidden;
            background: var(--white);
        }

        .quantity-btn-cart {
            width: 28px;
            height: 28px;
            background: var(--light-beige);
            border: none;
            cursor: pointer;
            font-size: 14px;
            touch-action: manipulation;
        }

        .quantity-input-cart {
            width: 35px;
            height: 28px;
            border: none;
            text-align: center;
            font-size: 14px;
        }

        .remove-item {
            width: 28px;
            height: 28px;
            background: var(--light-beige);
            color: var(--text-light);
            border: none;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            touch-action: manipulation;
        }

        .remove-item:hover {
            background: #ffeaea;
            color: var(--danger);
        }

        /* ===== فوتر السلة ===== */
        .cart-footer {
            padding: 25px 20px 35px 20px !important;
            background: var(--white);
            border-top: 1px solid var(--border-color);
            box-shadow: 0 -5px 15px rgba(0,0,0,0.03);
        }

        .cart-summary {
            margin-bottom: 20px;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .summary-total {
            border-top: 1px solid var(--border-color);
            padding-top: 12px;
            margin-top: 12px;
            font-weight: 700;
            font-size: 18px;
            color: var(--soft-brown);
        }

        /* ===== حاوية الأزرار - مهم للخيارات الثلاثة ===== */
        .cart-buttons-container {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            width: 100%;
        }

        .cart-buttons-container .btn-checkout {
            flex: 1;
            margin: 0;
        }

        /* ===== زر إتمام الشراء (واتساب) ===== */
        .btn-checkout {
            width: 100%;
            padding: 18px 15px !important;
            background: var(--sand-brown);
            color: white;
            border: none;
            border-radius: 12px !important;
            font-size: 17px !important;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            position: relative;
            pointer-events: auto !important;
            opacity: 1 !important;
            visibility: visible !important;
            touch-action: manipulation !important;
            -webkit-tap-highlight-color: transparent !important;
            -webkit-appearance: none !important;
            appearance: none !important;
            margin-bottom: 5px;
            box-shadow: 0 4px 12px rgba(108, 75, 244, 0.3);
            letter-spacing: 0.5px;
            transition: all 0.2s;
        }

        .btn-checkout:active {
            background: var(--gold-orange) !important;
            transform: scale(0.97);
        }

        /* ===== زر الدفع الإلكتروني ===== */
        .btn-payment {
            background: var(--paypal-blue);
        }

        .btn-payment.stripe {
            background: var(--stripe-purple);
        }

        .btn-payment.sadad {
            background: var(--sadad-green);
        }

        /* ===== زر واتساب المنفصل ===== */
        .btn-whatsapp {
            background: var(--whatsapp-green) !important;
        }

        .btn-whatsapp i {
            color: white;
        }

        /* ===== نافذة الدفع الإلكتروني ===== */
        .payment-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10002;
            display: none;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }

        .payment-overlay.active {
            display: flex;
        }

        .payment-content {
            background: var(--white);
            border-radius: 15px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: slideUp 0.3s ease;
        }

        .payment-header {
            padding: 20px;
            background: var(--sand-brown);
            color: white;
            border-radius: 15px 15px 0 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .payment-header h3 {
            margin: 0;
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .payment-close {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s;
        }

        .payment-close:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.1);
        }

        .payment-body {
            padding: 25px;
            max-height: calc(90vh - 80px);
            overflow-y: auto;
        }

        .payment-summary {
            background: var(--ivory-bg);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
        }

        .payment-summary-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 16px;
        }

        .payment-summary-total {
            border-top: 1px solid var(--border-color);
            padding-top: 10px;
            margin-top: 10px;
            font-weight: 700;
            font-size: 18px;
            color: var(--soft-brown);
        }

        .payment-method-badge {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .payment-method-badge.paypal {
            background: var(--paypal-blue);
            color: white;
        }

        .payment-method-badge.stripe {
            background: var(--stripe-purple);
            color: white;
        }

        .payment-method-badge.sadad {
            background: var(--sadad-green);
            color: white;
        }

        #paypal-button-container {
            margin: 20px 0;
            min-height: 150px;
        }

        .stripe-card-element {
            padding: 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: white;
            margin: 20px 0;
        }

        .sadad-form {
            margin: 20px 0;
        }

        .sadad-form input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 16px;
            margin-bottom: 15px;
            font-family: 'Cairo', sans-serif;
        }

                /* ===== إشعارات محسنة - تظهر في منتصف الشاشة دائماً ===== */
        .notification {
            position: fixed;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            background: var(--sand-brown);
            color: white;
            padding: 20px 30px;
            border-radius: 12px;
            z-index: 100000 !important;
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 18px;
            font-weight: 600;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            min-width: 300px;
            max-width: 500px;
            text-align: center;
            justify-content: center;
            border: 2px solid rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            animation: notificationPop 0.3s ease;
            margin: 0 !important;
            right: auto !important;
            bottom: auto !important;
        }

        @keyframes notificationPop {
            0% {
                opacity: 0;
                transform: translate(-50%, -40%);
            }
            100% {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        @keyframes slideOut {
            to {
                opacity: 0;
                transform: translate(-50%, -40%);
            }
        }

        .notification.notification-success {
            background: linear-gradient(135deg, #2e7d32, #1b5e20);
        }

        .notification.notification-error {
            background: linear-gradient(135deg, #c62828, #8b0000);
        }

        .notification.notification-warning {
            background: linear-gradient(135deg, #ff8f00, #ff6f00);
        }

        .notification.notification-loading {
            background: linear-gradient(135deg, #0288d1, #01579b);
        }

        .notification i {
            font-size: 28px;
        }

        @media (max-width: 768px) {
            .notification {
                min-width: 280px;
                max-width: 90%;
                padding: 15px 20px;
                font-size: 16px;
                top: 50% !important;
                left: 50% !important;
                transform: translate(-50%, -50%) !important;
            }
            
            .notification i {
                font-size: 24px;
            }
        }

        .notification.notification-success {
            background: linear-gradient(135deg, #2e7d32, #1b5e20);
        }

        .notification.notification-error {
            background: linear-gradient(135deg, #c62828, #8b0000);
        }

        .notification.notification-warning {
            background: linear-gradient(135deg, #ff8f00, #ff6f00);
        }

        .notification.notification-loading {
            background: linear-gradient(135deg, #0288d1, #01579b);
        }

        .notification i {
            font-size: 28px;
        }

        @media (max-width: 768px) {
            .notification {
                min-width: 280px;
                max-width: 90%;
                padding: 15px 20px;
                font-size: 16px;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }
            
            .notification i {
                font-size: 24px;
            }
        }

        /* ===== نافذة إتمام الشراء (واتساب) ===== */
        .checkout-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10001;
            display: none;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        .checkout-overlay.active {
            display: flex;
        }

        .checkout-overlay-content {
            background: var(--ivory-bg);
            border-radius: 15px;
            width: 90%;
            max-width: 600px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border-color);
            margin: 20px;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        .checkout-overlay-header {
            padding: 20px;
            background: var(--sand-brown);
            color: white;
            border-radius: 15px 15px 0 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            flex-shrink: 0;
        }

        .checkout-overlay-header h2 {
            margin: 0;
            font-size: 20px;
            font-weight: 600;
            flex: 1;
            text-align: center;
            color: white;
        }

        .checkout-overlay-close {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s;
            position: absolute;
            left: 15px;
            top: 15px;
            z-index: 10002;
            touch-action: manipulation;
        }

        .checkout-overlay-close:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.05);
        }

        .checkout-overlay-body {
            padding: 25px;
            overflow-y: auto;
            background: var(--white);
            border-radius: 0 0 15px 15px;
            max-height: calc(85vh - 80px);
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        /* ===== تنسيقات صفحة الشراء (واتساب) ===== */
        .checkout-summary-modern {
            background: var(--ivory-bg);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 25px;
            border: 1px solid var(--border-color);
        }

        .checkout-summary-modern h3 {
            color: var(--soft-brown);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
            font-size: 18px;
        }

        .checkout-items-list {
            max-height: 200px;
            overflow-y: auto;
            margin-bottom: 15px;
            -webkit-overflow-scrolling: touch;
        }

        .checkout-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px dashed var(--border-color);
            font-size: 14px;
        }

        .checkout-item-name {
            color: var(--text-dark);
            font-weight: 500;
            flex: 1;
        }

        .checkout-item-price {
            color: var(--danger);
            font-weight: 600;
        }

        .btn-submit-order-modern {
            width: 100%;
            padding: 15px;
            background: var(--sand-brown);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
            position: relative;
            z-index: 10002;
            pointer-events: auto !important;
            touch-action: manipulation;
        }

        .btn-submit-order-modern:hover {
            background: var(--gold-orange);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(108, 75, 244, 0.3);
        }

        .btn-submit-order-modern:active {
            transform: translateY(0);
        }

        .checkout-form-group {
            margin-bottom: 20px;
        }

        .checkout-form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--soft-brown);
            font-size: 14px;
        }

        .checkout-form-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 15px;
            font-family: 'Cairo', sans-serif;
            transition: all 0.3s;
            background: var(--white);
            color: var(--text-dark);
            touch-action: manipulation;
        }

        .checkout-form-input:focus {
            outline: none;
            border-color: var(--gold-orange);
            box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
        }

        .address-options-modern {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .address-btn-modern {
            flex: 1;
            padding: 12px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            background: var(--white);
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            font-family: 'Cairo', sans-serif;
            touch-action: manipulation;
        }

        .address-btn-modern:hover {
            border-color: var(--gold-orange);
            background: var(--light-beige);
        }

        .address-btn-modern.active {
            border-color: var(--sand-brown);
            background: var(--light-beige);
        }

        .address-btn-modern i {
            font-size: 22px;
            color: var(--sand-brown);
        }

        .address-btn-modern span {
            font-weight: 600;
            color: var(--soft-brown);
            font-size: 13px;
        }

        /* ===== الفوتر ===== */
        .footer {
            background: var(--soft-brown);
            color: white;
            padding: 50px 0 20px;
            margin-top: 60px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-col h3 {
            color: var(--gold-orange);
            margin-bottom: 20px;
            font-size: 18px;
            position: relative;
            padding-bottom: 0;
        }

        /* إخفاء الخط الأفقي نهائياً */
        .footer-col h3::after {
            display: none;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            font-size: 14px;
        }

        .footer-links a:hover {
            color: white;
            transform: translateX(-5px);
        }

        body:lang(en) .footer-links a:hover {
            transform: translateX(5px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.6);
            font-size: 13px;
        }

        .footer-promo-text {
            color: rgba(255,255,255,0.8);
            margin-bottom: 20px;
            font-size: 14px;
            line-height: 1.8;
        }

        
        /* ===== أنماط اللغة الإنجليزية ===== */
        body:lang(en) {
            direction: ltr;
            text-align: left;
        }

        body:lang(en) .header-content,
        body:lang(en) .nav-menu,
        body:lang(en) .products-grid,
        body:lang(en) .footer-grid,
        body:lang(en) .categories-grid,
        body:lang(en) .top-bar-content {
            direction: ltr;
            text-align: left;
        }

        body:lang(en) .slide-content {
            right: auto;
            left: 40px;
            border-left: none;
            border-right: none;
        }

        body:lang(en) .cart-item-image {
            margin-left: 0;
            margin-right: 15px;
        }

        body:lang(en) .cart-badge {
            right: auto;
            left: 3px;
        }

        body:lang(en) .modal-close {
            left: auto;
            right: 15px;
        }

        body:lang(en) .checkout-overlay-close {
            left: auto;
            right: 15px;
        }

        body:lang(en) .payment-close {
            left: auto;
            right: 15px;
        }

        /* ===== قائمة الموبايل ===== */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 20px;
            color: var(--soft-brown);
            cursor: pointer;
            padding: 10px;
            touch-action: manipulation;
        }

        /* ===== التعديلات للجوال ===== */
        @media (max-width: 992px) {
            .hero-slider {
                height: 400px;
            }
            
            .slide-content {
                right: 20px;
                left: 20px;
                max-width: none;
                padding: 15px;
            }
            
            .slide-content h2 {
                font-size: 28px;
            }
            
            .slide-content p {
                font-size: 16px;
            }
            
            .section-title {
                font-size: 28px;
            }
        }

        @media (max-width: 768px) {
            .logo-tagline.ar-text,
            .logo-tagline.en-text {
                display: none;
            }
            
            body[lang="ar"] .logo-tagline.ar-text,
            html[lang="ar"] .logo-tagline.ar-text {
                display: block !important;
            }
            
            body[lang="en"] .logo-tagline.en-text,
            html[lang="en"] .logo-tagline.en-text {
                display: block !important;
            }
            
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .product-card {
                width: 100%;
                flex-direction: column;
            }
            
            .product-img-container {
                width: 100%;
                aspect-ratio: 1 / 1;
            }
            
            .product-info {
                padding: 15px;
            }
            
            .product-title {
                font-size: 16px;
                margin-bottom: 5px;
            }
            
            .current-price {
                font-size: 18px;
            }
            
            .btn-add-cart {
                padding: 10px;
                font-size: 14px;
            }
            
            .btn-add-cart i {
                font-size: 14px;
            }
            
            .social-sidebar {
                padding: 8px 5px;
                gap: 8px;
            }
            
            .social-icon-link {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }
            
            .social-sidebar-toggle {
                width: 25px;
                height: 32px;
                font-size: 12px;
            }
            
            .top-bar-content {
                flex-direction: column;
                gap: 10px;
            }
            
            .mobile-menu-btn {
                display: block;
                position: absolute;
                top: 15px;
                right: 15px;
                left: auto;
                z-index: 1001;
            }
            
            .header-actions {
                position: absolute;
                top: 15px;
                left: 15px;
                right: auto;
                z-index: 1001;
            }
            
            .logo {
                flex-direction: row;
                align-items: center;
                gap: 10px;
                margin-right: 0;
                flex-wrap: nowrap;
                padding: 0 70px;
                width: 100%;
                justify-content: center;
            }
            
            .logo-text {
                font-size: 20px;
                line-height: 1.2;
            }
            
            .logo-tagline {
                font-size: 11px;
                line-height: 1.3;
                margin-top: 2px;
            }
            
            .logo-icon {
                width: 50px;
                height: 50px;
                flex-shrink: 0;
            }
            
            .site-logo-img {
                max-width: 50px;
                max-height: 50px;
            }
            
            .nav-menu {
                flex-direction: column;
                text-align: center;
                background: var(--white);
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                display: none;
                border-top: 1px solid var(--border-color);
                box-shadow: 0 4px 8px rgba(0,0,0,0.1);
                z-index: 1000;
            }
            
            .nav-menu.active {
                display: flex;
            }
            
            .nav-menu a {
                justify-content: center;
                border-bottom: 1px solid var(--border-color);
            }
            
            .categories-grid,
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .cart-sidebar {
                width: 100%;
                left: -100%;
                padding-bottom: 20px;
            }
            
            .cart-footer {
                padding-bottom: 40px !important;
            }
            
            .btn-checkout {
                padding: 18px 15px !important;
                font-size: 18px !important;
                border-radius: 30px !important;
            }
            
            .cart-buttons-container {
                flex-direction: column;
            }
            
            .checkout-overlay-content {
                width: 92%;
                max-height: 80vh;
                margin: 15px;
            }
            
            .checkout-overlay-body {
                padding: 20px;
            }
            
            .payment-content {
                width: 95%;
                max-height: 80vh;
            }
            
            body:lang(en) .mobile-menu-btn {
                left: 15px;
                right: auto;
            }
            
            body:lang(en) .header-actions {
                right: 15px;
                left: auto;
            }
            
            /* ===== تعديلات الفوتر للجوال في اللغة الإنجليزية ===== */
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 30px;
                text-align: center;
            }

            .footer-col:first-child {
                text-align: center;
            }

            .footer-links {
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .footer-links a {
                justify-content: center;
            }

            body:lang(en) .footer-grid {
                text-align: center;
            }

            body:lang(en) .footer-col h3 {
                text-align: center;
            }

            body:lang(en) .footer-links {
                align-items: center;
            }

            body:lang(en) .footer-links li {
                text-align: center;
                width: 100%;
            }

            body:lang(en) .footer-links a {
                justify-content: center;
                text-align: center;
                width: 100%;
            }

            body:lang(en) .footer-promo-text {
                text-align: center;
            }
            
            .slide-content h2 {
                font-size: 24px !important;
            }
            
            .slide-content p {
                font-size: 14px !important;
            }
        }

        @media (max-width: 576px) {
            .hero-slider {
                height: 300px;
            }
            
            .cart-footer {
                padding-bottom: 45px !important;
            }
            
            .btn-checkout {
                padding: 16px 15px !important;
                font-size: 17px !important;
            }
            
            .categories-grid {
                grid-template-columns: 1fr;
            }
            
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .product-img-container {
                aspect-ratio: 1 / 1;
            }
            
            .product-info {
                padding: 12px;
            }
            
            .product-title {
                font-size: 14px;
            }
            
            .current-price {
                font-size: 16px;
            }
            
            .btn-add-cart {
                padding: 8px;
                font-size: 13px;
            }
            
            .section-title {
                font-size: 24px;
            }
            
            .logo {
                padding: 0 60px;
            }
            
            .logo-text {
                font-size: 18px;
            }
            
            .logo-tagline {
                font-size: 10px;
            }
            
            .logo-icon {
                width: 45px;
                height: 45px;
            }
            
            .site-logo-img {
                max-width: 45px;
                max-height: 45px;
            }
            
            .mobile-menu-btn {
                top: 12px;
                right: 10px;
                padding: 8px;
            }
            
            .header-actions {
                top: 12px;
                left: 10px;
            }
            
            .checkout-overlay-header h2 {
                font-size: 18px;
            }
            
            .checkout-overlay-close {
                width: 32px;
                height: 32px;
                left: 10px;
                top: 12px;
            }
            
            .checkout-overlay-body {
                padding: 15px;
            }
            
            .btn-submit-order-modern {
                padding: 12px;
                font-size: 15px;
            }
            
            .payment-header h3 {
                font-size: 18px;
            }
            
            .payment-close {
                width: 32px;
                height: 32px;
            }
            
            .payment-body {
                padding: 15px;
            }
            
            .slide-content h2 {
                font-size: 20px !important;
            }
            
            .slide-content p {
                font-size: 13px !important;
            }
        }

        @media (max-width: 480px) {
            .hero-slider {
                height: 250px;
            }
            
            .cart-footer {
                padding-bottom: 50px !important;
            }
            
            .logo-text {
                font-size: 16px;
            }
            
            .logo-tagline {
                font-size: 9px;
            }
            
            .logo-icon {
                width: 40px;
                height: 40px;
            }
            
            .site-logo-img {
                max-width: 40px;
                max-height: 40px;
            }
            
            .cart-item-image {
                width: 60px;
                height: 60px;
            }
            
            .checkout-summary-modern {
                padding: 15px;
            }
            
            .payment-summary {
                padding: 12px;
            }
            
            .slide-content h2 {
                font-size: 18px !important;
            }
            
            .social-icon-link {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }
            
            .products-grid {
                gap: 8px;
            }
            
            .product-img-container {
                aspect-ratio: 1 / 1;
            }
            
            .product-info {
                padding: 10px;
            }
            
            .product-title {
                font-size: 13px;
            }
            
            .current-price {
                font-size: 14px;
            }
            
            .btn-add-cart {
                padding: 6px;
                font-size: 12px;
            }
        }
        /* ===== أنماط شريط آراء العملاء ===== */
        .testimonials-container {
            position: relative;
            width: 100%;
            padding: 60px 60px 40px;
            background: var(--ivory-bg);
            margin-top: 40px;
            z-index: 2;
        }

        .testimonials-slider {
            width: 100%;
            height: 100%;
            padding: 20px 0 40px;
        }

        .testimonial-slide {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            background: var(--white);
            border-radius: 20px;
            transition: all 0.4s ease;
            border: 1px solid var(--border-color);
            margin: 10px auto;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            overflow: hidden;
            padding: 0;
            max-width: 220px;
            width: 100%;
        }

        .testimonial-slide:hover {
            transform: translateY(-5px);
            border-color: var(--gold-orange);
            box-shadow: 0 10px 25px rgba(34, 211, 238, 0.15);
        }

        .testimonial-image-container {
            width: 100%;
            aspect-ratio: 1 / 1;
            overflow: hidden;
            background: var(--light-beige);
        }

        .testimonial-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .testimonial-slide:hover .testimonial-image {
            transform: scale(1.05);
        }

        .testimonial-content {
            padding: 15px 10px;
            width: 100%;
            background: white;
        }

        .testimonial-name {
            font-size: 1rem;
            font-weight: 700;
            color: var(--soft-brown);
            margin-bottom: 5px;
        }

        .testimonial-rating {
            color: var(--gold-orange);
            font-size: 0.9rem;
            letter-spacing: 2px;
            margin-bottom: 0;
        }

        .testimonials-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(36, 27, 84, 0.7);
            border: none;
            color: white;
            font-size: 1.5rem;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .testimonials-nav:hover {
            background: var(--gold-orange);
            transform: translateY(-50%) scale(1.1);
        }

        .testimonials-prev {
            right: 10px;
        }

        .testimonials-next {
            left: 10px;
        }

        .testimonials-pagination {
            position: relative;
            margin-top: 20px;
            display: flex;
            justify-content: center;
            gap: 8px;
        }

        .testimonial-dot {
            width: 10px;
            height: 10px;
            background: rgba(34, 211, 238, 0.3);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .testimonial-dot.active {
            background: var(--gold-orange);
            transform: scale(1.3);
        }

        /* تعديلات للجوال */
        @media (max-width: 768px) {
            .testimonials-container {
                padding: 40px 40px 30px;
            }
            
            .testimonial-slide {
                max-width: 200px;
            }
            
            .testimonial-name {
                font-size: 0.9rem;
            }
            
            .testimonial-rating {
                font-size: 0.8rem;
            }
        }

        @media (max-width: 576px) {
            .testimonials-container {
                padding: 30px 30px 20px;
            }
            
            .testimonial-slide {
                max-width: 180px;
            }
            
            .testimonials-nav {
                width: 35px;
                height: 35px;
                font-size: 1.2rem;
            }
        }

        /* ===== تصغير حجم المنتجات على شاشات الكمبيوتر فقط ===== */
        @media (min-width: 992px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 20px;
            }
            
            .product-title {
                font-size: 16px;
            }
            
            .current-price {
                font-size: 18px;
            }
            
            .btn-add-cart {
                padding: 10px;
                font-size: 14px;
            }
        }

        /* تحسينات حقل العنوان - الجزء المضاف */
        #addressDetailsGroup {
            margin-top: 15px;
            padding-top: 10px;
            border-top: 1px dashed var(--border-color);
        }

        #addressDetailsGroup small {
            color: var(--text-light);
            font-size: 12px;
            display: block;
            margin-top: 5px;
        }

        #modernAddress[readonly] {
            background-color: var(--ivory-bg);
            cursor: default;
            opacity: 0.8;
        }

        #modernAddress[readonly]:focus {
            outline: none;
            border-color: var(--border-color);
            box-shadow: none;
        }

        #modernAddress[readonly]::placeholder {
            color: var(--text-light);
            opacity: 0.7;
        }
        
        /* ===== تحسينات حقل الهاتف مع قائمة الدول ===== */
        #modernPhoneLocalNumber {
            flex: 1;
        }
        
        #modernPhoneCountryCode {
            width: 110px;
            flex-shrink: 0;
            background-color: var(--white);
            cursor: pointer;
        }
        
        #modernPhoneCountryCode option {
            font-family: 'Cairo', sans-serif;
            padding: 5px;
        }
        
        @media (max-width: 576px) {
            #modernPhoneCountryCode {
                width: 90px;
                font-size: 13px;
                padding: 12px 3px;
            }
            
            .checkout-form-group > div[style*="display: flex"] {
                gap: 5px !important;
            }
        }

        /* ===== أنماط حقل بيانات العميل في الدفع الإلكتروني (إضافة جديدة) ===== */
        .payment-customer-fields {
            background: var(--ivory-bg);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
        }

        .payment-customer-fields h4 {
            color: var(--soft-brown);
            margin-bottom: 15px;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .payment-customer-fields h4 i {
            color: var(--gold-orange);
        }

        .payment-field-group {
            margin-bottom: 15px;
        }

        .payment-field-label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: var(--soft-brown);
            font-size: 13px;
        }

        .payment-field-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 14px;
            font-family: 'Cairo', sans-serif;
            background: white;
        }

        .payment-field-input:focus {
            outline: none;
            border-color: var(--gold-orange);
            box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.1);
        }

        .payment-phone-row {
            display: flex;
            gap: 10px;
        }

        .payment-phone-row select {
            width: 110px;
            flex-shrink: 0;
            padding: 10px 5px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: white;
            font-family: 'Cairo', sans-serif;
        }

        .payment-phone-row input {
            flex: 1;
        }

        /* ===== إشعار عند عدم تكوين البوابة ===== */
        .gateway-not-configured {
            background: #fff3cd;
            border: 1px solid #ffeeba;
            color: #856404;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
            text-align: center;
            font-size: 14px;
        }

        .gateway-not-configured i {
            margin-left: 8px;
            color: #ff9800;
        }

        /* ==========================================================
           ██  CARTOON QATAR — طبقة اللمسات الكريستالية (Crystal FX)
           كل ما تحت هذا السطر إضافات بصرية فقط، لا تمس أي وظيفة.
           ========================================================== */

        /* ===== 1) حقل الشظايا الكريستالية في الخلفية ===== */
        .crystal-field {
            position: fixed;
            inset: 0;
            z-index: -2;
            overflow: hidden;
            pointer-events: none;
            background:
                radial-gradient(1000px 620px at 12% -10%, rgba(108,75,244,0.14), transparent 60%),
                radial-gradient(900px 560px at 88% 4%,  rgba(34,211,238,0.14), transparent 60%),
                radial-gradient(760px 520px at 50% 108%, rgba(255,95,162,0.12), transparent 62%);
        }

        .crystal-field .shard {
            position: absolute;
            background: var(--prism-gradient);
            background-size: 200% 200%;
            opacity: 0.13;
            filter: blur(0.4px);
            clip-path: polygon(50% 0%, 100% 32%, 82% 100%, 18% 100%, 0% 32%);
            animation: shardDrift linear infinite;
            will-change: transform;
        }

        .crystal-field .shard:nth-child(1) { width: 130px; height: 150px; left: 6%;  top: 12%; animation-duration: 26s; animation-delay: -2s; }
        .crystal-field .shard:nth-child(2) { width: 78px;  height: 92px;  left: 22%; top: 68%; animation-duration: 32s; animation-delay: -9s; }
        .crystal-field .shard:nth-child(3) { width: 168px; height: 190px; left: 74%; top: 18%; animation-duration: 38s; animation-delay: -5s; }
        .crystal-field .shard:nth-child(4) { width: 96px;  height: 112px; left: 88%; top: 62%; animation-duration: 29s; animation-delay: -14s; }
        .crystal-field .shard:nth-child(5) { width: 62px;  height: 74px;  left: 46%; top: 40%; animation-duration: 34s; animation-delay: -7s; }
        .crystal-field .shard:nth-child(6) { width: 112px; height: 130px; left: 58%; top: 82%; animation-duration: 41s; animation-delay: -18s; }

        @keyframes shardDrift {
            0%   { transform: translate3d(0,0,0) rotate(0deg)   scale(1); }
            25%  { transform: translate3d(24px,-34px,0) rotate(90deg)  scale(1.09); }
            50%  { transform: translate3d(-18px,-62px,0) rotate(180deg) scale(0.94); }
            75%  { transform: translate3d(-30px,-28px,0) rotate(270deg) scale(1.06); }
            100% { transform: translate3d(0,0,0) rotate(360deg) scale(1); }
        }

        /* ===== 2) غبار كريستالي متلألئ ===== */
        .crystal-dust {
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background-image:
                radial-gradient(2px 2px at 12% 22%, rgba(255,255,255,0.95), transparent 60%),
                radial-gradient(2px 2px at 34% 74%, rgba(34,211,238,0.85), transparent 60%),
                radial-gradient(1.6px 1.6px at 62% 32%, rgba(255,95,162,0.85), transparent 60%),
                radial-gradient(2px 2px at 82% 66%, rgba(108,75,244,0.85), transparent 60%),
                radial-gradient(1.4px 1.4px at 48% 88%, rgba(255,255,255,0.9), transparent 60%),
                radial-gradient(1.8px 1.8px at 92% 14%, rgba(255,201,74,0.85), transparent 60%);
            animation: dustTwinkle 5.5s ease-in-out infinite;
        }

        @keyframes dustTwinkle {
            0%, 100% { opacity: 0.35; transform: translateY(0); }
            50%      { opacity: 0.9;  transform: translateY(-9px); }
        }

        /* ===== 3) شاشة التحميل الكريستالية ===== */
        .page-load-effect {
            background:
                radial-gradient(700px 520px at 30% 20%, rgba(108,75,244,0.16), transparent 62%),
                radial-gradient(700px 520px at 72% 78%, rgba(34,211,238,0.16), transparent 62%),
                var(--crystal-frost);
        }

        .loading-logo::before {
            content: '';
            position: absolute;
            inset: -14px;
            border-radius: 50%;
            background: var(--prism-gradient);
            background-size: 220% 220%;
            filter: blur(22px);
            opacity: 0.55;
            animation: haloPulse 2.6s ease-in-out infinite;
        }

        @keyframes haloPulse {
            0%, 100% { opacity: 0.35; transform: scale(0.9);  background-position: 0% 50%; }
            50%      { opacity: 0.75; transform: scale(1.12); background-position: 100% 50%; }
        }

        .loading-text {
            background: var(--prism-gradient);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            font-weight: 800;
            letter-spacing: 1px;
            animation: prismSlide 3.2s linear infinite;
        }

        @keyframes prismSlide {
            0%   { background-position: 0% center; }
            100% { background-position: 200% center; }
        }

        /* ===== 4) الهيدر والشريط العلوي — زجاج كريستالي ===== */
        .top-bar {
            background: var(--prism-gradient);
            background-size: 220% auto;
            animation: prismSlide 14s linear infinite;
            box-shadow: 0 2px 16px rgba(108,75,244,0.28);
        }

        .language-btn {
            background: rgba(255,255,255,0.16);
            border: 1px solid rgba(255,255,255,0.34);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            font-weight: 600;
        }

        .language-btn.active {
            background: #fff;
            color: var(--crystal-violet);
            box-shadow: 0 0 14px rgba(255,255,255,0.55);
        }

        .header {
            background: var(--glass-bg);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-bottom: 1px solid var(--glass-border);
            box-shadow: 0 6px 26px rgba(108,75,244,0.12);
        }

        .logo-text {
            background: var(--prism-gradient);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            font-weight: 800;
            animation: prismSlide 6s linear infinite;
        }

        .logo-tagline { color: var(--text-light); }

        /* ===== 5) عناوين الأقسام — خط منشوري ===== */
        .section-title {
            background: var(--prism-gradient);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            font-weight: 800;
            animation: prismSlide 7s linear infinite;
        }

        .section-title::after {
            width: 90px;
            height: 3px;
            border-radius: 3px;
            background: var(--prism-gradient);
            background-size: 200% auto;
            box-shadow: 0 0 12px rgba(34,211,238,0.6);
            animation: prismSlide 4s linear infinite;
        }

        /* ===== 6) بطاقات كريستالية + وميض عند المرور ===== */
        .category-card,
        .product-card {
            position: relative;
            background: var(--glass-bg);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            box-shadow: var(--crystal-shadow);
            overflow: hidden;
            transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
        }

        /* حافة منشورية — فقط للمتصفحات الداعمة لـ mask (وإلا تختفي بأمان) */
        @supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
            .category-card::before,
            .product-card::before,
            .hero-slider::after { display: none !important; }
        }

        .category-card::before,
        .product-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: var(--prism-gradient);
            background-size: 200% 200%;
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
                    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
                    mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.35s ease;
            pointer-events: none;
            z-index: 3;
        }

        /* شعاع الوميض */
        .category-card::after,
        .product-card::after {
            content: '';
            position: absolute;
            top: -60%;
            left: -80%;
            width: 60%;
            height: 220%;
            background: var(--prism-shine);
            transform: rotate(18deg);
            opacity: 0;
            pointer-events: none;
            z-index: 4;
        }

        .category-card:hover,
        .product-card:hover {
            transform: translateY(-7px) scale(1.012);
            border-color: transparent;
            box-shadow: var(--crystal-shadow-lg);
        }

        .category-card:hover::before,
        .product-card:hover::before {
            opacity: 1;
            animation: prismSlide 3s linear infinite;
        }

        .category-card:hover::after,
        .product-card:hover::after {
            opacity: 1;
            animation: shineSweep 0.95s ease-out;
        }

        @keyframes shineSweep {
            0%   { left: -80%; opacity: 0; }
            18%  { opacity: 1; }
            100% { left: 130%; opacity: 0; }
        }

        .category-img-container,
        .product-img-container {
            background: linear-gradient(135deg, #EEF1FF 0%, #E6F7FD 100%);
        }

        .product-card .product-title,
        .category-card .category-title {
            color: var(--crystal-deep);
        }

        .product-card .current-price {
            background: var(--prism-gradient);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            font-weight: 800;
            animation: prismSlide 6s linear infinite;
        }

        /* شارة المنتج المميز */
        .product-card.featured::before { opacity: 0.75; animation: prismSlide 5s linear infinite; }

        /* ===== 7) أزرار كريستالية ===== */
        .btn-add-cart,
        .modal-add-cart,
        .checkout-btn,
        .payment-btn,
        .whatsapp-btn,
        .btn-primary {
            position: relative;
            overflow: hidden;
            isolation: isolate;
        }

        .btn-add-cart::after,
        .modal-add-cart::after,
        .checkout-btn::after,
        .payment-btn::after,
        .whatsapp-btn::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -70%;
            width: 45%;
            height: 200%;
            background: var(--prism-shine);
            transform: rotate(20deg);
            opacity: 0;
            pointer-events: none;
            z-index: 1;
        }

        .btn-add-cart:hover::after,
        .modal-add-cart:hover::after,
        .checkout-btn:hover::after,
        .payment-btn:hover::after,
        .whatsapp-btn:hover::after {
            opacity: 1;
            animation: shineSweep 0.8s ease-out;
        }

        .btn-add-cart {
            background: var(--prism-gradient);
            background-size: 200% auto;
            box-shadow: 0 6px 18px rgba(108,75,244,0.32);
            animation: prismSlide 8s linear infinite;
        }

        .btn-add-cart:hover {
            background: var(--prism-gradient);
            background-size: 200% auto;
            transform: translateY(-2px);
            box-shadow: 0 10px 26px rgba(108,75,244,0.45), var(--crystal-glow);
        }

        .btn-add-cart:active { transform: translateY(0) scale(0.97); }

        /* ===== 8) البنر الرئيسي — إطار منشوري ===== */
        .hero-slider {
            border-radius: 18px;
            overflow: hidden;
            box-shadow: var(--crystal-shadow-lg);
            position: relative;
        }

        .hero-slider::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 18px;
            padding: 2px;
            background: var(--prism-gradient);
            background-size: 200% 200%;
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
                    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
                    mask-composite: exclude;
            pointer-events: none;
            z-index: 5;
            animation: prismSlide 9s linear infinite;
        }

        .slider-dot { background: rgba(255,255,255,0.5); }
        .slider-dot.active {
            background: var(--prism-gradient);
            background-size: 200% auto;
            box-shadow: var(--crystal-glow);
            animation: prismSlide 4s linear infinite;
        }

        /* ===== 9) النوافذ المنبثقة والسلة — كريستال زجاجي ===== */
        .modal-content,
        .cart-sidebar,
        .payment-content,
        .checkout-overlay-content {
            background: rgba(255,255,255,0.86);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border: 1px solid var(--glass-border);
            box-shadow: var(--crystal-shadow-lg);
        }

        .cart-header,
        .payment-header,
        .checkout-overlay-header {
            background: var(--prism-gradient);
            background-size: 220% auto;
            animation: prismSlide 12s linear infinite;
            color: #fff;
        }

        .cart-badge {
            background: var(--crystal-pink);
            box-shadow: 0 0 12px rgba(255,95,162,0.75);
            animation: badgePulse 2.2s ease-in-out infinite;
        }

        @keyframes badgePulse {
            0%, 100% { transform: scale(1); }
            50%      { transform: scale(1.14); }
        }

        /* ===== 10) الفوتر ===== */
        .footer {
            background: linear-gradient(160deg, #241B54 0%, #34246B 55%, #1B1440 100%);
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(600px 320px at 15% 0%, rgba(108,75,244,0.4), transparent 62%),
                radial-gradient(560px 300px at 85% 100%, rgba(34,211,238,0.28), transparent 62%);
            pointer-events: none;
        }

        .footer .container { position: relative; z-index: 1; }

        .footer-col h3 {
            background: var(--prism-gradient);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            animation: prismSlide 7s linear infinite;
        }

        /* ===== 11) شريط التواصل الجانبي ===== */
        .social-sidebar {
            background: rgba(255,255,255,0.42);
            border: 1px solid var(--glass-border);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            box-shadow: var(--crystal-shadow);
        }

        .social-sidebar-toggle {
            background: var(--prism-gradient);
            background-size: 200% auto;
            animation: prismSlide 8s linear infinite;
        }

        /* ===== 12) انفجار البريق عند الإضافة للسلة ===== */
        .sparkle-burst {
            position: fixed;
            width: 10px;
            height: 10px;
            border-radius: 2px;
            pointer-events: none;
            z-index: 10050;
            clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
            animation: sparkleFly 900ms cubic-bezier(.2,.7,.3,1) forwards;
        }

        @keyframes sparkleFly {
            0%   { transform: translate(0,0) scale(0.3) rotate(0deg); opacity: 1; }
            70%  { opacity: 1; }
            100% { transform: translate(var(--sx), var(--sy)) scale(1.15) rotate(240deg); opacity: 0; }
        }

        /* ===== 13) ظهور تدريجي كريستالي للبطاقات ===== */
        .products-grid > *,
        .categories-grid > * {
            /* backwards وليس both — حتى لا تقفل الأنميشن تأثير المرور بالماوس */
            animation: crystalRise 0.62s cubic-bezier(.2,.8,.2,1) backwards;
        }
        .products-grid   > *:nth-child(1),  .categories-grid > *:nth-child(1)  { animation-delay: 0.02s; }
        .products-grid   > *:nth-child(2),  .categories-grid > *:nth-child(2)  { animation-delay: 0.07s; }
        .products-grid   > *:nth-child(3),  .categories-grid > *:nth-child(3)  { animation-delay: 0.12s; }
        .products-grid   > *:nth-child(4),  .categories-grid > *:nth-child(4)  { animation-delay: 0.17s; }
        .products-grid   > *:nth-child(5),  .categories-grid > *:nth-child(5)  { animation-delay: 0.22s; }
        .products-grid   > *:nth-child(6),  .categories-grid > *:nth-child(6)  { animation-delay: 0.27s; }
        .products-grid   > *:nth-child(n+7),.categories-grid > *:nth-child(n+7){ animation-delay: 0.32s; }

        @keyframes crystalRise {
            0%   { opacity: 0; transform: translateY(22px) scale(0.96); filter: blur(6px); }
            100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
        }

        /* ===== 14) شريط آراء العملاء ===== */
        .testimonial-card {
            background: var(--glass-bg);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border: 1px solid var(--glass-border);
            box-shadow: var(--crystal-shadow);
        }

        .testimonials-nav {
            background: var(--prism-gradient);
            background-size: 200% auto;
            color: #fff;
            border: none;
            animation: prismSlide 8s linear infinite;
        }

        /* ===== 15) شريط التمرير الكريستالي ===== */
        ::-webkit-scrollbar { width: 10px; height: 10px; }
        ::-webkit-scrollbar-track { background: var(--crystal-ice); }
        ::-webkit-scrollbar-thumb {
            background: var(--prism-gradient);
            border-radius: 10px;
            border: 2px solid var(--crystal-ice);
        }

        /* تحديد النص */
        ::selection { background: rgba(108,75,244,0.24); color: var(--crystal-deep); }

        /* ===== 16) تخفيف الحركة للأجهزة الضعيفة والمستخدمين ===== */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            .crystal-field, .crystal-dust { display: none; }
        }

        @media (max-width: 768px) {
            /* تقليل الحمل على الجوال */
            .crystal-field .shard:nth-child(3),
            .crystal-field .shard:nth-child(6) { display: none; }
            .crystal-dust { opacity: 0.5; }
            .header, .category-card, .product-card {
                backdrop-filter: blur(8px);
                -webkit-backdrop-filter: blur(8px);
            }
        }
