/* datePage_v2.css - 최적화된 Air Datepicker 예약 페이지 스타일 */

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

/* 기존 test-header 스타일을 page-header로 변경 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-back {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(-2px);
}

.page-title {
    font-size: 30px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .page-header {
        padding: 12px 15px;
    }
    
    .btn-back {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .page-title {
        font-size: 20px;
    }
}

/* 상품 정보 스타일 */
#product_info {
    padding: 10px 0;
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 12px;
    background: white;
}

/* 상품 제목 - JavaScript가 폰트 크기 담당하므로 기본만 */
#sit_title {
    color: #333;
    font-weight: 800;
    background: #F7F7F7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 모바일 상품 제목 */
@media (max-width: 768px) {
    #sit_title {
        font-size: 24px;
    }
}

/* PC 상품 제목 */
@media (min-width: 769px) {
    #sit_title {
        font-size: 32px;
    }
}

/* 달력 섹션 */
.calendar-section {
    background: white;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.calendar-section.expanded {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 모바일 달력 섹션 */
@media (max-width: 768px) {
    .calendar-section {
        padding: 20px;
        margin: 10px;
        border-radius: 12px;
    }
}

/* PC 달력 섹션 */
@media (min-width: 769px) {
    .calendar-section {
        padding: 30px;
    }
}

/* 달력 제목 */
.calendar-title {
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

@media (max-width: 768px) {
    .calendar-title {
        font-size: 24px;
    }
}

@media (min-width: 769px) {
    .calendar-title {
        font-size: 28px;
    }
}

/* 달력 컨테이너 - 레이아웃만, 폰트는 JavaScript 담당 */
#calendar-container {
    width: 100%;
}

@media (max-width: 768px) {
    #calendar-container {
        max-width: calc(100vw - 40px);
        margin: 0 auto;
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    #calendar-container {
        max-width: 650px;
        margin: 0 auto;
    }
}

/* Air Datepicker 기본 레이아웃만 - 폰트 관련 모든 !important 제거 */
#calendar-container .datepicker-inline,
#calendar-container .datepicker-inline .datepicker {
    width: 100%;
    max-width: none;
    border: none;
    box-shadow: none;
    font-family: 'Noto Sans KR', sans-serif;
}

#calendar-container .datepicker {
    background: white;
    border: none;
    border-radius: 12px;
}

@media (max-width: 768px) {
    #calendar-container .datepicker {
        padding: 10px;
        width: 100%;
        min-width: auto;
    }
}

@media (min-width: 769px) {
    #calendar-container .datepicker {
        padding: 30px;
        min-width: 600px;
    }
}

/* 달력 네비게이션 */
#calendar-container .datepicker-nav {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    #calendar-container .datepicker-nav {
        padding: 8px;
    }
}

@media (min-width: 769px) {
    #calendar-container .datepicker-nav {
        padding: 20px;
    }
}

/* 네비게이션 제목 - JavaScript가 폰트 크기 담당 */
#calendar-container .datepicker-nav-title {
    font-weight: 600;
    color: #333;
}

/* 네비게이션 버튼 */
#calendar-container .datepicker-nav-prev, 
#calendar-container .datepicker-nav-next {
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    border: none;
}

@media (max-width: 768px) {
    #calendar-container .datepicker-nav-prev, 
    #calendar-container .datepicker-nav-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    #calendar-container .datepicker-nav-prev, 
    #calendar-container .datepicker-nav-next {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

#calendar-container .datepicker-nav-prev:hover, 
#calendar-container .datepicker-nav-next:hover {
    background: #007bff;
    color: white;
}

/* 요일 헤더 */
#calendar-container .datepicker-days-names {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

#calendar-container .datepicker-days-names div {
    font-weight: 600;
    color: #666;
}

@media (max-width: 768px) {
    #calendar-container .datepicker-days-names div {
        font-size: 12px;
        padding: 8px 0;
    }
}

@media (min-width: 769px) {
    #calendar-container .datepicker-days-names div {
        font-size: 18px;
        padding: 15px 0;
    }
}

