/* =============================================
   WISHLIST MODAL - MODERN UI
   Beautiful wishlist display with proper styling
   ============================================= */

/* Wishlist Modal Container */
#wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-height: 65vh;
    overflow-y: auto;
}

/* Wishlist Item Card */
.wishlist-item-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* Remove Button */
.wishlist-remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0.9rem;
}

.wishlist-remove-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--danger);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Product Image */
.wishlist-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-item-card:hover .wishlist-product-image img {
    transform: scale(1.05);
}

/* Product Details */
.wishlist-product-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.wishlist-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Order Button */
.wishlist-order-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wishlist-order-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.wishlist-order-btn i {
    font-size: 1rem;
}

/* Empty State */
#wishlist-empty {
    text-align: center;
    padding: 4rem 2rem;
}

#wishlist-empty i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

#wishlist-empty p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Scrollbar Styling */
#wishlist-items::-webkit-scrollbar {
    width: 8px;
}

#wishlist-items::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

#wishlist-items::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

#wishlist-items::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Light Theme Adjustments */
[data-theme="light"] .wishlist-item-card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .wishlist-item-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .wishlist-product-image {
    background: #f8f9fa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #wishlist-items {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0.75rem;
    }

    .wishlist-product-image {
        height: 160px;
    }

    .wishlist-product-details {
        padding: 1rem;
    }

    .wishlist-product-name {
        font-size: 1rem;
    }

    .wishlist-order-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #wishlist-items {
        grid-template-columns: 1fr;
    }
}