/* 달무리 폰트 정의 */
@font-face {
    font-family: 'Dalmoori';
    src: url('../fonts/dalmoori.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 프리텐다드 폰트 정의 */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Thin.subset.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-ExtraLight.subset.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Light.subset.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Regular.subset.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Medium.subset.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-SemiBold.subset.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Bold.subset.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-ExtraBold.subset.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Black.subset.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    background-color: #f4f4f8;
    color: #333;
    font-weight: 400;
}

.container {
    max-width: none;
    width: 100%;
    margin: 0;
    background-color: #f4f4f8;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

/* 헤더 */
.header {
    background: white;
    color: #333;
    padding: 30px 30px;
    position: relative;
    overflow: visible;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 80px;
    display: flex;
    align-items: center;
}

.header-content {
    max-width: none;
    margin: 0;
    padding: 0 !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    height: auto;
    width: 100%;
}

.header h1 {
    font-family: 'Dalmoori', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    z-index: 10;
    display: flex;
    align-items: center;
    height: auto;
}

.header h1 .channel-version {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.8;
}

/* 워터마크 시그니처 */
.watermark-signature {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Dalmoori', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    font-style: italic;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    text-align: center;
    white-space: nowrap;
}

/* 사용자 정보 워터마크 컨테이너 */
.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* 사용자 정보 워터마크 */
.watermark {
    position: absolute;
    font-size: 18px;
    color: rgba(128, 128, 128, 0.07); /* 매우 희미하게 */
    font-weight: 700;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    font-family: 'Pretendard', sans-serif;
    line-height: 1.5;
    transform: rotate(-45deg); /* 대각선 표시 */
}

.watermark .user-info {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 800;
}

.watermark .ip-info {
    font-size: 18px;
    opacity: 0.7;
    font-weight: 600;
}

/* 제품 영역 헤더 */
.products-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    gap: 10px;
}

.header-buttons-wrapper {
    display: flex;
    gap: 10px;
}

/* 구독 혜택 버튼 */
.subscription-benefits-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #333;
    color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Pretendard', sans-serif;
    white-space: nowrap;
}

.subscription-benefits-btn:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
    background: #555;
}

.benefits-icon {
    font-size: 15px;
}

/* 구독 혜택 모달 */
.benefits-modal-content {
    width: 95vw !important;
    height: 95vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 2.5vh auto !important;
    position: relative;
    top: 0 !important;
    transform: none !important;
}

.benefits-modal-content .modal-body {
    height: calc(95vh - 120px);
    overflow-y: auto;
    padding: 20px;
}

/* 혜택 그리드 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* 구독 혜택 모달의 혜택 버튼 */
.benefits-grid .benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1;
}

.benefits-grid .benefit-item:hover {
    background: #ffe0e6;
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.benefits-grid .benefit-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.benefits-grid .benefit-item .benefit-name {
    display: none;
}

/* 혜택 상세 모달 */
.benefit-detail-content {
    width: 95vw !important;
    height: 95vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 2.5vh auto !important;
    position: relative;
    top: 0 !important;
    transform: none !important;
}

.benefit-detail-content .modal-body {
    height: calc(95vh - 60px);
    overflow: hidden;
    padding: 0;
}

#benefitDetailContent {
    width: 100%;
    height: 100%;
}

#benefitDetailContent iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 이미지 영역 - 전체의 90% */
#benefitImageContainer {
    width: 100%;
    height: 90%;
    flex: 0 0 90%;
    overflow: auto;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 이미지 스타일 */
#benefitImageContainer img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 버튼 영역 - 전체의 10% */
.care-service-buttons {
    width: 100%;
    height: 10%;
    flex: 0 0 10%;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
}

/* 버튼 스타일 */
.care-service-buttons button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.care-service-buttons button:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
}

