.fanclub-profile-wrapper {
    position: relative;
    margin-top: -50px;
    margin-bottom: 50px;
}

.fanclub-profile-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.fanclub-image-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fanclub-logo-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.fanclub-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fanclub-profile-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fanclub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.fanclub-header h2 {
    margin-bottom: 0;
    margin-right: 15px;
}

.fanclub-official-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.fanclub-official-badge i {
    margin-right: 5px;
}

.fanclub-description {
    margin-bottom: 25px;
    color: var(--secondary);
}

.fanclub-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    color: var(--secondary-2);
}

.stat-item i {
    margin-right: 8px;
    font-size: 18px;
}

.fanclub-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
}

.fanclub-social {
    text-align: right;
}

.fanclub-social h6 {
    margin-bottom: 10px;
    color: var(--secondary-2);
}

.social-icons ul {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.social-icons li a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icons li a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.membership-info-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}


.membership-features {
    margin: 15px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-item i {
    margin-right: 12px;
    font-size: 18px;
}

.feature-item span {
    font-weight: 500;
}

/* 이미 가입된 회원을 위한 스타일 */
.membership-status-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.member-welcome-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.member-actions .tf-btn {
    min-width: 180px;
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.member-actions .tf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
    .fanclub-image-container {
        padding: 20px;
    }
    
    .fanclub-logo-wrapper {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }
    
    .fanclub-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fanclub-header h2 {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .fanclub-official-badge {
        margin-bottom: 15px;
    }
}

/* News Section 이미지 스타일 */
.wg-blog .image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.wg-blog .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.wg-blog:hover .image img {
    transform: scale(1.05);
}

.membership-status-card .txt-size {
    font-size: 1.85rem;
}

.tf-btn.btn-withdrawal {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.tf-btn.btn-withdrawal:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================================================
   팬클럽 숍 전용 스타일
   ========================================================= */

/* 방향 1: 숍 히어로 배너 */
.fc-shop-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-shop-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.72);
    transition: transform 6s ease;
}

.fc-shop-hero:hover .fc-shop-hero-bg {
    transform: scale(1.03);
}

.fc-shop-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.fc-shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 30px;
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
}

.fc-shop-hero-name {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* 방향 3: 사이드바 팬클럽 정보 카드 */
.fc-sidebar-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.fc-sidebar-card-header {
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-sidebar-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.5);
    background-color: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-sidebar-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-sidebar-card-info {
    flex: 1;
    min-width: 0;
}

.fc-sidebar-card-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 2px;
}

.fc-sidebar-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-sidebar-card-footer {
    background-color: #fff;
    padding: 12px 16px;
}

.fc-sidebar-card-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-2);
    transition: color 0.2s ease;
}

.fc-sidebar-card-back:hover {
    color: var(--main);
}

.fc-sidebar-card-back i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.fc-sidebar-card-back:hover i {
    transform: translateX(-3px);
}

/* 반응형 대응 */
@media (max-width: 1200px) {
    .wg-blog .image {
        height: 220px;
    }
}

@media (max-width: 991px) {
    .wg-blog .image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .fc-shop-hero {
        height: 240px;
    }

    .fc-shop-hero-name {
        font-size: 1.4rem;
    }

    .wg-blog .image {
        height: 180px;
    }
    
    .fanclub-profile-wrapper {
        margin-top: -30px;
    }
    
    .fanclub-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .fanclub-social {
        text-align: left;
    }
    
    .social-icons ul {
        justify-content: flex-start;
    }
    
    .member-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .member-actions .tf-btn {
        width: 100%;
        min-width: auto;
    }

    .membership-status-card .txt-size {
        font-size: 1.15rem;
    }
}

/* =========================================================
   팬클럽 숍 전용 레이아웃 (Direction A)
   ========================================================= */

/* 헤더 */
.fc-shop-layout-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* ── 투명 헤더 모드 ─────────────────────────────── */
.fc-transparent-header-page .fc-shop-layout-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

/* 투명 모드: 아이콘·텍스트 흰색으로 */
.fc-transparent-header-page .fc-shop-layout-header:not(.fc-header-scrolled) .fc-shop-header-icon {
    color: #fff;
}
.fc-transparent-header-page .fc-shop-layout-header:not(.fc-header-scrolled) .fc-shop-header-icon:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
}
.fc-transparent-header-page .fc-shop-layout-header:not(.fc-header-scrolled) .fc-shop-header-back {
    color: #fff;
}
.fc-transparent-header-page .fc-shop-layout-header:not(.fc-header-scrolled) .fc-shop-header-brand-label {
    color: rgba(255,255,255,0.75);
}
.fc-transparent-header-page .fc-shop-layout-header:not(.fc-header-scrolled) .fc-shop-header-brand-name {
    color: #fff;
}
.fc-transparent-header-page .fc-shop-layout-header:not(.fc-header-scrolled) .nav-lang-icon,
.fc-transparent-header-page .fc-shop-layout-header:not(.fc-header-scrolled) .nav-lang-link {
    color: rgba(255,255,255,0.85);
}

/* 스크롤 후: 완전 불투명 흰색으로 전환 */
.fc-transparent-header-page .fc-shop-layout-header.fc-header-scrolled {
    background-color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 히어로 상단 그라데이션 오버레이 (아이콘 가독성 확보) */
.fc-transparent-header-page .fc-shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent);
    z-index: 1;
}

