/**
 * First King - Profile Wishlist Styling (Brands & Artists)
 */

/* 1. Wishlist Buttons */
.fk-wishlist-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Heart Icon & Animation */
.fk-wishlist-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fk-heart-svg {
    display: block;
    transition: all 0.25s ease;
}

.fk-wishlist-toggle-btn:hover .fk-wishlist-icon {
    transform: scale(1.15);
}

.fk-wishlist-toggle-btn.is-active .fk-heart-svg {
    fill: #e11d48;
    stroke: #e11d48;
}

.fk-wishlist-toggle-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Pill Style (Single Hero & Detailed Sections) */
.fk-wishlist-btn--pill {
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.fk-wishlist-btn--pill:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.fk-wishlist-btn--pill.is-active {
    background: rgba(225, 29, 72, 0.15);
    border-color: rgba(225, 29, 72, 0.6);
    color: #ffffff;
}

.fk-wishlist-btn--pill.is-active:hover {
    background: rgba(225, 29, 72, 0.25);
    border-color: #e11d48;
}

/* In Hero Banner Header positioning */
.hero-banner__wishlist-pill {
    margin-top: 14px;
    display: inline-block;
}

/* Icon / Card Style (Compact for directory cards) */
.fk-wishlist-btn--icon,
.fkc-brand-card-wrap .fk-wishlist-btn--icon,
.artist-main-card .fk-wishlist-btn--icon,
.fk-artist-directory-page .artist-main-card .fk-wishlist-toggle-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
    color: #1e293b !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    margin: 0 !important;
}

.fk-wishlist-btn--icon:hover,
.fkc-brand-card-wrap .fk-wishlist-btn--icon:hover,
.artist-main-card .fk-wishlist-btn--icon:hover,
.fk-artist-directory-page .artist-main-card .fk-wishlist-toggle-btn:hover {
    transform: scale(1.12) !important;
    background: #ffffff !important;
    color: #e11d48 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24) !important;
}

.fk-wishlist-btn--icon.is-active,
.fkc-brand-card-wrap .fk-wishlist-btn--icon.is-active,
.artist-main-card .fk-wishlist-btn--icon.is-active,
.fk-artist-directory-page .artist-main-card .fk-wishlist-toggle-btn.is-active {
    background: #ffffff !important;
    color: #e11d48 !important;
    border-color: rgba(225, 29, 72, 0.35) !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25) !important;
}

.fk-wishlist-btn--icon .fk-heart-svg,
.artist-main-card .fk-wishlist-btn--icon .fk-heart-svg,
.fk-artist-directory-page .artist-main-card .fk-wishlist-toggle-btn .fk-heart-svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    transition: all 0.2s ease !important;
}

.fk-wishlist-btn--icon.is-active .fk-heart-svg,
.artist-main-card .fk-wishlist-btn--icon.is-active .fk-heart-svg,
.fk-artist-directory-page .artist-main-card .fk-wishlist-toggle-btn.is-active .fk-heart-svg {
    fill: #e11d48 !important;
    stroke: #e11d48 !important;
}

/* In Brand Directory Grid Card */
.fkc-brand-card-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fkc-brand-card-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Product Cards Wishlist Button (Brand Products & Artist Products) - Clean Minimalist Style */
.fk-brand-page .product-wishlist-btn,
.fk-artist-page .product-wishlist-btn,
.product-wishlist-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #8c8c8c !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
    outline: none !important;
    margin: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.fk-brand-page .product-wishlist-btn:hover,
.fk-artist-page .product-wishlist-btn:hover,
.product-wishlist-btn:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #e11d48 !important;
    transform: scale(1.18) !important;
}

.fk-brand-page .product-wishlist-btn.is-active,
.fk-artist-page .product-wishlist-btn.is-active,
.product-wishlist-btn.is-active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #e11d48 !important;
}

.fk-brand-page .product-wishlist-btn .fk-heart-svg,
.fk-artist-page .product-wishlist-btn .fk-heart-svg,
.product-wishlist-btn .fk-heart-svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    transition: all 0.2s ease !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15)) !important;
}

.fk-brand-page .product-wishlist-btn:hover .fk-heart-svg,
.fk-artist-page .product-wishlist-btn:hover .fk-heart-svg,
.product-wishlist-btn:hover .fk-heart-svg {
    stroke: #e11d48 !important;
}