/* 활성화된 버튼 - 검정색 */
.care-service-buttons button.active,
.care-service-buttons button[style*="scale"] {
    background: linear-gradient(135deg, #000, #222) !important;
    color: #fff !important;
    border: 2px solid #666 !important;
    font-weight: 700 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 3px rgba(255,255,255,0.1) !important;
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar input {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    width: 300px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 20px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
}

.search-bar button:hover {
    background: #f0f0f0;
}

/* 메인 컨텐츠 */
.main-content {
    display: flex;
    gap: 30px;
    padding: 20px 40px;
    max-width: none;
    margin: 0;
}

/* 계산기 사이드바 */
.calculator-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #dddddd;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.calculator-header {
    background: white;
    color: #333;
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.calculator-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
    color: rgba(0, 0, 0, 0.8);
    letter-spacing: 0;
}

.benefit-section {
    padding: 20px;
    flex: 1;
}

.benefit-item {
    background: #f8f8fc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

/* 제목과 가격을 한 줄에 배치하는 헤더 */
.benefit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 헤더 안의 제목 스타일 */
.benefit-header .benefit-title {
    margin-bottom: 0;
}

/* 헤더 안의 가격 스타일 */
.benefit-header .benefit-price {
    margin-bottom: 0;
    flex: 0 0 40%;
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 최종혜택가 헤더 스타일 */
.final-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.final-header .final-message {
    flex: 0 0 15%;
    flex-shrink: 0;
    min-width: 60px;
}

.final-header .final-price {
    flex: 0 0 60%;
    min-width: 120px;
    white-space: nowrap;
    overflow: visible;
}

.benefit-item.active {
    border-color: #333;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.benefit-item.total {
    border-color: #A50034;
    background: #fff5f7;
}

.benefit-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-family: 'Pretendard', sans-serif;
    text-align: left;
}

.benefit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.benefit-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.benefit-arrow.rotated {
    transform: rotate(180deg);
}

.benefit-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.benefit-toggle:hover {
    background: #f5f5f5;
}

/* 토글 아이템 기본 스타일 */
.toggle-item > span:first-child {
    font-size: 13px;
    color: #333;
}

/* POS 행사 토글 스타일 - PC와 모바일 모두 */
div.toggle-item.pos-event-toggle > span:first-child,
.pos-event-toggle span:first-child,
.mobile-toggle-item span {
    font-size: 13px !important;
}

/* POS 행사 색상 */
div.toggle-item.pos-event-toggle > span:first-child,
.pos-event-toggle > span:first-child {
    color: #1976D2 !important;
    font-weight: 600 !important;
}

/* 에누리 행사 토글 스타일 - PC와 모바일 모두 */
div.toggle-item.enuri-event-toggle > span:first-child,
.enuri-event-toggle > span:first-child {
    color: #388E3C !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* 모바일 바텀시트 토글 기본 스타일 */
.mobile-toggle-item > span:first-child {
    font-size: 13px;
    color: #333;
}

/* 모바일 POS 행사 토글 스타일 */
.mobile-pos-event-toggle > span:first-child,
.mobile-pos-event-toggle span.mobile-pos-event-label,
.mobile-toggle-item.mobile-pos-event-toggle span {
    color: #1976D2 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* 모바일 에누리 행사 토글 스타일 */
.mobile-enuri-event-toggle > span:first-child,
.mobile-enuri-event-toggle span.mobile-enuri-event-label,
.mobile-toggle-item.mobile-enuri-event-toggle span {
    color: #388E3C !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

.prepayment-section {
    border-color: #A50034;
    background: #fff5f7;
}

.prepayment-section .benefit-title {
    color: #8A002A;
}

.prepayment-price {
    color: #A50034 !important;
}

.prepayment-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.3;
    margin-bottom: 2px;
}

.benefit-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Pretendard', sans-serif;
    text-align: right;
}

.benefit-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.benefit-detail {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.3;
    font-family: 'Pretendard', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 혜택구분 서브섹션 스타일 */
.benefit-subsection {
    margin-bottom: 8px;
}

.benefit-subsection-title {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    padding-left: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 2px;
}

.benefit-subsection .benefit-detail {
    padding-left: 10px;
    font-size: 11px;
}

.small-text {
    font-size: 10px;
    color: #999;
}

.final-total {
    position: fixed;
    bottom: 30px;
    left: 40px;
    width: 320px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.final-message {
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.9;
    font-family: 'Pretendard', sans-serif;
    text-align: left;
    font-weight: 600;
}

.final-price {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Pretendard', sans-serif;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
    word-break: keep-all;
}

/* 금액이 길 때 폰트 크기 자동 조정 */
.final-price.long-price {
    font-size: 24px;
}

.final-price.very-long-price {
    font-size: 20px;
}

/* 제품 메인 */
.products-main {
    flex: 1;
    min-width: 0;
    padding-left: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 380px));
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: start;
}

.products-grid.loaded {
    opacity: 1;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #dddddd;
    position: relative;
    transition: all 0.3s;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    /* transform: translateY(-3px); 제거 - 모달 밖으로 나가는 것 방지 */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.12); /* 그림자만 살짝 진하게 */
}

/* 제품 카드 호버 시 총 비용 섹션 표시 */
.product-card:hover .total-cost-section {
    max-height: 500px !important;
}

.product-image {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto; /* 중앙 정렬 및 하단 여백 추가 */
    font-size: 48px; /* 폴백 아이콘 크기 증가 */
    color: #666;
}

.product-header-content {
    display: flex;
    align-items: center;
    gap: 0; /* 이미지와 텍스트 사이 간격 */
    margin-bottom: 15px; /* 이 섹션 아래 여백 */
}

.product-header-content .product-image {
    flex-shrink: 0; /* 이미지가 줄어들지 않도록 방지 */
    margin: 0; /* 이전 자동 여백 제거 */
}

.product-text-container {
    flex-grow: 1; /* 텍스트 컨테이너가 남은 공간을 모두 차지하도록 */
    min-width: 0; /* flex 아이템의 최소 너비 설정 (오버플로우 방지) */
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    width: 100%;
    font-family: 'Pretendard', sans-serif;
}

.product-specs {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
}

.care-service-section {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.care-service-section .care-service-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: auto;
    text-align: center;
}

.care-service-section .care-service-btn:hover {
    background: #555;
    transform: translateY(-1px);
}

.product-price {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    min-height: 20px;
    width: 100%;
}

.price-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    font-family: 'Pretendard', sans-serif;
}

.price-value {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
}

.monthly-fee .price-value {
    color: #333;
}

.discount .price-value {
    color: #A50034;
}

.final-price {
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
    margin-top: 4px;
}

.final-price .price-label {
    font-weight: 600;
    color: #333;
}

.final-price .price-value {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

/* 기간별 가격 표시 스타일 */
.promotion-period .price-label {
    color: #A50034;
    font-weight: 600;
    font-size: 11px;
}

.promotion-final {
    background: linear-gradient(135deg, #ffe0e6, #f3f9ff);
    padding: 8px 10px;
    border-radius: 6px;
    margin: 2px 0 6px 0;
    border-left: 3px solid #A50034;
}

.promotion-final .price-label {
    color: #1565c0;
    font-weight: 600;
    font-size: 12px;
}

.promotion-final .price-value {
    color: #1565c0;
    font-size: 15px;
    font-weight: 700;
}

.basic-period .price-label {
    color: #666;
    font-weight: 600;
    font-size: 11px;
}

.basic-final {
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    padding: 8px 10px;
    border-radius: 6px;
    margin: 2px 0 4px 0;
    border-left: 3px solid #666;
}

.basic-final .price-label {
    color: #333;
    font-weight: 600;
    font-size: 12px;
}

.basic-final .price-value {
    color: #333;
    font-size: 15px;
    font-weight: 700;
}

.product-monthly {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.product-remove {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-remove:hover {
    background: #cc0000;
}

.promotion-table-container {
    width: 100%;
    margin-top: 12px;
}

.promotion-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    font-size: 12px;
}

.promotion-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.promotion-table tr:last-child {
    border-bottom: none;
}

.promotion-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.promotion-label {
    font-weight: 600;
    color: #555;
    width: 70px;
    background: #f8f8f8;
    border-right: 1px solid #e0e0e0;
    font-size: 11px;
}

.promotion-value {
    color: #333;
    background: white;
    font-size: 11px;
    line-height: 1.4;
}

.promotion-etc {
    color: #555;
    background: #f9f9f9;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    font-style: italic;
}

.product-stock-check {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    width: auto;
    height: 28px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card:hover .product-stock-check {
    opacity: 0.8;
    pointer-events: auto;
}

.product-stock-check:hover {
    background: #218838;
    opacity: 1 !important;
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.product-remove-top {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.product-card:hover .product-remove-top {
    opacity: 0.8;
    pointer-events: auto;
}

.product-remove-top:hover {
    background: #cc0000;
    opacity: 1 !important;
    transform: scale(1.1);
}

.product-compare-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
    font-weight: 500;
}

.product-card:hover .product-compare-btn {
    opacity: 0.9;
    pointer-events: auto;
}

.product-compare-btn:hover {
    background: #357abd;
    opacity: 1 !important;
    transform: scale(1.05);
}

/* 터치 디바이스에서는 항상 표시 */
@media (hover: none) and (pointer: coarse) {
    .product-compare-btn {
        opacity: 0.9;
        pointer-events: auto;
    }
    
    .product-remove-top {
        opacity: 0.8;
        pointer-events: auto;
    }
    
    .product-stock-check {
        opacity: 0.8;
        pointer-events: auto;
    }
}

.add-product-card {
    background: white;
    border: 1px dashed #dddddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.05);
}

.add-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #333;
}

.add-product-content {
    text-align: center;
    color: #666;
}

.add-icon {
    font-size: 48px;
    color: #333;
    margin-bottom: 10px;
    opacity: 0.6;
}

.add-text {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
    color: #333;
    letter-spacing: 0;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.welcome-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Pretendard', sans-serif;
}

.welcome-message p {
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Pretendard', sans-serif;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.product-header h2 {
    font-size: 24px;
    color: #333;
}

.product-count {
    color: #666;
    font-size: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 320px));
    gap: 15px;
    justify-content: start;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    /* transform: translateY(-3px); 제거 - 모달 밖으로 나가는 것 방지 */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.12); /* 그림자만 살짝 진하게 */
}

.product-card.selected {
    border-color: #A50034;
    background: #ffe0e6;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.product-detail {
    font-size: 12px;
    color: #666;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monthly-fee {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #A50034;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

/* 웰컴 섹션 */
.welcome-section {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.welcome-section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.guide-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.guide-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.guide-text {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.start-btn {
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #555;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

/* 제품 선택 모달을 더 앞에 표시 */
#productModal {
    z-index: 10001;
}

/* 제품 추가 모달 기본 스타일 (PC) */
#productModal .modal-content {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

#productModal .modal-header {
    flex-shrink: 0;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#productModal .modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: white !important;
    font-weight: 600;
}

#productModal .close-btn {
    font-size: 28px;
    font-weight: bold;
    color: white !important;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#productModal .close-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white !important;
    transform: scale(1.1);
}

#productModal .modal-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#productModal .search-container {
    padding: 20px 0;
    flex-shrink: 0;
}

#productModal #productSearchInput {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#productModal #productSearchInput:focus {
    border-color: var(--emart-pink, #e91e63);
}

#productModal .search-help-text {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

#productModal .product-modal-main {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow: hidden;
}

#productModal .search-results {
    flex: 1.5;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

#productModal #selectedProductInfo {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
    overflow-y: auto;
}

