:root {
    --primary: #4361ee;
	--primary-light: #5a74ff;
    --secondary: #f72585;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #4cc9f0;
    --border-radius: 8px;
  --bg-light: #f9faff;
  --text-dark: #2b2d42;
  --text-light: #8d99ae;	
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
     
}



/* Global Styles */
* {
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f0f0f9;
    color: var(--dark);
}
  
        .search-container {
            display: flex;
            position: relative;
        }
.search-button {
            background: #3498db;
            color: white;
            border: none;
            border-radius: 8px 0 0 8px;
            padding: 0 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-width: 120px;
        }
        
        .search-button:hover {
            background: #2980b9;
        }
        
        .search-button:active {
            transform: translateY(1px);
        }
		.search-input {
            flex: 1;
            border-radius: 0 8px 8px 0;
            padding: 15px 20px;
            border: 2px solid #e0e0e0;
            border-right: none;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        .search-input:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
        }
/* ===== DESKTOP NAVBAR ===== */
.main-navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    margin: 0 8px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Desktop Menu */
.desktop-menu {
    margin-left: auto;
}

.desktop-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Desktop Search Form */
.desktop-search {
    margin: 0 20px;
    width: 100%;
}

.search-container {
    width: 100%;
    position: relative;
}

.search-input {
     
    padding: 10px 20px;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
    outline: none;
}

/* ===== MOBILE LAYOUT ===== */

/* Mobile Icons */
.mobile-icons {
    margin-right: auto;
    gap: 15px;
    align-items: center;
    display: none;
}

.mobile-cart {
    position: relative;
    padding: 8px !important;
    color: var(--dark);
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  
}
.navbar a:hover {
  color: var(--primary);
}

/* Mobile Search Navbar */
.mobile-search-navbar {
    background: #f8f9fa;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    padding: 12px 0;
    display: none;
}

.mobile-search-form .input-group {
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    overflow: hidden;
    background: white;
}

.mobile-search-input {
    border: none;
    padding: 12px 15px;
    background: transparent;
    width: 100%;
}

.mobile-search-input:focus {
    box-shadow: none;
    border: none;
    background: transparent;
    outline: none;
}

.mobile-search-navbar .search-btn {
    border: none;
    border-right: 1px solid var(--light-gray);
    border-radius: 0;
    padding: 12px 20px;
    background: transparent;
    color: var(--primary);
    transition: background-color 0.3s;
}

.mobile-search-navbar .search-btn:hover {
    background: var(--light);
}

/* ===== AUTOCOMPLETE STYLES ===== */

/* Desktop Autocomplete */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.autocomplete-body {
    padding: 8px 0;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: var(--light);
    text-decoration: none !important;
    color: inherit !important;
    transform: translateX(-5px);
    border-right: 3px solid var(--primary);
}

.autocomplete-item .product-name {
    font-weight: 600;
    color: var(--dark);
    flex: 1;
    font-size: 0.95rem;
}

.autocomplete-item .product-type {
    font-size: 0.8rem;
    color: var(--gray);
    background: var(--light-gray);
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.product-link-arrow {
    color: var(--primary);
    font-size: 0.8rem;
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.autocomplete-item:hover .product-link-arrow {
    opacity: 1;
}

.autocomplete-item.no-results {
    color: var(--gray);
    text-align: center;
    cursor: default;
    padding: 20px;
}

.autocomplete-item.no-results:hover {
    background-color: transparent;
    transform: none;
    border-right: none;
}

/* Mobile Autocomplete */
.mobile-autocomplete-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 160px;
}

.mobile-autocomplete-body {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    padding: 10px 0;
}

.mobile-autocomplete-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
}

.mobile-autocomplete-item:last-child {
    border-bottom: none;
}

.mobile-autocomplete-item:hover,
.mobile-autocomplete-item:active {
    background-color: var(--light);
    text-decoration: none !important;
    color: inherit !important;
}

.mobile-autocomplete-item .product-name {
    font-weight: 600;
    color: var(--dark);
    flex: 1;
    font-size: 1rem;
}

