/* Wishlist Card Styles to match the design */
.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;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    color: white;
}

.netflix-theme .product-badge {
    background-color: #e50914;
}

.hotstar-theme .product-badge {
    background-color: #1e5383;
}

.prime-theme .product-badge {
    background-color: #00a8e1;
}

.youtube-theme .product-badge {
    background-color: #ff0000;
}

.spotify-theme .product-badge {
    background-color: #1DB954;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.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);
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.product-info p {
    margin: 0 0 10px;
    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: auto;
}

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

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

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

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

/* Dark mode support */
body.dark-mode .product {
    background-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .product-info h3 {
    color: #e0e0e0;
}

body.dark-mode .product-info p,
body.dark-mode .duration {
    color: #aaa;
}

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

body.dark-mode .remove-wishlist-btn:hover {
    background-color: #2a2a2a;
}

/* Responsive design */
@media (max-width: 992px) {
    .wishlist-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wishlist-items-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* Empty wishlist styling */
.empty-wishlist {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-wishlist i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-wishlist h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.empty-wishlist p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.empty-wishlist .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.empty-wishlist .btn:hover {
    background-color: #e03e4a;
}

body.dark-mode .empty-wishlist {
    background-color: #1e1e1e;
}

body.dark-mode .empty-wishlist h3 {
    color: #e0e0e0;
}

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