/* ==========================================
   WISHLIST STYLES
   ========================================== */

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Wishlist Item Card */
.wishlist-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.wishlist-item-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #F9FAFB;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wishlist-item:hover .wishlist-item-image img {
    transform: scale(1.08);
}

.wishlist-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6B7280;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-item-remove:hover {
    background: #DC2626;
    color: white;
    transform: scale(1.1);
}

.wishlist-item-body {
    padding: 16px;
}

.wishlist-item-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item-name a {
    color: inherit;
    text-decoration: none;
}

.wishlist-item-name a:hover {
    color: #0F4C81;
}

.wishlist-item-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.wishlist-item-price .current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F4C81;
}

.wishlist-item-price .original {
    font-size: 0.9rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

.wishlist-item-price .discount {
    font-size: 0.75rem;
    font-weight: 600;
    color: #DC2626;
    background: #FEE2E2;
    padding: 2px 8px;
    border-radius: 12px;
}

.wishlist-item-actions {
    display: flex;
    gap: 10px;
}

.wishlist-item-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
    border-radius: 10px;
    font-weight: 600;
}

.wishlist-item-added {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 10px;
}

/* Stock Badge */
.wishlist-stock-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.wishlist-stock-badge.in-stock {
    background: #D1FAE5;
    color: #059669;
}

.wishlist-stock-badge.low-stock {
    background: #FEF3C7;
    color: #D97706;
}

.wishlist-stock-badge.out-of-stock {
    background: #FEE2E2;
    color: #DC2626;
}

/* Empty Wishlist State */
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
}

.wishlist-empty i {
    font-size: 5rem;
    color: #E5E7EB;
    margin-bottom: 20px;
}

.wishlist-empty h5 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.wishlist-empty p {
    color: #6B7280;
    margin-bottom: 24px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Wishlist Heart Button (for product cards) */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn i {
    font-size: 1.1rem;
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
}

.wishlist-btn:hover i {
    color: #DC2626;
}

.wishlist-btn.active {
    background: #DC2626;
}

.wishlist-btn.active i {
    color: white;
}

.wishlist-btn.active:hover {
    background: #B91C1C;
}

/* Animation for adding to wishlist */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.wishlist-btn.animating i {
    animation: heartBeat 0.6s ease;
}

/* Wishlist Header Stats */
.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.wishlist-count {
    font-size: 0.9rem;
    color: #6B7280;
}

.wishlist-count strong {
    color: #111827;
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .wishlist-item-body {
        padding: 12px;
    }
    
    .wishlist-item-name {
        font-size: 0.85rem;
    }
    
    .wishlist-item-price .current {
        font-size: 1rem;
    }
    
    .wishlist-item-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
}