/* 달력 날짜 셀 - 레이아웃만, 폰트/크기는 JavaScript 담당 */
#calendar-container .datepicker-cell {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    #calendar-container .datepicker-cell {
        margin: 1px;
        width: calc(14.28% - 2px);
        min-width: auto;
    }
}

@media (min-width: 769px) {
    #calendar-container .datepicker-cell {
        margin: 4px;
    }
}

#calendar-container .datepicker-cell:hover {
    background: #e3f2fd;
    color: #1976d2;
    transform: scale(1.05);
}

#calendar-container .datepicker-cell.-selected- {
    background: #007bff;
    color: white;
    font-weight: 800;
    transform: scale(1.1);
}

#calendar-container .datepicker-cell.-disabled- {
    color: #ccc;
    background: #f8f9fa;
    cursor: not-allowed;
}

#calendar-container .datepicker-cell.-weekend- {
    color: #dc3545;
    font-weight: 700;
}

/* 모바일 전용 - 달력 테이블 */
@media (max-width: 768px) {
    #calendar-container .datepicker-table {
        width: 100%;
        table-layout: fixed;
    }
    
    #calendar-container .datepicker-table td,
    #calendar-container .datepicker-table th {
        width: 14.28%;
        padding: 0;
    }
}

/* 선택된 날짜 표시 */
.selected-date-display {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    display: none;
}

@media (max-width: 768px) {
    .selected-date-display {
        font-size: 16px;
    }
}

@media (min-width: 769px) {
    .selected-date-display {
        font-size: 18px;
    }
}

.selected-date-display.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 옵션 영역 */
.selOption {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.selOption.expanded {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 로딩 애니메이션 */
.option-loader {
    text-align: center;
    padding: 40px;
    display: none;
}

.option-loader::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 하단 고정 구매 버튼 */
.buy-area-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.15);
    border-top: 1px solid #eee;
}

.buy-buttons-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 구매 버튼 기본 스타일 */
.buyButton, .buyButton2, .giftButton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 250px;
}

@media (max-width: 768px) {
    .buyButton, .buyButton2, .giftButton {
        padding: 15px 25px;
        font-size: 16px;
        min-width: 140px;
    }
}

@media (min-width: 769px) {
    .buyButton, .buyButton2, .giftButton {
        padding: 18px 35px;
        font-size: 18px;
        min-width: 180px;
    }
}

.buyButton:hover, .buyButton2:hover, .giftButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.giftButton {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 바로구매 버튼 */
.PayNow, .giftNow {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .PayNow, .giftNow {
        padding: 15px 25px;
        font-size: 18px;
    }
}

@media (min-width: 769px) {
    .PayNow, .giftNow {
        padding: 18px 35px;
        font-size: 20px;
    }
}

.PayNow:hover, .giftNow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* 추가 스타일 - CSS 파일에 없는 v3 전용 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
}

.popup-content h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.section-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.section-card:not([style*="display: none"]) {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

#product_info {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#product_title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.price-info {
    text-align: right;
    padding: 5px 0;
    margin-top: 15px;
}

.discount-rate {
    font-size: 24px;
    color: #e0277a;
    font-weight: 900;
    margin-right: 10px;
}

.original-price {
    text-decoration: line-through;
    font-size: 18px;
    color: #999;
    margin-right: 15px;
}

.current-price {
    font-size: 32px;
    font-weight: 900;
    color: #333;
}

.selected-info {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    animation: slideUp 0.3s ease;
}

.selected-option-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.option-info {
    flex: 1;
    min-width: 200px;
}

.option-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.option-price {
    font-size: 16px;
    color: #666;
}