#productModal .selected-header {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 10px;
}

#productModal .selected-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

#productModal .search-placeholder,
#productModal .selected-placeholder {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

#productModal .modal-footer {
    padding-top: 20px;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0; /* Reverted padding */
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden; /* 먼저 숨김 */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10001;
}

/* 모달 내부 스크롤 영역을 별도로 분리 */
.modal-scroll-content {
    overflow-y: auto;
    flex: 1;
    /* 커스텀 스크롤바 스타일 */
    scrollbar-width: thin;
    scrollbar-color: #e91e63 #f0f0f0;
    /* 우측 패딩으로 스크롤바 공간 확보하고 둥근 모서리 유지 */
    padding-right: 4px;
    margin-right: -4px;
}

/* 스크롤 영역용 Webkit 브라우저 스크롤바 커스터마이징 */
.modal-scroll-content::-webkit-scrollbar {
    width: 8px;
}

.modal-scroll-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-family: 'Pretendard', sans-serif;
}

.close-btn {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

/* 단계 표시기 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: #A50034;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #A50034;
    color: white;
}

.step.completed .step-number {
    background: #333;
    color: white;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.step.active .step-label {
    color: #A50034;
}

/* 단계 컨텐츠 */
.step-content {
    padding: 30px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.step-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    font-family: 'Pretendard', sans-serif;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* 검색 섹션 */
.search-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.search-section input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.search-section input:focus {
    outline: none;
    border-color: #A50034;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.search-result-count {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.option-card {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.option-card:hover {
    border-color: #A50034;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.option-card.selected {
    border-color: #A50034;
    background: #ffe0e6;
    color: #8A002A;
    font-weight: bold;
}

.option-card .option-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
    width: 100%;
    white-space: nowrap;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
}

.option-card .option-detail {
    font-size: clamp(10px, 2vw, 12px);
    color: #666;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-family: 'Pretendard', sans-serif;
}

/* 선택 내역 */
.selection-summary {
    padding: 20px 30px;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
}

.selection-summary h4 {
    margin-bottom: 15px;
    color: #333;
}

.selection-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selection-item {
    background: #A50034;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: bold;
}

/* 모달 푸터 */
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Pretendard', sans-serif;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #A50034;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #8A002A;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn-success {
    background: #333;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #555;
}

