/* Enhanced Wishlist Styles */
.wishlist-section {
    padding: 40px 0;
}

.wishlist-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.wishlist-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.product {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    margin-bottom: 20px;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.product-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product:hover .product-img img {
    transform: scale(1.05);
}

.wishlist-item-details {
    padding: 15px 20px;
    flex-grow: 1;
}

.wishlist-item-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.wishlist-item-details p {
    color: #666;
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.duration {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.wishlist-item-actions {
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wishlist-item-actions .add-to-cart-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.wishlist-item-actions .add-to-cart-btn:hover {
    background-color: #e03e4a;
}

.wishlist-item-actions .remove-wishlist-btn {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.wishlist-item-actions .remove-wishlist-btn:hover {
    background-color: #f8f8f8;
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.empty-wishlist-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 18px;
}

.empty-wishlist-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.empty-wishlist-message a:hover {
    text-decoration: underline;
}

/* Category badges */
.wishlist-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.netflix-badge {
    background-color: rgba(229, 9, 20, 0.9);
    color: white;
}

.hotstar-badge {
    background-color: rgba(30, 83, 131, 0.9);
    color: white;
}

.prime-badge {
    background-color: rgba(0, 168, 225, 0.9);
    color: white;
}

.youtube-badge {
    background-color: rgba(255, 0, 0, 0.9);
    color: white;
}

.duration-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 2;
}

/* Discount badge */
.wishlist-discount-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--success-color);
    color: white;
    z-index: 2;
}

/* Dark mode support */
body.dark-mode .wishlist-container {
    background-color: #222;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .wishlist-item {
    background-color: #2a2a2a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .wishlist-item-details h3 {
    color: #e1e1e1;
}

body.dark-mode .wishlist-item-details p {
    color: #aaa;
}

body.dark-mode .original-price {
    color: #777;
}

body.dark-mode .wishlist-item-actions .remove-wishlist-btn {
    color: #aaa;
    border-color: #444;
}

body.dark-mode .wishlist-item-actions .remove-wishlist-btn:hover {
    background-color: #333;
    color: var(--danger-color);
    border-color: var(--danger-color);
}

body.dark-mode .empty-wishlist-message {
    color: #aaa;
}

/* Responsive design */
@media (max-width: 768px) {
    .wishlist-items-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-item-image {
        height: 160px;
    }
    
    .wishlist-item-details h3 {
        font-size: 16px;
    }
    
    .wishlist-item-details p {
        font-size: 13px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .original-price {
        font-size: 14px;
    }
}
