/* ==========================================================================
   대성금재 공식 플랫폼 전역 공통 푸터(Footer) - 하이엔드 정밀 반응형 아키텍처
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 1. 푸터 메인 컨테이너 및 베이스라인 규격
   ────────────────────────────────────────────────────────────────────────── */
.atlan_footer {
    width: 100%;
    padding: 5rem 3.75rem;
    background: transparent !important;
    color: #ffffff;
    border-top: 1px solid #373737;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5rem;
}

.footer-block {
    display: flex;
    flex-direction: column;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2;
}

.info-left-block,
.info-right-block {
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap; /* 데스크톱 기본 1줄 배열 유지 */
}

/* [중앙 바로가기 링크 내비게이션] */
.footer-center-nav {
    align-items: flex-start;
    gap: 0.4rem;
}

.footer-center-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.footer-center-nav a:hover {
    color: #bca47b;
    text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 2. 우측 브랜드 밸류 영역 (SNS 링크 / 약관 및 카피라이트)
   ────────────────────────────────────────────────────────────────────────── */
.footer-right-section {
    align-items: flex-end;
    gap: 1.2rem;
    margin-left: auto;
}

.footer-sns {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.footer-sns img {
    width: 1.85rem;
    height: 1.85rem;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-sns a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-policy-copyright {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.policy-links {
    display: flex;
    gap: 0.8rem; /* 약관 간 간격 미세 확장 */
}

.policy-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.policy-links a:hover {
    color: #bca47b;
    font-weight: 600;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

/* ───────────────────────────────────────────
   SECTION 3. 전사 공통 장바구니 실시간 퀵 플로팅 버튼 허브
   ──────────────────────────────────────────── */
.cart-floating-btn {
    position: fixed;
    right: 3rem;
    bottom: 3rem;
    z-index: 999;
    cursor: pointer;
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 비동기 동기화 렌더링을 위한 트리거 클래스 */
.cart-floating-btn.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.slider-viewport:hidden {
    display: none !important;
}

.toss-popup-frame {
    display: none !important;
}

.fallback-fallback-shield {
    display: none;
}

.auth-gate-wrapper {
    display: block;
}

.auth-gate-shield {
    display: none;
}

.auth-gate-modal-container {
    width: 100%;
}

.ch-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ch-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.ch-modal-content {
    background-color: #141414;
    border: 1px solid rgba(188, 164, 123, 0.25);
    width: 100%;
    max-width: 28rem;
    padding: 2.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ch-modal-overlay.is-active .ch-modal-content {
    transform: translateY(0);
}

.ch-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1.8rem;
}

.ch-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #bca47b;
    letter-spacing: -0.02em;
    margin: 0;
}

.btn-ch-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.btn-ch-modal-close:hover {
    color: #ffffff;
}

.ch-modal-body {
    text-align: center;
    padding-bottom: 1.5rem;
}

.ch-result-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(188, 164, 123, 0.1);
    border: 1px solid #bca47b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: #bca47b;
    font-size: 1.4rem;
    font-weight: bold;
}

.ch-result-icon.security {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    font-size: 1.3rem;
}

.ch-modal-main-msg {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

.ch-modal-data-box {
    background-color: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ch-modal-data-box .data-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.data-value-highlight {
    font-family: 'Jost', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #bca47b;
    letter-spacing: 0.02em;
    text-shadow: 0 0 15px rgba(188, 164, 123, 0.2);
}

.data-value-highlight.secure-code {
    color: #ffffff;
    font-size: 1.55rem;
    text-shadow: none;
    letter-spacing: 0.05em;
}

.ch-modal-sub-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
}

.ch-modal-footer {
    display: flex;
    justify-content: center;
}

.btn-ch-modal-confirm {
    width: 100%;
    background-color: #bca47b;
    border: 1px solid #bca47b;
    color: #ffffff;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.95rem 0;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-ch-modal-confirm:hover {
    background-color: #a38c64;
    border-color: #a38c64;
    box-shadow: 0 0 20px rgba(188, 164, 123, 0.25);
}

.cart-floating-btn .floating-icon-circle {
    position: relative;
    width: 65px;
    height: 65px;
    background-color: #121212;
    border: 2px solid #bca47b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cart-floating-btn:hover .floating-icon-circle {
    transform: translateY(-5px);
    background-color: #bca47b;
    box-shadow: 0 15px 35px rgba(188, 164, 123, 0.4);
}

.cart-floating-btn .badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #e74c3c;
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #121212;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    line-height: 1;
}

.cart-floating-btn:hover .badge-count {
    border-color: #bca47b;
}


/* ==========================================================================
   BREAKPOINT INTERFACE BREAKDOWN (미디어 쿼리 정밀 배역 분할)
   ========================================================================== */

/* ── 1. 와이드 럭셔리 모니터 대역 (Min 1440px) ── */
@media (min-width: 1440px) {
    .atlan_footer {
        padding: 4rem 5rem;
    }
    .footer-container {
        gap: 5rem;
    }
}

/* ── 2. 슬림형 데스크톱 및 랩톱 모니터 (1024px ~ 1439px) ── */
@media (max-width: 1439px) and (min-width: 1024px) {
    .atlan_footer {
        padding: 3rem 2rem;
    }
    .footer-container {
        gap: 2rem;
    }
    .footer-block {
        font-size: 0.88rem;
    }
    .policy-links a { font-size: 0.8rem; }
    .copyright { font-size: 0.75rem; }
}

/* ── 3. 태블릿 가로 / 세로 통합 가드 분기 (768px ~ 1023px) ── */
@media (max-width: 1023px) and (min-width: 768px) {
    .atlan_footer {
        padding: 4rem 2.5rem;
    }
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2.5rem;
    }
    .footer-right-section {
        align-items: flex-start;
        margin-left: 0;
    }
    .footer-policy-copyright {
        align-items: flex-start;
    }
    .cart-floating-btn {
        right: 2rem;
        bottom: 2rem;
    }
}

/* ── 4. 미디엄 태블릿 및 스마트폰 와이드 뷰포트 (480px ~ 767px) ── */
@media (max-width: 767px) {
    .atlan_footer {
        padding: 3.5rem 1.5rem;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        text-align: center;
    }

    /* 🌟 [명세 탈출 방어] 모바일 디바이스에서 강제 1줄 고정을 풀고 유연한 가시성 개방 */
    .info-left-block,
    .info-right-block {
        white-space: normal !important;
        word-break: keep-all;
    }

    .footer-block {
        align-items: center;
        width: 100%;
        font-size: 0.88rem;
    }
    .footer-center-nav {
        align-items: center;
        gap: 0.6rem;
    }
    .footer-right-section {
        align-items: center;
        margin-left: 0;
    }
    .footer-sns {
        justify-content: center;
    }
    .footer-policy-copyright {
        align-items: center;
    }

    /* 퀵 카트 버튼 폰트 스케일 다운 */
    .cart-floating-btn {
        right: 1.5rem;
        bottom: 1.5rem;
    }
    .cart-floating-btn .floating-icon-circle {
        width: 55px;
        height: 55px;
    }
}

/* ── 5. 스마트폰 세로 모드 최하단 한계 레이어 (Max 479px) ── */
@media (max-width: 479px) {
    .atlan_footer {
        padding: 3.5rem 1.25rem;
    }

    /* 🌟 글자 왜곡 최소화를 위해 미세 축소 기법 발동 */
    .footer-block {
        font-size: 0.82rem;
        line-height: 1.8;
    }
    .policy-links a { font-size: 0.8rem; }
    .copyright {
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .ch-modal-content {
        max-width: calc(100% - 3rem);
        padding: 1.5rem;
    }
    .data-value-highlight { font-size: 1.45rem; }
}