
        /* Enhanced Digital Products Filter Styles */
        .search-sort-wrapper {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #8865e1, #6b46c1);
            padding: 40px 20px;
        }

        .search-sort-wrapper::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url("#grain#grain")"/></svg>');
            opacity: 0.3;
            pointer-events: none;
        }

        .search-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .search-box-combined {
            display: flex;
            align-items: stretch;
            background: #fff;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            border: 3px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            margin-bottom: 20px;
            height: 60px;
        }

        .search-box-combined:focus-within {
            border-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
            transform: translateY(-3px);
        }

        .select-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            padding: 0 25px;
            border-right: 2px solid #e9ecef;
            min-width: 180px;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.3s ease;
            height: 100%;
        }

        .select-wrapper:hover {
            background: #e9ecef;
        }

        .select-wrapper select {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            font-size: 15px;
            font-family: "Poppins", sans-serif;
        }

        .select-wrapper::before {
            content: attr(data-selected);
            color: #495057;
            font-size: 15px;
            font-weight: 600;
            flex: 1;
            font-family: "Poppins", sans-serif;
        }

        .select-wrapper .dropdown-arrow {
            font-size: 20px;
            color: #6c757d;
            margin-left: 12px;
            transition: transform 0.3s ease;
        }

        .select-wrapper:hover .dropdown-arrow {
            transform: rotate(180deg);
            color: #8865e1;
        }

        .search-input-wrapper {
            display: flex;
            align-items: stretch;
            flex: 1;
            height: 100%;
        }

        .search-input {
            flex: 1;
            border: none;
            outline: none;
            padding: 0 25px;
            font-size: 16px;
            background: transparent;
            color: #333;
            font-weight: 500;
            font-family: "Poppins", sans-serif;
            height: 100%;
        }

        .search-input::placeholder {
            color: #adb5bd;
            font-weight: 400;
            font-family: "Poppins", sans-serif;
        }

        /* Quick Filters for Product Types */
        .quick-filters {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            background: rgba(255, 255, 255, 0.1);
            padding: 15px 20px;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        .filter-label {
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            white-space: nowrap;
            font-family: "Poppins", sans-serif;
        }

        .filter-tags {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .filter-tag {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid transparent;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            font-family: "Poppins", sans-serif;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .filter-tag i {
            font-size: 14px;
        }

        .filter-tag:hover {
            background: rgba(255, 255, 255, 0.3);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .filter-tag.active {
            background: rgba(255, 255, 255, 0.9);
            color: #8865e1;
            border-color: rgba(255, 255, 255, 0.9);
        }

        /* Category Filter Section Styles */
        .category-filters {
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 20px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .category-title {
            text-align: center;
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-bottom: 30px;
            font-family: "Poppins", sans-serif;
        }

        /* Updated category layout to horizontal carousel */
        .category-carousel-container {
            position: relative;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .carousel-nav {
            background: #8865e1;
            border: none;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
            font-size: 20px;
            box-shadow: 0 4px 12px rgba(136, 101, 225, 0.3);
            flex-shrink: 0;
        }

        .carousel-nav:hover {
            background: #6b46c1;
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(136, 101, 225, 0.4);
        }

        .carousel-nav:disabled {
            background: #e9ecef;
            color: #6c757d;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .category-carousel {
            flex: 1;
            overflow: hidden;
            border-radius: 12px;
        }

        .category-cards-row {
            display: flex;
            gap: 15px;
            transition: transform 0.3s ease;
            padding: 5px 0;
        }

        .category-card {
            background: #fff;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 20px 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            min-height: 100px;
            min-width: 140px;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }

        .category-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(136, 101, 225, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .category-card:hover::before {
            left: 100%;
        }

        .category-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .category-icon i {
            font-size: 30px;
            color: #6c757d;
            transition: all 0.3s ease;
        }

        .category-name {
            font-size: 13px;
            font-weight: 500;
            color: #495057;
            text-align: center;
            line-height: 1.3;
            font-family: "Poppins", sans-serif;
        }

        .category-card:hover {
            border-color: #8865e1;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(136, 101, 225, 0.15);
        }

        .category-card:hover .category-icon {
            background: #8865e1;
            transform: scale(1.05);
        }

        .category-card:hover .category-icon i {
            color: white;
            transform: scale(1.1);
        }

        .category-card:hover .category-name {
            color: #8865e1;
            font-weight: 600;
        }

        .category-card.active {
            border-color: #8865e1;
            background: #f8f6ff;
        }

        .category-card.active .category-icon {
            background: #8865e1;
        }

        .category-card.active .category-icon i {
            color: white;
        }

        .category-card.active .category-name {
            color: #8865e1;
            font-weight: 600;
        }

        /* Special styling for featured category (Cyber security) */
        .category-card.featured {
            border-color: #007bff;
            background: #f0f8ff;
        }

        .category-card.featured .category-icon {
            background: #007bff;
        }

        .category-card.featured .category-icon i {
            color: white;
        }

        .category-card.featured .category-name {
            color: #007bff;
            font-weight: 600;
        }

        .category-card.featured:hover {
            border-color: #0056b3;
            box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
        }

        .category-card.featured:hover .category-icon {
            background: #0056b3;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .search-sort-wrapper {
                padding: 30px 15px;
            }

            .search-box-combined {
                flex-direction: column;
                height: auto;
                border-radius: 20px;
            }

            .select-wrapper {
                border-right: none;
                border-bottom: 2px solid #e9ecef;
                min-width: 100%;
                padding: 18px 20px;
                justify-content: space-between;
                height: 55px;
            }

            .search-input {
                padding: 18px 20px;
                font-size: 16px;
                height: 55px;
            }

            .quick-filters {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                margin-top: 15px;
                padding: 12px 15px;
                border-radius: 15px;
            }

            .filter-tags {
                width: 100%;
                justify-content: flex-start;
            }

            .filter-tag {
                font-size: 12px;
                padding: 6px 12px;
            }

            .category-filters {
                padding: 20px 15px;
                margin-bottom: 15px;
            }

            .category-title {
                font-size: 20px;
                margin-bottom: 20px;
            }

            /* Mobile carousel adjustments */
            .category-carousel-container {
                gap: 10px;
            }

            .carousel-nav {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .category-cards-row {
                gap: 12px;
            }

            .category-card {
                padding: 15px 10px;
                min-height: 85px;
                min-width: 120px;
                gap: 8px;
            }

            .category-icon {
                width: 40px;
                height: 40px;
            }

            .category-icon i {
                font-size: 24px;
            }

            .category-name {
                font-size: 12px;
            }
        }

        @media (max-width: 480px) {
            .search-sort-wrapper {
                padding: 25px 10px;
            }

            .select-wrapper {
                padding: 15px;
                height: 50px;
            }

            .search-input {
                padding: 15px;
                font-size: 15px;
                height: 50px;
            }

            .filter-tag {
                font-size: 11px;
                padding: 5px 10px;
            }

            .category-filters {
                padding: 15px 10px;
            }

            .category-title {
                font-size: 18px;
                margin-bottom: 15px;
            }

            /* Small mobile carousel adjustments */
            .carousel-nav {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }

            .category-cards-row {
                gap: 10px;
            }

            .category-card {
                padding: 12px 8px;
                min-height: 75px;
                min-width: 100px;
                gap: 6px;
            }

            .category-icon {
                width: 35px;
                height: 35px;
            }

            .category-icon i {
                font-size: 22px;
            }

            .category-name {
                font-size: 11px;
            }
        }




        /* إضافة الظلال الجانبية للكاروسيل */
.category-carousel-wrapper {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.box_left_shadow, .box_right_shadow {
  position: absolute;
  width: 4rem;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.box_left_shadow {
  left: 0;
  background-image: linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0.8), transparent);
}

.box_right_shadow {
  right: 0;
  background-image: linear-gradient(-90deg, #fff, hsla(0, 0%, 100%, 0.8), transparent);
}

/* تحسينات للتصميم المتجاوب */
@media (max-width: 768px) {
  .box_left_shadow, .box_right_shadow {
    width: 2.5rem;
  }
}

@media (max-width: 480px) {
  .box_left_shadow, .box_right_shadow {
    width: 2rem;
  }
}


/* تحسينات للاتجاه RTL */
[dir="rtl"] .category-carousel-container {
  direction: rtl;
}

[dir="rtl"] .category-cards-row {
  direction: ltr; /* للحفاظ على ترتيب العناصر */
}

[dir="rtl"] .box_left_shadow {
  right: 0;
  left: auto;
  background-image: linear-gradient(-90deg, #fff, hsla(0, 0%, 100%, 0.8), transparent);
}

[dir="rtl"] .box_right_shadow {
  left: 0;
  right: auto;
  background-image: linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0.8), transparent);
}

/* تحسينات للأزرار في الوضع RTL */
[dir="rtl"] .carousel-nav.prev-btn {
  order: 3;
}

[dir="rtl"] .carousel-nav.next-btn {
  order: 1;
}

[dir="rtl"] .category-carousel-wrapper {
  order: 2;
}