/* 히어로 섹션 높이 확장 (헤더 64px 가려진 만큼 보정) */
.fc-transparent-header-page .fc-shop-hero {
    height: 484px; /* 420 + 64 */
}
.fc-shop-hero-compact {
    height: 200px;
}
.fc-transparent-header-page .fc-shop-hero-compact {
    height: 264px; /* 200 + 64 */
}

/* 모바일: 헤더 56px 기준으로 보정 */
@media (max-width: 767px) {
    .fc-transparent-header-page .fc-shop-hero {
        height: 296px; /* 240 + 56 */
    }
    .fc-transparent-header-page .fc-shop-hero-compact {
        height: 256px; /* 200 + 56 */
    }
}

.fc-shop-layout-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 64px;
    max-width: 1320px;
    margin: 0 auto;
}

.fc-shop-header-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-2);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.fc-shop-header-back:hover {
    color: var(--main);
}

.fc-shop-header-back i {
    font-size: 16px;
    transition: transform 0.2s;
}

.fc-shop-header-back:hover i {
    transform: translateX(-3px);
}

.fc-shop-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--main);
    flex-shrink: 0;
}

.fc-shop-header-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.08);
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-shop-header-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-shop-header-brand-logo-placeholder {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.fc-shop-header-brand-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.fc-shop-header-brand-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-2);
}

.fc-shop-header-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--main);
}

.fc-shop-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fc-shop-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--main);
    font-size: 20px;
    position: relative;
    text-decoration: none;
    transition: background-color 0.2s;
    overflow: hidden;
}
.fc-shop-header-icon .bi-heart {
    font-size: 18px;
    margin-top: 1px;
}

.fc-shop-header-icon:hover {
    background-color: var(--surface);
    color: var(--main);
}

.fc-shop-header-cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background-color: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    display: none;
}

.fc-shop-header-cart-count.visible {
    display: flex;
}

.fc-shop-header-icon .wishlist-count-badge {
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background-color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* 헤더 언어 전환 */
.fc-shop-layout-header .nav-lang {
    font-size: 13px;
    color: var(--secondary-2);
}

.fc-shop-layout-header .nav-lang-icon {
    margin-right: 4px;
}

/* 헤더 아바타 */
.fc-shop-header-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.fc-shop-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 푸터 로고 플레이스홀더 */
.fc-shop-footer-brand-logo span {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

/* 사이드바 로고 플레이스홀더 */
.fc-sidebar-card-logo span {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

/* 히어로 배지 내 링크 */
.fc-shop-hero-badge a {
    color: inherit;
    text-decoration: none;
}

/* compact 히어로 상품명 크기 */
.fc-shop-hero-compact .fc-shop-hero-name {
    font-size: 1.3rem;
}

/* 판매 시작일 텍스트 */
.fc-sale-start-date {
    text-transform: none;
}

/* 계정 드롭다운 */
.fc-shop-header-account {
    position: relative;
}

.fc-shop-header-account-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.fc-shop-header-account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 1100;
    overflow: hidden;
}

.fc-shop-header-account-dropdown.open {
    display: block;
}

.fc-shop-header-account-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.fc-shop-header-account-dropdown ul li a,
.fc-shop-header-account-dropdown ul li button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--main);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s;
}

.fc-shop-header-account-dropdown ul li a:hover,
.fc-shop-header-account-dropdown ul li button:hover {
    color: var(--primary);
}

/* 푸터 */
.fc-shop-layout-footer {
    background-color: #1a1a1a;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.fc-shop-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.fc-shop-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

.fc-shop-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.fc-shop-footer-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.fc-shop-footer-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-shop-footer-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.fc-shop-footer-brand-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}

.fc-shop-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.fc-shop-footer-nav a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.fc-shop-footer-nav a:hover {
    color: #fff;
}

.fc-shop-footer-business {
    padding-bottom: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.fc-shop-footer-business a {
    color: inherit;
    text-decoration: underline;
}

.fc-shop-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.fc-shop-footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.fc-shop-footer-powered {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.fc-shop-footer-powered a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.fc-shop-footer-powered a:hover {
    color: rgba(255,255,255,0.7);
}

/* 데스크탑: 사이드바 canvas-body 스크롤 이벤트 허용
   (styles.css의 overflow-y: auto + overscroll-behavior-y: contain이
    마우스 휠 이벤트를 사이드바에서 흡수하는 문제 해결) */
@media (min-width: 1200px) {
    .sidebar-filter .canvas-body {
        overflow-y: visible;
        overscroll-behavior-y: auto;
    }
}

/* 모바일 대응 */
@media (max-width: 767px) {
    .fc-shop-layout-header-inner {
        padding: 0 15px;
        height: 56px;
    }

    .fc-shop-header-back span {
        display: none;
    }

    .fc-shop-header-brand-info {
        display: none;
    }

    .fc-shop-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fc-shop-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

     .tf-grid-layout.tf-col-4.wrapper-shop {
        grid-template-columns: repeat(2, 1fr);
    }

    .fanclub-actions > .d-flex {
        flex-wrap: nowrap;
        width: 100%;
        gap: 8px;
    }
    .fanclub-actions > .d-flex > .tf-btn {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
        line-height: 20px;
        gap: 4px;
    }
    .fanclub-actions > .d-flex > .tf-btn .icon {
        font-size: 14px;
    }
    .fanclub-actions > .d-flex > .tf-btn .text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}