/* 제휴카드 관련 스타일 */
.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.partner-card-btn {
    background: #A50034;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.partner-card-btn:hover {
    background: #8A002A;
}

.care-service-btn {
    background: #333;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: 8px;
}

.care-service-btn:hover {
    background: #555;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.care-service-btn.compact {
    background: #333;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    height: fit-content;
}

.care-service-btn.compact:hover {
    background: #555;
    transform: translateY(-1px);
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    border-color: #A50034 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.partner-card-info {
    background: #fff5f7;
    color: #8A002A;
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
}

.partner-card-info .card-info-content {
    margin-bottom: 10px;
}

.partner-card-info .card-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.partner-card-info .card-benefit {
    color: #555;
    font-size: 12px;
    line-height: 1.4;
}

.partner-card-info .card-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.partner-card-info .care-service-btn {
    flex: 1;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partner-card-info .care-service-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.partner-card-info .partner-card-btn.small {
    flex: 1;
    padding: 8px 16px;
    font-size: 12px;
    background: #fff;
    color: #A50034;
    border: 1px solid #A50034;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.partner-card-info .partner-card-btn.small:hover {
    background: #A50034;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(165, 0, 52, 0.3);
}

.partner-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.partner-card-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.partner-card-option:hover {
    border-color: #A50034;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.partner-card-option.selected {
    border-color: #A50034;
    background: #ffe0e6;
    color: #8A002A;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-discount {
    font-size: 14px;
    color: #666;
}

.partner-card-option.selected .card-discount {
    color: #1565c0;
    font-weight: 600;
}

.partner-card-option.recommended {
    border-color: #A50034;
    background: linear-gradient(135deg, #fff5f7, #ffe0e6);
    position: relative;
}

.partner-card-option.recommended:hover {
    border-color: #8A002A;
    background: linear-gradient(135deg, #ffe0e6, #ffccd5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.15);
}

.recommended-icon {
    font-size: 14px;
    margin-right: 4px;
}

.recommended-badge {
    background: #A50034;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.partner-card-option.no-card-option {
    border-color: #bbb;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    opacity: 0.8;
}

.partner-card-option.no-card-option:hover {
    border-color: #6c757d;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.15);
    opacity: 1;
}

.partner-card-option.no-card-option .card-name {
    color: #6c757d;
    font-weight: 500;
}

.partner-card-option.no-card-option .card-discount {
    color: #868e96;
}

.btn-danger {
    background: #ff4444;
    color: white;
    border: 1px solid #ff4444;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #cc0000;
    border-color: #cc0000;
}

.modal-body {
    padding: 20px 30px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #666;
}

.step-info {
    background: #f0f0f0;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-info-vertical {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.step-info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.step-info-nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-back {
    background: #666;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #444;
}

.card-benefit {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    line-height: 1.4;
}

/* 텍스트 길이별 자동 폰트 크기 조정 */
.option-card .option-title {
    /* 기본 스타일만 유지 */
}

/* 반응형 디자인 */
/* 모바일 화면 (480px 이하) */
@media (max-width: 480px) {
    .products-header {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
        padding: 10px !important;
    }
    
    .header-buttons-wrapper {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .header-buttons-wrapper .subscription-benefits-btn {
        flex: 1 !important;
        margin: 0 !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
    
    .products-header .screensaver-btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
    }
    
    .subscription-benefits-btn .benefits-icon {
        margin-right: 4px !important;
    }
}

/* 태블릿 화면 (768px 이하) */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-bar input {
        width: 250px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        margin: 1% auto;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 10px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    /* 모바일에서 더 작은 폰트 사용 */
    .option-card .option-title {
        font-size: clamp(6px, 5vw, 12px);
    }
    
    .option-card .option-detail {
        font-size: clamp(8px, 3vw, 10px);
    }
    
    /* 모바일 카드혜택 모달 스타일 */
    .benefits-modal-content {
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .benefit-detail-content {
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* 카드혜택 그리드 모바일 최적화 */
    .benefits-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    .benefit-item {
        padding: 8px;
    }
    
    .benefit-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .benefit-title {
        font-size: 11px;
        margin-top: 5px;
    }
    
    /* 모달 헤더 모바일 최적화 */
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .close-btn {
        font-size: 24px;
        padding: 5px;
    }
    
    /* 모달 바디 스크롤 */
    .modal-body {
        padding: 10px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 모바일에서 final-total 위치 조정 */
    .final-total {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        margin: 0;
        border-radius: 12px;
        z-index: 100;
    }
    
    /* 모바일에서 제휴카드 버튼 스타일 */
    .partner-card-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .partner-card-info .card-action-buttons {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }
    
    .partner-card-info .care-service-btn,
    .partner-card-info .partner-card-btn.small {
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
        min-height: 40px;
    }
    
    /* 모바일에서 products-header 버튼 재배치 */
    .products-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .header-buttons-wrapper {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    
    .header-buttons-wrapper .subscription-benefits-btn {
        flex: 1;
        margin-left: 0 !important;
    }
    
    /* 스크린세이버는 다음 줄에 전체 너비로 */
    .products-header .screensaver-btn {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 0;
    }
}

/* 전체 페이지 스크롤바 커스터마이징 */
* {
    scrollbar-width: thin;
    scrollbar-color: #888 #f0f0f0;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

*::-webkit-scrollbar-thumb:hover {
    background: #666;
}

*::-webkit-scrollbar-corner {
    background: #f0f0f0;
}

/* 커스텀 알림창 폰트 스타일 */
.custom-alert .modal-content {
    font-family: 'Pretendard', sans-serif;
    max-width: 590px !important; /* 커스텀 알림창 너비 조정 */
}

/* 중간 화면 */
@media (max-width: 1200px) {
    .main-content {
        padding: 20px;
    }
}

/* 큰 화면 반응형 레이아웃 */
@media (min-width: 1400px) {
    .main-content {
        padding: 20px 30px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 280px));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-name {
        font-size: 15px;
    }
    
    .product-info {
        font-size: 13px;
    }
}

@media (min-width: 1600px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 260px));
        gap: 12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 320px));
    }
}

@media (min-width: 1920px) {
    .main-content {
        padding: 20px 60px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 240px));
        gap: 12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
    }
    
    .product-card {
        padding: 12px;
    }
}

/* 초대형 화면 (2K, 4K) */
@media (min-width: 2560px) {
    .main-content {
        padding: 20px 80px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 260px));
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    }
    
    .product-card {
        padding: 15px;
    }
}

