﻿/* ============================================
   WISHLIST PAGE CSS - USING THEME VARIABLES
   ALL STYLES PRESERVED - NOTHING REMOVED
   ============================================ */

/* Wishlist Layout */
.wishlist-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wishlist-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--wishlist-item-bg, var(--web-bg-main, #fff));
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px var(--wishlist-item-shadow, var(--web-shadow-md, rgba(0, 0, 0, 0.1)));
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.wishlist-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove {
    cursor: pointer;
}

.wishlist-item-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.wishlist-item-image img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
}

.wishlist-item-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    text-align: right;
    padding-right: 20px;
}

.price {
    font-size: 16px;
    font-weight: bold;
    color: var(--web-text-dark, #282828);
}

.instock {
    font-size: 14px;
    color: var(--wishlist-instock, var(--web-success, green));
}

.btn--primary.style2 {
    position: relative;
    display: inline-block;
    background: var(--web-primary, var(--web-primary));
    color: var(--web-text-inverse, white);
    font-size: 12px;
    line-height: 40px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0px 17px;
    border-radius: 5px;
    margin-top: 10px;
    border: 0px;
    overflow: hidden;
    font-family: var(--theme-font-primary);
    z-index: 1;
}

    .btn--primary.style2::before {
        background: #dfd5dc;
        color: var(--web-primary, var(--web-primary));
    }

    .btn--primary.style2:hover {
        background: #dfd5dc;
        color: var(--web-primary, var(--web-primary));
    }

/* Empty Wishlist Styles */
.empty-wishlist-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.empty-wishlist-wrapper {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 3rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wishlist-visual {
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.wishlist-icon {
    width: 160px;
    height: 160px;
    transition: transform 0.4s ease;
}

.empty-wishlist-wrapper:hover .wishlist-icon {
    transform: rotate(5deg) scale(1.1);
}

.wishlist-title {
    font-size: 2.7rem;
    font-weight: 800;
    background: var(--wishlist-empty-gradient, linear-gradient(90deg, var(--web-primary-light, #982464), #ffe66d));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.wishlist-subtitle {
    font-size: 1.2rem;
    color: var(--web-text-dark, #2d3436);
    line-height: 1.5;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.6s forwards;
}

.cartbtn {
    padding: 0.9rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 5px 15px var(--web-shadow-md, rgba(0, 0, 0, 0.2));
}

.btn-primary {
    background: var(--web-primary-light, #982464);
    color: var(--web-text-inverse, white);
    border: none;
}

    .btn-primary:hover {
        background: var(--web-primary-light, #982464);
        transform: var(--btn-hover-translate, translateY(-3px)) var(--btn-hover-scale, scale(1.05));
        box-shadow: var(--btn-hover-shadow-offset, 0 8px 20px) var(--wishlist-primary-btn-shadow, rgba(255, 107, 107, 0.4));
    }

.btn-secondary {
    background: var(--wishlist-secondary-btn-bg, #ffe66d);
    color: var(--web-text-dark, #2d3436);
    border: none;
}

    .btn-secondary:hover {
        background: var(--wishlist-secondary-btn-hover, #ffef99);
        transform: var(--btn-hover-translate, translateY(-3px)) var(--btn-hover-scale, scale(1.05));
        box-shadow: var(--btn-hover-shadow-offset, 0 8px 20px) var(--wishlist-secondary-btn-shadow, rgba(255, 230, 109, 0.4));
    }

.arrow {
    width: 22px;
    height: 22px;
}

/* Fixed header container */
.wishlist-header {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: var(--wishlist-header-bg, var(--web-bg-footer, #eeeaed));
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--wishlist-header-border, var(--web-bg-footer, #eeeaed));
    z-index: var(--zindex-sticky, 999);
}

/* Left section */
.wishlist-left h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--web-text-dark, #282828);
}

.wishlist-left h6 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--web-text-dark, #282828);
}

.breadcrumb {
    margin: 3px 0 0;
    font-size: 14px;
    color: var(--wishlist-breadcrumb-color, var(--web-text-muted, #777));
}

/* Right buttons */
.wishlist-right {
    display: flex;
    gap: 10px;
    margin-right: 3%;
}

/* Outlined button */
.btn-outline {
    border: 1px solid var(--wishlist-btn-outline-border, var(--web-secondary, var( --web-secondary)));
    background: var(--wishlist-btn-outline-bg, var(--store-btn-primary-lg, #8DA5B5));
}

    .btn-outline:hover {
        border: 1px solid var(--wishlist-btn-outline-border, var(--web-secondary, var( --web-secondary)));
        background: var(--wishlist-btn-outline-bg, var(--store-btn-primary-lg, #8DA5B5));
    }

.btn:focus {
    color: var(--web-text-inverse, #fff);
    background-color: var(--web-primary-light, #982464) !important;
    border-color: none !important;
    outline: 0;
    box-shadow: none !important;
}

.btn-custom-primary,
.btn-custom-primary:hover {
    background: var(--web-primary-light, #982464);
    color: var(--web-text-inverse, white);
    border: none;
}

    .btn-custom-primary:hover,
    .btn-primary:hover {
        background: var(--web-primary-light, #982464);
        transform: var(--btn-hover-translate, translateY(-3px)) var(--btn-hover-scale, scale(1.05));
        box-shadow: none;
        border: none;
    }


/* Loading overlay */
.item-removing-overlay {
    position: absolute;
    inset: 0;
    background: var(--item-removing-overlay-bg, rgba(255,255,255,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--zindex-overlay, 10);
}

.loading-dots span {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: var(--loading-dot-bg, var(--web-accent, #b89778));
    border-radius: 50%;
    display: inline-block;
    animation: bounce var(--animation-bounce-duration, 1.4s) infinite ease-in-out both;
}

    .loading-dots span:nth-child(1) {
        animation-delay: -0.32s;
    }

    .loading-dots span:nth-child(2) {
        animation-delay: -0.16s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 1025px) {
    .wishlist-header {
        position: fixed;
        top: 63px;
        left: 0;
        width: 100%;
        background: var(--wishlist-header-bg, var(--web-bg-footer, #eeeaed));
        padding: 25px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--wishlist-header-border, var(--web-bg-footer, #eeeaed));
        z-index: var(--zindex-sticky, 999);
    }

    body {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    .empty-wishlist-wrapper {
        padding: 2rem;
    }

    .wishlist-title {
        font-size: 2.2rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .wishlist-visual {
        width: 140px;
        height: 140px;
    }

    .wishlist-icon {
        width: 120px;
        height: 120px;
    }

    .wishlist-header {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: var(--wishlist-header-bg, var(--web-bg-footer, #eeeaed));
        padding: 25px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--wishlist-header-border, var(--web-bg-footer, #eeeaed));
        z-index: var(--zindex-sticky, 999);
    }
}

/* Utility classes */
.text-web {
    color: var(--web-primary, var(--web-primary));
}

.text-web2 {
    color: var(--web-secondary-light, #556873);
}

.bg-web {
    background-color: var(--web-primary, var(--web-primary));
}

.font-12 {
    font-size: 12px;
}

.font-20 {
    font-size: 20px;
}

.min-vh-90 {
    min-height: 90vh;
}

.z-3 {
    z-index: 3;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem var(--web-shadow-md, rgba(0, 0, 0, 0.15)) !important;
}
