/* ── Wishlist Page ── */
.wishlist-page {
    padding: 5rem 0;
    min-height: 100vh;
    background-color: #fdfcf8;
}

.wishlist-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.wishlist-title {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.wishlist-subtitle {
    color: #999;
    font-size: 0.95rem;
    margin: 0;
}

.go-to-cart-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #333333;
    text-decoration: none;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.go-to-cart-btn:hover {
    background: #333;
    color: #333333;
}

/* ── Grid ── */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

/* ── Card ── */
.wishlist-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}

.wishlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.wishlist-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.wishlist-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wishlist-card:hover .wishlist-card-img img {
    transform: scale(1.04);
}

/* Remove X button on image */
.wishlist-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: #555;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.wishlist-remove-btn:hover {
    background: #ff4d4d;
    color: #333333;
}

/* ── Card Info ── */
.wishlist-card-info {
    padding: 1.2rem 1.4rem 1.4rem;
}

.wishlist-category {
    font-size: 0.78rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.wishlist-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
    cursor: pointer;
    line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wishlist-name:hover {
    color: #b59b5a;
}

.wishlist-price-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.wishlist-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: #8A2BE2;
}

.wishlist-old-price {
    font-size: 0.85rem;
    color: #bbb;
    text-decoration: line-through;
}

.wishlist-discount {
    font-size: 0.72rem;
    font-weight: 700;
    background: #fff0f0;
    color: #e00;
    border-radius: 4px;
    padding: 2px 7px;
}

/* ── Actions ── */
.wishlist-actions {
    display: flex;
    gap: 0.6rem;
}

.move-to-cart-btn {
    flex: 1;
    background: #000;
    color: #333333;
    border: none;
    padding: 11px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.move-to-cart-btn:hover {
    background: #b59b5a;
}

.wishlist-del-btn {
    background: #f5f5f5;
    border: none;
    padding: 11px 14px;
    border-radius: 6px;
    cursor: pointer;
    color: #888;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.wishlist-del-btn:hover {
    background: #fee;
    color: #e00;
}

/* ── Empty State ── */
.wishlist-page-empty {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-wishlist-message i {
    font-size: 5rem;
    color: #f0d7d7;
    margin-bottom: 2rem;
    display: block;
}

.empty-wishlist-message h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.empty-wishlist-message p {
    color: #999;
    margin-bottom: 2.5rem;
}

.start-shopping-btn {
    background-color: #000;
    color: #333333;
    border: none;
    padding: 16px 45px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.3s;
    border-radius: 4px;
}

.start-shopping-btn:hover {
    opacity: 0.8;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }

    .wishlist-title {
        font-size: 1.6rem;
    }
}