/* ========================================================
   assets/css/wishlist.css — Client Sanctuary & Saved Wishes
   Ultra-Smooth Hardware-Accelerated Responsive Suite
   ======================================================== */

/* --------------------------------------------------------
   1. MAIN WISHLIST ROOT & VIEWPORT SHIELD
   -------------------------------------------------------- */
.wishlist-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 4% 5rem;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Poppins', -apple-system, sans-serif;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* --------------------------------------------------------
   2. HERO BANNER & AMBIENT SILK GLOWS
   -------------------------------------------------------- */
.wishlist-banner-stage {
    width: 100%;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4.2rem 5% 3.5rem;
    box-sizing: border-box;
    background: linear-gradient(180deg, #fffafc 0%, #faedf3 60%, var(--bg-main, #fffafc) 100%);
    border: none !important;
}

.wishlist-ambient-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.42;
    pointer-events: none;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
}
.glow-left { top: -20px; left: -80px; background: #fcd5e5; }
.glow-right { bottom: -20px; right: -80px; background: #ebd5fa; }

.banner-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255, 250, 252, 0) 0%, var(--bg-main, #fffafc) 100%);
    z-index: 2;
    pointer-events: none;
}

.wishlist-banner-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
    animation: wishlistFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wishlistFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 6.5vw, 3.6rem);
    color: var(--text-dark, #2d2629);
    font-weight: 500;
    margin: 0 0 0.6rem 0;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.banner-desc {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: #7d6b75;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    margin: 0 auto;
    max-width: 540px;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .wishlist-banner-stage {
        min-height: 200px;
        padding: 3rem 4% 2.4rem;
    }
    .banner-title {
        font-size: 2.1rem;
        margin-bottom: 0.4rem;
    }
    .banner-desc {
        font-size: 0.88rem;
        line-height: 1.4;
    }
}

/* --------------------------------------------------------
   3. GUEST VAULT SYNC NOTIFICATION CARD
   -------------------------------------------------------- */
.guest-vault-sync-bar {
    background: linear-gradient(135deg, #ffffff 0%, #fff7fb 100%);
    border: 1.5px solid rgba(244, 166, 193, 0.45);
    border-radius: 20px;
    padding: 0.9rem 1.3rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    box-shadow: 0 6px 20px rgba(244, 166, 193, 0.1);
    transform: translateZ(0);
}

.vault-sync-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff0f5;
    border: 1px solid #f6b4cb;
    color: #d1648a;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vault-sync-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    text-align: left;
}
.vault-sync-copy strong { font-size: 0.84rem; color: #2d2629; font-weight: 600; }
.vault-sync-copy span { font-size: 0.74rem; color: #7d6b75; margin-top: 1px; }

.vault-sync-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-vault-link {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.42rem 0.95rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.btn-vault-link.primary {
    background: linear-gradient(90deg, #f6b4cb 0%, #dfaec5 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(246, 180, 203, 0.35);
}
.btn-vault-link.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(246, 180, 203, 0.45);
}
.btn-vault-link.secondary {
    background: #ffffff;
    color: #2d2629;
    border: 1px solid rgba(244, 166, 193, 0.45);
}
.btn-vault-link.secondary:hover {
    border-color: #f4a6c1;
    color: #d1648a;
}

@media (max-width: 768px) {
    .guest-vault-sync-bar {
        flex-direction: column;
        text-align: center;
        padding: 1.1rem 1rem;
        gap: 0.75rem;
    }
    .vault-sync-copy { text-align: center; }
    .vault-sync-actions {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------
   4. ACTION TOOLBAR & CAPSULES
   -------------------------------------------------------- */
.wishlist-action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    gap: 0.85rem;
    flex-wrap: wrap;
    transform: translateZ(0);
}

.toolbar-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.toolbar-badge {
    background: #ffffff;
    border: 1px solid rgba(244, 166, 193, 0.4);
    color: #d1648a;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(244, 166, 193, 0.1);
}

.stock-status-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.stock-status-pill.warning {
    background: #fff8eb;
    color: #b7791f;
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.shared-view-tag {
    background: #fdf2f6;
    color: var(--brand-accent, #dca3d0);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    border: 1px solid rgba(220, 163, 208, 0.3);
}

.toolbar-buttons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.btn-wishlist-action {
    background: #ffffff;
    color: var(--text-dark, #2d2629);
    border: 1px solid rgba(244, 166, 193, 0.4);
    padding: 0.48rem 0.95rem;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.btn-wishlist-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(244, 166, 193, 0.25);
}

.btn-move-all {
    background: #fffafc;
    color: #d1648a;
    border-color: rgba(244, 166, 193, 0.55);
}
.btn-move-all:hover {
    background: linear-gradient(90deg, #f6b4cb 0%, #dfaec5 100%);
    color: #ffffff;
    border-color: #f4a6c1;
}

.btn-share-wishlist:hover {
    background: #fdf5f7;
    color: var(--brand-primary, #f4a6c1);
    border-color: var(--brand-primary, #f4a6c1);
}

.btn-clear-all {
    color: #ad8f9b;
    background: transparent;
    border-color: transparent;
}
.btn-clear-all:hover {
    background: #fef0f0;
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

/* --------------------------------------------------------
   5. ULTRA-SMOOTH WISHLIST PRODUCT GRID & COMPACT CARDS
   -------------------------------------------------------- */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.85rem;
    box-sizing: border-box;
    width: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
}

.wish-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 0;
    box-sizing: border-box;
    position: relative !important;
    overflow: visible !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout paint;
    content-visibility: auto;
    contain-intrinsic-size: 280px;
    transition: opacity 0.22s ease, transform 0.22s ease;
    will-change: transform, opacity;
}

.wish-card.card-removing {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
    pointer-events: none;
}

.wish-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    border-radius: 22px;
    overflow: hidden !important;
    background: #fbf3f6;
    box-shadow: 0 6px 20px rgba(220, 163, 208, 0.12);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    margin-bottom: 0.65rem;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.wish-card:hover .wish-image-wrapper {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(244, 166, 193, 0.25);
}

.wish-card.out-of-stock-card .wish-img,
.wish-card.archived-card .wish-img {
    filter: grayscale(0.6) opacity(0.8);
}

.wish-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px !important;
    background: linear-gradient(135deg, #f6b4cb 0%, #dfaec5 100%);
    color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 8px rgba(246, 180, 203, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    z-index: 5;
    pointer-events: none;
    line-height: 1.2;
}

.wish-status-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 0.24rem 0.65rem;
    border-radius: 12px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.wish-status-badge.out-of-stock {
    background: rgba(45, 38, 41, 0.82);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.wish-status-badge.archived {
    background: rgba(197, 48, 48, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wish-link { display: block; width: 100%; height: 100%; }
.wish-link.disabled-link { cursor: default; }

.wish-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
.wish-card:not(.out-of-stock-card):not(.archived-card):hover .wish-img { 
    transform: scale(1.05) translateZ(0); 
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdf5f7 0%, #faedf3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #f4a6c1;
}

.wish-remove-btn {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: #ad8f9b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    padding: 0;
}
.wish-remove-btn svg { width: 12px; height: 12px; }
.wish-remove-btn:hover {
    background: #ffffff;
    color: #dc3545;
    transform: scale(1.1);
}

.wish-quick-action { 
    position: absolute; 
    bottom: 7px; 
    right: 7px; 
    z-index: 5; 
}

.wish-bag-btn {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 166, 193, 0.45);
    border-radius: 9999px;
    padding: 0.32rem 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #5c4953;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.wish-bag-btn svg { color: #d1648a; width: 12px; height: 12px; }
.wish-bag-btn:hover {
    background: linear-gradient(90deg, #f6b4cb 0%, #dfaec5 100%);
    border-color: #f4a6c1;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(244, 166, 193, 0.45);
}
.wish-bag-btn:hover svg { color: #ffffff; }

.wish-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0 0.1rem;
    text-align: left;
}

.wish-title-link { text-decoration: none; width: 100%; }

.wish-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--text-dark, #2d2629);
    margin: 0;
    line-height: 1.25;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wish-title-link:hover .wish-title { color: var(--brand-primary, #f4a6c1); }

.wish-meta-sub {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.wish-price {
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-dark, #2d2629);
    letter-spacing: 0.2px;
}
.wish-price.price-sale { color: #d1648a; }
.wish-price.price-original {
    color: #a89aa1;
    font-size: 0.74rem;
    font-weight: 400;
    text-decoration: line-through;
}

.stock-sublabel {
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.stock-sublabel.warning { color: #dd6b20; }
.stock-sublabel.danger { color: #e53e3e; }

/* --------------------------------------------------------
   6. EMPTY STATE SANCTUARY
   -------------------------------------------------------- */
.wishlist-empty-state {
    text-align: center;
    padding: 4.5rem 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(244, 166, 193, 0.35);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(244, 166, 193, 0.08);
    box-sizing: border-box;
    max-width: 580px;
    margin: 1.5rem auto 3rem;
}
.empty-sparkle-icon {
    font-size: 2.4rem;
    color: #f4a6c1;
    display: block;
    margin-bottom: 0.6rem;
}
.wishlist-empty-state h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2d2629;
}
.wishlist-empty-state p {
    color: #8c7b84;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto 1.4rem;
}

/* --------------------------------------------------------
   7. RESPONSIVE DESKTOP SCALE-UP (3 & 4 COLUMNS)
   -------------------------------------------------------- */
@media (min-width: 768px) {
    .wishlist-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 2.2rem 1.4rem; 
    }
    .wish-image-wrapper { border-radius: 26px; }
    .wish-title { font-size: 1.05rem; }
    .wish-price { font-size: 0.92rem; }
    .wish-bag-btn { padding: 0.36rem 0.8rem; font-size: 0.72rem; }
}

@media (min-width: 1024px) {
    .wishlist-grid { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 2.5rem 1.6rem; 
    }
}

/* --------------------------------------------------------
   8. COMPANION FOOTER CURATION
   -------------------------------------------------------- */
.wishlist-curation-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(180deg, rgba(255, 250, 252, 0) 0%, #faedf3 50%, #fffafc 100%);
    padding: 4.8rem 5% 5rem;
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 3.5rem;
}

.curation-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
}
.curation-glow.glow-left { top: -30px; left: -70px; background: #fcd5e5; }
.curation-glow.glow-right { bottom: -30px; right: -70px; background: #ebd5fa; }

.wishlist-curation-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
}

.curation-header {
    text-align: center;
    margin-bottom: 2.4rem;
    max-width: 680px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.curation-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.85rem, 3.8vw, 2.5rem);
    color: var(--text-main, #2d2629);
    font-weight: 500;
    margin: 0.2rem 0 0.5rem 0;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.curation-sublead {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.84rem, 1.6vw, 0.92rem);
    color: var(--text-light, #8c7b84);
    margin: 0 auto;
    line-height: 1.5;
}

.curation-pills-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.curation-mini-pill {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(244, 166, 193, 0.32);
    border-radius: 20px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 6px 20px rgba(220, 163, 208, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    text-align: left;
}

.curation-mini-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(244, 166, 193, 0.2);
    border-color: var(--brand-primary, #f4a6c1);
}

.curation-mini-pill.highlight-pill {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 246, 250, 0.98) 100%);
    border-color: rgba(209, 100, 138, 0.35);
}

.mini-pill-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--icon-bg, #fdf5f7);
    color: var(--brand-dark, #d1648a);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(244, 166, 193, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.curation-mini-pill:hover .mini-pill-icon {
    transform: scale(1.06);
    background: #ffffff;
}

.mini-pill-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.mini-pill-text strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--text-main, #2d2629);
    margin: 0;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.mini-pill-text span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: var(--text-light, #8c7b84);
    line-height: 1.45;
    margin: 0;
}

@media (min-width: 992px) {
    .wishlist-curation-wrapper {
        padding: 5rem 5% 4.5rem;
        margin-top: 3.8rem;
    }
    .curation-pills-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.3rem;
    }
    .curation-mini-pill {
        padding: 1.4rem 1.6rem;
        border-radius: 22px;
    }
    .mini-pill-text strong { font-size: 1.08rem; }
    .mini-pill-text span { font-size: 0.82rem; }
}

@media (max-width: 600px) {
    .wishlist-curation-wrapper {
        padding: 3.2rem 4% 2.8rem;
        margin-top: 2.2rem;
    }
    .curation-header { margin-bottom: 1.8rem; }
    .curation-mini-pill {
        padding: 1.1rem;
        gap: 0.85rem;
        border-radius: 16px;
    }
    .mini-pill-icon {
        width: 38px;
        height: 38px;
    }
    .mini-pill-text strong { font-size: 0.95rem; }
    .mini-pill-text span { font-size: 0.74rem; }
}