/* ============================================================
   phones.css — 휴대폰 목록 페이지 전용 스타일
   스타일 가이드:
     브랜드  : var(--c-brand)  #FF0084
     텍스트1 : var(--c-text1)  #000
     텍스트2 : var(--c-text2)  #777
     배경1   : var(--c-bg1)    #f5f6f8
     테두리1 : var(--c-border1)#C5C8CE
   ============================================================ */


/* ── 휴대폰 전용 헤더 ── */
.phones-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--c-white);
}

.phones-header__inner {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 var(--px, 16px);
    gap: 8px;
}

.phones-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--c-text1, #000);
    flex-shrink: 0;
}

.phones-header__cat-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text1, #000);
}

.phones-header__caret {
    color: var(--c-text2, #777);
    transition: transform 0.2s;
}

.phones-header__cat-btn[aria-expanded="true"] .phones-header__caret {
    transform: rotate(180deg);
}

.phones-header__spacer {
    width: 36px;
    flex-shrink: 0;
}

/* ── 드롭다운 ── */
.phones-cat-dropdown {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border1, #C5C8CE);    
    z-index: 99;
    display: flex;
    flex-direction: column;
}

.phones-cat-dropdown[hidden] {
    display: none;
}

.phones-cat-dropdown__item {
    display: block;
    padding: 14px var(--px, 16px);
    font-size: var(--fs-16);
    color: var(--c-text1, #000);    
    text-decoration: none;
}

.phones-cat-dropdown__item:last-child {
    border-bottom: none;
}

.phones-cat-dropdown__item--active {
    color: var(--c-brand, #FF0084);
    font-weight: 600;
}

/* ── 드롭다운 오버레이 ── */
.phones-cat-overlay {
    position: fixed;
    inset: 0;
    z-index: 98;    
}

.phones-cat-overlay[hidden] {
    display: none;
}


/* ── 페이지 컨테이너 ── */
.phones-page {
    min-height: 60vh;
    padding-bottom: 40px;
}

/* ── 필터 행 ── */
.phones-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--px, 16px);
    background: var(--c-white);
    gap: 8px;
    position: sticky;
    top: 56px;
    z-index: 39;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.phones-filter__toggles {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 토글 스위치 */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.toggle-switch__track {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--c-border1, #C5C8CE);
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform 0.2s;
}

.toggle-switch input:checked~.toggle-switch__track {
    background: var(--c-brand, #FF0084);
}

.toggle-switch input:checked~.toggle-switch__track::after {
    transform: translateX(16px);
}

.toggle-switch__label {
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    white-space: nowrap;
}

.toggle-switch input:checked~.toggle-switch__label {
    color: var(--c-text1, #000);
    font-weight: 600;
}

.phones-filter__sort {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.phones-filter__sort-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    text-decoration: none;
    transition: color 0.15s;
}

.phones-filter__sort-btn--active {
    color: var(--c-text1, #000);
    font-weight: 600;
}

.phones-filter__sort-divider {
    font-size: var(--fs-12);
    color: var(--c-border1, #C5C8CE);
}

/* ── 모델 리스트 (2열 그리드) ── */
.phones-list {
    list-style: none;
    margin: 0;
    padding: var(--px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 2px;
}

.phones-list__item {
    background: var(--c-white);
    border-radius: 12px;
    border: 1px solid var(--c-border1);
    padding: 10px;
    overflow: hidden;
}

.phones-list__item:hover {
    border-color: var(--c-brand);
}

.phones-list__empty {
    grid-column: 1 / -1;
    padding: 48px var(--px, 16px);
    text-align: center;
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
}

/* ── 폰 카드 (세로형) ── */
.phone-card {
    display: flex;
    flex-direction: column;
    padding: 16x;
    background: var(--c-white);
    gap: 8px;
    height: 100%;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}


/* 이미지 링크 */
.phone-card__img-link {
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
}

.phone-card__img-link:active .phone-card__img-wrap {
    opacity: 0.85;
}

/* 이미지 영역 */
.phone-card__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: var(--c-bg1, #f5f6f8);
    overflow: hidden;
}

.phone-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.15s ease;
}

.phone-card__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--c-border1, #C5C8CE);
}

/* 모델명 링크 */
.phone-card__name-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 8px;
}

.phone-card__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text1, #000);
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    line-height: 1.4;
}

/* 색상 도트 (버튼) */
.phone-card__colors {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.phone-card__color-dot {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, .12);
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    transition: transform 0.12s, box-shadow 0.12s;
}

.phone-card__color-dot--active {
    box-shadow: 0 0 0 2px var(--c-white), 0 0 0 3px #000;
    transform: scale(1.1);
}

/* 용량 버튼 */
.phone-card__caps {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.phone-card__cap {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 7px;
    border-radius: 4px;
    font-size: var(--fs-12);
    border: 1px solid var(--c-border1, #C5C8CE);
    color: var(--c-text2, #777);
    background: var(--c-white);
    cursor: pointer;
    transition: border-color 0.12s, color 0.12s;
}

.phone-card__cap--active {
    border-color: var(--c-text1);
    color: var(--c-text1, #000);
    font-weight: 400;
}

.phone-card__cap--soldout {
    border-color: var(--c-border1, #C5C8CE);
    color: #bbb;
    background: #f5f6f8;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.65;
}

/* 재고없음 용량 버튼 */
.phone-card__cap--oos {
    position: relative;
    border-color: var(--c-border1, #C5C8CE);
    color: #bbb;
    background: #f5f6f8;
    cursor: not-allowed;
    opacity: 0.6;
}
.phone-card__cap--oos::after {
    content: '재고없음';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
    padding: 3px 7px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 10;
}
.phone-card__cap--oos:hover::after,
.phone-card__cap--oos.oos-tip-show::after {
    opacity: 1;
}

/* 전체 재고없음 카드 */
.phone-card--all-oos .phone-card__img-link,
.phone-card--all-oos .phone-card__name-link,
.phone-card--all-oos .phone-card__price-section,
.phone-card--all-oos .phone-card__tags-link {
    cursor: default;
}

/* 구매원금 + 요금제 */
.phone-card__price-section {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0;
}

.phone-card__purchase-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 3px;
}

.phone-card__purchase-label {
    font-size: 16px;
    color: var(--c-brand, #FF0084);
    font-weight: 700;
    flex-shrink: 0;
}

.phone-card__purchase-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-brand, #FF0084);
}

.phone-card__plan-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
}

.phone-card__plan-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text1);
    flex-shrink: 0;
}

.phone-card__plan-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text1);
}

/* 구분선 */
.phone-card__divider {
    border: none;
    border-top: 2px solid var(--c-bg1);
    margin: 2px 0;
}

/* 가격 상세 영역 */
.phone-card__detail-section {
    overflow: hidden;
}

.phone-card__detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 4px;
}

.phone-card__detail-row:last-child {
    margin-bottom: 0;
}

.phone-card__detail-label {
    font-size: 12px;
    color: var(--c-text2, #777);
    flex-shrink: 0;
    white-space: nowrap;
}

.phone-card__detail-value {
    font-size: 12px;
    color: var(--c-text2, #777);
    text-align: right;
}

.phone-card__detail-value--total {
    font-weight: 600;
    color: var(--c-text1, #000);
    font-size: var(--fs-14);
}

.phone-card__detail-row--total .phone-card__detail-label {
    font-weight: 600;
    font-size: var(--fs-14);
    color: var(--c-text1, #000);
}

/* 태그 링크 */
.phone-card__tags-link {
    display: block;
    text-decoration: none;
    margin-top: 8px;
}

.phone-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.phone-card__tag {
    font-size: 12px;
    padding: 2px 0;
    font-weight: 400;
    color: var(--c-text1);
}

/* ── 무한 스크롤 센티넬 & 로딩 ── */
.phones-sentinel {
    height: 1px;
}

.phones-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px;
}

.phones-loading[hidden] {
    display: none;
}

.phones-loading__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-border1, #C5C8CE);
    animation: phoneDotPulse 1s infinite ease-in-out both;
}

.phones-loading__dot:nth-child(1) {
    animation-delay: 0s;
}

.phones-loading__dot:nth-child(2) {
    animation-delay: .2s;
}

.phones-loading__dot:nth-child(3) {
    animation-delay: .4s;
}

@keyframes phoneDotPulse {

    0%,
    80%,
    100% {
        transform: scale(.8);
        opacity: .4;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ══════════════════════════════════════════
   상세 페이지 - detail-header
══════════════════════════════════════════ */
.detail-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--c-white);    
}

.detail-header__inner {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 var(--page-px, 16px);
    gap: 8px;
}

.detail-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--c-text1, #000);
    text-decoration: none;
    flex-shrink: 0;
}

.detail-header__title {
    flex: 1;
    text-align: center;
    font-size: var(--fs-18);
    font-weight: 600;
    color: var(--c-text1, #000);
}

.detail-header__spacer {
    width: 36px;
    flex-shrink: 0;
}

/* ── 탭 바 ── */
.detail-tabs {
    display: flex;
}

.detail-tab {
    flex: 1;
    height: 44px;
    background: none;
    border: none;
    font-size: var(--fs-16);
    font-weight: 500;
    color: var(--c-text2, #777);
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
}

.detail-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--c-brand);
    opacity: 0;
    transition: opacity 0.15s;
}

.detail-tab--active {
    color: var(--c-text1, #000);
    font-weight: 600;
}

.detail-tab--active::after {
    opacity: 1;
}

/* ══════════════════════════════════════════
   상세 페이지 - 본문
══════════════════════════════════════════ */
.detail-page {
    background: var(--c-bg1, #f5f6f8);
    min-height: 100vh;
}

/* ── 이미지 영역 ── */
.detail-img-section {
    position: relative;
    background: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px var(--page-px, 16px);
    min-height: 154px;
}

.detail-main-img {
    display: block;
    max-width: 260px;
    max-height: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.15s ease;
}

.detail-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background: var(--c-bg1, #f5f6f8);
    border-radius: 12px;
}

/* ── 섹션 공통 ── */
.detail-section {
    background: var(--c-white);
    margin-top: 8px;
    padding: 20px var(--px);
}

.detail-section__title {
    font-size: var(--fs-14);
    font-weight: 600;
    color: var(--c-text1, #000);
    margin: 0 0 14px;
}

/* ── 용량 버튼 ── */
.detail-caps {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.detail-cap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 67px;
    min-width: 0;
    border-radius: 8px;
    border: 1px solid var(--c-border1, #C5C8CE);
    background: var(--c-white);
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    cursor: pointer;
}

.detail-cap--active {
    border-color: var(--c-brand);
    color: var(--c-text1, #000);
    font-weight: 600;
    background: var(--c-brand-bg);
}

.detail-cap--oos {
    position: relative;
    color: #bbb;
    background: #f5f6f8;
    border-color: var(--c-border1, #C5C8CE);
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: none;
}
.detail-cap--oos::after {
    content: '재고없음';
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 10;
}
.detail-cap--oos:hover::after,
.detail-cap--oos.oos-tip-show::after {
    opacity: 1;
}

/* ── 색상 선택 ── */
.detail-color-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.detail-color-header .detail-section__title {
    margin-bottom: 0;
}

.detail-color-name {
    font-size: 13px;
    color: var(--c-text2, #777);
}

.detail-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, .1);
    background: transparent;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.detail-color-dot--active {
    box-shadow: 0 0 0 2px var(--c-white), 0 0 0 3px var(--c-brand);
    transform: scale(1.12);
    border-color: transparent;
}

/* ── 통신사 선택 ── */
.detail-providers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.detail-provider-btn {
    min-height: 67px;
    border-radius: 10px;
    border: 1px solid var(--c-border1, #C5C8CE);
    background: var(--c-white);
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.detail-provider-btn--active {
    border-color: var(--c-brand);
    color: var(--c-text1, #000);
    font-weight: 600;
    background: var(--c-brand-bg);
}

/* ── 유의사항 ── */
.detail-notice__list {
    margin: 0;
    padding: 0 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-notice__list li {
    font-size: 13px;
    color: var(--c-text2, #777);
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   상세 페이지 - 하단 고정 바
══════════════════════════════════════════ */
.detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 620px;
    background: var(--c-white);
    padding: 18px var(--px);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0px 0 12px #00000030;
    border-radius: 8px 8px 0 0;
}

.detail-bottom-bar__info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.detail-bottom-bar__model-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-bottom-bar__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text1, #000);
}

.detail-bottom-bar__cap {
    font-size: var(--fs-14);
    color: var(--c-text1, #000);
    font-weight: 600;
}

.detail-bottom-bar__price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.detail-bottom-bar__base-price {
    font-size: var(--fs-12);
    color: var(--c-text2, #777);
    text-decoration: line-through;
}

.detail-bottom-bar__final-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.detail-bottom-bar__label {
    font-size: var(--fs-14);
    color: var(--c-text1, #000);
}

.detail-bottom-bar__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-brand, #FF0084);
    line-height: 1.2;
}

.detail-bottom-bar__monthly-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: flex-end;
}

.bar-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--c-text1, #000);
    background: var(--c-text1, #000);
    color: var(--c-white);
    font-size: 9px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.detail-bottom-bar__tooltip {
    position: absolute;
    bottom: calc(100% + 7px);
    right: 0;
    background: rgba(39, 46, 58, 0.95);
    color: var(--c-white);
    font-size: 11px;
    line-height: 1.5;
    padding: 7px 11px;
    border-radius: 7px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
}

.detail-bottom-bar__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 5px solid transparent;
    border-top-color: rgba(39, 46, 58, 0.95);
}

.detail-bottom-bar__tooltip.tooltip-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.detail-bottom-bar__monthly {
    font-size: var(--fs-12);
    color: var(--c-text2, #777);
}

.detail-bottom-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--c-border2, #272E3A);
    color: var(--c-white);
    font-size: var(--fs-16);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.2px;
    transition: opacity 0.15s;
    cursor: pointer;
}

.detail-bottom-bar__btn:hover {
    opacity: 0.88;
}

/* ── 공식몰 비교 안내 바 (플로팅 고정) ── */
.detail-price-compare {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 20px));
    transition: transform 0.58s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    bottom: 176px;
    width: calc(100% - 32px);
    max-width: 588px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--c-white);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
    z-index: 288;
    color: var(--c-badge);
}

.detail-price-compare.detail-price-compare--visible {
    transform: translateX(-50%) translateY(0);
}

.detail-price-compare__icon {
    flex-shrink: 0;
}

.detail-price-compare__text {
    font-size: var(--fs-14);
    color: var(--c-text1, #000);
    line-height: 1.4;
}

.detail-price-compare__text strong {
    color: var(--c-badge);
    font-weight: 600;
}

/* ══════════════════════════════════════════
   인터넷TV 결합
══════════════════════════════════════════ */
.detail-combo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-combo-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1.5px solid var(--c-border1, #C5C8CE);
    border-radius: 10px;
    background: var(--c-white);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
    min-height: 67px;
    justify-content: center;
}

.detail-combo-item--active {
    border-color: var(--c-brand);
    background: var(--c-brand-bg);

}

.detail-combo-item__title {
    font-size: var(--fs-14);
    font-weight: 600;
    color: var(--c-text1, #000);
}

.detail-combo-item__desc {
    font-size: 12px;
    color: var(--c-text2, #777);
}

/* ══════════════════════════════════════════
   인라인 구매 신청하기 버튼 + 안내
══════════════════════════════════════════ */
.detail-buy-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-buy-btn-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: var(--c-border2, #272E3A);
    color: var(--c-white);
    font-size: var(--fs-16);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.2px;
    transition: opacity 0.15s;
    cursor: pointer;
}

.detail-buy-btn-inline:hover {
    opacity: 0.88;
}

.detail-buy-notice {
    font-size: 12px;
    color: var(--c-text2, #777);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* ══════════════════════════════════════════
   구매 전 필독사항 아코디언
══════════════════════════════════════════ */
.detail-faq-section {
    padding-bottom: 4px;
}

.detail-faq-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text1, #000);
    margin: 0 0 12px;
}

.detail-faq {
    display: flex;
    flex-direction: column;
}

.detail-faq-item {    
}

.detail-faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    font-size: var(--fs-14);
    font-weight: 500;
    color: var(--c-text1, #000);
    text-align: left;
    cursor: pointer;
    gap: 8px;
}

.detail-faq-caret {
    flex-shrink: 0;
    color: var(--c-text2, #777);
    transition: transform 0.2s;
}

.detail-faq-trigger[aria-expanded="true"] .detail-faq-caret {
    transform: rotate(180deg);
}

.detail-faq-content {
    padding: 0 0 16px;
}

.detail-faq-content[hidden] {
    display: none;
}

.detail-faq-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-faq-content li {
    font-size: var(--fs-12);
    color: var(--c-text2, #777);
    line-height: 1.6;
    padding-left: 12px;
    position: relative;
}

.detail-faq-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--c-text2, #777);
}

/* ══════════════════════════════════════════
   구매방식
══════════════════════════════════════════ */
.detail-purchase-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--c-bg1);
}

.detail-purchase-card__method {
    font-size: var(--fs-14);
    font-weight: 700;
    color: var(--c-text1, #000);
    flex-shrink: 0;
}

.detail-purchase-card__desc {
    font-size: 13px;
    color: var(--c-text2, #777);
}

/* ══════════════════════════════════════════
   할부개월
══════════════════════════════════════════ */
.detail-installment {
    display: flex;
    gap: 8px;
}

.detail-install-btn {
    flex: 1;
    min-height: 67px;
    border-radius: 10px;
    border: 1px solid var(--c-border1, #C5C8CE);
    background: var(--c-white);
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, font-weight 0.15s;
}

.detail-install-btn--active {
    border-color: var(--c-brand);
    color: var(--c-text1, #000);
    font-weight: 600;
    background: var(--c-brand-bg);
}

/* ══════════════════════════════════════════
   요금제 아코디언
══════════════════════════════════════════ */
.detail-plan-select {
    border: 1px solid var(--c-brand);
    border-radius: 10px;
    overflow: hidden;
}

/* 선택된 요금제 트리거 */
.detail-plan-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--c-brand-bg);
    border: none;
    border-bottom: 1px solid transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s, border-color 0.15s;
}

.detail-plan-select[data-open="true"] .detail-plan-trigger {    
}

.detail-plan-trigger__caret {
    flex-shrink: 0;
    color: var(--c-text2, #777);
    transition: transform 0.2s;
}

.detail-plan-select[data-open="true"] .detail-plan-trigger__caret {
    transform: rotate(180deg);
}

/* 드롭다운 목록 */
.detail-plan-dropdown {
    display: flex;
    flex-direction: column;
    max-height: 280px;
    overflow-y: auto;
    background: var(--c-white);
}

.detail-plan-dropdown[hidden] {
    display: none;
}

/* 공통 플랜 아이템 */
.detail-plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px var(--px);
    background: var(--c-white);
    border: none;    
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
    width: 100%;
}

.detail-plan-item:first-child {
    border-top: none;
}

.detail-plan-item:hover {
    background: var(--c-bg1, #f5f6f8);
}

.detail-plan-item--active {
    background: var(--c-white)9fc;
}

.detail-plan-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.detail-plan-item__name {
    font-size: var(--fs-14);
    font-weight: 600;
    color: var(--c-text1, #000);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-plan-item__data {
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
}

.detail-plan-item__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.detail-plan-item__fee {
    font-size: var(--fs-14);
    font-weight: 500;
    color: var(--c-text1, #000);
    white-space: nowrap;
}

.detail-plan-item__check {
    flex-shrink: 0;
}

.detail-plan-item--active .detail-plan-item__name {
    color: var(--c-brand, #FF0084);
}

.detail-plan-item--active .detail-plan-item__fee {
    color: var(--c-brand, #FF0084);
}

.detail-plan-empty {
    padding: 20px 16px;
    font-size: 13px;
    color: var(--c-text2, #777);
    text-align: center;
}

.d-none {
    display: none !important;
}

/* ══════════════════════════════════════════
   할인유형
══════════════════════════════════════════ */
.detail-discount-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-discount-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1.5px solid var(--c-border1, #C5C8CE);
    border-radius: 10px;
    background: var(--c-white);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
    min-height: 67px;
    justify-content: center;
}

.detail-discount-card--active {
    border-color: var(--c-brand);
    background: var(--c-brand-bg);
}

.detail-discount-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.detail-discount-card__top-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.detail-discount-card__label {
    font-size: var(--fs-14);
    font-weight: 600;
    color: var(--c-text1, #000);
}

.detail-discount-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.detail-discount-card__badge--device {
    background: var(--c-brand, #FF0084);
    color: var(--c-white);
}

.detail-discount-card__badge--plan {
    background: var(--c-brand, #FF0084);
    color: var(--c-white);
}

.detail-discount-card__amount {
    font-size: var(--fs-14);
    font-weight: 700;
    color: var(--c-text1, #000);
    text-align: right;
    white-space: nowrap;
}

/* ── 할인유형 카드 펼침 상세 ── */
.detail-discount-card__detail {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
}

.detail-discount-card--active .detail-discount-card__detail {
    display: flex;
}

.detail-discount-divider {
    height: 1px;
    background: var(--c-border1, #C5C8CE);
    margin: 8px 0;
}

.detail-discount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
}

.detail-discount-row__label {
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    flex: 1;
}

.detail-discount-row__val {
    font-size: var(--fs-14);
    font-weight: 500;
    color: var(--c-text1, #000);
    text-align: right;
    white-space: nowrap;
}

.detail-discount-row--brand .detail-discount-row__label,
.detail-discount-row--brand .detail-discount-row__val {
    color: var(--c-brand, #FF0084);
    font-weight: 600;
}

.detail-discount-row--sub .detail-discount-row__label,
.detail-discount-row--sub .detail-discount-row__val {
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    font-weight: 400;
}

.detail-discount-row--monthly .detail-discount-row__label,
.detail-discount-row--monthly .detail-discount-row__val {
    font-size: var(--fs-14);
    font-weight: 600;
    color: var(--c-text1, #000);
}

.detail-discount-notice {
    font-size: var(--fs-12);
    color: var(--c-text2, #777);
    line-height: 1.5;
    margin-top: 8px;
    padding: 0;
    text-align: left;
}

/* ══════════════════════════════════════════
   로그인 유도 모달
══════════════════════════════════════════ */
.order-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.order-modal-overlay[hidden] {
    display: none;
}

.order-modal {
    background: var(--c-white);
    border-radius: 20px 20px 0 0;
    padding: 32px var(--page-px, 16px) calc(32px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.order-modal__icon {
    margin-bottom: 4px;
}

.order-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text1, #000);
    margin: 0;
}

.order-modal__desc {
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    text-align: center;
    margin: 0;
}

.order-modal__btns {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.order-modal__cancel {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    border: 1px solid var(--c-border1, #C5C8CE);
    background: var(--c-white);
    font-size: var(--fs-16);
    color: var(--c-text2, #777);
    cursor: pointer;
}

.order-modal__confirm {
    flex: 2;
    height: 50px;
    border-radius: 12px;
    background: var(--c-brand, #FF0084);
    color: var(--c-white);
    font-size: var(--fs-16);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══════════════════════════════════════════
   접수 중 오버레이
══════════════════════════════════════════ */
.order-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-loading-overlay[hidden] {
    display: none;
}

.order-loading__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.order-loading__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, .3);
    border-top-color: var(--c-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.order-loading__text {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-white);
    margin: 0;
}

/* ══════════════════════════════════════════
   접수 완료 페이지
══════════════════════════════════════════ */
.complete-page {
    display: flex;
    flex-direction: column;
    padding: 0 var(--page-px, 16px) 60px;
    background: var(--c-bg1, #f5f6f8);
}

.complete-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 0 32px;
    gap: 12px;
}

.complete-hero__icon {
    margin-bottom: 4px;
}

.complete-hero__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-text1, #000);
    margin: 0;
    text-align: center;
}

.complete-hero__desc {
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    text-align: center;
    margin: 0;
}

.complete-receipt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--c-white);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.complete-receipt__label {
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
}

.complete-receipt__number {
    font-size: var(--fs-14);
    font-weight: 700;
    color: var(--c-brand, #FF0084);
    letter-spacing: 0.5px;
}

.complete-section {
    background: var(--c-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.complete-section__title {
    font-size: var(--fs-14);
    font-weight: 700;
    color: var(--c-text1, #000);
    margin: 0 0 14px;
}

.complete-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.complete-info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.complete-info-list__key {
    font-size: var(--fs-14);
    color: var(--c-text2, #777);
    flex-shrink: 0;
}

.complete-info-list__val {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text1, #000);
    text-align: right;
}

.complete-info-list__key-sub {
    font-size: 11px;
    color: var(--c-text2, #777);
    font-weight: 400;
    margin-left: 2px;
}

.complete-info-list__val--discount {
    color: var(--c-brand, #FF0084);
}

.complete-info-list__total {
    border-top: 1px solid var(--c-border1, #C5C8CE);
    padding-top: 10px;
    margin-top: 2px;
}

.complete-info-list__val--total {
    font-size: var(--fs-16);
    font-weight: 700;
    color: var(--c-text1, #000);
}

.complete-notice {
    padding: 16px 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.complete-notice p {
    font-size: 12px;
    color: var(--c-text2, #777);
    margin: 0;
    line-height: 1.6;
}

.complete-btns {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.complete-btn {
    flex: 1;
    height: 50px;
    border-radius: 10px;
    font-size: var(--fs-14);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}

.complete-btn--outline {
    border: 1px solid var(--c-border1, #C5C8CE);
    background: var(--c-white);
    color: var(--c-text1, #000);
}

.complete-btn--primary {
    background: var(--c-border2, #272E3A);
    color: var(--c-white);
}

.complete-btn:hover {
    opacity: 0.85;
}


@media (max-width: 467px) {
    .phones-list {
        gap: 4px;
    }

    .phone-card__detail-value--total,
    .phone-card__detail-row--total .phone-card__detail-label {
        font-size: 12px;
    }

}


/* ══════════════════════════════════════════
   구매 확인 모달
══════════════════════════════════════════ */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: var(--c-border1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.confirm-modal {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
}

.confirm-modal__header {
    flex-shrink: 0;    
    text-align: center;
    background: var(--c-bg1);
    padding-top: 60px;
}

.confirm-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text1, #000);
    line-height: 1.5;
}

.confirm-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 24px;
    display: flex;
    flex-direction: column;
    background: var(--c-bg1);
    gap: 16px;
}

.confirm-modal__section {
    background: var(--c-white);    
    border-radius: 12px;
    padding: 20px 16px;
}

.confirm-modal__section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text1, #000);
    margin-bottom: 14px;
}

.confirm-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confirm-modal__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.confirm-modal__item--total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--c-border1, #C5C8CE);
}

.confirm-modal__key {
    font-size: 13px;
    color: var(--c-text2, #777);
    flex-shrink: 0;
}

.confirm-modal__val {
    font-size: 13px;
    color: var(--c-text1, #000);
    text-align: right;
}

.confirm-modal__val--discount {
    color: var(--c-brand, #FF0084);
    font-size: 16px;
    font-weight: 600;
}

.confirm-modal__val--total {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text1, #000);
}

.confirm-modal__item--total .confirm-modal__key {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text1, #000);
}

.confirm-modal__notice {
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.confirm-modal__notice p {
    font-size: 12px;
    color: var(--c-text2, #777);
    line-height: 1.5;
    margin: 0;
}

.confirm-modal__footer {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 16px;
    background: var(--c-bg1);
}

.confirm-modal__btn {
    flex: 1;
    height: 52px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.confirm-modal__btn:active {
    opacity: 0.8;
}

.confirm-modal__btn--cancel {
    background: var(--c-white);
    color: var(--c-text1, #000);
    border: 1px solid var(--c-border1, #C5C8CE);
}

.confirm-modal__btn--submit {
    background: var(--c-brand, #FF0084);
    color: var(--c-white);
}

/* 푸터 여백 
.site-footer {
    padding-bottom: 220px;
}*/