/* =========================================
   VELOURA WISHLIST PAGE STYLES (DARK LUXURY MODE)
   ========================================= */

/* Main Container & Spacing Fix */
.wishlist-container {
    max-width: 1200px;
    /* FIX 1: Spacing kam ki gayi hai. Offer bar ke hisab se adjust karein */
    margin: 0px auto 60px; 
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Header Section (Dark Theme Text) */
.wishlist-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff; /* White text */
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.subtitle {
    color: #aaaaaa; /* Light Gray text */
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Grid Layout */
.wishlist-grid {
    display: grid;
    /* Cards ki chodayi thodi badhayi hai taaki image 2 jaisa bhara hua lage */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* FIX 2: Product Card - Dark Theme like Image 2 */
.product-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Keep text color white */
    cursor: pointer;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(185, 28, 28, 0.5); /* Stronger border on hover */
    background: rgba(255,255,255,0.04);
}

/* Image Area */
.card-image {
    position: relative;
    aspect-ratio: 1/1; /* Height maintain karega */
    overflow: hidden;
    background: #000; /* Dark background behind image */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* FIX 3: Remove Icon styled for dark theme */
.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: rgba(255,255,255,0.3);

    opacity: 0;
    pointer-events: none;

    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wishlist-card:hover .remove-btn {
    opacity: 1;
    pointer-events: auto;
}


.remove-btn:hover {
    background: rgba(0, 0, 0, 0.850); /* Red on hover */
    color: #fff;
}

/* Overlay Actions */
.overlay-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.wishlist-card:hover .overlay-actions {
    opacity: 1;
    transform: translateY(0);
}

/* FIX 4: Red "ADD TO CART" Button */
.btn-quick-add.btn-red-cart {
    background: #991b1b; /* Image 3 wala Red color */
    color: #fff;
    flex: 1;
    height: 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    border: none;
    transition: background 0.2s, transform 0.2s;
    
}

.btn-quick-add.btn-red-cart:hover {
    transform: translateY(-2px); 
    background-color: rgba(185, 28, 28, 0.986);
}
.btn-quick-add.btn-red-cart:active {
     transform: scale(0.98);
}


/* Text Details (Dark Theme) */
.card-details {
    padding: 20px 15px;
    text-align: center;
    
}

.product-brand {
    font-size: 0.75rem;
    color: #aaaaaa; /* Light gray */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.product-name a {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #ffffff; /* White text */
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
    line-height: 1.3;
}
.product-price {
    font-weight: 600;
    color: #e0e0e0; /* Off-white price */
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Empty State Styling (Dark Theme) */
.empty-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: #fff;
}

.empty-icon {
    font-size: 4rem;
    color: #555; /* Darker icon */
    margin-bottom: 20px;
}

.btn-veloura.btn-gold {
    margin-top: 30px;
    padding: 15px 40px;
    background: #991b1b; /* Image 3 wala Red color */
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50px;
    font-weight: 600;
    
}

.btn-veloura.btn-gold:hover {
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.5);
}

/* =========================================
   MOBILE RESPONSIVENESS (MAGIC CODE)
   ========================================= */
@media screen and (max-width: 768px) {
    
    .wishlist-container {
        padding: 0 20px; /* Side padding kam ki */
    }
    .wishlist-header{
        margin-top: 0 !important;
    }
    .page-title {
        font-size: 2rem; /* Title size chota kiya */
        margin-top: 0px;
    }

    /* 1. GRID SYSTEM CHANGE (2 Cards per row) */
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; /* Gap kam kiya taaki cards chipke na rahein */
    }

    /* 2. BUTTON ALWAYS VISIBLE */
    /* Mobile par hover nahi hota, isliye button hamesha dikhna chahiye */
    .overlay-actions {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 10px;
        /* Image ke neeche gradient taaki text padha jaye */
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    }

    .btn-quick-add.btn-red-cart {
        height: 30px; /* Button thoda chota */
        font-size: 0.7rem; /* Font chota */
        letter-spacing: 0.5px;
    }

    /* 3. CARD DETAILS COMPACT */
    .card-details {
        padding: 10px 5px;
    }

    .product-name a {
        font-size: 0.95rem; /* Name size adjustment */
    }

    .product-price {
        font-size: 0.9rem;
    }

    /* Remove button easy to tap */
    .remove-btn {
        
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .product-card{
        position: relative;
    }
}
/* ============================= */
/* GIFTSET WISHLIST FIX */
/* ============================= */

.wishlist-card[data-item-type="giftset"] .btn-red-cart {
    display: none;
}

.wishlist-card[data-item-type="giftset"] .btn-buy-now {
    display: block;
}
.wishlist-card {
    position: relative;
}
/* ============================= */
/* MOBILE: REMOVE BUTTON ALWAYS VISIBLE */
/* ============================= */
@media (hover: none) {

    .wishlist-card .remove-btn {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}
