/* detailPage.css - detailPage.hdt 전용 독립 스타일시트 */
/* dealPage.css를 대체하는 완전한 스타일시트 */

/* =====================================================
   기본 페이지 레이아웃 스타일
   ===================================================== */

.black_overlay{
	display: none;
	position: absolute;
	top: 0%;
	left: 0%;
	width: 100%;
	height: 100%;
	background-color: black;
	z-index:1001;
	-moz-opacity: 0.8;
	opacity:.80;
	filter: alpha(opacity=80);
}

.white_content {
	display: none;
	position: relative;
	margin: auto;
	width: 100%;
	height: auto;
	padding: 16px;
	border: 10px solid #777777;
	background-color: #0185cd;
	z-index:1002;
	overflow: auto;
}

/* 옵션 영역 */
.optionArea {
	display: none;
	position: fixed;
	overflow-y: auto;
	height: expression( this.scrollHeight > 99 ? "750px" : "auto" );
	max-height: 750px;
	bottom: 120px;
	width: 1200px;
	max-width: 1200px;
	background: #FFF;
	border: 1px solid gray;
	padding: 30px 20px 50px 20px;
	z-index: 3;
}

@media (pointer:coarse) {
	.optionArea {
		display: none;
		position: fixed;
		overflow-y: auto;
		height: expression( this.scrollHeight > 99 ? "1500px" : "auto" );
		max-height: 1500px;
		bottom: 120px;
		width: 1200px;
		max-width: 1200px;
		background: #FFF;
		border: 1px solid gray;
		padding: 30px 20px 50px 20px;
		z-index: 3;
	}
}

.hideOption {
	float: right;
	position: relative;
	margin-bottom: 20px;
	padding: 5px 15px;
	border: 2px solid gray;
	font-weight: 900;
	font-size: 40px;
	cursor: pointer;
}

/* 구매 버튼 영역 */
.buyArea {
	position: fixed;
	bottom: 0;
	width: 1200px;
	background: #E35D0A;
	border: 1px solid gray;
	z-index: 3;
}

.directBuy {
	position: fixed;
	bottom: 0;
	width: 1200px;
	background: #EE8507;
	border: 1px solid gray;
	z-index: 3;
}

.goGift {
	position: fixed;
	bottom: 0;
	width: 1200px;
	background: #EE8507;
	border: 1px solid gray;
	z-index: 3;
}

/* 버튼 스타일 */
.buyButton {
	width: 60%;
	border:0;
	background: #E35D0A;
	font-size: 5em;
	color: #FFF;
	font-weight: 800;
	padding: 40px;
	cursor: pointer;
	z-index: 3;
}

.buyButton2 {
	width: 100%;
	border:0;
	background: #E35D0A;
	font-size: 5em;
	color: #FFF;
	font-weight: 800;
	padding: 40px;
	cursor: pointer;
	z-index: 3;
}

.giftButton {
	width: 39%;
	border :0;
	background: #FFF;
	margin-left: 1px;
	font-size: 5em;
	color: #045574;
	padding: 40px;
	cursor: pointer;
	z-index: 3;
}

.payNow {
	display: none;
	width: 100%;
	border :0;
	background: #EE8507;
	margin-left: 1px;
	font-size: 5em;
	color: #FFF;
	text-align: center;
	padding: 40px 0;
	cursor: pointer;
	font-weight: 900;
}

.giftNow {
	display: none;
	width: 100%;
	border :0;
	background: #EE8507;
	margin-left: 1px;
	font-size: 5em;
	color: #FFF;
	text-align: center;
	padding: 40px 0;
	cursor: pointer;
	font-weight: 900;
}

/* 상품 정보 영역 */
#sub_product {
	/* 필요한 경우 스타일 추가 */
}

#sub_product_detail {
	border:1px solid white;
}

#product_info {
	border: 1px solid white;
	width: 1180px;
}

#sit_title {
	text-align: center;
	font-size: 50px;
	color:#444;
	font-weight: 800;
	background: #F7F7F7;
	padding: 20px 30px;
}

#s_content {
	/* 필요한 경우 스타일 추가 */
}

#sit_tot_price {
	font-size: 40px;
	padding-top: 2px;
}

.sit_option {
	font-size: 30px;
	padding-bottom: 5px;
}

#sit_sel_option {
	font-size: 35px;
	padding-top: 30px;
}

/* =====================================================
   모달 팝업 스타일 - 회원코드 입력
   ===================================================== */

/* 팝업 오버레이 */
.code-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 모달이 열려있을 때 body 스크롤 방지 */
body.modal-open {
    overflow: hidden;
}

