﻿.buy-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

    /* 장바구니 / 구매하기 공통 */
    .buy-buttons input,
    .buy-buttons button {
        flex: 1;
        width: 0;
        height: 50px;
        border: 0;
        border-radius: 8px;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        box-sizing: border-box;
    }


    /* 장바구니 */
    .buy-buttons .btn_cart {
        background: #555;
    }


    /* 구매하기 */
    .buy-buttons .btn-direct-buy {
        background: #222;
    }


    /* 클릭 효과 */
    .buy-buttons input:active,
    .buy-buttons button:active {
        transform: scale(0.98);
    }

/* 수량 버튼 */
.btn-default {
    line-height: 0;
}

/* 회사정보 */
.company-info {
    margin-top: 20px;
    padding: 15px 10px 55px 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.4;
    color: #999;
    text-align: left;
    word-break: keep-all;
}

    .company-info div {
        margin-bottom: 1px;
    }



/* 이용약관 링크 */
.policy-links {
    margin-bottom: 14px !important;
    margin-bottom: 12px;
    font-size: 13px;
}

    .policy-links a {
        color: #666;
        text-decoration: none;        
    }

    .policy-links span {
        margin: 0 8px;
        color: #ccc;
    }



/* ====================================
   이용약관 / 개인정보처리방침 전체화면
==================================== */

.policy-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #fff;
    z-index: 999999;
}

/* 상단 */
.policy-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    z-index: 2;
}


/* 제목 */
.policy-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
}


/* 닫기 */
.policy-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: 0;
    background: transparent;
    font-size: 30px;
    font-weight: normal;
    color: #555;
    cursor: pointer;
}

/* 내용 */
.policy-content {
    position: absolute;
    top: 55px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 20px 15px 40px 15px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    -webkit-overflow-scrolling: touch;
}


/* 상세페이지 펼쳐보기 시작 */
.product-detail {
    position: relative;
    max-height: 3000px;
    overflow: hidden;
}

    .product-detail:after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 180px;
        background: linear-gradient( to bottom, rgba(255,255,255,0), rgba(255,255,255,1) );
        pointer-events: none;
    }

    .product-detail.open {
        max-height: none;
    }

        .product-detail.open:after {
            display: none;
        }

.detail-more {
    position: relative;
    z-index: 10;
    margin-top: -1px;
}

    .detail-more button {
        width: 100%;
        height: 55px;
        background: #fff;
        border: 1px solid #ddd;
        color: #666;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

        .detail-more button span {
            margin-left: 8px;
            font-size: 18px;
        }
/* 상세페이지 펼쳐보기 끝 */


.buy-top {
    position: relative;
    height: 40px;
}


/* 가운데 손잡이 */
.buy-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


    .buy-handle span {
        width: 45px;
        height: 4px;
        background: #aaa;
        border-radius: 10px;
    }


/* 오른쪽 닫기 버튼 */
.buy-close-btn {
    position: absolute;
    top: 7px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
    line-height: 23px;
    color: #777;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 상품 탭 */
.product-tab {
    display: flex;
    width: 100%;
    margin-top: 20px;
    background: #fff;
}


/* 상품 탭 */
.product-tab {
    display: flex;
    width: 100%;
    margin-top: 20px;
    background: #fff;
}

/* 탭 버튼 */
.product-tab-btn {
    flex: 1;
    height: 48px;
    border: 0;
    background: #fff;
    font-size: 14px;
    color: #777;
    cursor: pointer;
    position: relative;
}

    .product-tab-btn:last-child {
        border-right: 0;
    }
    /* 선택된 탭 */
    .product-tab-btn.active {
        color: #222;
        font-weight: bold;
    }

        /* 선택된 탭 아래 선 */
        .product-tab-btn.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 4px;
            background: #26734D;
        }

.product-tab-content {
    display: none !important;
}

    .product-tab-content.active {
        display: block !important;
    }

#tab-notice,
.tab-emptycol-xs-12 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* 영역을 넘쳐나는 요소 강제 자르기 */
}

    /* 2. 이미지 자체 및 이미지 태그 크기 강제 제어 */
    .tab-emptycol-xs-12 img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

