

/* حل مشكلة الأسماء الطويلة في المودال فقط */
#productModal .related-products .card-title {
    white-space: nowrap;       /* يمنع النص من التقسيم لسطر جديد */
    overflow: hidden;          /* يخفي الجزء الزائد من النص */
    text-overflow: ellipsis;   /* يعرض ... عندما يكون النص طويلاً */
    width: 100%;              /* يأخذ العرض الكامل للبطاقة */
    direction: rtl;           /* للنصوص العربية (يمين لليسار) */
    text-align: right;        /* محاذاة النص لليمين */
    margin-bottom: 0.5rem;    /* مسافة صغيرة أسفل الاسم */
}



    .products-section {
        position: relative;
        z-index: 1000;
        background-color: white;
        padding-top: 20px;
        margin-top: -30px;
        border-radius: 20px 20px 0 0;
    }

        /* معرض الصور في المودال */
        .main-product-image {
            transition: transform 0.5s ease, opacity 0.5s ease;
            cursor: zoom-in;
        }

        .main-product-image.zoomed {
            transform: scale(2);
            cursor: zoom-out;
            z-index: 1050;
            position: relative;
        }

        .thumbnail-img {
            transition: all 0.3s ease;
        }

        .thumbnail-img:hover {
            transform: scale(1.1);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }

        .active-thumb {
            border: 2px solid var(--primary-color) !important;
            transform: scale(1.05);
        }

        .image-navigation {
            max-width: 250px;
            margin: 0 auto;
        }

        .image-counter {
            font-weight: 600;
            color: var(--dark-color);
            min-width: 60px;
            text-align: center;
        }

        /* تأثير التكبير للصورة */
        .modal-image-zoom-container {
            position: relative;
            overflow: hidden;
        }

        .modal-image-zoom {
            transition: transform 0.3s ease;
            transform-origin: center center;
        }

        .product-availability {
            font-size: 0.85rem;
        }

        #productAvailability {
            font-size: 0.9rem;
            padding: 0.35rem 0.7rem;
        }

        .related-products h5 {
            color: #000 !important;
        }

        /* أنيميشن المودال */
        #productModal .modal-content {
            animation: modalEnter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes modalEnter {
            from {
                opacity: 0;
                transform: translateY(50px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* تأثيرات المنتجات المشابهة */
        .hover-scale {
            transition: all 0.3s ease;
        }

        .hover-scale:hover {
            transform: translateY(-5px) scale(1.03);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
        }

        /* زر الإضافة للسلة */
        .add-to-cart-from-modal {
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
        }

        .add-to-cart-from-modal:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
        }

        /* تأثيرات الصور */
        .main-image {
            transition: all 0.5s ease;
        }

        .main-image:hover {
            transform: scale(1.02);
        }

        /* التصنيف بالنجوم */
        .stars i {
            transition: all 0.3s ease;
        }

        .stars i:hover {
            transform: scale(1.2);
        }

        /* تنسيقات المودال */
        #productModal .modal-header {
            border-bottom: none;
            padding-bottom: 0;
        }

        #productModal .modal-title {
            font-weight: 700;
            color: #FFF;
        }

        #productModal .img-fluid {

            object-fit: contain;
            width: 100%;
        }

        .related-products .card {
            border: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }

        .related-products .card:hover {
            transform: translateY(-5px);
        }

        .related-products .card-img-top {
            height: 120px;
            object-fit: contain;
        }

        /* تعديلات للعرض على الجوال */
        @media (max-width: 768px) {
            #productModal .modal-dialog {
                margin: 0;
            }

            #productModal .modal-content {
                min-height: 100vh;
                border-radius: 0;
            }

            .related-products .col-6 {
                padding: 0 5px;
            }
        }

        /* Footer Styles - Unified with site style */
        .footer {
            position: relative;
            width: 100%;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px);
            padding: 40px 20px;
            box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
            margin-top: auto;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        }

        .box-container {
            display: grid;

            gap: 20px;
            justify-content: center;
            max-width: 1200px;
            margin: 0 auto;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }

        /* Responsive adjustments */
        @media (max-width: 576px) {
            .box-container {
                grid-template-columns: 1fr;
            }
        }

        @media (min-width: 577px) and (max-width: 992px) {
            .box-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 993px) {
            .box-container {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .box {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: var(--border-radius);
            padding: 20px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .box:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
        }

        .box ion-icon {
            font-size: 40px;
            color: #ffffff;
            margin-bottom: 15px;
            opacity: 0.9;
        }

        .box h3 {
            font-size: 20px;
            margin-bottom: 10px;
            color: #ffffff;
            font-weight: 600;
        }

        .box a,
        .box p {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }

        .box a:hover {
            color: white;
        }

        .credit {
            text-align: center;
            margin-top: 40px;
            font-size: 15px;
            color: rgba(255, 255, 255, 0.7);
        }

        .credit a {
            color: #ffffff;
            text-decoration: underline;
            transition: color 0.3s ease;
        }

        .credit a:hover {
            color: #f1f1f1;
        }

        .icons {
            margin-top: 20px;
        }

        .icons a {
            display: inline-block;
            margin: 0 10px;
            font-size: 24px;
            color: rgba(255, 255, 255, 0.8);
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .icons a:hover {
            color: #ffffff;
            transform: translateY(-5px);
        }

        :root {
            --primary-color: #126c64;
            --primary-dark: #ffd609;
            --secondary-color: #FF7675;
            --secondary-dark: #E84393;
            --accent-color: #00B894;
            --dark-color: #2D3436;
            --darker-color: #1E272E;
            --light-color: #636E72;
            --lighter-color: #DFE6E9;
            --text-color: #FFFFFF;
            --text-dark: #2D3436;
            --gradient-primary: #126c64;
            --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
            --gradient-accent: linear-gradient(135deg, var(--accent-color), #00A884);
            --transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.15);
            --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.2);
            --border-radius: 12px;
            --border-radius-lg: 20px;
        }

        * {
            font-family: 'Tajawal', sans-serif;
        }

        body {
            background-color: #F9F9F9;
            color: var(--text-dark);
            padding-top: 80px;
            overflow-x: hidden;
        }

        /* Splash Screen */
        #splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient-primary);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.8s ease-out;
        }

        #splash-logo {
            width: 120px;
            height: 120px;
            animation: pulse 2s infinite, float 3s ease-in-out infinite;
        }

        #splash-text {
            color: white;
            font-size: 1.8rem;
            margin-top: 25px;
            font-weight: 700;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }

            100% {
                transform: scale(1);
            }
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-15px);
            }
        }

        /* Header Styles */
        .main-header {
            background: var(--gradient-primary);
            box-shadow: var(--shadow-sm);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            height: 80px;
            transition: var(--transition);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .header-scrolled {
            box-shadow: var(--shadow-md);
            height: 70px;
        }



        .nav-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            color:white;
             background: rgba(108, 92, 231, 0.1);
            position: relative;
        }

        .nav-icon:hover {
            transform: translateY(-3px);
        }

        .nav-icon .badge {
            position: absolute;
            top: -5px;
            left: -5px;
        }

        /* Sidebar Styles */
        .sidebar {
            position: fixed;
            top: 0;
            right: -300px;
            width: 300px;
            height: 100vh;
            background: white;
            box-shadow: var(--shadow-lg);
            z-index: 1100;
            transition: var(--transition);
            padding: 20px;
            overflow-y: auto;
        }

        .sidebar.active {
            right: 0;
        }

        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1050;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .sidebar .nav-link {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            margin-bottom: 5px;
            border-radius: var(--border-radius);
            color: var(--dark-color);
            transition: var(--transition);
            font-weight: 500;
        }

        .sidebar .nav-link i {
            margin-left: 10px;
            width: 24px;
            text-align: center;
            color: var(--primary-color);
        }

        .sidebar .nav-link:hover {
            background: rgba(108, 92, 231, 0.1);
            transform: translateX(-5px);
        }

        .sidebar .nav-link.active {
            background: var(--gradient-primary);
            color: white;
        }

        .sidebar .nav-link.active i {
            color: white;
        }

        .hero-slider {
            position: sticky;
            /* تغيير من relative إلى sticky */
            top: 0px;
            min-height: 500px;
            border-radius: var(--border-radius-lg);
            overflow: hidden;
            margin-bottom: 50px;
            z-index: 10;
            /* تأكد من أن z-index أقل من الهيدر */
            box-shadow: var(--shadow-md);
        }
    .back {
        background-color: #fff;
        height: 50px;
        border-radius: 20px 20px 0 0;
        position: relative;
        z-index: 20;
    }
        @media (min-width: 1200px) {
            .hero-slider {
                min-height: 600px;
                /* ارتفاع أكبر للشاشات الكبيرة جداً */
            }
        }

        @media (max-width: 768px) {
            .hero-slider {
                min-height: 350px;
                /* ارتفاع مناسب للشاشات الصغيرة */
            }
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            /* التأكد من تركيز الصورة */
        }

        .slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease, transform 1s ease;
            transform: scale(1.02);
        }

        .slide.active {
            opacity: 1;
            transform: scale(1);
            z-index: 1;
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .slide-content {
            position: absolute;
            bottom: 0;
            right: 0;
            left: 0;
            padding: 40px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            color: white;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.8s ease 0.3s;
        }

        .slide.active .slide-content {
            transform: translateY(0);
            opacity: 1;
        }

        .slide-content h2 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 15px;
        }

        .slide-content p {
            font-size: 1.2rem;
            margin-bottom: 25px;
            max-width: 600px;
            color: #fff;
        }

        .slider-nav {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            z-index: 2;
        }

        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            margin: 0 8px;
            cursor: pointer;
            transition: var(--transition);
        }

        .slider-dot.active {
            background: white;
            transform: scale(1.3);
        }

        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            z-index: 2;
            cursor: pointer;
            transition: var(--transition);
            border: none;
        }

        .slider-arrow:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: translateY(-50%) scale(1.1);
        }

        .prev-arrow {
            right: 20px;
        }

        .next-arrow {
            left: 20px;
        }




        /* Products */
        .section-title {
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 30px;
            font-weight: 800;
            color: var(--dark-color);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 70px;
            height: 4px;
            background: var(--gradient-primary);
            border-radius: 2px;
        }

        .product-card {
            background: white;
            max-width: 300px;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            margin-bottom: 25px;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-md);
        }

        .product-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--gradient-secondary);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 700;
            z-index: 1;
        }

        .product-img {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .product-img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.8s ease;
        }

        .product-card:hover .product-img img {
            transform: scale(1.1);
        }

        .product-body {
            padding: 20px;
        }

        .product-title {
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--dark-color);
        }

        .product-price {
            font-weight: 800;
            color: var(--primary-color);
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .product-rating {
            color: #FFC107;
            margin-bottom: 15px;
        }

        .add-to-cart {
            width: 100%;
            border: none;
            background: var(--gradient-primary);
            color: white;
            padding: 10px;
            border-radius: var(--border-radius);
            font-weight: 700;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .add-to-cart i {
            margin-left: 8px;
        }

        .add-to-cart:hover {
            background: var(--gradient-secondary);
            transform: translateY(-3px);
            box-shadow: var(--shadow-sm);
        }

        /* Features */
        .features {
            background: white;
z-index: 1000;
            padding: 60px 0;
            margin: 60px 0;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
        }

        p {
            color: black;
        }

        .feature-card {
            text-align: center;
            padding: 30px 20px;
            border-radius: var(--border-radius);
            transition: var(--transition);
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-md);
        }

        .box-container h3 {
            color: black;
        }


        .feature-icon {
            width: 70px;
            height: 70px;
            margin: 0 auto 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: white;
            background: var(--gradient-primary);
        }

        .feature-card:nth-child(2) .feature-icon {
            background: var(--gradient-secondary);
        }

        .feature-card:nth-child(3) .feature-icon {
            background: var(--gradient-accent);
        }

        .feature-title {
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--dark-color);
        }

        /* Animations */
        .animate-up {
            transform: translateY(30px);
            opacity: 0;
            transition: all 0.8s ease;
        }

        .animate-up.show {
            transform: translateY(0);
            opacity: 1;
        }

        .animate-left {
            transform: translateX(-30px);
            opacity: 0;
            transition: all 0.8s ease;
        }

        .animate-left.show {
            transform: translateX(0);
            opacity: 1;
        }

        .animate-right {
            transform: translateX(30px);
            opacity: 0;
            transition: all 0.8s ease;
        }

        .animate-right.show {
            transform: translateX(0);
            opacity: 1;
        }

        .delay-1 {
            transition-delay: 0.2s !important;
        }

        .delay-2 {
            transition-delay: 0.4s !important;
        }

        .delay-3 {
            transition-delay: 0.6s !important;
        }

        .delay-4 {
            transition-delay: 0.8s !important;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .hero-slider {
                height: 400px;
            }

            .slide-content h2 {
                font-size: 2rem;
            }

            .slide-content p {
                font-size: 1rem;
            }
        }

        @media (max-width: 768px) {
            .hero-slider {
                height: 350px;
            }

            .slide-content {
                padding: 20px;
            }

            .slide-content h2 {
                font-size: 1.6rem;
            }

            .product-img {
                height: 160px;
            }
        }

        @media (max-width: 576px) {
            .hero-slider {
                height: 300px;
                border-radius: 0;
                margin-bottom: 30px;
            }

            .slide-content h2 {
                font-size: 1.4rem;
            }

            .category-card {
                width: 120px;
                height: 150px;
            }

            .product-img {
                height: 140px;
            }
        }



        /* أنماط حقل البحث المتحرك */
        .search-box {
            position: relative;
        }

        .animated-search-form {
            position: relative;
            width: 50px;
            height: 50px;
            background: white;
            box-sizing: border-box;
            border-radius: 25px;
            border: 4px solid white;
            padding: 5px;
            transition: all 0.5s ease;
            margin-right: 10px;
        }

        .animated-search-form input {
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 42.5px;
            line-height: 30px;
            outline: 0;
            border: 0;
            display: none;
            font-size: 1em;
            border-radius: 20px;
            padding: 0 20px;
            text-align: right;
            direction: rtl;
        }

        .search-toggle-btn {
            position: absolute;
            top: 0;
            left: 0;
            width: 42.5px;
            height: 42.5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 2;
        }

        .search-icon {
            box-sizing: border-box;
            padding: 10px;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            color: var(--primary-color);
            text-align: center;
            font-size: 1.2em;
            transition: all 0.5s ease;
        }

        /* أنماط جديدة لنتائج البحث */
        .search-results {
            position: absolute;
            top: 100%;
            right: 0;
            width: 100%;
            max-height: 400px;
            overflow-y: auto;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            margin-top: 10px;
            display: none;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .search-result-item {
            padding: 12px 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:hover {
            background-color: #f8f9fa;
            transform: translateX(-5px);
        }

        .search-result-item img {
            width: 50px;
            height: 50px;
            object-fit: contain;
            border-radius: 8px;
            margin-left: 15px;
        }

        .search-result-info {
            flex: 1;
        }

        .search-result-info h6 {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 5px;
            color: #333;
        }

        .search-result-info .price {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 0.9rem;
        }

        .no-results {
            padding: 20px;
            text-align: center;
            color: #6c757d;
        }

        .no-results i {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .no-results p {
            margin-bottom: 5px;
            font-weight: 500;
        }

        /* شريط التمرير */
        .search-results::-webkit-scrollbar {
            width: 6px;
        }

        .search-results::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 0 12px 12px 0;
        }

        .search-results::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 3px;
        }

        .search-results::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* تأثيرات الظهور */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .search-results.show {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }

        .search-result-item {
            animation: fadeIn 0.3s ease-out;
        }

        .search-container.active .animated-search-form {
            width: 250px;
            cursor: pointer;
        }

        .search-container.active .animated-search-form input {
            display: block;
        }

        .search-container.active .search-icon {
            background: var(--primary-color);
            color: white;
        }

        /* تعديلات للعرض على الجوال */
        @media (max-width: 768px) {
            .search-container.active .animated-search-form {
                width: 200px;
            }
        }

        /* تأكد من أن المودال المخفي غير مرئي للقارئات الشاشية */
        .modal.fade:not(.show) {
            visibility: hidden;
        }

        .modal.fade.show {
            visibility: visible;
        }

        /* تحسين التركيز على العناصر */
        .modal .btn-close:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

        .product-title {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            display: block;
        }

        .rtl-truncate {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            display: block;
            direction: rtl;
            text-align: right;
            unicode-bidi: plaintext;
        }


        .categories-accordion {
            padding-right: 15px;
            padding-left: 15px;
        }

        .category-item {
            margin-bottom: 5px;
            border-radius: 8px;
            overflow: hidden;
        }

        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background-color: #f8f9fa;
            color: #495057;
            text-decoration: none;
            transition: all 0.3s;
        }

        .category-header:hover {
            background-color: #e9ecef;
            color: #0d6efd;
        }

        .category-header i.fa-chevron-down {
            transition: transform 0.3s;
        }

        .subcategories {
            padding: 5px 0;
            background-color: #fff;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .subcategories.show {
            max-height: 1000px;
        }

        .category-header.collapsed+.subcategories {
            max-height: 0;
        }

        .subcategory-item {
            display: block;
            padding: 8px 25px;
            color: #6c757d;
            text-decoration: none;
            transition: all 0.3s ease;

        }

        .subcategory-item:hover {
            background-color: #f1f1f1;
            color: #0d6efd;
            padding-right: 30px;
            transform: scale(1.05);
        }

        .category-header .arrow {
            transition: transform 0.3s;
            transform: rotate(0deg);
            margin-left: 8px;
        }

        .category-header:not(.collapsed) .arrow {
            transform: rotate(90deg);
        }

        /* لجعل المحتوى يمر فوق السلايدر */
        .products-section {
            position: relative;
            z-index: 999;
          
            background-color: white;
            /* خلفية بيضاء */
            padding-top: 20px;
            /* مسافة من الأعلى */
            margin-top: -30px;
            /* رفع القسم لأعلى قليلاً */
            border-radius: 20px 20px 0 0;
            /* زوايا مدورة من الأعلى فقط */
        }
