:root {
        --primary: #2c3e50;
        --secondary: #e74c3c;
        --light: #ecf0f1;
        --dark: #1a252f;
        --accent: #3498db;
        --text: #333;
        --text-light: #7f8c8d;
        --shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        --gold: #f1c40f;
    }

    body {
        font-family: 'Montserrat', sans-serif;
        color: var(--text);
        background-color: #fafafa;
        line-height: 1.6;
    }
    a{
        text-decoration: none;
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Filter Bar */
    .filter-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 2rem 0;
        padding: 1rem;
        background: white;
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

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

    .sort-label {
        font-family: 'Playfair Display', serif;
        font-weight: 500;
        color: var(--primary);
        white-space: nowrap;
    }

    .sort-select {
        padding: 0.5rem 1rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background-color: white;
        font-family: inherit;
        cursor: pointer;
        transition: var(--transition);
        min-width: 150px;
    }

    /* Desktop Grid View */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .product-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: var(--transition);
        position: relative;
    }

    .product-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--secondary);
        color: white;
        padding: 0.25rem 0.75rem;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 600;
        z-index: 1;
    }

    .product-image-container {
        height: 320px;
        position: relative;
        overflow: hidden;
    }

    .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s ease;
    }

    .product-details {
        padding: 1.5rem;
    }

    .product-brand {
        font-size: 0.85rem;
        color: var(--accent);
        font-weight: 600;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
    }

    .product-title {
        font-family: 'Playfair Display', serif;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        color: var(--dark);
        font-weight: 600;
        line-height: 1.3;
    }

    .product-price {
        display: flex;
        align-items: center;
        margin-bottom: 1.25rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .current-price {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary);
    }

    .original-price {
        text-decoration: line-through;
        color: var(--text-light);
        font-size: 1rem;
    }

    .discount-badge {
        background: var(--gold);
        color: var(--dark);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .color-options {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .color-option {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid white;
        overflow: hidden;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .color-option img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-actions {
        display: flex;
        gap: 0.75rem;
    }

    .action-btn {
        flex: 1;
        padding: 0.75rem;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .buy-now-btn {
        background: var(--primary);
        color: white;
        border: none;
    }

    .view-details-btn {
        background: white;
        color: var(--primary);
        border: 1px solid #ddd;
    }

    /* Mobile List View */
    @media (max-width: 768px) {
        .container {
            padding: 0 15px;
        }

        .filter-bar {
            flex-direction: column;
            align-items: stretch;
            gap: 1rem;
            padding: 1rem;
            margin: 1rem 0;
        }

        .sort-options {
            flex-direction: column;
            align-items: stretch;
            gap: 0.5rem;
        }

        .sort-select {
            width: 100%;
        }

        .product-grid {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .product-card {
            display: flex;
            height: auto;
            min-height: 120px;
        }

        .product-image-container {
            width: 100px;
            height: 120px;
            flex-shrink: 0;
            border-radius: 8px 0 0 8px;
        }

        .product-image {
            border-radius: 8px 0 0 8px;
        }

        .product-details {
            padding: 0.75rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .product-brand {
            font-size: 0.75rem;
            margin-bottom: 0.1rem;
        }

        .product-title {
            font-size: 0.95rem;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .product-price {
            margin-bottom: 0.5rem;
            gap: 0.3rem;
        }

        .current-price {
            font-size: 1.1rem;
        }

        .original-price {
            font-size: 0.85rem;
        }

        .discount-badge {
            font-size: 0.65rem;
            padding: 0.15rem 0.4rem;
        }

        .color-options {
            display: none;
        }

        .product-actions {
            flex-direction: row;
            gap: 0.5rem;
        }

        .action-btn {
            padding: 0.5rem;
            font-size: 0.8rem;
            min-width: 0;
        }

        .product-badge {
            top: 8px;
            right: 8px;
            font-size: 0.65rem;
            padding: 0.15rem 0.5rem;
        }
    }

    /* Small Mobile Optimization */
    @media (max-width: 480px) {
        .product-image-container {
            width: 80px;
            height: 100px;
        }

        .product-title {
            font-size: 0.85rem;
        }

        .current-price {
            font-size: 1rem;
        }

        .action-btn {
            font-size: 0.75rem;
            padding: 0.4rem;
        }

        .product-details {
            padding: 0.5rem;
        }
    }
    /* Pagination Container */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Pagination List */
.pagination-list {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

/* Pagination Links */
.pagination-list li a,
.pagination-list li span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover Effect */
.pagination-list li a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Active Page */
.pagination-list li.active span {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
    cursor: default;
}

/* Responsive Design */
@media (max-width: 576px) {
    .pagination-list li a,
    .pagination-list li span {
        padding: 6px 10px;
        font-size: 12px;
    }
}
