
    /* Base Styles */
    body {
        font-family: 'Montserrat', sans-serif;
        background-color: #f5f5f5;
    }
    .main-content {
        padding-top: 0;
    }

    .collection-header {
        font-family: 'Playfair Display', serif;
        font-size: 2rem;
        font-weight: 600;
        margin: 30px 20px 20px;
        text-align: center;
        color: #222;
        position: relative;
    }

    .collection-header::after {
        content: "";
        display: block;
        width: 50px;
        height: 3px;
        background-color: #000;
        margin: 6px auto 0;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 0 16px 40px;
        max-width: 1350px;
        margin: auto;
    }

    /* Product Card Styles */
    .product-card {
        background: transparent;
        overflow: hidden;
        transition: transform 0.3s ease;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .product-card:hover {
        transform: translateY(-4px);
    }

    .product-card a.product-image-link {
        position: relative;
        display: block;
        width: 100%;
        overflow: hidden;
        margin-bottom: 0px;
    }

    .product-image {
        width: 100%;
        aspect-ratio: 2/3;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

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

    .product-name {
        font-weight: 500;
        color: #333;
        margin: 6px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9rem;
        text-align: left;
    }

    .product-price {
        font-weight: 600;
        color: #000;
        margin-bottom: 10px;
        font-size: 0.9rem;
        text-align: left;
        font-family: 'Inter', sans-serif;
    }

    /* Wishlist Button Styles */
    .wishlist-button {
        position: absolute;
        top: 8px;
        right: 8px;
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        cursor: pointer;
        transition: transform 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        z-index: 10;
    }

    .wishlist-button:hover {
        background-color: transparent;
        transform: scale(1.2);
    }

    .wishlist-button i {
        font-size: 20px;
    }

    .wishlist-button .fas {
        color: #ef4444;
    }
    .wishlist-button .far {
        color: #3a3838;
    }

    /* --- NEW STYLES FOR MOBILE/DESKTOP TOGGLE --- */
    .desktop-actions-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-floating-buttons-container {
        display: none;
    }

    @media (max-width: 768px) {
        /* Hide the desktop sort and filter on mobile */
        .desktop-actions-container {
            display: none !important;
        }

        /* Show the floating mobile buttons */
        .mobile-floating-buttons-container {
            display: flex;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            gap: 10px;
            z-index: 1000;
        }

        .floating-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 50px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            cursor: pointer;
            font-size: 1rem;
            color: #4b5563;
            font-weight: 500;
            transition: transform 0.2s ease-in-out;
        }

        .floating-btn:hover {
            transform: translateY(-2px) translateX(-50%);
        }

        /* Mobile grid adjustments */
        .product-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            padding: 0 8px 30px;
        }
        .product-image {
            height: clamp(200px, 60vw, 250px);
        }
        .product-name {
            font-size: 0.8rem;
            line-height: 1.2;
        }
        .product-price {
            font-size: 0.85rem;
        }
        .wishlist-button {
            font-size: 18px;
            padding: 4px;
        }
        .collection-header {
            font-size: 1.5rem;
        }
    }

    /* Modal styles */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .mobile-sort-modal,
    .mobile-filter-modal {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        padding: 20px;
        box-sizing: border-box;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .mobile-sort-modal.active,
    .mobile-filter-modal.active {
        transform: translateY(0);
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .modal-header h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0;
    }

    .close-modal-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
        color: #6b7280;
    }

    .modal-options button {
        width: 100%;
        text-align: left;
        padding: 12px 0;
        font-size: 1rem;
        color: #4b5563;
        background: none;
        border: none;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .modal-options button:hover {
        background-color: #f3f4f6;
    }