.mobile-autocomplete-item .product-type {
    font-size: 0.8rem;
    color: var(--gray);
    background: var(--light-gray);
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.mobile-autocomplete-item .product-link-arrow {
    color: var(--primary);
    font-size: 0.9rem;
    margin-right: 10px;
}

.mobile-autocomplete-item.no-results {
    color: var(--gray);
    text-align: center;
    cursor: default;
    padding: 20px;
}

.mobile-autocomplete-item.no-results:hover {
    background-color: transparent;
}

/* ===== EXISTING STYLES ===== */

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 15px 0;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

/* Page Header */
.page-header {
    background-color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.page-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--gray);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
background: linear-gradient(135deg, #3a0ca3, #4361ee, #4cc9f0);
    color: white;
    padding: 8px 0;
    margin-bottom: 4px;
    border-radius: 0 0 20px 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Category Section */
.category-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-title {
    font-weight: 700;
    margin-bottom: 10px;
}

/* Hot Products Section */
.hot-products-section {
    background-color: white;
    padding: 6px 0;
    margin: 10px 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.product {
    margin-bottom: 10px;
}
/* Product Card */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 10px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 200px;
   background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.view-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--light);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 10px;
}

.product-title {
    font-weight: 700;
    margin-bottom: 10px;
    height: 38px;
    overflow: hidden;
    color: var(--primary);
    text-align: center;
}

.product-brand {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Payment Options */
.payment-options {
    background-color: var(--light-gray);
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.payment-option:last-child {
    margin-bottom: 0;
}

.payment-label {
    color: var(--gray);
}

.payment-value {
    font-weight: 600;
    color: var(--primary);
}

/* Buttons */
.btn-add-to-cart {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-add-to-cart:hover {
    background-color: var(--secondary);
}

/* Offers Section */
.offers-section {
    background: linear-gradient(135deg, #3a0ca3, #4361ee, #4cc9f0);

    padding: 6px 0;
    margin: 4px 0;
    border-radius: 20px;
    color: white;
}

.offer-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    height: 100%;
}

.offer-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.offer-description {
    margin-bottom: 20px;
}

/* Filter Section */
.filter-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    color: var(--primary);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.form-check-label {
    margin-right: 8px;
    cursor: pointer;
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-weight: 600;
}

.price-range-value {
    color: var(--primary);
}

/* Individual Filter Group Collapsible */
.filter-group-collapsible {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-group-collapsible:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
}

.filter-group-header {
    background: var(--light);
    padding: 7px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.filter-group-header:hover {
    background: #f1f3ff;
}

.filter-group-header[aria-expanded="true"] {
    background: #f1f3ff;
    border-bottom-color: var(--light-gray);
}

.filter-group-header[aria-expanded="true"] .filter-group-toggle i {
    transform: rotate(180deg);
}

.filter-group-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    margin: 0;
}

.filter-group-toggle {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.filter-group-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.filter-group-content {
    padding: 4px 12px;
    background: white;
}

/* Enhanced Form Controls */
.filter-group-content .input-group {
    margin-bottom: 0;
}

.filter-group-content .form-check {
    margin-bottom: 5px;
    padding: 5px 0;
}

.filter-group-content .form-check-input {
    margin-left: 8px;
}

.filter-group-content .form-check-label {
    cursor: pointer;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    border-top: 1px solid var(--light-gray);
    padding-top: 15px;
}

#apply-filters {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

#reset-filters {
    border: 2px solid var(--light-gray);
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#reset-filters:hover {
    border-color: var(--gray);
    background-color: var(--light-gray);
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    color: var(--primary);
    border: 1px solid var(--light-gray);
    margin: 0 3px;
    border-radius: var(--border-radius);
}

.page-link:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-left: 10px;
    color: white;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
}

/* jQuery UI Slider */
.ui-slider {
    background: var(--light-gray);
    border: none;
    height: 6px;
    border-radius: 3px;
}

.ui-slider-range {
    background: var(--primary);
    border-radius: 3px;
}

.ui-slider-handle {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    top: -6px;
    cursor: pointer;
}

/* Payment Lists */
.list-payment,
.list-paymentB {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.list-payment .payment-month,
.list-paymentB .payment-month {
    font-size: 0.85rem;
    margin: 2px 0;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 5px !important;
}

.list-payment .payment-month label,
.list-paymentB .payment-month label {
    margin: 0;
    font-weight: normal;
}

.list-payment .payment-month span.value,
.list-paymentB .payment-month span.value {
    font-weight: bold;
}

/* Modal */
.modal-header {
    background: var(--primary);
    color: #FFF;
}

/* Hot Offer */
.hot-offer {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 991.98px) {
    /* Hide desktop elements on mobile */
    .desktop-search,
    .desktop-menu {
        display: none !important;
    }
    
    /* Show mobile elements */
    .mobile-icons {
        display: flex;
    }
    
    .mobile-search-navbar {
        display: block;
    }
    
    /* Mobile navbar adjustments */
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin-top: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 8px 0;
    }
}

@media (min-width: 992px) {
    /* Hide mobile elements on desktop */
    .mobile-icons,
    .mobile-search-navbar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .category-card,
    .product-card,
    .filter-section {
        margin-bottom: 20px;
    }
    
    .filter-section {
        position: static;
    }
    
    .filter-group-header {
        padding: 10px;
    }
    
    .filter-group-content {
        padding: 10px;
    }
    
    .filter-group-title {
        font-size: 0.9rem;
    }
    
    #apply-filters,
    #reset-filters {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .hot-products-section {
        padding: 40px 0;
        margin: 20px 0;
    }
}

/* Compact version for many filters */
.filter-group-collapsible.compact .filter-group-header {
    padding: 10px 12px;
}

.filter-group-collapsible.compact .filter-group-content {
    padding: 12px;
}

.filter-group-collapsible.compact .filter-group-title {
    font-size: 0.9rem;
}

/* Navbar Toggler Customization */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
}

/* Ensure proper display classes 
.d-none {
    display: none !important;
}
*/
.d-flex {
    display: flex !important;
}

.d-lg-none {
    display: none !important;
}

@media (max-width: 991.98px) {
    .d-lg-none {
        display: block !important;
    }
    
    .d-lg-flex {
        display: none !important;
    }
}





/* Customer Info Modal Styling */
#customerInfoModal .modal-header {
    border-bottom: 2px solid var(--primary);
}

#customerInfoModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#customerInfoModal .form-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

#customerInfoModal .form-control,
#customerInfoModal .form-select {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

#customerInfoModal .form-control:focus,
#customerInfoModal .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

#customerInfoModal .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

#customerInfoModal .delivery-options {
    background: var(--light);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
}

#customerInfoModal .order-summary {
    font-size: 0.95rem;
}

#customerInfoModal .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#customerInfoModal .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-success-modal {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #customerInfoModal .modal-dialog {
        margin: 10px;
    } 
    
    #customerInfoModal .delivery-options {
        text-align: center;
    }
    
    #customerInfoModal .form-check-inline {
        display: block;
        margin-bottom: 10px;
    } 
} 
.filter-section {
    
  max-height: 80vh;
  overflow-y: auto;
  z-index: 10;
} 
.close-btn-modal {
    margin-left: 0 !important;
    margin-right: auto !important;
}


 .demo-container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .demo-title {
            color: var(--primary);
            margin-bottom: 30px;
            font-weight: 700;
            text-align: center;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .product-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }
        
        .product-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        
        .product-info {
            padding: 15px;
        }
        
        .product-name {
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--text-dark);
        }
        
        .product-price {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .cash-price {
            color: var(--success);
            font-weight: 700;
        }
        
        .installment-price {
            color: var(--secondary);
            font-weight: 700;
        }
        
        .btn-view {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            padding: 8px 15px;
            width: 100%;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn-view:hover {
            background: var(--primary-light);
        }
        
        
        
        
        
        .product-image {
            margin-bottom: 20px;
            text-align: center;
        }
        
        .product-modal-img {
            max-width: 100%;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }
        
        .specs-list {
            list-style: none;
            padding: 0;
            margin-bottom: 25px;
        }
        
        .specs-list li {
            padding: 10px 0;
            border-bottom: 1px dashed var(--light-gray);
            display: flex;
            justify-content: space-between;
        }
        
        .specs-list li:last-child {
            border-bottom: none;
        }
        
        .spec-label {
            font-weight: 600;
            color: var(--text-dark);
        }
        
        .spec-value {
            color: var(--text-light);
        }
        
        .pricing-card {
            background: var(--light);
            border-radius: var(--border-radius);
            padding: 20px;
            margin-bottom: 20px;
            border-right: 4px solid var(--primary);
        }
        
        .pricing-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 15px;
            text-align: center;
        }
        
        .price-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding: 5px 0;
        }
        
        .gift-card {
            background: #fff3cd;
            border-radius: var(--border-radius);
            padding: 15px;
            margin-bottom: 20px;
            border-right: 4px solid var(--accent);
        }
        
        .gift-title {
            font-weight: 700;
            color: #856404;
            text-align: center;
            margin-bottom: 10px;
        }
        
        .installment-plan {
            background: #e7f3ff;
            border-radius: var(--border-radius);
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .plan-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary);
            text-align: center;
            margin-bottom: 15px;
        }
        
        .warning-text {
            color: var(--primary);
            font-size: 0.9rem;
            text-align: center;
            margin-top: 10px;
            font-weight: 600;
        }
        
        .payment-list {
            background: white;
            border-radius: var(--border-radius);
            padding: 15px;
            margin-top: 20px;
            max-height: 300px;
            overflow-y: auto;
        }
        
        .payment-item {
            display: flex !important;
            justify-content: space-between !important;
            padding: 8px 0 !important;
            border-bottom: 1px solid var(--light-gray) !important;
        }
        
        .payment-item:last-child {
            border-bottom: none !important;
        }
        
        
        
        .btn-primary-custom {
            background: linear-gradient(to right, var(--primary), var(--primary-light));
            border: none;
            border-radius: var(--border-radius);
            padding: 10px 20px;
            font-weight: 600;
            color: white;
        }
        
        .btn-outline-primary {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .btn-outline-primary:hover {
            background-color: var(--primary);
            color: white;
        }
        
        @media (max-width: 768px) {
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .modal-footer {
                flex-direction: column;
                gap: 10px;
            }
            
            .modal-footer .btn {
                width: 100%;
            }
        }
		
		
		.section-title {
            position: relative;
            margin-bottom: 1rem;
            font-weight: 600;
            text-align: center;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--primary-color);
        }
        
        .categories-section {
            padding: 6px 0;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .category-card {
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.4s ease;
            background: white;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            height: 100%;
            position: relative;
            cursor: pointer;
        }
        
        .category-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }
        
        .category-img {
            height: 220px;
            object-fit: cover;
            transition: transform 0.6s ease;
            width: 100%;
        }
        
        .category-card:hover .category-img {
            transform: scale(1.08);
        }
        
        .category-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
            color: white;
            padding: 25px 20px 20px;
            text-align: center;
        }
        
        .category-icon {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.9);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: var(--primary-color);
            transition: all 0.3s ease;
        }
        
        .category-card:hover .category-icon {
            transform: scale(1.1) rotate(10deg);
            background: var(--primary-color);
            color: white;
        }
        
        .category-title {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 1.3rem;
        }
        
        .category-count {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .category-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 0.9rem;
            margin-top: 10px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }
        
        .category-btn:hover {
            background: var(--primary-color) !important;
            color: white;
        }
        
        /* Animation for cards */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .category-card {
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
        }
        
        .category-card:nth-child(1) { animation-delay: 0.1s; }
        .category-card:nth-child(2) { animation-delay: 0.2s; }
        .category-card:nth-child(3) { animation-delay: 0.3s; }
        .category-card:nth-child(4) { animation-delay: 0.4s; }
        .category-card:nth-child(5) { animation-delay: 0.5s; }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .category-img {
                height: 180px;
            }
            
            .category-overlay {
                padding: 20px 15px 15px;
            }
            
            .category-title {
                font-size: 1.1rem;
            }
        }
		
		
		/* Deal Section */
        .deal-section {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1607082350899-7e105aa886ae?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 8px 0;
            border-radius: 20px;
            margin: 5px 0;
        }
        
        .countdown-timer {
            display: flex;
            justify-content: center;
            margin: 30px 0;
        }
        
        .countdown-item {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            padding: 15px;
            margin: 0 10px;
            text-align: center;
            min-width: 80px;
            backdrop-filter: blur(10px);
        }
        
        .countdown-value {
            font-size: 2rem;
            font-weight: 700;
        }
        
        .countdown-label {
            font-size: 0.8rem;
            text-transform: uppercase;
        }
        
        /* Testimonials */
        .testimonial-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            height: 100%;
            position: relative;
        }
        
        .testimonial-card:before {
            content: "";
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 60px;
            color: var(--primary-color);
            opacity: 0.2;
            font-family: Georgia, serif;
        }
        
        .testimonial-text {
            font-style: italic;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }
        
        .testimonial-author {
            display: flex;
            align-items: center;
        }
        
        .testimonial-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 15px;
        }
          .whatsapp-icon {
            position: fixed;
            right: 0;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 70px;
            height: 70px;
            background-color: #25d366;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
            cursor: pointer;
            z-index: 1000;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }
        
        .whatsapp-icon.scrolling {
            top: 50% !important;
            bottom: auto;
        }
        
        .whatsapp-icon i {
            color: white;
            font-size: 36px;
        }
        
        .whatsapp-icon:hover {
            background-color: #128c7e;
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .whatsapp-icon:hover.scrolling {
            transform: translate(-50%, -50%) scale(1.1);
        }
		
		 .filter-icon { 
			position: fixed;
			right: 0;
			top: 50%;
			transform: translate(-50%, 0%);
			width: 70px;
			height: 70px;
			background-color: #3498db;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4); 
			cursor: pointer;
			z-index: 1000;
			transition: all 0.3s ease;
			animation: pulseB 1s infinite;
		}

        
        .filter-icon.scrolling {
            top: 25% !important;
            bottom: auto;
        }
        
        .filter-icon i {
            color: white;
            font-size: 36px;
        }
        
        .filter-icon:hover {
            background-color: #2980b9;
            transform: translate(-50%, 0%) scale(1.1);
        }
        
        .filter-icon:hover.scrolling {
            transform: translate(-50%, 0%) scale(1.1);
        }
        
        .tooltip {
            position: absolute;
            top: -45px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 5px;
            font-size: 14px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        
        .tooltip:after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 6px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }
        
        .whatsapp-icon:hover .tooltip {
            opacity: 1;
            visibility: visible;
        }
		.filter-icon:hover .tooltip {
            opacity: 1;
            visibility: visible;
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
            }
        }
		@keyframes pulseB {
            0% {
                box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
            }
        }
        
        /* تذييل الصفحة */
        footer {
            text-align: center;
            padding: 30px;
            margin-top: 50px;
            background-color: #333;
            color: white;
            border-radius: 10px;
        }
        
        /* تعليمات */
        .instructions {
            background-color: #fff8e1;
            border-right: 5px solid #ffc107;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
        }
        
        .instructions h3 {
            color: #ff9800;
            margin-bottom: 10px;
        }
        
        @media (max-width: 768px) {
            .whatsapp-icon {
                width: 60px;
                height: 60px;
                right: 20px;
                left: auto;
                transform: translate(0, -50%);
            }
            
            .whatsapp-icon:hover {
                transform: translate(0, -50%) scale(1.1);
            }
            
            .whatsapp-icon.scrolling {
                left: auto;
                right: 20px;
                transform: translate(0, -50%);
            }
            
            .whatsapp-icon:hover.scrolling {
                transform: translate(0, -50%) scale(1.1);
            }
        }