/* =========================================================
   WISHLIST & GALLERY LIGHTBOX STYLES
   Arun Mehndi Art & Classes
   ========================================================= */

/* ---------------------------------------------------------
   1. Header Wishlist Icon & Badge
   --------------------------------------------------------- */
.header-wishlist-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mehndi-green);
    font-size: 1.25rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: var(--transition-fast);
    line-height: 1;
    text-decoration: none;
}
.header-wishlist-btn:hover {
    color: var(--color-gold);
    transform: translateY(-2px);
}
.header-wishlist-btn.has-items {
    color: var(--color-maroon);
}
.wishlist-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    background: var(--color-maroon);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-body);
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid var(--color-ivory);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1;
}
.wishlist-badge.pulse {
    transform: scale(1.35);
}
.header-wishlist-mobile {
    display: none;
}
@media (max-width: 1024px) {
    .header-wishlist-mobile {
        display: inline-flex;
        margin-right: 0;
    }
}

/* ---------------------------------------------------------
   2. Wishlist Heart Buttons (Cards & Gallery)
   --------------------------------------------------------- */
.wishlist-heart-btn {
    position: absolute;
    z-index: 15;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1.5px solid rgba(200, 169, 126, 0.45);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
    color: #4A3B32;
    outline: none;
}
.wishlist-heart-btn:hover {
    transform: scale(1.12);
    background: #FFFFFF;
    border-color: var(--color-gold);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.wishlist-heart-btn i {
    font-size: 1.15rem;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
    color: #5C162E;
}
.wishlist-heart-btn.is-saved {
    background: #FFFDF9;
    border-color: rgba(192, 30, 66, 0.5);
    box-shadow: 0 4px 12px rgba(192, 30, 66, 0.2);
}
.wishlist-heart-btn.is-saved i {
    color: #C01E42;
    font-weight: 900;
}
.wishlist-heart-btn.pop i {
    animation: heartPopAnim 0.35s ease;
}
@keyframes heartPopAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Specific Placements */
.wishlist-heart-btn.top-left {
    top: 12px;
    left: 12px;
}
.wishlist-heart-btn.top-right {
    top: 12px;
    right: 12px;
}

/* ---------------------------------------------------------
   3. Wishlist Slide-Over Drawer
   --------------------------------------------------------- */
.wishlist-drawer-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wishlist-drawer-wrapper.is-open {
    visibility: visible;
    opacity: 1;
}
.wishlist-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 22, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.wishlist-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: linear-gradient(175deg, #FFFFFF 0%, #FAF6EE 100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    border-left: 1px solid rgba(200, 169, 126, 0.4);
}
.wishlist-drawer-wrapper.is-open .wishlist-drawer {
    transform: translateX(0);
}
.wishlist-drawer-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(200, 169, 126, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
}
.wishlist-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wishlist-drawer-title i {
    font-size: 1.35rem;
    color: var(--color-maroon);
}
.wishlist-drawer-title h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-mehndi-green);
    font-weight: 600;
}
.wishlist-count-badge {
    background: rgba(200, 169, 126, 0.22);
    color: var(--color-maroon);
    border: 1px solid rgba(200, 169, 126, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 12px;
}
.wishlist-drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0 4px;
}
.wishlist-drawer-close:hover {
    color: var(--color-maroon);
    transform: scale(1.15);
}

/* Drawer Body */
.wishlist-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
}

/* Empty State */
.wishlist-empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.wishlist-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFFFFF, #F3ECE0);
    border: 1.5px solid rgba(200, 169, 126, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 18px rgba(200, 169, 126, 0.15);
}
.wishlist-empty-icon i {
    font-size: 2.2rem;
    color: var(--color-gold);
}
.wishlist-empty-state h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-mehndi-green);
    margin-bottom: 0.6rem;
}
.wishlist-empty-state p {
    color: #6A5B52;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* Wishlist Item Card */
.wishlist-card {
    display: flex;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid rgba(200, 169, 126, 0.35);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(26, 60, 52, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.wishlist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(26, 60, 52, 0.08);
    border-color: rgba(200, 169, 126, 0.6);
}
.wishlist-card-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(200, 169, 126, 0.3);
    flex-shrink: 0;
}
.wishlist-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.wishlist-card-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(26, 60, 52, 0.08);
    color: var(--color-mehndi-green);
    margin-bottom: 4px;
}
.wishlist-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-mehndi-green);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wishlist-card-desc {
    font-size: 0.8rem;
    color: #777;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wishlist-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.wishlist-view-link {
    font-size: 0.82rem;
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.wishlist-view-link:hover {
    color: var(--color-maroon);
}
.wishlist-item-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
}
.wishlist-item-remove:hover {
    color: #C01E42;
}

/* Drawer Footer */
.wishlist-drawer-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid rgba(200, 169, 126, 0.35);
    background: #FFFFFF;
    display: flex;
    gap: 10px;
}
.wishlist-drawer-footer .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* ---------------------------------------------------------
   4. Fullscreen Gallery Lightbox Viewer
   --------------------------------------------------------- */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 23, 20, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}
.lightbox-dialog {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem 4.5rem;
    box-sizing: border-box;
    pointer-events: none;
}
.lightbox-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    pointer-events: auto;
}
.lightbox-media-container {
    position: relative;
    display: inline-block;
    max-width: 82vw;
    max-height: 75vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(200, 169, 126, 0.15);
    background: #000000;
    border: 1px solid rgba(200, 169, 126, 0.4);
}
.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.lightbox-media-container .lightbox-wishlist-heart {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.lightbox-media-container .lightbox-wishlist-heart i {
    font-size: 1.3rem;
}

/* Lightbox Caption */
.lightbox-caption {
    width: 100%;
    max-width: 82vw;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-ivory);
    padding: 8px 4px;
}
.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin: 0 0 2px;
}
.lightbox-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}
.lightbox-counter {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(200, 169, 126, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--color-gold);
}

/* Navigation Buttons */
.lightbox-btn {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(200, 169, 126, 0.5);
    color: var(--color-ivory);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
    outline: none;
}
.lightbox-btn:hover {
    background: var(--color-gold);
    color: #1A3C34;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(200, 169, 126, 0.4);
}
.lightbox-btn i {
    font-size: 1.3rem;
    line-height: 1;
}
.lightbox-prev {
    left: 1.5rem;
}
.lightbox-next {
    right: 1.5rem;
}
.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.2rem;
    line-height: 1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .lightbox-dialog {
        padding: 1rem;
    }
    .lightbox-prev {
        left: 0.5rem;
        width: 40px;
        height: 40px;
    }
    .lightbox-next {
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 38px;
        height: 38px;
        font-size: 1.8rem;
    }
    .lightbox-media-container {
        max-width: 92vw;
        max-height: 65vh;
    }
    .lightbox-img {
        max-height: 65vh;
    }
    .lightbox-caption {
        max-width: 92vw;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .lightbox-counter {
        align-self: flex-start;
    }
}

/* ---------------------------------------------------------
   5. Toast Notifications
   --------------------------------------------------------- */
.wishlist-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: rgba(26, 60, 52, 0.95);
    color: var(--color-ivory);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-gold);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.wishlist-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.wishlist-toast i {
    color: #FF5A76;
    font-size: 1.05rem;
}
