/* 해더 일부 css 무력화 */
.breadcrumb {display: none !important;}

/* GW_basic responsive.css 의 padding 강제 제거 */
.main_boundary, .sub_boundary {padding: 0 !important;}
* {box-sizing: border-box;}

/* ==========view========== */
.view-container {max-width: 1200px; margin: 0 auto; padding: 20px;}
.back-btn {display: inline-block; padding: 8px 16px; margin-bottom: 20px; background: #f0f0f0; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; color: #333;}
.back-btn:hover {background: #e0e0e0;}
.item-detail {display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px;}
.item-image-section {position: sticky; top: 20px; height: fit-content;}
.main-image {width: 100%; aspect-ratio: 1; background: #f0f0f0; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;}
.main-image img {width: 100%; height: 100%; object-fit: cover;}
.main-image.no-image {color: #999; font-size: 18px;}
.item-info-section {background: #fff;}
.category-tag {display: inline-block; padding: 5px 12px; background: #667eea; color: #fff; border-radius: 15px; font-size: 13px; margin-bottom: 10px;}
.item-title {font-size: 28px; font-weight: bold; margin: 0 0 15px 0;}
.item-hashtags {color: #667eea; font-size: 15px; margin-bottom: 20px;}
.info-section {border: 1px solid #ddd; border-radius: 10px; padding: 20px; margin-bottom: 20px;}
.info-section h3 {margin: 0 0 15px 0; font-size: 18px; padding-bottom: 10px; border-bottom: 2px solid #333;}
.info-row {display: flex; margin-bottom: 10px; font-size: 15px;}
.info-label {font-weight: bold; min-width: 120px; color: #666;}
.info-value {flex: 1;}
.description-section {background: #f9f9f9; padding: 20px; border-radius: 10px; margin-bottom: 20px; line-height: 1.6;}

/* 상품 옵션 선택 섹션 */
.option-select-section {}
.option-select-section h3 {margin: 0 0 15px; font-size: 18px; padding-bottom: 10px; border-bottom: 2px solid #333;}
.option-list {margin-top: 20px;}
.option-item {display: flex; align-items: center; padding: 15px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 10px; background: #fff; gap: 15px;}
.option-image {width: 80px; height: 80px; background: #f0f0f0; border-radius: 5px; flex-shrink: 0; overflow: hidden;}
.option-image img {width: 100%; height: 100%; object-fit: cover;}
.option-info {flex: 1; min-width: 0;}
.option-name {font-weight: bold; font-size: 16px; margin-bottom: 5px; word-break: keep-all;}
.option-details {display: flex; gap: 15px; font-size: 14px; color: #666; flex-wrap: wrap;}
.option-price {font-size: 18px; font-weight: bold; color: #667eea;}
.limit-info {font-size: 12px; color: #ff6b6b; font-weight: 500;}
.stock-status {padding: 3px 8px; border-radius: 3px; font-size: 12px;}
.stock-status.available {background: #e8f5e9; color: #4CAF50;}
.stock-status.soldout {background: #ffebee; color: #f44336;}

/* 수량 조절 */
.quantity-control {display: flex; align-items: center; gap: 5px; margin-left: auto; flex-shrink: 0;}
.qty-btn {width: 32px; height: 32px; border: 1px solid #ddd; background: #fff; border-radius: 5px; font-size: 18px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s;}
.qty-btn:hover {background: #f0f0f0;}
.qty-btn:active {background: #e0e0e0; transform: scale(0.95);}
.qty-input {width: 50px; height: 32px; text-align: center; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; font-weight: bold;}
.soldout-badge {padding: 5px 15px; background: #ffebee; color: #f44336; border-radius: 5px; font-size: 14px; font-weight: bold; margin-left: auto; flex-shrink: 0;}

/* 배송 정보 */
.ship-info {background: #fff3cd; padding: 15px; border-radius: 8px; margin-top: 20px;}
.ship-info h4 {margin: 0 0 10px 0; color: #856404; font-size: 16px;}
.ship-methods {display: flex; gap: 10px; flex-wrap: wrap;}
.ship-method {padding: 8px 15px; background: #fff; border: 1px solid #ddd; border-radius: 5px; font-size: 14px;}
.ship-method-radio {display: inline-flex; align-items: center; padding: 12px 15px; background: #fff; border: 2px solid #ddd; border-radius: 8px; cursor: pointer; transition: all 0.3s;}
.ship-method-radio:hover {border-color: #667eea;}
.ship-method-radio input[type="radio"] {margin-right: 8px;}
.ship-method-radio input[type="radio"]:checked + span {color: #667eea; font-weight: bold;}

/* 상세 설명 */
.detail-desc-wrap {max-width: 1200px; margin: 0 auto 60px;}
.detail-desc-title {font-size: 22px; margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 2px solid #333;}
.detail-desc-body {border: 1px solid #e5e5e5; border-radius: 10px; padding: 20px; background: #ffffff; line-height: 1.7;}
.detail-desc-body img {max-width: 100%; height: auto; display: block; margin: 10px auto;}

/* PC용 주문 섹션 */
.pc-order-section {margin-top: 30px; border: 2px solid #667eea; border-radius: 10px; overflow: hidden;}
.pc-selected-items {background: #f9f9ff; padding: 20px; max-height: 300px; overflow-y: auto;}
.pc-selected-items .no-selection {text-align: center; color: #999; padding: 20px; font-size: 15px;}
.pc-selected-items .selected-list {display: flex; flex-direction: column; gap: 12px;}
.pc-selected-items .selected-item {display: flex; align-items: center; gap: 15px; padding: 15px; background: #fff; border-radius: 8px; font-size: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.1);}
.pc-selected-items .selected-item .item-name {flex: 1; font-weight: 500; color: #333;}
.pc-selected-items .selected-item .item-qty {color: #666; font-size: 14px;}
.pc-selected-items .selected-item .item-price {font-weight: bold; color: #667eea; font-size: 16px;}
.pc-order-summary {background: #fff; padding: 20px; border-top: 1px solid #e0e0e0;}
.pc-price-row {display: flex; justify-content: space-between; padding: 8px 0; color: #666;}
.pc-total-row {display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 2px solid #333;}
.pc-total-row span {font-size: 16px; color: #666;}
.pc-total-row strong {font-size: 24px; color: #667eea;}
.pc-order-btn {width: 100%; padding: 18px; background: #667eea; color: #fff; border: none; border-radius: 8px; font-size: 18px; font-weight: bold; cursor: pointer; transition: all 0.3s;}
.pc-order-btn:hover:not(:disabled) {background: #5568d3; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);}
.pc-order-btn:disabled {background: #ccc; cursor: not-allowed; transform: none;}

/* 주문 폼 섹션 */
.order-form-section {margin-top: 30px; padding: 20px; background: #f8f9fa; border-radius: 8px;}
.order-form-section h3 {margin-top: 20px; margin-bottom: 15px; font-size: 18px; font-weight: bold; display: flex; justify-content: space-between; align-items: center;}
.order-form-section h3:first-child {margin-top: 0;}
.order-form-section h3 button {padding: 5px 15px; background: #667eea; color: #fff; border: none; border-radius: 5px; font-size: 14px; cursor: pointer;}
.order-form-section h3 button:hover {background: #5568d3;}
.form-group {margin-bottom: 15px;}
.form-group label {display: block; margin-bottom: 5px; font-weight: 500; font-size: 14px;}
.form-group .required {color: #ef4444;}
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="email"], .form-group select {width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px;}
.form-group button {padding: 10px 20px; background: #667eea; color: white; border: none; border-radius: 5px; cursor: pointer;}
.form-group button:hover {background: #5568d3;}
.form-group label input[type="checkbox"] {margin-right: 8px; width: auto;}

/* 행사 정보 배지 */
.event-info-badge {padding: 15px; border-radius: 10px; margin-bottom: 20px; color: #000000;}
.event-badge {display: inline-block; font-size: 16px; font-weight: bold; margin-bottom: 8px;}
.event-details {display: flex; flex-direction: column; gap: 5px; font-size: 14px; opacity: 0.95;}
.event-details span {display: flex; align-items: center; gap: 5px;}

/* 데스크톱 */
@media (min-width: 769px) {
    .mobile-order-bar {display: none !important;}
    .pc-order-section {display: block;}
    .option-item {display: flex; align-items: center;}
}

/* 태블릿 (768px ~ 1023px) */
@media screen and (max-width: 1023px) {
    .back-btn.pc-only {display: none !important;}
    .option-select-section {padding: 15px;}
    .option-item {padding: 12px; gap: 12px;}
    .option-image {width: 70px; height: 70px;}
    .option-name {font-size: 15px;}
    .option-price {font-size: 16px;}
    .option-details {gap: 10px;}
}

/* 모바일 (767px 이하) */
@media (max-width: 768px) {
    .view-container {padding: 0px;}
    .detail-desc-wrap {padding: 0 10px; margin-bottom: 80px;}
    .back-btn {margin-bottom: 10px;}
    .item-detail {grid-template-columns: 1fr; gap: 15px; margin-bottom: 20px;}
    .item-image-section {position: static;}
    .item-info-section {padding: 0 15px;}
    .main-image {border-radius: 0px;}
    .item-title {font-size: 20px;}
    .info-section {padding: 15px; margin-bottom: 15px; border-radius: 8px;}
    .info-section h3 {font-size: 16px; margin-bottom: 12px;}
    .info-row {font-size: 14px; margin-bottom: 8px;}
    .info-label {min-width: 100px;}
    /* 상품 옵션 */
    .description-section {padding: 15px; margin-bottom: 15px; border-radius: 8px;}
    .option-select-section {padding: 15px; margin-bottom: 15px;}
    .option-select-section h3 {font-size: 16px;}
    .option-list {margin-top: 15px;}
    .option-item {flex-direction: row; align-items: flex-start; padding: 12px;margin-bottom: 8px;border-radius: 8px;gap: 12px;}
    .option-image {width: 70px; height: 70px; aspect-ratio: 1; max-width: none; margin: 0; flex-shrink: 0;}
    .option-info {width: auto; flex: 1; min-width: 0;}
    .option-name {font-size: 14px; margin-bottom: 6px;}
    .option-details {flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px;}
    .option-price {font-size: 16px;}
    .quantity-control {width: auto; margin-left: 0; justify-content: flex-start; margin-top: 8px;}
    .qty-btn {width: 32px; height: 32px; font-size: 18px;}
    .qty-input {width: 50px; height: 32px; font-size: 14px;}
    .soldout-badge {width: auto; text-align: center; margin-left: auto; margin-top: 0; padding: 5px 12px;}
    /* 배송 */
    .ship-info {padding: 12px; border-radius: 8px;}
    .ship-info h4 {font-size: 15px;}
    .ship-methods {flex-direction: column; gap: 8px;}
    .ship-method-radio {width: 100%; padding: 12px;}
    .detail-desc-title {font-size: 18px; margin-bottom: 12px;}
    .detail-desc-body {padding: 15px; border-radius: 8px;}
    .event-info-badge {padding: 12px; border-radius: 8px; margin-bottom: 15px;}
    .event-badge {font-size: 15px;}
    .event-details {font-size: 13px;}
    .order-form-section {padding: 15px; border-radius: 8px;}
    .order-form-section h3 {font-size: 16px; margin-bottom: 12px; flex-direction: row; align-items: center; gap: 10px;}
    .order-form-section h3 button {width: auto; padding: 4px 10px; font-size: 12px;}
    /* 주문자 정보 및 환불 계좌 */
    .order-form-section > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .form-group {margin-bottom: 12px;}


}

/* 작은 모바일 (480px 이하) */
@media screen and (max-width: 480px) {
    .option-select-section {padding: 10px;}  
    .option-item {padding: 10px;} 
    .option-image {width: 60px; height: 60px;}
    .option-name {font-size: 13px;}  
    .option-details {font-size: 11px;} 
    .option-price {font-size: 13px;} 
    .stock-status {font-size: 10px;}
    .limit-info {font-size: 10px;}
    .qty-btn {width: 28px;height: 28px;}
    .qty-input {width: 45px; height: 28px;font-size: 13px;}
}

.login-lock-wrap {
    position: relative;
    min-height: 100vh; /* 최소 높이 보장 */
}

.login-lock-blur {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.login-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.4);
    display: flex;
    justify-content: center;  
    align-items: flex-start;
    padding-top: 100px;          
    z-index: 50;
    min-height: 100vh; /* 최소 높이 추가 */
}

.login-lock-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px 20px;
    max-width: 420px;
    width: 90%; /* 모바일을 위해 조정 */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.login-lock-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px; /* 제목과 버튼 사이 간격 추가 */
}

.go-login-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.go-login-btn:hover {
    background: #ff4d4d;
}

/* 모바일 전용 스타일 추가 */
@media (max-width: 768px) {
    .login-lock-wrap {
        min-height: 80vh;
    }
    
    .login-lock-overlay {
        padding-top: 60px; /* 모바일에서 좀 더 위로 */
        min-height: 80vh;
    }
    
    .login-lock-card {
        width: 90%;
        max-width: 340px;
        padding: 20px 16px;
    }
    
    .login-lock-title {
        font-size: 16px;
        margin-bottom: 16px; /* 모바일에서는 조금 줄임 */
    }
    
    .go-login-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 주문자 정보/환불 계좌 헤더 스타일 */
.order-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.order-info-header h3 {
    margin: 0;
    font-size: 18px;
}

.order-info-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.order-info-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .order-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .order-info-header h3 {
        font-size: 16px;
    }
    
    .order-info-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .order-info-buttons button {
        flex: 1;
        min-width: 80px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .order-info-buttons button {
        font-size: 12px;
        padding: 8px 10px;
    }
}
