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

.wishlist-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    min-height: 60vh;
}

.wishlist-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}

.wishlist-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.wishlist-count {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/* Empty State */
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
}

.wishlist-empty svg {
    margin-bottom: 16px;
}

.wishlist-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.wishlist-empty p {
    color: #999;
    font-size: 14px;
    margin: 0 0 24px;
}

.wishlist-shop-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.wishlist-shop-btn:hover {
    background: #333;
}

/* Product Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.wishlist-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    position: relative;
}

.wishlist-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.wishlist-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.wishlist-card-body {
    padding: 14px 16px;
}

.wishlist-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wishlist-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.wishlist-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.wishlist-remove-btn:hover {
    background: #fee;
}

.wishlist-remove-btn svg {
    width: 16px;
    height: 16px;
    stroke: #c62828;
}

.wishlist-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Heart icon on product page */
.wishlist-heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.wishlist-heart-btn:hover {
    transform: scale(1.15);
}

.wishlist-heart-btn svg {
    width: 24px;
    height: 24px;
    stroke: #111;
    stroke-width: 2;
    fill: none;
    transition: fill 0.25s, stroke 0.25s;
}

.wishlist-heart-btn.active svg {
    fill: #e53935;
    stroke: #e53935;
}

/* Loading */
.wishlist-loader {
    text-align: center;
    padding: 40px 0;
}

.wishlist-loader .loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #eee;
    border-top: 3px solid #111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .wishlist-container {
        padding: 20px 12px 60px;
    }

    .wishlist-header h1 {
        font-size: 22px;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .wishlist-card-body {
        padding: 10px 12px;
    }
}