/* 인쇄용 스타일 */
@media print {
    body * {
        display: none !important;
    }
    
    #printQuotation {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: white !important;
        z-index: 999999 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #printQuotation * {
        display: revert !important;
        visibility: visible !important;
    }
    
    @page {
        size: A4;
        margin: 0;
    }
    
    @page:first {
        margin: 0;
    }
    
    .print-quotation {
        font-family: 'Noto Sans KR', sans-serif;
        font-size: 11pt;
        color: #000;
        line-height: 1.5;
    }
    
    .print-header {
        border-bottom: 2px solid #333 !important;
        padding-bottom: 10px !important;
        margin-bottom: 20px !important;
    }
    
    .print-title {
        font-size: 20pt !important;
        font-weight: bold !important;
        margin-bottom: 10px !important;
        color: #000 !important;
    }
    
    .print-info {
        display: flex !important;
        justify-content: space-between !important;
        margin-bottom: 20px !important;
    }
    
    .print-info p {
        color: #000 !important;
        margin: 5px 0 !important;
    }
    
    .print-products {
        margin-bottom: 20px !important;
    }
    
    .print-products h3 {
        color: #000 !important;
        margin-bottom: 10px !important;
    }
    
    .print-product-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 20px !important;
    }
    
    .print-product-table th,
    .print-product-table td {
        border: 1px solid #ddd !important;
        padding: 8px !important;
        text-align: left !important;
        color: #000 !important;
    }
    
    .print-product-table th {
        background-color: #f5f5f5 !important;
        font-weight: bold !important;
    }
    
    .print-summary {
        border-top: 2px solid #333 !important;
        padding-top: 20px !important;
        text-align: right !important;
    }
    
    .print-summary p {
        color: #000 !important;
        margin: 5px 0 !important;
    }
    
    .print-total {
        font-size: 14pt !important;
        font-weight: bold !important;
        color: #000 !important;
    }
}