/* 임시 내용 */
.tab-empty {
    padding: 40px 15px;
    text-align: left;
    font-size: 14px;
    color: #999;    
}

.btn-qna-write {
    padding: 10px 20px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.btn-qna-cancel {
    padding: 10px 25px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
}

.btn-qna-save {
    padding: 10px 25px;
    border: 0;
    background: #333;
    color: #fff;
    cursor: pointer;
}

/* =========================
   상품문의 목록 (List)
========================= */
.qna-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5px 15px 0;
    border-bottom: 2px solid #333;
}

    .qna-header p {
        margin: 0 0 0 10px;
        font-size: 12px;
        color: #777;
    }

.qna-item {
    border-bottom: 1px solid #ddd;
}

.qna-table {
    display: flex;
    align-items: center;
    min-height: 55px;
}

.qna-row {
    cursor: pointer;
}

    .qna-row:hover {
        background: #fafafa;
    }

/* 컬럼 영역 */
.qna-no {
    width: 5%;
    text-align: center;
}

.qna-subject {
    width: 55%;
    padding-left: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qna-name {
    width: 15%;
    text-align: center;
}

.qna-date {
    width: 20%;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.qna-status {
    width: 5%;
    text-align: center;
    font-weight: bold;
}

    .qna-status.wait {
        color: #999;
    }

    .qna-status.complete {
        color: #d9534f;
    }

.qna-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 3px 7px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    border-radius: 4px;
}

    .qna-arrow:hover {
        background: #f7f7f7;
    }

    .qna-arrow .arrow {
        font-size: 10px;
        transition: transform 0.3s;
    }

/* 비밀번호 입력 영역 (비밀글) */
.qna-password {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px dashed #eee;
    justify-content: center;
}

.qna-secret-text {
    color: #777;
    font-size: 14px;
}

.qna-password-input {
    width: 150px;
    height: 38px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    outline: none;
}

.qna-password-btn {
    height: 38px;
    padding: 0 15px;
}

/* 문의/답변 내용 영역 */
.qna-content {
    padding: 30px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.qna-label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.qna-question {
    padding-bottom: 20px;
}

.qna-answer {
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.qna-text {
    line-height: 1.7;
    white-space: pre-wrap;
    color: #555;
}

/* =========================
   상품문의 작성 팝업 (Popup)
========================= */
.qna-popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.qna-popup-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.qna-popup-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.qna-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
}

    .qna-popup-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: bold;
    }

    .qna-popup-header button {
        border: 0;
        background: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
    }

.qna-popup-body {
    padding: 25px;
    max-height: 80vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        font-size: 14px;
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.qna-secret {
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.qna-privacy {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #eee;
}

.qna-privacy-check {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.qna-privacy-info {
    color: #777;
    font-size: 12px;
    line-height: 1.8;
}

    .qna-privacy-info strong {
        color: #333;
    }

.qna-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.review-container {
    width: 100%;
    max-width: 650px;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 13px;
    color: #333;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: #071e37;
    font-size: 15px;
    letter-spacing: -1px;
}

.user-name {
    font-weight: bold;
    margin-left:5px;
}

.reg-date {
    color: #888;
}

.btn-report {
    color: #888;
    text-decoration: none;
    font-size: 12px;
}

.review-content {
    margin: 12px 0 20px 0;
    line-height: 1.5;
    word-break: break-all;
}

.review-helpful-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #666;
    margin-bottom: 8px;
}

.btn-helpful {
    display: inline-block;
    padding: 4px 14px;
    background-color: #a0a0a0;
    color: #fff !important;
    border-radius: 15px;
    text-decoration: none !important;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

    .btn-helpful:hover {
        background-color: #888;
    }

.helpful-count-info {
    text-align: right;
    color: #888;
    font-size: 12px;
}

    .helpful-count-info strong {
        color: #333;
    }