.option-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 수량 조절 부분만 1줄로 */
@media (max-width: 768px) {
    .option-controls {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
    }
    
    .option-total {
        display: inline !important;
        /*margin-left: 10px !important;*/
    }

    .remove-btn {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;  /* 최소 너비 고정 */
        min-height: 25px !important; /* 최소 높이 고정 */
        max-width: 25px !important;  /* 최대 너비 제한 */
        max-height: 25px !important; /* 최대 높이 제한 */
        padding: 0 !important;
        background: #dc3545;
        color: white;
        border: none !important;
        border-radius: 50% !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 10px;
        flex-shrink: 0 !important;   /* 크기 변경 방지 */
        box-sizing: border-box !important;
    }

    .qty-btn {
        width: 35px !important; 
        height: 35px !important;
        min-width: 25px !important;  /* 최소 너비 고정 */
        min-height: 25px !important; /* 최소 높이 고정 */
        border: 2px solid #ddd;
        background: #F5FFFF !important;
        border-radius: 8px;
        font-size: 28px !important;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        vertical-align: middle;
        padding: 0;           /* padding auto 제거 */
        display: flex;        /* 중앙 정렬용 */
        align-items: center;  /* 세로 중앙 */
        justify-content: center; /* 가로 중앙 */
        flex-shrink: 0 !important;   /* 크기*/
    }
}

.option-total {
    font-size: 13px;
    font-weight: 700;
    color: #007bff;
    min-width: 100px;
    text-align: right;
    padding-right: 33px;
}

