/* ========================================
   휴대폰 페이지 CSS
   CSS Variables는 common.css에서 상속받음

   변수 매핑:
   - --primary-blue → --primary
   - --primary-blue-dark → --primary-dark
   - --accent-red → --error
   - --bg-light → --gray-50
   - --bg-gray → --gray-100
   - --text-dark → --gray-800
   - --text-gray → --gray-500
   - --text-light → --gray-400
   - --border-color → --gray-200
   ======================================== */

/* ========================================
   프리미엄 페이지 배너
   ======================================== */
.phone-page-banner {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    overflow: hidden;
}

.phone-page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.phone-page-banner .banner-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
    z-index: 2;
}

/* 파티클 애니메이션 */
.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.banner-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatParticle 8s infinite ease-in-out;
}

.banner-particles .particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.banner-particles .particle:nth-child(2) {
    left: 30%;
    top: 60%;
    animation-delay: 1s;
    animation-duration: 8s;
    width: 4px;
    height: 4px;
}

.banner-particles .particle:nth-child(3) {
    left: 60%;
    top: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.banner-particles .particle:nth-child(4) {
    left: 80%;
    top: 70%;
    animation-delay: 3s;
    animation-duration: 9s;
    width: 8px;
    height: 8px;
}

.banner-particles .particle:nth-child(5) {
    left: 50%;
    top: 80%;
    animation-delay: 4s;
    animation-duration: 6.5s;
    width: 5px;
    height: 5px;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) translateX(-10px) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) translateX(20px) scale(1.05);
        opacity: 0.7;
    }
}

/* 배너 배지 */
.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    animation: badgePulse 2s infinite ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-badge i {
    font-size: 16px;
    animation: boltFlash 1.5s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 30px rgba(251, 191, 36, 0.6);
    }
}

@keyframes boltFlash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 배너 타이틀 아이콘 스타일 강화 */
.phone-page-banner .banner-title i {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.5));
    animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 배너 피처 아이템 강화 */
.phone-page-banner .feature-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.phone-page-banner .feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.phone-page-banner .feature-item i {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .banner-badge {
        padding: 8px 18px;
        font-size: 12px;
        margin-bottom: 16px;
    }

    .banner-particles .particle {
        display: none;
    }
}

@media (max-width: 480px) {
    .banner-badge {
        padding: 6px 14px;
        font-size: 11px;
    }
}

/* ========================================
   컴팩트 히어로 섹션
   ======================================== */
.phone-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 30px 0;
    text-align: center;
    color: var(--white);
}

.phone-hero h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.phone-hero p {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   카테고리 네비게이션
   ======================================== */
.category-nav {
    transition: box-shadow 0.3s ease;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 60px;
    z-index: 100;
}
/* 스크롤 시 고정된 상태 스타일 */
.category-nav.is-sticky {
    top: 108px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 모바일: 스크롤 시 mobile-header 숨김, mobile-category-bar만 fixed (46px) */
@media (max-width: 768px) {
    .category-nav.is-sticky {
        top: 46px;
    }
}

.category-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 카테고리 검색 */
.category-search {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.category-search input {
    width: 180px;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    outline: none;
}

.category-search input:focus {
    border-color: var(--primary);
}

.category-search button {
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.category-search button:hover {
    background: var(--primary-dark);
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.category-tab:hover {
    color: var(--gray-800);
}

.category-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========================================
   메인 컨텐츠 영역
   ======================================== */
.phone-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px;
}

.phone-content {
    flex: 1;
    min-width: 0;
}

.phone-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ========================================
   섹션 헤더
   ======================================== */
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 24px;
}

.section-subtitle .highlight {
    color: var(--accent-orange);
    font-weight: 600;
}

/* ========================================
   상품 그리드
   ======================================== */
.phone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.phone-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.phone-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.phone-card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.phone-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9CA3AF;
}

.phone-placeholder i {
    font-size: 64px;
    margin-bottom: 8px;
    color: #D1D5DB;
}

.phone-placeholder span {
    font-size: 12px;
    font-weight: 600;
}

.phone-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.phone-card-badge.hot {
    background: var(--error);
}

.phone-card-badge.new {
    background: #10B981;
}

.phone-card-badge.zero {
    background: var(--accent-orange);
}

.phone-card-info {
    padding: 8px 12px 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.phone-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
}

.phone-card-price {
    margin-top: 8px;
    font-size: 14px;
    color: var(--gray-500);
}

.phone-card-price .sale-price {
    color: var(--error);
    font-weight: 700;
}

/* ========================================
   새 디자인 가격 정보 (목록 페이지 카드)
   ======================================== */
.phone-card-price-box {
    margin-top: auto;
    padding-top: 12px;
    text-align: left;
}

/* 출고가 라인 */
.price-original-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.price-original-row .label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
}

.price-original-row .value {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: line-through;
}

.price-original-row .discount-rate {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
}

.price-original-row .discount-rate i {
    margin-left: 2px;
    font-size: 10px;
}

/* 구매가 라인 */
.price-purchase-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.price-purchase-row .label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.price-purchase-row .value {
    font-size: 22px;
    font-weight: 800;
    color: #1f2937;
}

.price-purchase-row .value small {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* 통신사/할인타입 태그 */
.price-carrier-tag {
    display: flex;
    background: linear-gradient(135deg, #0a2c77 0%, #06799b 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    justify-content: space-around;
    align-items: center;
}

/* 할인 내역 박스 */
.price-discount-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
}

.discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 12px;
}

.discount-row .label {
    color: var(--gray-600);
}

.discount-row .value {
    font-weight: 600;
    color: var(--gray-700);
}

.discount-row.total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.discount-row.total .label {
    background: linear-gradient(90deg, #fef08a 0%, #fde047 100%);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    color: #92400e;
}

.discount-row.total .value {
    font-weight: 700;
    color: #dc2626;
}

/* 모바일 반응형 */
@media (max-width: 576px) {
    .price-purchase-row .value {
        font-size: 18px;
    }

    .price-carrier-tag {
        font-size: 9px;
        padding: 4px 8px;
    }

    .discount-row {
        font-size: 11px;
    }

    .price-discount-box {
        padding: 8px;
    }
}

/* 상품 카드 배지 스타일 (이미지 위, 가로 정렬) */
.phone-card-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px 12px 8px;
}

.mini-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mini-badge-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.mini-badge-orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
}