/* 제품 비교 모달 스타일 */
.compare-modal-content {
    max-width: 900px !important;
    width: 90% !important;
    max-height: 85vh !important;  /* 90vh -> 85vh */
}

.compare-modal-body {
    padding: 15px;  /* 20px -> 15px */
    overflow-y: auto;
    max-height: calc(85vh - 100px);  /* 90vh -> 85vh, 120px -> 100px */
}

.compare-products-container {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.compare-product-section {
    flex: 1;
    min-width: 300px;
}

.compare-product-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.base-product h3 {
    color: #4a90e2;
}

.compare-product h3 {
    color: #52c41a;
}

.compare-product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px;
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compare-product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-product-image {
    width: fit-content;
    height: 120px;  /* 더 작게 조정 */
    min-width: 120px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    overflow: visible;  /* 플로팅 버튼이 보이도록 */
    padding: 10px;
    position: relative;
}

.compare-product-image img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.compare-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.compare-product-type {
    font-size: 14px;
    color: #666;
    padding: 5px 10px;
    background: #e8f4fd;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.compare-product-price {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin: 8px 0;
    color: white;
}

.compare-product-price .price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
}

.compare-product-price .price-value {
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.compare-product-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.compare-select-btn {
    padding: 12px 24px;
    font-size: 16px;
}

.compare-options {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.compare-options-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.compare-options-buttons button {
    padding: 10px 20px;
    font-size: 14px;
}

.compare-product-selector {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.compare-type-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.compare-type-item {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-type-item:hover {
    background: #e8f4fd;
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.compare-type-item .type-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.compare-type-item .type-price {
    color: #ff6b35;
    font-size: 18px;
    font-weight: bold;
}

.compare-action-button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.compare-action-button:hover {
    background: #555;
    transform: translateY(-2px);
}

/* 차이점 강조 스타일 */
.compare-detail-diff {
    color: #ff4757 !important;
    font-weight: 700 !important;
    background: #fff5f5;
    margin: 0 -8px;
    padding: 5px 8px;
}

/* 플로팅 변경 버튼 */
.compare-change-btn:hover {
    background: #555 !important;
    transform: scale(1.1);
}

/* 가격 차액 표시 */
.price-difference {
    margin-top: 5px;
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    display: inline-block;
    width: 100%;
}

.compare-product-details {
    margin: 8px 0;
    padding: 8px;
    background: #fafafa;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #f0f0f0;
    min-height: 110px;  /* 항상 일정한 높이 유지 */
}

.compare-detail-item {
    font-size: 15px;
    color: #444;
    padding: 5px 0;
    font-weight: 500;
    line-height: 1.4;
}

.compare-detail-item + .compare-detail-item {
    border-top: 1px solid #eee;
}

/* 태블릿용 제품 비교 모달 최적화 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .compare-modal-content {
        max-height: 80vh !important;  /* 태블릿에서 더 컴팩트하게 */
    }
    
    .compare-modal-body {
        padding: 10px;
        max-height: calc(80vh - 80px);
    }
    
    .compare-product-image {
        height: 100px;  /* 모바일에서 더 작게 */
        min-width: 100px;
        padding: 8px;
    }
    
    .compare-products-container {
        gap: 20px;  /* 간격 줄이기 */
    }
    
    .compare-product-title {
        font-size: 16px;  /* 폰트 크기 줄이기 */
    }
    
    .compare-detail-item {
        font-size: 14px;  /* 상세 정보 폰트 크기 줄이기 */
        padding: 4px 0;
    }
}

/* 플립시계 전광판 스타일 */
.flip-board-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    overflow: visible;
    margin-right: auto;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease;
    height: 32px;
    width: 360px;
    min-width: 360px;
    z-index: 1000;
    pointer-events: auto;
}

.flip-board-container:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
}

.flip-board-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.flip-board-label {
    color: #999;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-right: 6px;
    white-space: nowrap;
    width: 100px;
    min-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.flip-board {
    display: inline-flex;
    gap: 3px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
}

.flip-digit-container {
    position: relative;
    width: auto;
    min-width: 24px;
    height: 32px;
    perspective: 300px;
}

.flip-digit {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: #fff;
    font-size: 14px;
    padding: 0 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.flip-digit::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.8);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.flip-digit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.2) 100%);
    border-radius: 4px;
    pointer-events: none;
}

