
    /* Import Poppins font */
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

    :root {
        --primary-color: #060318;
        --hover-color: #565564;
        --secondary-color: #16a34a;
        --text-color: #1f2937;
        --light-bg: #f9fafb;
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        --border-radius: 12px;
    }

    body {
        font-family: 'Poppins', sans-serif;
        color: var(--text-color);
        background: #fff;
        margin: 0;
        padding: 0;
    }

    main {
        margin-top: -2em;
    }

    /* Breadcrumb */
    .breadcrumb {
        background: transparent;
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }

    .breadcrumb-item a {
        color: var(--primary-color);
        text-decoration: none;
    }

    .breadcrumb-item a:hover {
        color: var(--hover-color);
    }

    .breadcrumb-item.active {
        color: var(--text-color);
    }

    /* Sidebar Filters */
    .sidebar {
        padding: 20px;
        border-right: 1px solid rgba(6, 3, 24, 0.1);
        height: fit-content;
    }

    .filter-section {
        margin-bottom: 30px;
    }

    .filter-section h5 {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 15px;
        text-transform: none; /* Sentence case */
    }

    .filter-section .form-check {
        margin-bottom: 10px;
    }

    .filter-section .form-check-label {
        font-size: 0.95rem;
        color: var(--text-color);
    }

    .filter-section .form-check-input {
        margin-right: 10px;
    }

    .filter-section .form-select,
    .filter-section .form-control {
        border-radius: 8px;
        border: 1px solid var(--primary-color);
        font-size: 0.95rem;
        padding: 8px;
    }

    .filter-section .form-select:focus,
    .filter-section .form-control:focus {
        border-color: var(--hover-color);
        box-shadow: 0 0 5px rgba(86, 85, 100, 0.2);
    }

    .clear-filters {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

    .clear-filters:hover {
        color: var(--hover-color);
    }

    /* Product Grid */
    .product-grid {
        padding: 20px;
    }

    .section-title {
        font-size: 2.2rem;
        font-weight: 600;
        color: var(--primary-color);
        text-align: center;
        margin-bottom: 40px;
        text-transform: none; /* Sentence case */
        letter-spacing: 1px;
        position: relative;
    }

    .section-title::after {
        content: '';
        width: 60px;
        height: 4px;
        background: var(--primary-color);
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

    .product-card {
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin-bottom: 30px;
        height: 450px; /* Fixed height for consistency */
        min-height: 450px;
        display: flex;
        flex-direction: column;
    }

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

    .product-image {
        width: 100%;
        height: 220px;
        object-fit: contain; /* Ensure images fit properly */
        padding: 0; /* Remove padding to match the image */
    }

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

    .product-details {
        padding: 15px;
        text-align: center;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-details h5 {
        font-size: 1.1rem; /* Slightly smaller to match the image */
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--text-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-details .price-section {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px; /* Space between original and offer price */
        margin-bottom: 8px;
    }

    .product-details .price-section p {
        font-size: 1rem;
        margin: 0; /* Remove default margin */
    }

    .product-details .price-section .original-price {
        color: var(--text-color);
        text-decoration: line-through;
        font-size: 0.9rem;
        font-weight: 400;
    }

    .product-details .price-section .offer-price {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 1rem;
    }

    .product-details .category {
        font-size: 0.8rem; /* Smaller font to match the image */
        color: #6b7280; /* Muted color */
        margin-bottom: 10px;
    }

    .product-details .btn-primary {
        background: #1f2937; /* Darker background to match the image */
        border: none;
        font-size: 0.9rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        padding: 8px;
        color: white;
    }

    .product-details .btn-primary:hover {
        background: var(--hover-color);
        transform: translateY(-2px);
    }

    /* Icon Buttons */
    .action-buttons {
        display: flex;
        justify-content: center;
        gap: 15px; /* Space between icons */
        margin-top: 10px;
    }

    .action-buttons .btn {
        background: none;
        border: none;
        padding: 6px; /* Smaller padding for smaller icons */
        font-size: 1rem; /* Smaller icon size to match the image */
        transition: all 0.3s ease;
        position: relative;
    }

    .action-buttons .btn-cart {
        color: #6b7280; /* Muted color to match the image */
    }

    .action-buttons .btn-cart:hover {
        color: var(--secondary-color);
        transform: scale(1.1);
    }

    .action-buttons .btn-cart:disabled {
        color: #ccc;
        cursor: not-allowed;
    }

    .action-buttons .btn-wishlist {
        color: #e74c3c;
    }

    .action-buttons .btn-wishlist:hover {
        color: #c0392b;
        transform: scale(1.1);
    }

    /* Tooltip for Icons */
    .action-buttons .btn::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary-color);
        color: white;
        font-size: 0.75rem;
        padding: 3px 8px;
        border-radius: 4px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .action-buttons .btn:hover::after {
        opacity: 1;
        visibility: visible;
    }

    /* Pagination */
    .pagination .page-link {
        color: var(--primary-color);
        border-radius: 8px;
        margin: 0 5px;
        transition: all 0.3s ease;
    }

    .pagination .page-link:hover {
        background: var(--hover-color);
        color: white;
        border-color: var(--hover-color);
    }

    .pagination .page-item.active .page-link {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

    /* SweetAlert Custom Styling */
.swal-custom-popup {
    font-family: 'Poppins', sans-serif;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.swal-custom-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.swal-custom-text {
    color: var(--text-color);
    font-size: 1rem;
}

.swal-custom-icon {
    border-color: var(--primary-color) !important;
}

.swal-custom-button {
    background-color: var(--primary-color) !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.swal-custom-button:hover {
    background-color: var(--hover-color) !important;
}

.swal-custom-cancel-button {
    background-color: #e74c3c !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.swal-custom-cancel-button:hover {
    background-color: #c0392b !important;
}

    /* Responsive Design */
    @media (max-width: 991px) {
        .sidebar {
            border-right: none;
            border-bottom: 1px solid rgba(6, 3, 24, 0.1);
            margin-bottom: 30px;
        }

        .product-card {
            height: 420px;
        }

        .product-image {
            height: 200px;
        }
    }

    @media (max-width: 576px) {
        .section-title {
            font-size: 1.8rem;
        }

        .product-card {
            height: 400px;
        }

        .product-image {
            height: 180px;
        }

        .product-details h5 {
            font-size: 1rem;
        }

        .product-details .btn {
            font-size: 0.85rem;
        }

        .action-buttons .btn {
            font-size: 0.9rem; /* Even smaller icons on mobile */
            padding: 5px;
        }
    }