.total-price {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
    font-size: 24px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.error-msg {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 12px;
}

.btn-gift, .btn-buy, .btn-buy-single, .btn-final-buy {
    padding: 18px 35px;
    font-size: 28px !important;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.btn-buy, .btn-buy-single {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-gift {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-final-buy {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.btn-gift:hover, .btn-buy:hover, .btn-buy-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-final-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

@media (max-width: 768px) {
    .section-card {
        margin: 10px;
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    #product_title {
        font-size: 22px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .selected-option-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-gift, .btn-buy, .btn-buy-single, .btn-final-buy {
        padding: 15px 25px;
        font-size: 26px;
    }
}
/* 추가 스타일 - CSS 파일에 없는 v3 전용 스타일 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
}

.popup-content h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.section-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.section-card:not([style*="display: none"]) {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

#product_info {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#product_title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.discount-rate {
    font-size: 24px;
    color: #e0277a;
    font-weight: 900;
    margin-right: 10px;
}

.original-price {
    text-decoration: line-through;
    font-size: 18px;
    color: #999;
    margin-right: 15px;
}

.current-price {
    font-size: 32px;
    font-weight: 900;
    color: #333;
}

.selected-info {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    animation: slideUp 0.3s ease;
}

.selected-option-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.option-info {
    flex: 1;
    min-width: 200px;
}

.option-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.option-price {
    font-size: 14px;
    color: #666;
}

.option-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;           /* padding auto 제거 */
    display: flex;        /* 중앙 정렬용 */
    align-items: center;  /* 세로 중앙 */
    justify-content: center; /* 가로 중앙 */
}

.qty-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.qty-input {
    width: 55px;
    height: 35px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center !important;
    font-size: 16px;
    font-weight: 600;
}

.remove-btn {
    width: 35px;          /* 고정 크기 */
    height: 35px;         /* 고정 크기 */
    padding: 0;           /* padding 제거 */
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;   /* 원형으로 */
    font-size: 20px;      /* 폰트 크기 조정 */
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 15px;    /* 간격 줄이기 */
    display: flex;        /* 중앙 정렬용 */
    align-items: center;  /* 세로 중앙 */
    justify-content: center; /* 가로 중앙 */
}

.remove-btn:hover {
    background: #c82333;
}

.total-price {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
    font-size: 24px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.error-msg {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 12px;
}

.btn-gift, .btn-buy, .btn-buy-single, .btn-final-buy {
    padding: 18px 35px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.btn-buy, .btn-buy-single {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-gift {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-final-buy {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.btn-gift:hover, .btn-buy:hover, .btn-buy-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-final-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

@media (max-width: 768px) {
    .section-card {
        margin: 10px;
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    #product_title {
        font-size: 22px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .selected-option-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-gift, .btn-buy, .btn-buy-single, .btn-final-buy {
        padding: 15px 25px;
        font-size: 26px !important;
    }
}

/********************************************/

/* 드롭다운 센터 정렬 */
#option-container,
#it_option_sec {
    text-align: center;
    padding: 20px;
}

.it_option, select, 
#option-container select,
#it_option_sec select,
select.it_option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #333;
    outline: none;
    background: white;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    transition: border-color 0.3s ease;
    /* 센터 정렬 관련 */
    margin: 0 auto;
    display: block;
    
}

/* PC 크기 */
@media (min-width: 769px) {
    .it_option, select, 
    #option-container select,
    #it_option_sec select,
    select.it_option {
        padding: 18px 20px;
        font-size: 20px;
        min-width: 1050px;
        min-height: 60px;
        width: 100%; /* PC에서는 80% 너비 */
    }
    .qty-input {
    width: 55px;
    height: 35px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center !important;
    font-size: 16px;
    padding-left: 10px;
    font-weight: 600;
}
}

/* 모바일 크기 */
@media (max-width: 768px) {
    .it_option, select, 
    #option-container select,
    #it_option_sec select,
    select.it_option {
        padding: 10px 5px;
        font-size: 18px;
        min-height: 50px;
        width: 100%; /* 모바일에서는 100% 너비 */
    }
}

/* 빈 label 숨기기 */
#option-container label,
#it_option_sec label {
    display: none !important;
}

/* 포커스 시 파란 테두리 */
.it_option:focus, select:focus,
#option-container select:focus {
    border-color: #667eea;
}

/********************************************/
/* 포커스 시 파란 테두리 */
.it_option:focus, select:focus,
#option-container select:focus {
    border-color: #667eea;
}

/* 빈 label 숨기기 */
#option-container label,
#it_option_sec label,
.get_item_options label {
    display: none !important;
}

/* 팝업이 떠있을 때만 스크롤 방지 */
body.popup-open {
    overflow: hidden !important;
}

body.popup-open .container {
    filter: blur(10px);
    pointer-events: none; /* 뒷배경 클릭 방지 */
}

/* ========================================
   회원코드 팝업 CSS (보라색 헤더 스타일)
   ======================================== */

/* 팝업 오버레이 */
.code-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 팝업 컨텐츠 */
.code-popup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    animation: popupSlideUp 0.3s ease;
}

@keyframes popupSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* 보라색 헤더 */
.popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 24px;
    text-align: center;
    position: relative;
}

/* 헤더 제목 (자물쇠 포함) */
.popup-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 흰색 본문 */
.popup-body {
    padding: 32px 24px 24px 24px;
    text-align: center;
}

/* 설명 텍스트 */
.popup-body p {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 24px 0;
    line-height: 1.5;
    font-weight: 500;
}

/* 고정 경고 박스 (일반 스타일) */
.warning-box {
    background: #fff8e1;
    color: #f57c00;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    margin: 0 0 20px 0;
    font-weight: 500;
    border: 1px solid #ffecb3;
}

/* 동적 메시지 (강조 스타일) */
.code-message {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin: 0 0 20px 0;
    font-weight: 600;
    border-left: 4px solid;
}

.code-message.error {
    background: #ffebee;
    color: #d32f2f;
    border-left-color: #f44336;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.code-message.success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

/* 입력 영역 */
.code-input-wrap {
    margin: 0 0 24px 0;
}

/* 입력 필드 */
.code-input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.code-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.code-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
    letter-spacing: normal;
}

/* 확인 버튼 */
.code-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.code-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.code-btn:active {
    transform: translateY(0);
}

.code-btn:disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .code-popup-overlay {
        padding: 16px;
    }
    
    .code-popup {
        max-width: none;
        border-radius: 16px;
    }
    
    .popup-header {
        padding: 38px 20px;
    }
    
    .popup-header h3 {
        font-size: 24px;
    }
    
    .popup-body {
        padding: 24px 20px 20px 20px;
    }
    
    .popup-body p {
        font-size: 17px;
        margin-bottom: 20px;
    }
    
    .warning-box {
        font-size: 14px;
        padding: 12px 16px;
        margin-bottom: 16px;
    }
    
    .code-message {
        font-size: 15px;
        padding: 12px 16px;
        margin-bottom: 16px;
        white-space: pre-line;
    }
    
    .code-input-wrap {
        margin-bottom: 20px;
    }
    
    .code-input {
        height: 52px;
        font-size: 17px;
        border-radius: 12px;
    }
    
    .code-btn {
        height: 52px;
        font-size: 17px;
        border-radius: 12px;
    }
}

