* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #1a1a1a;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .navbar {
            background: linear-gradient(90deg, #0f1c2e, #1a2a44);
            color: white;
            padding: 15px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .logo {
            font-size: 26px;
            font-weight: bold;
            color: #f4b30f;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: color 0.3s;
        }

        .logo i {
            margin-right: 10px;
            font-size: 30px;
        }

        .logo:hover {
            color: #ffcc33;
        }

        .search-container {
            display: flex;
            flex: 1;
            max-width: 800px;
            margin: 0 30px;
            height: 45px;
            background-color: #fff;
            border-radius: 22px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .search-select {
            background-color: #f0f2f5;
            border: none;
            padding: 0 15px;
            border-right: 1px solid #ddd;
            cursor: pointer;
            font-size: 15px;
            border-radius: 22px 0 0 22px;
        }

        .search-input {
            flex: 1;
            padding: 0 20px;
            border: none;
            font-size: 16px;
            outline: none;
            background: transparent;
        }

        .search-button {
            background-color: #f4b30f;
            border: none;
            padding: 0 20px;
            cursor: pointer;
            transition: background-color 0.3s;
            border-radius: 0 22px 22px 0;
        }

        .search-button:hover {
            background-color: #e0a00a;
        }

        .nav-links {
            display: flex;
            align-items: center;
        }

        .nav-item {
            margin-left: 25px;
            color: white;
            text-decoration: none;
            font-size: 15px;
            display: flex;
            align-items: center;
            transition: color 0.3s;
        }

        .nav-item:hover {
            color: #f4b30f;
        }

        .nav-item i {
            margin-right: 6px;
        }

        .cart-container {
            position: relative;
        }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #f4b30f;
            color: #000;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }

        .container {
            max-width: 1300px;
            margin: 30px auto;
            padding: 0 30px;
            flex: 1;
        }

        .breadcrumb {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 20px;
            padding: 10px 0;
        }

        .breadcrumb a {
            color: #2563eb;
            text-decoration: none;
        }

        .breadcrumb a:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }

        .main-content {
            display: flex;
            gap: 30px;
        }

        .filters-container {
            background-color: #fff;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            width: 280px;
            flex-shrink: 0;
            align-self: flex-start;
        }

        .filters-container h2 {
            font-size: 20px;
            margin-bottom: 20px;
            color: #1a1a1a;
            padding-bottom: 10px;
            border-bottom: 1px solid #e5e7eb;
        }

        .filters {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .filter-group {
            width: 100%;
        }

        .filter-group label {
            display: block;
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 8px;
            color: #1a1a1a;
        }

        .filter-group select, .filter-group button {
            width: 100%;
            padding: 12px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background-color: #f9fafb;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .filter-group button {
            background-color: #f4b30f;
            border: none;
        }

        .filter-group button:hover {
            background-color: #e0a00a;
        }

        .results-section {
            flex: 1;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            background-color: #fff;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .results-count {
            font-size: 15px;
            color: #6b7280;
        }

        .sort-options {
            display: flex;
            align-items: center;
        }

        .sort-options label {
            font-size: 15px;
            margin-right: 12px;
            color: #1a1a1a;
        }

        .sort-options select {
            padding: 10px 15px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background-color: #f9fafb;
            cursor: pointer;
        }

        .results {
            display: grid;
            grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns */
            gap: 25px;
            margin-bottom: 30px;
        }

        .product-card {
            background-color: #fff;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }

        .product-image {
            height: 200px;
            background-color: #f9fafb;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            border-radius: 8px;
            overflow: hidden;
        }

        .product-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.3s;
        }

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

        .product-info {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .product-name {
            font-size: 16px;
            color: #1a1a1a;
            margin-bottom: 10px;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            line-height: 1.3;
        }

        .product-name:hover {
            color: #f4b30f;
        }

        .product-rating {
            color: #f4b30f;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }

        .product-rating span {
            color: #6b7280;
            font-size: 14px;
            margin-left: 8px;
        }

        .product-price {
            font-size: 22px;
            font-weight: bold;
            color: #1a1a1a;
            margin-bottom: 10px;
        }

        .prime-badge {
            display: inline-block;
            background-color: #e5f2f7;
            color: #0d6efd;
            font-size: 12px;
            padding: 4px 10px;
            border-radius: 12px;
            margin-bottom: 10px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .product-shipping {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 15px;
        }

        .add-to-cart {
            background-color: #f4b30f;
            border: none;
            border-radius: 20px;
            padding: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: auto;
            width: 100%;
            transition: background-color 0.3s;
        }

        .add-to-cart:hover {
            background-color: #e0a00a;
        }

        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 30px;
            gap: 10px;
        }

        .pagination-button {
            background-color: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 10px 18px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
            transition: background-color 0.3s, color 0.3s;
        }

        .pagination-button:hover:not(:disabled) {
            background-color: #f4b30f;
            color: #fff;
        }

        .pagination-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .footer {
            background-color: #0f1c2e;
            color: #d1d5db;
            padding: 40px 0 20px;
            margin-top: 50px;
        }

        .footer-content {
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 30px;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 40px;
        }

        .footer-section {
            min-width: 200px;
        }

        .footer-section h3 {
            font-size: 16px;
            margin-bottom: 15px;
            color: #f4b30f;
        }

        .footer-section a {
            display: block;
            color: #9ca3af;
            text-decoration: none;
            font-size: 14px;
            margin-bottom: 10px;
            transition: color 0.3s;
        }

        .footer-section a:hover {
            color: #f4b30f;
        }

        .copyright {
            text-align: center;
            padding: 20px;
            font-size: 14px;
            color: #9ca3af;
            border-top: 1px solid #1a2a44;
            margin-top: 30px;
        }

        /* Cart Modal */
        .cart-modal {
            display: none;
            position: fixed;
            top: 80px;
            right: 20px;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            width: 360px;
            z-index: 1000;
            padding: 20px;
            max-height: 80vh;
            overflow-y: auto;
        }

        .cart-modal h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e5e7eb;
            font-size: 18px;
            color: #1a1a1a;
        }

        .cart-items {
            max-height: 300px;
            overflow-y: auto;
            margin-bottom: 15px;
        }

        .cart-item {
            display: flex;
            padding: 15px 0;
            border-bottom: 1px solid #e5e7eb;
            align-items: center;
        }

        .cart-item-image {
            width: 60px;
            height: 60px;
            object-fit: contain;
            margin-right: 15px;
            background-color: #f9fafb;
            border-radius: 6px;
            padding: 5px;
        }

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

        .cart-item-name {
            font-size: 14px;
            margin-bottom: 5px;
            color: #1a1a1a;
        }

        .cart-item-price {
            font-weight: bold;
            color: #dc2626;
        }

        .cart-item-quantity {
            width: 60px;
            padding: 5px;
            border: 1px solid #e5e7eb;
            border-radius: 4px;
            margin-right: 10px;
        }

        .remove-item {
            color: #dc2626;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 14px;
            padding: 2px 8px;
        }

        .remove-item:hover {
            background-color: #fee2e2;
            border-radius: 4px;
        }

        .cart-total {
            font-weight: bold;
            font-size: 18px;
            text-align: right;
            margin: 15px 0;
            color: #1a1a1a;
        }

        .checkout-btn {
            background-color: #2563eb;
            color: #fff;
            border: none;
            border-radius: 20px;
            padding: 12px 20px;
            width: 100%;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .checkout-btn:hover {
            background-color: #1d4ed8;
        }

        .close-cart {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #6b7280;
            transition: color 0.3s;
        }

        .close-cart:hover {
            color: #1a1a1a;
        }

        .loading {
            text-align: center;
            padding: 20px;
            color: #6b7280;
            font-size: 16px;
        }

        /* Responsive styles */
        @media (max-width: 1200px) {
            .results {
                grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
            }
        }

        @media (max-width: 900px) {
            .main-content {
                flex-direction: column;
            }
            .filters-container {
                width: 100%;
            }
            .results {
                grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
            }
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 10px 15px;
            }
            .search-container {
                order: 3;
                width: 100%;
                margin: 10px 0;
                max-width: 100%;
            }
            .nav-links {
                width: 100%;
                justify-content: space-around;
                margin-top: 10px;
            }
            .nav-item {
                margin: 0 10px;
            }
            .results {
                grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
            }
            .cart-modal {
                width: 300px;
                right: 10px;
            }
        }

        @media (max-width: 500px) {
            .results {
                grid-template-columns: 1fr; /* 1 column on very small screens */
            }
            .cart-modal {
                width: 90%;
                left: 50%;
                transform: translateX(-50%);
                right: auto;
                top: 60px;
            }
            .search-container {
                margin: 0 10px;
            }
        }

        /* Animation for cart add */
        @keyframes addToCart {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .cart-animation {
            animation: addToCart 0.5s ease;
        }