/* ============================================
   WISHLIST PAGE STYLES
   ============================================ */

/* Reuse .page-header from cart.css (already linked) */
/* If not available, we can define it here just in case, but cart.css is linked */

.page-header-wishlist {
    background-color: #e9eff5;
    padding: 30px 0;
    margin-bottom: 50px;
}

.page-header-wishlist .breadcrumb-item.active {
    color: var(--muted);
}

.page-header-wishlist h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
}

/* ==================== WISHLIST GRID ==================== */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

@media (min-width: 480px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .wishlist-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1400px) {
    .wishlist-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* ==================== WISHLIST CARD ==================== */
.wishlist-card {
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Close Button */
.wishlist-card__remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #999;
    transition: all 0.2s ease;
}

.wishlist-card__remove:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.wishlist-card__remove i {
    font-size: 18px;
    line-height: 1;
}

/* Image Wrapper */
.wishlist-card__image-container {
    position: relative;
    border: 1px solid #efefef;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
    height: 235px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wishlist-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .wishlist-card__image {
    transform: scale(1.05);
}

/* Content */
.wishlist-card__content {
    /* padding: 0 4px; */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-card__brand {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
    display: block;
}

.wishlist-card__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    margin: 0 0 5px 0;
    line-height: 1.4;
    min-height: 42px;
    /* Ensure alignment for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-card__price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: auto;
}

.wishlist-card__price-current {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.wishlist-card__price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* Buttons */
.wishlist-card__action {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-card__action--sold-out {
    background-color: #9abaf0;
    /* Light blue from image */
    color: #fff;
    cursor: default;
}

.wishlist-card__action--add {
    background-color: var(--primary);
    color: #fff;
}

.wishlist-card__action--add:hover {
    background-color: var(--primary-dark);
}