/* PC용 팝업 스타일 */
@media (min-width: 481px) {
    /* 팝업 컨텐츠 */
    .code-popup {
        background: white;
        border-radius: 20px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
        max-width: 600px;
        width: 100%;
        overflow: hidden;
        animation: popupSlideUp 0.3s ease;
    }

    /* 보라색 헤더 */
    .popup-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 40px 30px;
        text-align: center;
        position: relative;
    }

    /* 헤더 제목 */
    .popup-header h3 {
        font-size: 32px;
        font-weight: 700;
        margin: 0;
        line-height: 1.3;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    /* 흰색 본문 */
    .popup-body {
        padding: 40px 35px 35px 35px;
        text-align: center;
    }

    /* 설명 텍스트 */
    .popup-body p {
        font-size: 24px;
        color: #4a5568;
        margin: 0 0 30px 0;
        line-height: 1.5;
        font-weight: 500;
    }

    /* 입력 영역 */
    .code-input-wrap {
        margin: 0 0 30px 0;
    }

    /* 입력 필드 */
    .code-input {
        width: 100%;
        height: 70px;
        padding: 0 25px;
        border: 2px solid #e2e8f0;
        border-radius: 16px;
        font-size: 24px;
        font-weight: 500;
        text-align: center;
        letter-spacing: 1px;
        background: #f8fafc;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }

    /* 경고 박스 */
    .warning-box {
        background: #fff8e1;
        color: #f57c00;
        padding: 18px 24px;
        border-radius: 12px;
        font-size: 20px;
        margin: 0 0 25px 0;
        font-weight: 500;
        border: 1px solid #ffecb3;
    }

    /* 확인 버튼 */
    .code-btn {
        width: 100%;
        height: 70px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 16px;
        font-size: 24px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    /* 동적 메시지 */
    .code-message {
        padding: 18px 24px;
        border-radius: 14px;
        font-size: 18px;
        margin: 0 0 25px 0;
        font-weight: 600;
        border-left: 5px solid;
    }
}

/* 모바일용 팝업 스타일 - !important로 강제 적용 */
@media screen and (max-width: 768px) {
    .code-popup-overlay {
        padding: 20px !important;
    }

    /* 팝업 컨텐츠 - 실제 픽셀 크기로 지정 */
    .code-popup {
        background: white !important;
        border-radius: 40px !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
        width: 1000px !important;
        max-width: calc(100vw - 40px) !important;
        min-height: 1600px !important;
        overflow: hidden !important;
        animation: popupSlideUp 0.3s ease !important;
        transform: none !important;
        position: relative !important;
    }

    /* 보라색 헤더 */
    .popup-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        padding: 120px 80px !important;
        text-align: center !important;
        position: relative !important;
    }

    /* 헤더 제목 - 실제 픽셀 크기로 */
    .popup-header h3 {
        font-size: 100px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    /* 흰색 본문 */
    .popup-body {
        padding: 100px 80px 80px 80px !important;
        text-align: center !important;
    }

    /* 설명 텍스트 - 실제 픽셀 크기로 */
    .popup-body p {
        font-size: 65px !important;
        color: #4a5568 !important;
        margin: 0 0 80px 0 !important;
        line-height: 1.5 !important;
        font-weight: 500 !important;
    }

    /* 입력 영역 */
    .code-input-wrap {
        margin: 0 0 80px 0 !important;
    }

    /* 입력 필드 - 실제 픽셀 크기로 */
    .code-input {
        width: 100% !important;
        height: 180px !important;
        padding: 0 60px !important;
        border: 6px solid #e2e8f0 !important;
        border-radius: 40px !important;
        font-size: 70px !important;
        font-weight: 500 !important;
        text-align: center !important;
        letter-spacing: 2px !important;
        background: #f8fafc !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
    }

    /* 경고 박스 - 실제 픽셀 크기로 */
    .warning-box {
        background: #fff8e1 !important;
        color: #f57c00 !important;
        padding: 55px 60px !important;
        border-radius: 30px !important;
        font-size: 55px !important;
        margin: 0 0 80px 0 !important;
        font-weight: 500 !important;
        border: 5px solid #ffecb3 !important;
    }

    /* 확인 버튼 - 실제 픽셀 크기로 */
    .code-btn {
        width: 100% !important;
        height: 180px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 40px !important;
        font-size: 70px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    /* 동적 메시지 - 모바일에서 매우 크게 */
    .code-message {
        padding: 45px 50px !important;
        border-radius: 25px !important;
        font-size: 42px !important;
        margin: 0 0 55px 0 !important;
        font-weight: 600 !important;
        border-left: 10px solid !important;
    }
}

/* 더 작은 모바일 화면용 추가 스타일 */
@media screen and (max-width: 480px) {
    .popup-header h3 {
        font-size: 75px !important;
    }

    .popup-body p {
        font-size: 48px !important;
    }

    .code-input {
        font-size: 48px !important;
        height: 130px !important;
    }

    .code-btn {
        font-size: 48px !important;
        height: 130px !important;
    }

    .warning-box {
        font-size: 40px !important;
    }
}

/* 공통 애니메이션 */
@keyframes popupSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 입력 필드 포커스 효과 */
.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: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;
}

/* 메시지 상태별 스타일 */
.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);
}

/* 세션 정보 표시 영역 */
.session-info {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    color: #4b5563;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.session-info .current-code {
    font-weight: 600;
    color: #667eea;
    margin: 0 8px;
}

.session-info .reset-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

.session-info .reset-btn:hover {
    background: #dc2626;
}