.mini-badge-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

.mini-badge-purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
}

.mini-badge-red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
}

.mini-badge-gray {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4b5563;
}

/* ========================================
   더보기 버튼
   ======================================== */
.load-more {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.load-more-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gray-500);
    transition: all 0.3s;
}

.load-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   사이드바
   ======================================== */
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.sidebar-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-search {
    display: flex;
    gap: 8px;
}

.sidebar-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
}

.sidebar-search button {
    padding: 10px 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-link:hover {
    background: var(--gray-100);
}

.sidebar-link i {
    font-size: 18px;
    color: var(--primary);
}

.sidebar-link span {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
}

.recent-product {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.recent-product:last-child {
    border-bottom: none;
}

.recent-product-image {
    width: 60px;
    height: 60px;
    background: var(--gray-50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.recent-product-info {
    flex: 1;
}

.recent-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.recent-product-price {
    font-size: 12px;
    color: var(--error);
    font-weight: 600;
}

/* ========================================
   플로팅 사이드바
   ======================================== */
.floating-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-btn i {
    font-size: 18px;
    margin-bottom: 2px;
}

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

.floating-btn.kakao {
    background: #FEE500;
    border-color: #FEE500;
    color: #3C1E1E;
}

/* ========================================
   상세 페이지 스타일
   ======================================== */
.phone-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 24px;
    display: flex;
    gap: 40px;
}

.phone-detail-left {
    flex: 1;
}

.phone-detail-right {
    width: 350px;
    flex-shrink: 0;
}

/* 상품 이미지 갤러리 */
.product-gallery {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
}

.main-image {
    aspect-ratio: 1;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.main-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary);
}

.thumbnail img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* 상품 옵션 */
.product-options {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.product-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.product-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.blue {
    background: #DBEAFE;
    color: var(--primary);
}

.product-badge.orange {
    background: #FED7AA;
    color: #C2410C;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-btn {
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
    transition: all 0.3s;
}

.option-btn:hover {
    border-color: var(--primary-dark);
}

.option-btn.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.color-btn.active {
    border-color: var(--gray-800);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gray-800);
}

/* 요금제 선택 */
.plan-selection {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.plan-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.plan-more {
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
}

.plan-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-card {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.plan-card:hover {
    border-color: var(--primary-dark);
}

.plan-card.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.plan-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
}

.plan-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--error);
}

.plan-features {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* 가격 요약 (사이드바) */
.price-summary-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 120px;
}

.price-summary-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
}

.price-row .label {
    color: var(--gray-500);
}

.price-row .value {
    font-weight: 600;
    color: var(--gray-800);
}

.price-row .value.discount {
    color: var(--primary);
}

.price-row.total {
    border-top: 2px solid var(--gray-200);
    margin-top: 12px;
    padding-top: 16px;
}

.price-row.total .label {
    font-weight: 700;
    color: var(--gray-800);
}

.price-row.total .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--error);
}

