/* BASIC css start */
/* ----- 1. (대체용) 새 하단 고정 버튼 (수정) ----- */
.fixed-btn-new-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto; 
    z-index: 998;
    
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    
    background-color: #f9f9f9; 
    border-top: 1px solid #eee;
}
.fixed-btn-new-container.show {
    transform: translateY(0);
}

.fixed-btn-new { 
    display: flex; 
    width: 100%; 
    height: auto; 
    padding: 10px;
    gap: 10px; 
    box-sizing: border-box; 
} 

.fixed-btn-new a { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 16px; 
    font-weight: bold; 
    text-decoration: none; 
    border: none;
    transition: filter 0.2s ease;
    
    height: 44px; 
    border-radius: 5px; 
    box-sizing: border-box; /* [추가] 테두리가 있어도 크기 유지 */
}

/* [수정] '선물하기' 버튼 (메인) - 흰색 배경 + 검정 테두리/글씨 */
.fixed-btn-new a.gift_btn { 
    background-color: #ffffff;
    color: #222222; /* 검정 글씨 */
    border: 1px solid #222222; /* 검정 테두리 */
}
/* '구매하기' 버튼 (메인) - 눈에 띄는 주황색 (유지) */
.fixed-btn-new a.buy_btn { 
    background-color: #D9531E; 
    color: #ffffff;
}

/* 마우스 오버/클릭 시 밝기 변경 */
.fixed-btn-new a:hover,
.panel-action-buttons a:hover {
    filter: brightness(0.95); /* [수정] 흰색 버튼은 어두워져야 하므로 0.95로 변경 */
}
.fixed-btn-new a.buy_btn:hover,
.panel-action-buttons a.panel-buy-btn:hover,
.panel-action-buttons a.panel-gift-btn:hover {
    filter: brightness(1.15); /* 주황색 버튼은 밝아지게 유지 */
}


/* (중요) 기존 5개짜리 하단 버튼 숨기기 (동일) */
#contents .fixed-btn {
    display: none !important;
}

/* ----- 2. 새 옵션 패널 (동일) ----- */
#option-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80vh; 
    background-color: #ffffff;
    z-index: 1000;
    transform: translateY(100%); 
    transition: transform 0.3s ease-in-out; 
    display: flex;
    flex-direction: column;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
#option-panel.show { transform: translateY(0); }

/* ----- 3. 뒷배경 오버레이 (동일) ----- */
#option-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 999;
    display: none; 
}
#option-overlay.show { display: block; }

/* --- 4. 옵션 패널 내부 스타일 (동일) --- */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.panel-header h3 { font-size: 18px; font-weight: bold; margin: 0; }
.panel-header #close-option-panel { font-size: 24px; font-weight: bold; color: #333; background: none; border: none; cursor: pointer; }

.panel-body {
    flex: 1; 
    overflow-y: auto; 
    padding: 20px;
}

.panel-footer {
    padding: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    border-top: 1px solid #eee;
}

/* 팝업창 내부 버튼들 (동일) */
.panel-action-buttons { display: flex; gap: 10px; } 
.panel-action-buttons a { 
    flex: 1; 
    padding: 15px; 
    text-align: center; 
    font-size: 16px; 
    font-weight: bold; 
    text-decoration: none; 
    border-radius: 5px; 
    border: none;
    transition: filter 0.2s ease; 
}
/* '장바구니' 버튼 (다크 그레이) */
.panel-action-buttons a.panel-cart-btn { 
    background-color: #555555; 
    color: white; 
}
/* '바로구매' 버튼 (주황색) */
.panel-action-buttons a.panel-buy-btn { 
    background-color: #D9531E; 
    color: white; 
}


/* --- 5. '옵션 시스템' 덮어쓰기 스타일 (동일) --- */
.panel-body .option_area {
    background: none; 
    border: none; 
    padding: 0; 
}
.panel-body .option_area .tit_opt {
    display: none;
}
.panel-body .option_area .btn_close {
    display: none;
}
.panel-body .shopdetailInfoSelect .basic_option,
.panel-body .shopdetailInfoSelect .add_option {
    width: 100% !important;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 5px; /* [추가] 이 한 줄을 넣어주세요 */
    border: 1px solid #ccc;
    border-radius: 5px;
    height: auto; 
}
.panel-body .shopdetailMultiSelect {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 15px; 
}
.panel-body .shopdetailMultiSelect .total {
    padding: 15px 5px 5px 5px; 
    margin-top: 10px;
    border-top: 1px solid #eee; 
}
.panel-body .shopdetailMultiSelect .MK_txt-total {
    font-size: 16px;
    font-weight: bold;
}
.panel-body .shopdetailMultiSelect #MK_p_total {
    font-size: 24px;
    font-weight: bold;
    color: #e50000; /* 총 금액은 눈에 띄게 레드로 유지 */
}

/* --- 6. 팝업창 내부 스타일 보정 (동일) --- */
#option-panel .today-delivery {
    display: none !important;
}
#option-panel .buy_on {
    display: none !important;
}

/* --- 7. '선물하기' 모드 CSS (동일) --- */
/* '선물하기' 버튼 (팝업) - 주황색 */
.panel-action-buttons a.panel-gift-btn {
    background-color: #D9531E;
    color: white;
}
.panel-action-buttons.gift-mode {
    display: none;
}
#option-panel.gift-mode-active .panel-action-buttons.buy-mode {
    display: none; 
}
#option-panel.gift-mode-active .panel-action-buttons.gift-mode {
    display: flex; 
}



/* BASIC css end */

