/* Wishlist Page - Standardized Product Card Design */

:root {
    --color-noir: #111111;
    --color-gold: #c2a16d;
    --color-gold-light: #dfcba4;
    --color-star: #ffcc00;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-premium: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.wishlist-container {
    background: 
        radial-gradient(circle at 50% -20%, #ffffff 0%, #fdfbf7 50%, #f5f2ed 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-45c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm26 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm16 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM9 56c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm73 28c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-67-14c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm58 10c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-46-40c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm33 2c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM20 70c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm60-2c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-30-20c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm17-2c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm-7-32c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM18 34c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1z' fill='%23c2a16d' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Attractive Background Orbs */
.wishlist-container::before,
.wishlist-container::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.wishlist-container::before {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 70%);
    top: -100px;
    left: -200px;
    animation: orbFloat 20s infinite alternate;
}

.wishlist-container::after {
    background: radial-gradient(circle, rgba(17, 17, 17, 0.05) 0%, rgba(17, 17, 17, 0) 70%);
    bottom: -100px;
    right: -200px;
    animation: orbFloat 25s infinite alternate-reverse;
}

@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.2); }
}

/* Hero Section */
.wishlist-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: #fff;
}

.wishlist-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-text-content {
    position: relative;
    z-index: 5;
}

.wishlist-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.wishlist-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 40px 30px;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- THE STANDARDIZED PRODUCT CARD MINI --- */
.product-card-mini {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.product-card-mini:nth-child(1) { animation-delay: 0.1s; }
.product-card-mini:nth-child(2) { animation-delay: 0.2s; }
.product-card-mini:nth-child(3) { animation-delay: 0.3s; }
.product-card-mini:nth-child(4) { animation-delay: 0.4s; }
.product-card-mini:nth-child(5) { animation-delay: 0.5s; }
.product-card-mini:nth-child(6) { animation-delay: 0.6s; }

.product-card-mini:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.12), 0 0 20px rgba(212, 175, 55, 0.1);
    transform: translateY(-10px);
}

.mini-img {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.product-card-mini:hover .mini-img img {
    transform: scale(1.1);
}

.mini-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    color: #111;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Remove Button for Wishlist */
.mini-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.2);
}

.mini-remove:hover {
    background: #ff4d4d;
    color: #fff;
    border-color: #ff4d4d;
    transform: rotate(90deg);
}

.mini-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(5px);
    color: #fff;
    transition: 0.5s;
    text-align: left;
    transform: translateY(0);
}





.mini-stars { color: var(--color-star); font-size: 10px; margin-bottom: 10px; }
.mini-collection { font-size: 10px; color: var(--color-gold-light); text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 5px; }
.mini-title { font-size: 18px; font-family: var(--font-heading); font-weight: 700; margin: 0 0 12px 0; line-height: 1.4; }
.mini-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.mini-price { font-size: 20px; font-weight: 700; }
.mini-old-price { font-size: 14px; color: rgba(255,255,255,0.4); text-decoration: line-through; }

.mini-actions {
    display: flex;
    gap: 10px;
    opacity: 1;
    transform: translateY(0);
    transition: 0.5s;
    margin-top: auto;
}


/* Hover effects for depth */
.product-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.mini-add-btn, .mini-buy-btn {
    flex: 1;
    border: none;
    padding: 12px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.mini-add-btn { 
    background: linear-gradient(135deg, #d4af37 0%, #f9f295 50%, #d4af37 100%) !important; 
    color: #000 !important; 
    border: none !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.mini-add-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}

.mini-buy-btn { 
    background: #fff !important; 
    color: #000 !important; 
    border: 1px solid #d4af37 !important;
}

.mini-buy-btn:hover {
    background: #d4af37 !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.05);
}



/* Mobile Responsive Optimization */
@media (max-width: 768px) {
    .wishlist-hero { height: 250px; }
    .wishlist-hero h1 { font-size: 1.8rem; letter-spacing: 1px; }
    .wishlist-hero p { font-size: 0.9rem; padding: 0 20px; }

    .wishlist-section {
        padding: 30px 0; /* Vertical padding only */
    }

    .wishlist-section .container {
        padding: 0 10px !important; /* Forces exact 10px side margin for cards */
        max-width: 100% !important;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Mobile */
        gap: 15px 10px; /* 10px gap between cards matches side margin */
    }

    .product-card-mini { 
        height: 320px; /* Scaled down for mobile */
        border-radius: 15px; 
    }

    .mini-img { height: 100%; }

    .mini-badge {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 8px;
    }

    .mini-remove {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .mini-info { 
        padding: 20px 12px 12px; 
        transform: translateY(0); /* Always visible on mobile */
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    }

    .mini-stars { font-size: 8px; margin-bottom: 5px; }
    .mini-collection { font-size: 8px; letter-spacing: 1px; }
    .mini-title { font-size: 14px !important; margin-bottom: 8px; }
    .mini-price-row { gap: 8px; margin-bottom: 12px; }
    .mini-price { font-size: 15px; }
    .mini-old-price { font-size: 10px; }

    .mini-actions { 
        opacity: 1; 
        transform: translateY(0); 
        gap: 5px;
    }

    .mini-add-btn, .mini-buy-btn {
        padding: 10px 4px;
        font-size: 8px;
        border-radius: 4px;
    }

}

/* Extra Small Devices */
@media (max-width: 380px) {
    .wishlist-grid {
        grid-template-columns: 1fr; /* Single column for very small phones */
    }
    .product-card-mini { height: 380px; }
}

/* Empty Wishlist State */
.empty-wishlist {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    border: 1px dashed var(--color-gold);
    margin: 40px 0;
}

.empty-wishlist h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-noir);
    margin-bottom: 15px;
}

.empty-wishlist p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.empty-wishlist .btn-shop {
    padding: 15px 40px;
    background: var(--color-gold);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.4s;
    box-shadow: 0 10px 20px rgba(194, 161, 109, 0.3);
}

.empty-wishlist .btn-shop:hover {
    background: var(--color-noir);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