.flip-digit.flip-out {
    transform: rotateX(-90deg);
    opacity: 0;
}

.flip-digit.flip-in {
    transform: rotateX(90deg);
    opacity: 0;
}

.flip-digit.active {
    transform: rotateX(0deg);
    opacity: 1;
}

.flip-separator {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    padding: 0 2px;
    display: flex;
    align-items: center;
    height: 32px;
}

.flip-board-content {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e0e0e0;
    font-size: 13px;
    flex: 1;
    overflow: hidden;
    font-weight: 500;
    white-space: nowrap;
    animation: slideIn 0.5s ease-out;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flip-board-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
}

.flip-board-text {
    width: 230px;
    min-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.flip-board-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.flip-board-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
}

.flip-board-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #e4a853);
}

/* 플립보드 호버 팝업 */
.flip-board-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    pointer-events: none;
    width: 450px;
    min-width: 450px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Pretendard', sans-serif;
}

.flip-board-container:hover .flip-board-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.flip-board-popup::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2a2a2a;
}

.flip-board-popup-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.flip-board-popup-section {
    margin-bottom: 16px;
}

.flip-board-popup-section:last-child {
    margin-bottom: 0;
}

.flip-board-popup-section-title {
    color: #aaa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flip-board-popup-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flip-board-popup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    transition: background 0.2s;
    min-height: 36px;
}

