/* ========================================
   Wishlist Page - Modern Enhanced Design
   ======================================== */

/* ====== Wishlist Hero Section ====== */
.wishlist-hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ff6b6b 100%);
    padding: var(--space-12) 0 var(--space-10);
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
}

.wishlist-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
    opacity: 0.5;
}

.wishlist-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.wishlist-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-3);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.wishlist-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

/* ====== Wishlist Product Cards ====== */
.wishlist-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.wishlist-product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.wishlist-product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 50%, #ff6b6b 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wishlist-product-card:hover::after {
    opacity: 1;
}

.wishlist-image-container {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.wishlist-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wishlist-product-card:hover .wishlist-image-container img {
    transform: scale(1.08);
}

/* ====== Remove Button ====== */
.remove-from-wishlist {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.remove-from-wishlist:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

.remove-from-wishlist i {
    font-size: 1.3rem;
    color: #dc3545;
    transition: all 0.3s ease;
}

.remove-from-wishlist:hover i {
    color: white;
}

/* ====== Discount Badge ====== */
.wishlist-discount-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    backdrop-filter: blur(4px);
}

/* ====== Product Info ====== */
.wishlist-card-body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wishlist-product-title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
    transition: color 0.3s ease;
}

.wishlist-product-title:hover {
    color: #f5576c;
}

.wishlist-product-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
    flex-grow: 1;
}

/* ====== Price Section ====== */
.wishlist-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wishlist-price-current {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wishlist-price-original {
    font-size: var(--text-base);
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.wishlist-added-date {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ====== Action Button ====== */
.wishlist-view-btn {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wishlist-view-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ====== Empty State ====== */
.wishlist-empty-state {
    text-align: center;
    padding: var(--space-16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(240, 147, 251, 0.2);
    position: relative;
    overflow: hidden;
}

.wishlist-empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 50%, #ff6b6b 100%);
}

.wishlist-empty-icon {
    font-size: 6rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-6);
    filter: drop-shadow(0 4px 8px rgba(245, 87, 108, 0.3));
}

.wishlist-empty-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--space-4);
}

.wishlist-empty-description {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.wishlist-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(245, 87, 108, 0.4);
}

.wishlist-empty-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 87, 108, 0.5);
    color: white;
}

/* ====== Pagination ====== */
.wishlist-pagination {
    margin-top: var(--space-8);
}

.wishlist-pagination .page-link {
    color: #f5576c;
    border-color: rgba(245, 87, 108, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    margin: 0 var(--space-1);
    transition: all 0.3s ease;
}

.wishlist-pagination .page-link:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #f5576c;
    transform: translateY(-2px);
}

.wishlist-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #f5576c;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

/* ====== Continue Shopping Button ====== */
.wishlist-continue-btn {
    padding: var(--space-3) var(--space-6);
    background: white;
    color: #f5576c;
    border: 2px solid #f5576c;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wishlist-continue-btn:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

/* ====== Grid Animation ====== */
.wishlist-grid-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.wishlist-grid-item:nth-child(1) { animation-delay: 0.05s; }
.wishlist-grid-item:nth-child(2) { animation-delay: 0.1s; }
.wishlist-grid-item:nth-child(3) { animation-delay: 0.15s; }
.wishlist-grid-item:nth-child(4) { animation-delay: 0.2s; }
.wishlist-grid-item:nth-child(5) { animation-delay: 0.25s; }
.wishlist-grid-item:nth-child(6) { animation-delay: 0.3s; }
.wishlist-grid-item:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
    .wishlist-hero {
        padding: var(--space-8) 0 var(--space-6);
    }

    .wishlist-hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .wishlist-product-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .remove-from-wishlist {
        width: 38px;
        height: 38px;
    }

    .remove-from-wishlist i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .wishlist-card-body {
        padding: var(--space-4);
    }

    .wishlist-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

/* ====== Accessibility ====== */
@media (prefers-reduced-motion: reduce) {
    .wishlist-product-card,
    .wishlist-grid-item,
    .remove-from-wishlist {
        animation: none;
        transition: none;
    }
}
