        /* Modern Design System - Darwin.md inspired */
        :root {
            --primary-color: #1a73e8;
            --primary-hover: #1557b0;
            --secondary-color: #34a853;
            --accent-color: #fbbc05;
            --danger-color: #e17055;
            --dark-color: #1a1a1a;
            --light-color: #f8f9fa;
            --white: #ffffff;
            --text-primary: #212529;
            --text-secondary: #6c757d;
            --text-muted: #adb5bd;
            --border-color: #dee2e6;
            --border-light: #e9ecef;
            --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1);
            --radius-sm: 6px;
            --radius-md: 8px;
            --radius-lg: 12px;
        }

        body {
            background-color: var(--light-color);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                         "Helvetica Neue", Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            font-size: 14px;
        }

        /* Premium Header */
        .premium-header {
            background: white;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            position: relative;
            z-index: 1045;
            transition: all 0.3s ease;
        }

        .logo {
            font-size: 2rem;
            font-weight: 700;
            color: #6c757d;
        }
        
        /* Mobile Header 3-Row Layout */
        .mobile-header-rows {
            display: none;
        }
        
        @media (max-width: 767px) {
            .mobile-header-rows {
                display: block !important;
                position: relative;
                z-index: 1050;
            }
            
            .mobile-header-row-1,
            .mobile-header-row-2,
            .mobile-header-row-3 {
                border-bottom: 1px solid #f0f0f0;
                padding-top: 0.5rem;
                padding-bottom: 0.5rem;
            }
            
            .mobile-header-row-1 {
                padding-top: 0.75rem;
            }
            
            .mobile-header-row-3 {
                border-bottom: none;
                padding-bottom: 0.75rem;
            }
            
            .mobile-header-rows .logo {
                font-size: 1.5rem;
            }
            
            .mobile-header-rows .catalog-btn {
                padding: 0.375rem 0.75rem;
                font-size: 0.9rem;
            }
            
            /* Action buttons styling - circular */
            .mobile-header-rows .mobile-header-row-2 a.btn {
                padding: 0.5rem;
                border: 1px solid #dee2e6;
                background: white;
                border-radius: 50%;
                width: 42px;
                height: 42px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                margin: 0 2px;
                transition: all 0.2s ease;
            }
            
            .mobile-header-rows .mobile-header-row-2 a.btn:hover {
                background: #f8f9fa;
                border-color: #adb5bd;
                transform: scale(1.05);
            }
            
            /* Dropdown buttons - circular */
            .mobile-header-rows .dropdown button.btn {
                padding: 0.5rem;
                border: 1px solid #dee2e6;
                background: white;
                border-radius: 50%;
                width: 42px;
                height: 42px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s ease;
            }
            
            .mobile-header-rows .dropdown button.btn:hover {
                background: #f8f9fa;
                border-color: #adb5bd;
                transform: scale(1.05);
            }
            
            /* Fix dropdown z-index on mobile - must be higher than sidebar (1040) */
            .mobile-header-rows .dropdown-menu {
                z-index: 10000 !important;
                position: absolute !important;
            }
            
            /* Ensure dropdowns stay on top */
            .mobile-header-rows .dropdown {
                position: relative;
                z-index: 1060;
            }
            
            .mobile-header-rows .badge-notification {
                position: absolute;
                top: -5px;
                right: -5px;
                background: var(--danger-color);
                color: white;
                border-radius: 50%;
                width: 18px;
                height: 18px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 10px;
                font-weight: bold;
            }
            
            .mobile-header-rows .search-container {
                display: block !important;
                max-width: 100%;
            }
            
            .mobile-header-rows .premium-search {
                padding: 10px 20px 10px 45px;
                font-size: 14px;
            }
            
            .mobile-header-rows .search-icon {
                left: 15px;
                font-size: 16px;
            }
        }

        .search-container {
            position: relative;
            max-width: 500px;
        }

        .premium-search {
            border: 2px solid #e9ecef;
            border-radius: 50px;
            padding: 12px 24px 12px 55px;
            font-size: 16px;
            transition: all 0.3s ease;
            width: 100%;
        }

        .premium-search:focus {
            border-color: #6c757d;
            box-shadow: 0 0 0 4px rgba(108, 117, 125, 0.1);
            transform: translateY(-1px);
        }

        .search-icon {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
            z-index: 5;
            pointer-events: none;
            font-size: 18px;
        }

        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #dee2e6;
            border-top: none;
            border-radius: 0 0 12px 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            max-height: 400px;
            overflow-y: auto;
            display: none;
        }

        .search-suggestion-item {
            padding: 12px 20px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background-color 0.2s ease;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .search-suggestion-item:hover {
            background-color: #f8f9fa;
        }

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

        .suggestion-image {
            width: 40px;
            height: 40px;
            object-fit: contain;
            background: #f8f9fa;
            border-radius: 6px;
            padding: 4px;
        }

        .suggestion-content {
            flex: 1;
        }

        .suggestion-title {
            font-weight: 500;
            color: #2d3748;
            margin-bottom: 2px;
        }

        .suggestion-brand {
            font-size: 12px;
            color: #6c757d;
        }

        .suggestion-price {
            font-weight: 600;
            color: var(--primary-color);
            font-size: 14px;
        }

        .dropdown-item.active {
            background-color: #f8f9fa;
            color: var(--primary-color);
            font-weight: 600;
        }

        .action-buttons .btn {
            border-radius: 50px;
            padding: 12px 18px;
            margin: 0 6px;
            position: relative;
            overflow: visible;
            transition: all 0.3s ease;
            border: 2px solid #e9ecef;
            background: white;
            color: #6c757d;
        }
        
        .action-buttons .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            background: #f8f9fa;
            border-color: #6c757d;
            color: #6c757d;
        }
        
        .action-buttons .btn-primary {
            border: 2px solid #6c757d;
            background: #6c757d;
            color: white;
        }
        
        .action-buttons .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
            background: #5a6268;
            border-color: #5a6268;
            color: white;
        }

        .badge-notification {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--danger-color);
            color: white;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            z-index: 10;
            border: 2px solid white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.25);
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }

        /* Categories Sidebar */
        .categories-sidebar {
            position: fixed;
            top: 0;
            left: -280px;
            width: 280px;
            height: 100vh;
            background: white;
            border-right: 1px solid #e9ecef;
            z-index: 1055;
            transition: left 0.3s ease;
            overflow-y: auto;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        }

        .categories-sidebar.show {
            left: 0;
        }
        
        /* Mobile backdrop for sidebar */
        @media (max-width: 768px) {
            .sidebar-backdrop {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 1054;
                display: none;
            }
            
            .sidebar-backdrop.show {
                display: block;
            }
        }

        .main-content-wrapper {
            margin-left: 0;
            transition: margin-left 0.3s ease;
        }

        .main-content-wrapper.sidebar-open {
            margin-left: 280px;
        }

        .sidebar-header {
            padding: 20px;
            border-bottom: 1px solid #e9ecef;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .sidebar-header h5 {
            margin: 0;
            font-weight: 600;
            color: #6c757d;
            flex: 1;
        }

        .sidebar-content {
            padding: 0;
        }

        .category-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .category-item {
            border-bottom: 1px solid #f1f3f4;
        }

        .category-link {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            text-decoration: none;
            color: #6c757d;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .category-link:hover {
            background: #f8f9fa;
            color: #5a6268;
            padding-left: 25px;
        }

        .category-arrow {
            margin-right: 10px;
            font-size: 12px;
            color: #6c757d;
            transition: transform 0.3s ease;
        }

        .expand-arrow {
            font-size: 12px;
            color: #6c757d;
            transition: transform 0.3s ease;
        }

        .category-item.expanded .expand-arrow {
            transform: rotate(180deg);
        }

        .subcategory-list {
            list-style: none;
            padding: 0;
            margin: 0;
            background: #f8f9fa;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .category-item.expanded .subcategory-list {
            max-height: 500px;
        }

        .subcategory-item {
            border-bottom: 1px solid #e9ecef;
        }

        .subcategory-link {
            display: block;
            padding: 12px 20px 12px 50px;
            text-decoration: none;
            color: #6c757d;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .subcategory-link:hover {
            background: white;
            color: #5a6268;
            padding-left: 55px;
        }

        .catalog-btn {
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            padding: 8px 16px;
            border: 1px solid #6c757d;
            color: #6c757d;
            transition: all 0.3s ease;
        }

        .catalog-btn:hover {
            background: #6c757d;
            color: white;
            border-color: #6c757d;
        }

        /* Footer */
        .premium-footer {
            background: #1a202c;
            color: white;
            padding: 60px 0 30px;
        }

        .footer-section h5 {
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: #e2e8f0;
        }

        .footer-section ul {
            list-style: none;
            padding: 0;
        }

        .footer-section ul li {
            margin-bottom: 0.8rem;
        }

        .footer-section ul li a {
            color: #a0aec0;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-section ul li a:hover {
            color: var(--secondary-color);
        }

        .social-icons {
            display: flex;
            gap: 15px;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            background: #6c757d;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .social-icon:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(45, 52, 54, 0.3);
        }

        .footer-bottom {
            border-top: 1px solid #2d3748;
            padding-top: 30px;
            margin-top: 40px;
            text-align: center;
            color: #a0aec0;
        }

        .cart-item {
            background: white;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .product-image {
            width: 100px;
            height: 100px;
            object-fit: contain;
            border-radius: 0.5rem;
        }
        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .quantity-btn {
            width: 35px;
            height: 35px;
            border: 1px solid #dee2e6;
            background: #fff;
            border-radius: 0.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .quantity-btn:hover {
            background: #f8f9fa;
        }
        .cart-summary {
            background: white;
            border-radius: 0.5rem;
            padding: 2rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .empty-cart {
            text-align: center;
            padding: 4rem 2rem;
            background: white;
            border-radius: 0.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        /* Modern Header */
        .top-nav {
            background: var(--white);
            border-bottom: 1px solid var(--border-color);
            padding: 1rem 0;
            box-shadow: var(--shadow-sm);
        }
        .top-nav .container-fluid {
            display: flex;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
        }
        .header-left {
            width: 300px;
            display: flex;
            justify-content: flex-start;
            padding-left: 0;
            margin-left: -90px;
        }
        .header-center {
            flex: 1;
            display: flex;
            justify-content: flex-start;
            margin-left: -60px;
            margin-right: 80px;
        }
        .header-right {
            width: 300px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.75rem;
            padding-right: 0;
            margin-right: -90px;
        }
        .language-selector {
            display: flex;
            gap: 0.25rem;
        }
        .language-selector a {
            color: var(--text-secondary);
            text-decoration: none;
            padding: 0.375rem 0.5rem;
            border-radius: 4px;
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.2s ease;
        }
        .language-selector a:hover {
            color: var(--primary-color);
            background: rgba(26, 115, 232, 0.1);
        }
        .language-selector a.active {
            background: var(--primary-color);
            color: var(--white);
        }
        
        /* Search Box */
        .search-container {
            position: relative;
            width: 100%;
            max-width: 500px;
        }
        .search-input {
            width: 100%;
            padding: 0.75rem 3rem 0.75rem 1rem;
            border: 2px solid var(--border-color);
            border-radius: 25px;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            background: white;
        }
        .search-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--primary-bg);
        }
        .search-button {
            position: absolute;
            right: 0.5rem;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 2rem;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .search-button:hover {
            background: var(--primary-hover);
        }
        
        /* Autocomplete Dropdown */
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            box-shadow: var(--shadow-md);
            z-index: 1000;
            max-height: 400px;
            overflow-y: auto;
            display: none;
        }
        .search-results.active {
            display: block;
        }
        .search-result-item {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #f1f3f4;
            cursor: pointer;
            transition: background 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .search-result-item:hover,
        .search-result-item.selected {
            background: #f8f9fa;
        }
        .search-result-item:last-child {
            border-bottom: none;
        }
        .search-result-image {
            width: 40px;
            height: 40px;
            object-fit: contain;
            border-radius: 4px;
            background: #f8f9fa;
        }
        .search-result-info h6 {
            margin: 0;
            font-size: 0.9rem;
            color: var(--text-primary);
        }
        .search-result-info .price {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 0.85rem;
        }
        
        /* Navigation Links */
        .nav-links {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        .nav-links a {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius-sm);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            position: relative;
        }
        .nav-links a:hover {
            color: var(--primary-color);
            background: rgba(26, 115, 232, 0.05);
        }
        .nav-links a i {
            font-size: 1.2rem;
        }
        .nav-links .login-link .nav-text {
            font-size: 0.9rem;
        }
        .nav-count {
            background: var(--primary-color);
            color: white;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.15rem 0.4rem;
            border-radius: 10px;
            min-width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: -8px;
            right: -8px;
        }
        /* Modern Sidebar */
        .filter-sidebar {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            margin-bottom: 1rem;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-light);
        }
        
        /* Mobile filter collapse styles */
        @media (max-width: 767px) {
            .filter-sidebar {
                padding: 0;
                margin-bottom: 1rem;
                overflow: hidden;
            }
            
            #filterToggle {
                padding: 1rem;
                margin: 0;
                cursor: pointer;
                border-bottom: 1px solid var(--border-color);
                display: flex;
                align-items: center;
                justify-content: space-between;
                background: var(--light-color);
                font-weight: 600;
                user-select: none;
            }
            
            .filter-toggle-icon {
                transition: transform 0.3s ease;
                font-size: 1.2rem;
            }
            
            .filter-sidebar.expanded .filter-toggle-icon {
                transform: rotate(180deg);
            }
            
            .filter-form {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s ease;
                padding: 0;
            }
            
            .filter-sidebar.expanded .filter-form {
                max-height: 3000px;
                padding: 1rem;
                overflow-y: auto;
            }
            
            .filter-section {
                padding: 0.75rem 0;
                border-bottom: 1px solid var(--border-light);
            }
            
            .filter-section:last-child {
                border-bottom: none;
            }
        }
        .filters-content {
            background: white;
            padding: 1rem;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
        }
        .filter-section {
            margin-bottom: 0.875rem;
            padding-bottom: 0.875rem;
            border-bottom: 1px solid var(--border-light);
        }
        .filter-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        .filter-title {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .filter-title i {
            color: #6c757d;
            font-size: 1.1rem;
        }
        
        /* Filter Search Input */
        .filter-search {
            width: 100%;
            padding: 0.375rem 0.75rem;
            margin-bottom: 0.5rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            transition: border-color 0.2s;
        }
        
        .filter-search:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
        }
        
        /* Price Range Inputs */
        .price-range-inputs {
            display: flex;
            gap: 0.5rem;
        }
        
        .price-range-inputs input {
            flex: 1;
            padding: 0.375rem 0.5rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            transition: border-color 0.2s;
        }
        
        .price-range-inputs input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
        }
        
        .price-range-inputs input::placeholder {
            color: var(--text-muted);
            font-size: 0.85rem;
        }
        
        /* Filter Options Container with Scroll */
        .filter-options {
            max-height: 210px; /* ~5-6 items visible */
            overflow-y: auto;
            overflow-x: hidden;
            margin: 0 -0.5rem;
            padding: 0 0.5rem;
            scrollbar-width: thin;
            scrollbar-color: #dee2e6 transparent;
        }
        
        .filter-options::-webkit-scrollbar {
            width: 6px;
        }
        
        .filter-options::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 3px;
        }
        
        .filter-options::-webkit-scrollbar-thumb {
            background: #dee2e6;
            border-radius: 3px;
            transition: background 0.2s;
        }
        
        .filter-options::-webkit-scrollbar-thumb:hover {
            background: #adb5bd;
        }
        
        /* Show gradient when scrollable */
        .filter-options.has-scroll {
            position: relative;
            padding-bottom: 10px;
        }
        
        .filter-options.has-scroll::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 6px;
            height: 20px;
            background: linear-gradient(to bottom, transparent, white);
            pointer-events: none;
        }
        
        .filter-option {
            margin-bottom: 0.25rem;
            display: flex;
            align-items: center;
            transition: background-color 0.2s ease;
            padding: 0.325rem 0.5rem;
            margin-left: -0.5rem;
            margin-right: -0.5rem;
            border-radius: var(--radius-sm);
        }
        .filter-option:last-child {
            margin-bottom: 0;
        }
        .filter-option:hover {
            background: rgba(26, 115, 232, 0.05);
        }
        .filter-option input[type="checkbox"],
        .filter-option input[type="radio"] {
            margin-right: 0.625rem;
            accent-color: var(--primary-color);
            width: 16px;
            height: 16px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .filter-option label {
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 400;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }
        .filter-option:hover label {
            color: var(--text-primary);
        }
        .filter-count {
            color: var(--text-muted) !important;
            font-size: 0.85rem;
            font-weight: 500;
        }
        /* Main Content Area */
        .main-content {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-light);
            position: relative;
        }
        .products-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-light);
            flex-wrap: wrap;
            gap: 1rem;
        }
        .products-count {
            color: var(--text-primary);
            font-size: 1.25rem;
            font-weight: 600;
        }
        .sort-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        .sort-controls select {
            border: 1px solid #ddd;
            padding: 0.5rem;
            border-radius: 0.25rem;
            background: white;
        }
        /* Product Grid */
        #products-grid {
            display: grid !important;
            grid-template-columns: repeat(4, 1fr) !important;
            gap: 1.5rem !important;
            width: 100% !important;
        }
        
        /* Modern Product Cards */
        .product-card {
            background: var(--white);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            padding: 1.25rem;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            cursor: default;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .product-card:hover {
            box-shadow: var(--shadow-lg);
            border-color: #6c757d;
        }
        .product-image-container {
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.25rem;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: var(--radius-md);
            position: relative;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
        }
        
        a.product-image-container {
            display: flex;
            text-decoration: none;
            color: inherit;
        }
        
        a.product-image-container:hover {
            text-decoration: none;
        }
        .product-image {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        .product-card:hover .product-image {
            transform: scale(1.05);
        }
        .product-title {
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
            font-size: 1rem;
            min-height: 2.8rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
        }
        .product-title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .product-title a:hover {
            color: var(--primary-color);
        }
        .product-price {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        .product-actions {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-top: auto;
            padding-top: 1rem;
        }
        .product-actions .add-to-cart {
            width: 100%;
            padding: 0.5rem;
            font-weight: 500;
            font-size: 0.9rem;
            border: none;
            background: #6c757d;
            color: white;
            border-radius: var(--radius-sm);
            transition: all 0.2s ease;
        }
        .product-actions .add-to-cart:hover {
            background: #5a6268;
            color: white;
        }
        
        /* Mobile Responsive Fixes */
        
        /* Very Small Mobile (320px - 480px) */
        @media (max-width: 480px) {
            .premium-header {
                overflow-x: hidden !important;
                width: 100%;
            }
            
            .premium-header .container {
                padding: 0 8px;
                max-width: 100%;
                overflow: hidden;
            }
            
            .premium-header .row {
                margin: 0;
                flex-wrap: nowrap;
            }
            
            .premium-header [class*="col-"] {
                padding: 0 3px;
            }
            
            /* Show mobile-friendly action buttons */
            .action-buttons {
                display: flex !important;
                justify-content: center;
                gap: 8px;
                margin-top: 8px;
            }
            
            .action-buttons .btn {
                padding: 8px 12px;
                font-size: 16px;
                min-width: 44px;
                min-height: 44px;
            }
            
            /* Hide search on mobile */
            .search-container {
                display: none !important;
            }
            
            /* Adjust logo section */
            .premium-header .col-lg-3 {
                flex: 0 0 auto;
                width: auto;
                max-width: 140px;
            }
            
            .logo-img {
                height: 32px !important;
            }
            
            .logo {
                font-size: 0.9rem !important;
            }
            
            .catalog-btn {
                font-size: 0.8rem !important;
                padding: 6px 10px !important;
            }
            
            .catalog-btn .me-2 {
                margin-right: 0.25rem !important;
            }
            
            /* Right section adjustments */
            .premium-header .col-lg-4 {
                flex: 1;
                width: auto;
                max-width: none;
            }
            
            /* Show mobile icons */
            .mobile-icons {
                display: flex !important;
                gap: 6px;
                align-items: center;
                margin-right: 8px;
            }
            
            .mobile-icons .btn {
                padding: 6px;
                border: none;
                background: transparent;
                font-size: 1.1rem;
            }
            
            /* User dropdown adjustments */
            .user-dropdown .btn {
                padding: 6px 8px;
                font-size: 1.1rem;
            }
            
            .user-dropdown .user-name {
                display: none !important;
            }
            
            /* Language selector adjustments */
            .dropdown:last-child .btn {
                padding: 6px 8px;
            }
            
            .dropdown:last-child .btn span {
                display: none !important;
            }
            
            .dropdown:last-child .btn img {
                width: 18px !important;
                margin-right: 0 !important;
            }
        }
        
        /* Small Mobile to Tablet (481px - 768px) */
        @media (min-width: 481px) and (max-width: 768px) {
            .premium-header {
                overflow-x: hidden !important;
                width: 100%;
            }
            
            .premium-header .container {
                padding: 0 8px;
                max-width: 100%;
                overflow: hidden;
            }
            
            .premium-header .row {
                margin: 0;
                flex-wrap: nowrap;
            }
            
            .premium-header [class*="col-"] {
                padding: 0 3px;
            }
            
            /* Show mobile-friendly action buttons */
            .action-buttons {
                display: flex !important;
                justify-content: center;
                gap: 8px;
                margin-top: 8px;
            }
            
            .action-buttons .btn {
                padding: 8px 12px;
                font-size: 16px;
                min-width: 44px;
                min-height: 44px;
            }
            
            /* Hide search on mobile */
            .search-container {
                display: none !important;
            }
            
            /* Right section adjustments */
            .premium-header .col-lg-4 {
                flex: 1;
                width: auto;
                max-width: none;
                overflow: hidden;
            }
            
            /* Container for right section */
            .premium-header .col-lg-4 > .d-flex {
                justify-content: flex-end !important;
                gap: 4px !important;
                overflow: hidden;
                flex-wrap: nowrap;
            }
            
            /* Show mobile icons */
            .mobile-icons {
                display: flex !important;
                gap: 6px;
                align-items: center;
                margin-right: 6px;
                flex-shrink: 0;
            }
            
            .mobile-icons .btn {
                padding: 6px;
                border: none;
                background: transparent;
                font-size: 1rem;
            }
            
            /* User dropdown adjustments */
            .user-dropdown .btn {
                padding: 6px 8px;
            }
            
            .user-dropdown .user-name {
                display: none !important;
            }
            
            /* Language selector adjustments */
            .dropdown:last-child .btn {
                padding: 6px 8px;
            }
            
            .dropdown:last-child .btn span {
                display: none !important;
            }
            
            .dropdown:last-child .btn img {
                width: 18px !important;
                margin-right: 0 !important;
            }
        }
        
        /* Legacy support for existing 768px breakpoint */
        @media (max-width: 768px) {
            .premium-header .col-lg-4 {
                flex: 0 0 auto;
                width: auto;
                max-width: fit-content;
            }
        }
        
        /* Show mobile-specific elements */
        .mobile-icons {
            display: none;
        }
        
        /* Cursor Types */
        .product-title a,
        .product-image,
        .product-actions button,
        .action-buttons button,
        .nav-links a {
            cursor: pointer;
        }
        .product-price {
            cursor: default;
        }
        .product-specs {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 1.25rem;
            text-align: left;
            background: var(--light-color);
            padding: 0.75rem;
            border-radius: var(--radius-sm);
            border-left: 3px solid var(--primary-color);
        }
        .product-specs .spec-item {
            margin-bottom: 0.25rem;
            display: flex;
            justify-content: space-between;
        }
        .product-specs .spec-item strong {
            color: var(--text-primary);
            font-weight: 500;
        }
        .add-to-cart-btn {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
            color: var(--white);
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-md);
            text-decoration: none;
            display: inline-block;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            width: 100%;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .add-to-cart-btn:hover {
            background: linear-gradient(135deg, var(--primary-hover) 0%, #1557b0 100%);
            color: var(--white);
            box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
        }
        /* SIMPLE, CLEAN PAGINATION - JUST WORKS */
        .pagination-wrapper {
            margin: 2rem 0;
            text-align: center;
        }
        
        /* COMPLETELY ELIMINATE mobile pagination version */
        nav[role="navigation"] div.flex.justify-between.flex-1.sm\\:hidden {
            display: none !important;
        }
        
        /* Force show only the desktop numbered pagination */
        nav[role="navigation"] > div.hidden.sm\\:flex-1.sm\\:flex.sm\\:items-center.sm\\:justify-between {
            display: flex !important;
        }
        
        
        /* Force show ONLY the second child (desktop version) */
        nav[role="navigation"] > div:nth-child(2),
        nav[role="navigation"] > div:last-child {
            display: block !important;
        }
        
        /* Show only desktop pagination and make it simple */
        nav[role="navigation"] .hidden.sm\\:flex-1 {
            display: block !important;
            text-align: center !important;
        }
        
        /* Hide the info text for cleaner look */
        nav[role="navigation"] .hidden.sm\\:flex-1 > div:first-child {
            display: none !important;
        }
        
        /* Style the pagination container */
        nav[role="navigation"] .hidden.sm\\:flex-1 > div:last-child {
            display: inline-block !important;
        }
        
        /* Style pagination buttons - SIMPLE AND CLEAN */
        nav[role="navigation"] span.relative.z-0.inline-flex {
            display: inline-flex !important;
            gap: 4px !important;
            align-items: center !important;
        }
        
        nav[role="navigation"] .relative.inline-flex.items-center {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 36px !important;
            height: 36px !important;
            margin: 0 2px !important;
            padding: 0 !important;
            border: 1px solid #d1d5db !important;
            border-radius: 6px !important;
            background: white !important;
            color: #374151 !important;
            font-size: 14px !important;
            font-weight: 500 !important;
            text-decoration: none !important;
            transition: all 0.15s ease !important;
        }
        
        /* Hover effect */
        nav[role="navigation"] .relative.inline-flex.items-center:hover {
            border-color: var(--primary-color) !important;
            background: var(--primary-color) !important;
            color: white !important;
        }
        
        /* Active page */
        nav[role="navigation"] span[aria-current="page"] {
            background: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            color: white !important;
        }
        
        /* Disabled state */
        nav[role="navigation"] span[aria-disabled="true"] {
            opacity: 0.5 !important;
            cursor: not-allowed !important;
        }
        
        nav[role="navigation"] span[aria-disabled="true"]:hover {
            background: white !important;
            color: #374151 !important;
            border-color: #d1d5db !important;
        }
        
        /* SVG icons in arrows */
        nav[role="navigation"] svg {
            width: 14px !important;
            height: 14px !important;
        }
        
        .search-box {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 0.25rem;
            margin-bottom: 1rem;
        }
        .price-range-inputs {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }
        .price-range-inputs input {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #ddd;
            border-radius: 0.25rem;
        }
        /* Filter Search Input */
        .filter-search {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            margin-bottom: 0.625rem;
            margin-top: 0.25rem;
            font-size: 0.875rem;
            background: var(--light-color);
            transition: all 0.2s ease;
            box-sizing: border-box;
        }
        .filter-search:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
            background: var(--white);
        }
        .filter-search::placeholder {
            color: var(--text-muted);
            font-style: italic;
        }
        .filter-option.hidden {
            display: none;
        }
        .filter-option--disabled {
            opacity: 0.5;
            pointer-events: none;
        }
        .filter-option--disabled input[type="checkbox"] {
            opacity: 0.3;
        }
        .filter-option--disabled label {
            color: #999;
            cursor: not-allowed;
        }
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            border-radius: 0.5rem;
        }
        .main-content {
            position: relative;
        }
        /* Responsive Design */
        @media (max-width: 1200px) {
            #products-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 1.25rem !important;
            }
        }
        
        @media (max-width: 1024px) {
            .top-nav .container-fluid {
                padding: 0 15px;
            }
        }

        @media (max-width: 768px) {
            .top-nav .container-fluid {
                display: flex;
                flex-direction: column;
                gap: 1rem;
                padding: 0.75rem 15px;
            }
            
            .header-left {
                order: 1;
                width: 100%;
                justify-content: center;
                padding-left: 0;
                margin-left: 0;
            }
            
            .header-center {
                order: 3;
                width: 100%;
                margin-left: 0;
                margin-right: 0;
            }
            
            .header-right {
                order: 2;
                width: 100%;
                justify-content: space-between;
                padding-right: 0;
                margin-right: 0;
            }
            
            .nav-links {
                gap: 0.5rem;
            }
            
            .nav-links a span:not(.nav-count) {
                display: none;
            }
            .nav-links a {
                padding: 0.5rem;
            }
            
            .search-container {
                max-width: 100%;
            }
            .filter-sidebar {
                margin-bottom: 2rem;
                padding: 1.25rem;
            }
            .products-header {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }
            .products-controls {
                width: 100%;
                justify-content: space-between;
            }
            .main-content {
                padding: 1.25rem;
            }
            #products-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 1rem !important;
            }
            .product-card {
                padding: 1rem;
            }
            .product-image-container {
                height: 150px;
                margin-bottom: 1rem;
            }
        }

        @media (max-width: 480px) {
            #products-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 0.75rem !important;
            }
            .product-card {
                padding: 0.75rem;
            }
            .product-image-container {
                height: 120px;
                margin-bottom: 0.75rem;
            }
            .product-title {
                font-size: 0.9rem;
                min-height: 2.4rem;
            }
            .product-price {
                font-size: 1.1rem;
            }
            .add-to-cart-btn {
                padding: 0.6rem 1rem;
                font-size: 0.85rem;
            }
            .filter-sidebar, .main-content {
                border-radius: var(--radius-md);
                padding: 1rem;
            }
            .products-header {
                padding-bottom: 1rem;
            }
            /* Mobile pagination adjustments */
            .pagination-wrapper {
                margin-top: 2rem;
                padding: 1rem 0;
                overflow-x: auto;
            }
            
            /* Fix pagination overflow on mobile */
            .pagination-wrapper nav {
                width: 100%;
            }
            
            /* Target the specific Tailwind pagination container */
            .pagination-wrapper span.relative.z-0.inline-flex {
                display: flex !important;
                flex-wrap: wrap !important;
                justify-content: center !important;
                gap: 2px !important;
                max-width: 100% !important;
                width: 100% !important;
            }
            
            /* Make all direct children smaller */
            .pagination-wrapper span.relative.z-0.inline-flex > * {
                flex: 0 0 auto !important;
                margin: 1px !important;
            }
            
            /* Page number links and current page */
            .pagination-wrapper span.relative.z-0.inline-flex a,
            .pagination-wrapper span.relative.z-0.inline-flex span[aria-current="page"] span {
                padding: 0.25rem 0.4rem !important;
                font-size: 0.75rem !important;
                min-width: 28px !important;
            }
            
            /* Previous/Next button containers */
            .pagination-wrapper span[aria-label*="pagination"],
            .pagination-wrapper a[aria-label*="pagination"] {
                padding: 0.25rem !important;
            }
            
            /* SVG icons */
            .pagination-wrapper svg {
                width: 0.9rem !important;
                height: 0.9rem !important;
            }
            
            /* Make pagination items smaller on mobile */
            .pagination .page-link {
                padding: 0.4rem 0.6rem;
                font-size: 0.8rem;
                min-width: 32px;
            }
            .pagination .page-link[aria-label="Previous"],
            .pagination .page-link[aria-label="Next"] {
                padding: 0.4rem;
            }
            
            /* Hide some pagination numbers on very small screens */
            @media (max-width: 480px) {
                /* Hide middle page numbers, keep first 5 and last 2 */
                .pagination-wrapper span.relative.z-0.inline-flex > a:nth-child(n+7):nth-last-child(n+4) {
                    display: none !important;
                }
                /* Also hide the ellipsis if there are too many */
                .pagination-wrapper span.relative.z-0.inline-flex > span:nth-child(n+8) span:contains("...") {
                    display: none !important;
                }
            }
        }

/* Fix shadow issue - Force all product cards to not use transforms */
.product-card,
.product-card * {
    will-change: auto !important;
    transform: none !important;
}

.product-card:hover {
    transform: none !important;
}