.flip-board-popup-item:hover {
    background: rgba(255,255,255,0.08);
}

.flip-board-popup-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.flip-board-popup-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
}

.flip-board-popup-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #e4a853);
}

.flip-board-popup-rank.normal {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
}

.flip-board-popup-model {
    flex: 1;
    color: #e0e0e0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.flip-board-popup-count {
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

/* 모바일과 태블릿에서 팝업 스타일 조정 */
@media (max-width: 1024px) {
    .flip-board-popup {
        width: 360px;
        max-width: calc(100vw - 20px);
        min-width: auto;
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: auto;
        transform: none;
        margin: 0;
        padding: 16px;
        box-sizing: border-box;
    }
    
    .flip-board-container {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        overflow: visible !important;
        position: relative;
    }
    
    .flip-board-container:active {
        transform: scale(0.98);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.2);
    }
    
    /* 팝업 내부 요소들도 조정 */
    .flip-board-popup-model {
        max-width: 200px;
    }
}

/* 화면이 좁을 때 레이아웃 조정 */
@media (max-width: 1200px) {
    .products-header {
        flex-wrap: wrap;
    }
    
    .flip-board-container {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 10px;
        order: -1;
    }
    
    .header-buttons-wrapper {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
    }
}

/* 더 좁은 화면에서 gap 제거 및 아이콘 숨김 */
@media (max-width: 900px) {
    .header-buttons-wrapper {
        gap: 0 !important;
    }
    
    .header-buttons-wrapper .subscription-benefits-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* 햄버거 버튼 제외하고 아이콘 숨김 */
    .header-buttons-wrapper .subscription-benefits-btn:not(.hamburger-btn) .benefits-icon,
    .header-buttons-wrapper .subscription-benefits-btn:not(.hamburger-btn) > span:first-child:not(:last-child) {
        display: none !important;
    }
}

/* 가로모드에서 화면이 좁을 때 플립보드 숨기기 */
@media (orientation: landscape) and (max-width: 1200px) {
    .flip-board-container {
        display: none !important;
    }
}

/* 스크롤바 스타일 */
.benefit-section::-webkit-scrollbar {
    width: 6px;
}

.benefit-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.benefit-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.benefit-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==================== shared-style.css에서 추가된 고유 스타일 ==================== */
.header-left {
    flex: 1;
}

.header-right {
    flex-shrink: 0;
}

.signature-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ktcs-logo {
    height: 45px;
    width: auto;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* 시그니쳐 사인 */
.signature-section {
    position: absolute;
    bottom: 8px;
    right: 20px;
    font-size: 12px;
    opacity: 0.7;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.5px;
}

.signature-text {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}


.search-bar {
    display: flex;
.option-card {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
    display: flex;
.option-card:hover {
    border-color: #A50034;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 0, 52, 0.1);
}

.option-card.selected {
    border-color: #A50034;
    background: #fce4ec;
    color: #A50034;
    font-weight: bold;
}

.option-card .option-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
    width: 100%;
    white-space: nowrap;
    text-align: center;
}
.option-card .option-detail {
    font-size: clamp(10px, 2vw, 12px);
    color: #666;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
.option-card .option-title {
    /* 기본 스타일만 유지 */
}

/* 모바일 차단 모달 스타일 */
#mobileBlockModal {
    display: none;
    position: fixed;
    z-index: 10000001; /* 공지/디스클레이머보다 앞에 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

#mobileBlockModal .modal-content {
    background-color: #fefefe;
    margin: 20% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideInModal 0.3s ease-out;
    overflow: hidden;
}

#mobileBlockModal .modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: none;
}

#mobileBlockModal .modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#mobileBlockModal .modal-body {
    padding: 30px 20px;
    text-align: center;
    line-height: 1.6;
}

#mobileBlockModal .modal-body .icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

#mobileBlockModal .modal-body h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

#mobileBlockModal .modal-body p {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
}

#mobileBlockModal .modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

#mobileBlockModal .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

#mobileBlockModal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
