/* --- Wishlist Layout --- */
.wishlist-page-container {
    padding: 60px 5%;
    background: #ffffff; /* White background to make cards pop */
    min-height: 80vh;
}

.wishlist-layout {
    display: flex;
    gap: 40px;
    max-width: 1250px;
    margin: 0 auto;
}

.wishlist-items-column { 
    flex: 2; 
}

/* Note: Keeping the sidebar flex in case you want to add 
   'Share Wishlist' or 'Move all to Cart' buttons later */
.wishlist-summary-sidebar { 
    flex: 1; 
}

.wishlist-section-title {
    font-size: 24px;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gold-mid);
    padding-bottom: 15px;
}

.wishlist-section-title span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}
@media screen and (max-width: 768px) {
    /* Wishlist Mobile Fix */
    .wishlist-section-title {
        font-size: 18px;            /* Scaled down from 24px */
        letter-spacing: 1px;       /* Reduced for better fit */
        margin-bottom: 20px;       /* Tighter vertical spacing */
        padding-bottom: 10px;
    }

    .wishlist-section-title span {
        font-size: 12px;            /* Scaled down from 14px */
        display: block;             /* Moves subtitle to its own line */
        margin-top: 4px;            /* Slight gap from the main title */
        text-transform: none;      /* Optional: makes the span easier to read if it's long */
    }
}

/* --- Wishlist Grid Logic --- */
.wishlist-grid {
    display: grid;
    /* Desktop: 6 items in one row */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Adjust layout to allow grid to breathe */
.wishlist-layout {
    display: block; /* Allows grid to span full width */
    max-width: 100%;
}

/* --- Responsive Breakpoints --- */

/* Tablets & Small Laptops */
@media (max-width: 1200px) {
    .wishlist-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: Exactly 2 items per row */
@media (max-width: 600px) {
    .wishlist-page-container {
        padding: 30px 10px;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Tighter gap for small screens */
    }

    /* Scaling down card text for mobile grid */
    .product-info {
        padding: 12px 5px;
    }

    .product-title {
        font-size: 11px;
        min-height: 30px;
    }

    .product-price {
        font-size: 13px;
    }

    .view-details {
        font-size: 9px;
        padding: 10px 2px;
    }
}

/* Extra Style: Style for the 'X' remove icon */
.remove-wishlist {
    color: #cc0000 !important; /* Elegant dark red for delete */
}

.remove-wishlist:hover {
    background: #cc0000 !important;
    color: #fff !important;
}