.monthly-payment {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

.monthly-payment .label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.monthly-payment .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.apply-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.apply-btn:hover {
    background: var(--primary-dark);
}

.consult-btn {
    width: 100%;
    padding: 14px;
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.consult-btn:hover {
    border-color: var(--gray-800);
}

/* ========================================
   모달 스타일
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-500);
}

.modal-body {
    padding: 24px;
}

/* 요금제 모달 */
.plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-item {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.plan-item:hover {
    border-color: var(--primary-dark);
}

.plan-item.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
}

.plan-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.plan-item-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.plan-item-carrier {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.plan-item-price {
    text-align: right;
}

.plan-item-price .original {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.plan-item-price .sale {
    font-size: 20px;
    font-weight: 800;
    color: var(--error);
}

.plan-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plan-feature-tag {
    padding: 4px 10px;
    background: var(--gray-50);
    border-radius: 4px;
    font-size: 12px;
    color: var(--gray-500);
}

/* 신청 모달 */
.apply-form .form-group {
    margin-bottom: 16px;
}

.apply-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.apply-form .form-group label .required {
    color: var(--error);
}

.apply-form input,
.apply-form select,
.apply-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.apply-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.selected-info {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.selected-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.selected-info-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-info-item {
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-800);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* ========================================
   반응형 스타일
   ======================================== */
@media (max-width: 1200px) {
    .phone-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .phone-sidebar {
        display: none;
    }

    .phone-detail-right {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .phone-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phone-detail-container {
        flex-direction: column;
        padding: 20px 16px;
    }

    .phone-detail-right {
        width: 100%;
    }

    .price-summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .phone-detail-container {
        padding: 0;
        gap: 0;
    }

    .phone-detail-right {
        order: 1;
        padding: 0 12px 20px;
    }

    .phone-detail-left {
        order: 0;
    }
}

@media (max-width: 768px) {
    .category-nav {
    transition: box-shadow 0.3s ease;
        top: 46px;
    }

    .category-nav .container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 16px;
    }

    .category-search {
        width: 100%;
        order: -1;
    }

    .category-search input {
        flex: 1;
        width: auto;
    }

    .phone-hero h1 {
        font-size: 20px;
    }

    .category-tab {
        padding: 12px 16px;
        font-size: 14px;
    }

    .phone-main {
        padding: 20px 16px;
    }

    .floating-sidebar {
        display: none;
    }

    .apply-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* 모바일 카드 여백 최소화 */
@media (max-width: 480px) {
    .phone-main {
        padding: 12px 6px;
    }
}

@media (max-width: 576px) {
    .phone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .phone-card-info {
        padding: 6px 6px 10px;
    }

    .phone-card-name {
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 가격 박스 모바일 최적화 */
    .phone-card-price-box {
        margin-top: 8px;
    }

    /* 출고가 라인 */
    .price-original-row {
        gap: 4px;
        margin-bottom: 2px;
    }
    .price-original-row .label {
        font-size: 11px;
    }
    .price-original-row .value {
        font-size: 12px;
    }
    .price-original-row .discount-rate {
        font-size: 10px;
    }

    /* 구매가 라인 */
    .price-purchase-row {
        gap: 4px;
    }
    .price-purchase-row .label {
        font-size: 10px;
    }
    .price-purchase-row .value {
        font-size: 16px;
    }
    .price-purchase-row .value small {
        font-size: 11px;
    }

    /* 통신사 태그 */
    .price-carrier-tag {
        font-size: 9px;
        padding: 4px 6px;
        margin-top: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 할인 정보 박스 */
    .price-discount-box {
        margin-top: 6px;
        padding: 8px 6px;
    }
    .discount-row {
        margin-bottom: 3px;
    }
    .discount-row .label {
        font-size: 10px;
        white-space: nowrap;
    }
    .discount-row .value {
        font-size: 11px;
        white-space: nowrap;
    }
    .discount-row.total .label,
    .discount-row.total .value {
        font-size: 11px;
    }

    /* 배지 */
    .phone-card-badges-row {
        padding: 8px 6px 4px;
        gap: 3px;
    }
    .mini-badge {
        padding: 2px 6px;
        font-size: 9px;
    }
}

/* ========================================
   문의 카테고리 탭
   ======================================== */
.inquiry-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inquiry-cat-tab {
    padding: 8px 16px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    font-size: 14px;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inquiry-cat-tab:hover {
    background: #E5E7EB;
}

.inquiry-cat-tab.active {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}

.inquiry-cat-tab span {
    font-size: 12px;
    margin-left: 4px;
    opacity: 0.8;
}

/* ========================================
   후기 작성 모달 별점
   ======================================== */
.rating-input {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-input .fa-star {
    font-size: 24px;
    color: #D1D5DB;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input .fa-star:hover {
    transform: scale(1.1);
}

.rating-input .rating-text {
    margin-left: 12px;
    font-weight: 600;
    color: #F59E0B;
}

.form-notice {
    background: #FEF3C7;
    border-left: 3px solid #F59E0B;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #92400E;
    border-radius: 0 8px 8px 0;
}

.form-notice i {
    margin-right: 8px;
}

/* ========================================
   문의 상세 모달
   ======================================== */
.inquiry-detail {
    padding: 0;
}

.inquiry-detail-header {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #E5E7EB;
    color: #374151;
    border-radius: 4px;
    font-size: 12px;
}

.inquiry-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.inquiry-detail-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.inquiry-detail-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    white-space: pre-wrap;
}

.inquiry-answer {
    margin-top: 24px;
    padding: 20px;
    background: #F0F9FF;
    border-radius: 12px;
    border-left: 4px solid #2563EB;
}

.answer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 12px;
}

.answer-header i {
    transform: scaleX(-1);
}

.answer-date {
    font-weight: normal;
    font-size: 12px;
    color: #6B7280;
    margin-left: auto;
}

.answer-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
}

/* 후기 이미지 플레이스홀더 */
.review-image .placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 리뷰 아이템 호버 효과 */
.review-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.review-item:hover {
    background-color: #F9FAFB;
}
