/* ===================================
   Wishlist Page CSS
   List/Table Layout Matching Image
   =================================== */


.wishlist-page {
    padding: 40px 20px 100px;
    background: var(--bg-white);
    min-height: calc(100vh - 300px);
}

.wishlist-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Page Header Hidden in new design, but we keep it optional or visually simple */
.wishlist-header {
    text-align: center;
    margin-bottom: 50px;
   
}

/* Wishlist List Layout */
.wishlist-list {
    width: 100%;
}

.wishlist-list-header {
    display: grid;
    grid-template-columns: 50px 80px 2.5fr 1.5fr 1.5fr 200px;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d1d5db; /* slightly darker header border */
    font-weight: 700;
    color: #4b5563;
    font-size: 15px;
}

.col-empty { grid-column: span 2; } /* Covers trash and image */

.wishlist-row {
    display: grid;
    grid-template-columns: 50px 80px 2.5fr 1.5fr 1.5fr 200px;
    align-items: center;
    gap: 15px;
    padding: 25px 0;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

/* Remove button / Trash Icon */
.item-remove {
    display: flex;
    justify-content: center;
}

.btn-remove-list {
    background: none;
    border: none;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 20px;
    transition: var(--transition);
    padding: 5px;
}

.btn-remove-list:hover {
    color: #ef4444;
}

/* Product Image */
.item-image img {
    width: 65px;
    height: 80px;
    object-fit: cover;
    background: #f1f5f9;
}

/* Product Info */
.item-info {
    font-size: 15px;
    color: #4b5563;
}

.item-title {
    color: #4b5563;
    text-decoration: none;
    font-weight: 400;
}

.item-title:hover {
    color: var(--primary-color);
}

/* Price */
.item-price {
    font-size: 14px;
    color: #4b5563;
}

.price-old {
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 6px;
}

.price-new {
    background-color: #fef08a; /* Light yellow highlight */
    padding: 2px 6px;
    border-radius: 2px;
}

/* Stock Status */
.item-stock {
    font-size: 14px;
    color: #6b7280;
}

/* Action Area */
.item-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.added-date {
    font-size: 11px;
    color: #9ca3af;
}

.btn-add-cart-list {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart-list:hover {
    background-color: var(--primary-color);
}

/* Empty State */
.empty-wishlist {
    text-align: center;
    padding: 80px 20px;
    background: white;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: #fdf2f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #fbcfe8;
}

.empty-icon i {
    font-size: 45px;
    color: var(--accent-color);
}

.empty-wishlist h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.empty-wishlist p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

.btn-shop {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-shop:hover {
    background: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .wishlist-list-header {
        display: none; /* Hide table header on mobile */
    }
    
    .wishlist-row {
        grid-template-columns: 80px 1fr;
        grid-template-areas: 
            "img info"
            "img price"
            "img stock"
            "img action"
            "remove action";
        gap: 10px;
        padding: 20px 0;
    }

    .item-remove {
        grid-area: remove;
        justify-content: flex-start;
    }

    .item-image {
        grid-area: img;
    }

    .item-info {
        grid-area: info;
        font-weight: 600;
    }

    .item-price {
        grid-area: price;
    }

    .item-stock {
        grid-area: stock;
    }

    .item-action {
        grid-area: action;
        align-items: flex-end;
    }
}