.fk-brand-page .product-wishlist-btn.is-active .fk-heart-svg,
.fk-artist-page .product-wishlist-btn.is-active .fk-heart-svg,
.product-wishlist-btn.is-active .fk-heart-svg {
    fill: #e11d48 !important;
    stroke: #e11d48 !important;
}

.product-wishlist-btn.is-loading {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

/* In Artist Directory Grid Card */
.artist-main-card .fk-wishlist-btn--icon {
    top: 12px;
    right: 12px;
}

/* The theme's per-list share URLs are not our token-protected share links. */
.fk-wishlist-tabs-wrapper .wd-wishlist-head .social-share {
    display: none !important;
}

/* 2. Wishlist Page Tabs */
.fk-wishlist-tabs-wrapper {
    margin: 20px 0 50px 0;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: inherit;
    clear: both !important;
}

.fk-wishlist-nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.fk-wishlist-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: 40px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    text-decoration: none;
}

.fk-wishlist-tab-btn .fk-tab-icon {
    display: inline-flex;
    align-items: center;
}

.fk-wishlist-tab-btn .fk-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.fk-wishlist-tab-btn:hover {
    border-color: #0f172a;
    color: #0f172a;
    transform: translateY(-1px);
}

.fk-wishlist-tab-btn.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.fk-wishlist-tab-btn.is-active .fk-tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Panes */
.fk-wishlist-tab-pane:not(.is-active) {
    display: none;
}

.fk-wishlist-tab-pane {
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    animation: fk-pane-fade 0.25s ease-in-out;
}

@keyframes fk-pane-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Saved Profile Cards Grid (matched to Brands / Artists directory pages) */
.fk-profiles-wishlist-grid {
    display: grid !important;
    /* The grid sits beside the My Account sidebar, so it is sized by its own
       column rather than the viewport: cards keep at least 220px instead of
       being squeezed by a fixed column count. */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 25px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
}

@media (max-width: 720px) {
    .fk-profiles-wishlist-grid {
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .fk-profiles-wishlist-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Shared: circular heart (remove) button — same styling as the directory wishlist icon */
.fkwl-heart-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
    color: #1e293b !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    margin: 0 !important;
}

.fkwl-heart-btn:hover {
    transform: scale(1.12) !important;
    background: #ffffff !important;
    color: #e11d48 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24) !important;
}

.fkwl-heart-btn .fk-heart-svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    transition: all 0.2s ease !important;
}

.fkwl-heart-btn:hover .fk-heart-svg,
.fkwl-heart-btn.is-active .fk-heart-svg {
    fill: #e11d48 !important;
    stroke: #e11d48 !important;
}

/* Shared: letter placeholder when a profile has no image */
.fkwl-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 56px;
    color: #6f5b4c;
    background: linear-gradient(135deg, #f7f5f0 0%, #e9e1d5 100%);
}

/* Brands: cover image (3/4, rounded) + centered logo below — matches the Brands Directory */
.fkwl-brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.fkwl-brand-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f0ea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fkwl-brand-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.fkwl-brand-card:hover .fkwl-brand-cover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.fkwl-brand-card:hover .fkwl-brand-cover img {
    transform: scale(1.04);
}

.fkwl-brand-logo {
    margin-top: 18px;
    width: 100%;
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fkwl-brand-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.fkwl-brand-logo a:hover {
    opacity: 0.8;
}

.fkwl-brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 38px;
    object-fit: contain;
}

.fkwl-brand-logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Artists: full-bleed portrait with gradient overlay — matches the Artists Directory */
.fkwl-artist-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 3 / 4;
    background: #f7f7f5;
}

.fkwl-artist-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    text-decoration: none;
    color: inherit;
    text-indent: 0;
}

.fkwl-artist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.fkwl-artist-card:hover .fkwl-artist-img {
    transform: scale(1.06);
}

.fkwl-artist-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.18) 50%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.fkwl-artist-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 0 18px 26px;
    text-align: center;
}

.fkwl-artist-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.fkwl-artist-role {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 0 0;
}

/* 4. Empty State */
.fk-wishlist-empty-state {
    text-align: center !important;
    padding: 50px 24px !important;
    background: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 14px !important;
    margin: 30px auto !important;
    max-width: 680px !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.fk-empty-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fk-wishlist-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.fk-wishlist-empty-state p {
    color: #64748b;
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

/* Empty-state action buttons (e.g. Fashion Brands / Beauty Brands) */
.fk-wishlist-empty-state .fk-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Toast Message */
.fk-wishlist-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999999;
    font-size: 13.5px;
    font-weight: 500;
    animation: fk-toast-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fk-toast-pop {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
