/*
   DIAL 사용자단 쇼핑몰 상품 상세페이지 스타일시트 (detail_style.css)
   위치: /view/assets/css/detail_style.css
   대상: view/shop/goods/detail.php (상품 상세 레이아웃, 갤러리, 구매폼, 하단 4탭, 배송/교환/반품 안내)
*/

.detail-container { max-width: 1530px; margin: 0 auto 80px auto; padding: 20px 15px 40px 15px; }
.prod-top-section { display: grid; grid-template-columns: 704px 1fr; gap: 40px; margin-bottom: 50px; align-items: start; }
.prod-top-section > div { min-width: 0; }

/* 이미지 영역 래퍼: PC에서는 메인 이미지(우)와 썸네일(좌)을 가로 나열 */
.prod-image-area-wrap {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
    align-items: start;
    width: 100%;
    max-width: 704px;
    flex-shrink: 0;
}

/* 메인 이미지 래퍼: PC에서는 가로폭 고정, 세로는 메인 이미지 본래 높이대로 자율 결정 */
.prod-main-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--c-line, #e2e8f0);
    background: var(--c-white, #fff);
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    width: calc(100% - 84px);
    height: auto;
    aspect-ratio: unset;
    max-height: none;
    flex-shrink: 0;
}
/* 이미지가 1개 이하일 경우 (썸네일 미노출): 이미지 영역을 전체 폭으로 확장 */
.prod-image-area-wrap.no-thumbs .prod-main-img-wrap {
    width: 100%;
}
.prod-main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: none;
    cursor: pointer;
    transition: opacity 0.25s ease-in-out;
    display: block;
}
.prod-main-img.no-image {
    background: var(--c-fill, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted-2, #94a3b8);
    border: none;
    height: 620px;
}

/* 썸네일 갤러리 래퍼: PC에서는 메인 이미지 세로 높이(top:0; bottom:0) 내로 완벽히 가둠 */
.prod-thumb-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 72px;
    flex-shrink: 0;
    margin-top: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

/* 썸네일 네비게이션 버튼: PC에서는 가로 72px, 세로 28px 상/하단 노출 */
.thumb-nav-btn {
    display: flex !important;
    width: 72px;
    height: 28px;
    border-radius: 8px;
    background: var(--c-white, #ffffff);
    border: 1px solid var(--c-line, #e2e8f0);
    color: var(--c-text-2, #475569);
    font-size: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s;
    flex-shrink: 0;
    outline: none;
}
.thumb-nav-btn i {
    transform: rotate(90deg); /* 가로용 화살표 아이콘을 세로용으로 회전 */
}
.thumb-nav-btn:hover {
    background: var(--c-accent, #ea580c) !important;
    color: var(--c-white, #ffffff) !important;
    border-color: var(--c-accent, #ea580c) !important;
}

/* 썸네일 스크롤 영역: PC에서는 상/하단 화살표 버튼 사이 영역 내에서 세로 스크롤 */
.prod-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    padding: 0;
    width: 72px;
    height: auto;
    max-height: 100%;
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
}
.prod-gallery-thumbs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 개별 썸네일 아이템 */
.thumb-item {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--c-line, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--c-white, #fff);
    box-sizing: border-box;
}
.thumb-item.active {
    border-color: var(--c-accent, #ea580c);
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 중형 화면 (1200px 이하) 반응형 */
@media (max-width: 1200px) {
    .prod-top-section {
        grid-template-columns: 520px 1fr;
        gap: 30px;
    }
    .prod-image-area-wrap {
        max-width: 520px;
    }
}

/* 📍 햄버거 메뉴 노출 반응형 구간 (1024px 이하 태블릿/중소형 화면) */
@media (max-width: 1024px) {
    .prod-top-section {
        grid-template-columns: 42% 1fr;
        gap: 24px;
    }
    .prod-image-area-wrap {
        position: relative;
        display: flex;
        flex-direction: row-reverse;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    .prod-main-img-wrap {
        width: calc(100% - 74px);
        aspect-ratio: unset;
        max-height: none;
    }
    .prod-main-img {
        height: auto;
        object-fit: contain;
    }
    .prod-thumb-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 64px;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }
    .thumb-nav-btn {
        width: 64px;
        height: 24px;
    }
    .prod-gallery-thumbs {
        flex-direction: column;
        width: 64px;
        height: auto;
        max-height: 100%;
    }
    .thumb-item {
        width: 64px;
        height: 64px;
    }
}

/* 모바일 (768px 이하) 반응형 */
@media (max-width: 768px) {
    .prod-top-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .prod-image-area-wrap {
        position: static;
        display: block;
        width: 100%;
    }
    .prod-main-img-wrap {
        width: 100%;
        aspect-ratio: 1/1;
        max-height: 500px;
    }
    .prod-main-img {
        height: 100%;
        object-fit: cover;
    }
    .prod-main-img.no-image {
        height: auto;
        aspect-ratio: 1/1;
    }
    .prod-thumb-wrapper {
        position: static;
        left: auto;
        top: auto;
        bottom: auto;
        margin-top: 12px;
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
        align-items: center;
        box-sizing: border-box;
        gap: 6px;
    }
    .thumb-nav-btn {
        display: flex !important;
        width: 28px;
        height: 64px;
        border-radius: 8px;
        background: var(--c-white, #ffffff);
        border: 1px solid var(--c-line, #e2e8f0);
        color: var(--c-text-2, #475569);
        font-size: 12px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
        transition: all 0.2s;
        flex-shrink: 0;
        outline: none;
    }
    .thumb-nav-btn i {
        transform: none; /* 회전 취소 */
    }
    .thumb-nav-btn:hover {
        background: var(--c-accent, #ea580c) !important;
        color: var(--c-white, #ffffff) !important;
        border-color: var(--c-accent, #ea580c) !important;
    }
    .prod-gallery-thumbs {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
        min-width: 0;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: none;
    }
}
.prod-info-box { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.prod-type-badge { display: inline-block; background: var(--c-fill, #f1f5f9); color: var(--c-text-2, #475569); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.prod-title { font-size: 1.6rem; font-weight: 800; color: var(--c-ink, #0f172a); margin: 10px 0 0; line-height: 1.35; letter-spacing: -0.01em; }
.prod-summary { font-size: 0.92rem; color: var(--c-muted, #64748b); margin: 8px 0 0; line-height: 1.6; }

/* ⭐ 상품 평점 및 리뷰 요약 바 */
.prod-rating-summary-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 0.92rem;
    line-height: 1.4;
    flex-wrap: wrap;
}
.rating-score-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rating-star-icon {
    color: var(--c-danger, #ef4444);
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.rating-avg-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--c-ink, #0f172a);
    letter-spacing: -0.02em;
}
.rating-recent-period {
    font-size: 0.85rem;
    color: var(--c-muted, #64748b);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.rating-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.rating-info-icon {
    font-size: 0.82rem;
    color: var(--c-muted-2, #94a3b8);
    margin-left: 2px;
    transition: color 0.15s;
    vertical-align: middle;
}
.rating-tooltip-wrap:hover .rating-info-icon,
.rating-tooltip-wrap:focus-within .rating-info-icon {
    color: var(--c-text, #334155);
}
.rating-tooltip-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-ink-2, #1e293b);
    color: var(--c-white, #ffffff);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.rating-tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--c-ink-2, #1e293b) transparent transparent transparent;
}
.rating-tooltip-wrap:hover .rating-tooltip-box,
.rating-tooltip-wrap:focus-within .rating-tooltip-box {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}
.rating-divider {
    color: var(--c-line-2, #cbd5e1);
    font-size: 0.82rem;
    margin: 0 2px;
}
.rating-reviews-link {
    color: var(--c-text, #334155);
    text-decoration: underline;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s;
    cursor: pointer;
}
.rating-reviews-link:hover {
    color: var(--c-accent, #ea580c);
    text-decoration: underline;
}

/* 가격 정보 (박스 없이 정돈된 행) */
.price-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.price-table th { text-align: left; padding: 6px 0; color: var(--c-muted, #64748b); font-size: 0.85rem; font-weight: 600; width: 90px; vertical-align: middle; }
.price-table td { padding: 6px 0; color: var(--c-text, #334155); font-size: 0.9rem; vertical-align: middle; }
.price-original { text-decoration: line-through; color: var(--c-muted-2, #94a3b8); font-size: 0.85rem; margin-bottom: 2px; }
.price-discount-rate { color: var(--c-danger-2, #dc2626); font-weight: 700; font-size: 0.85rem; margin-right: 6px; }
.price-final { font-size: 1.4rem; font-weight: 800; color: var(--c-ink-2, #1e293b); letter-spacing: -0.02em; }

.selector-card { background: transparent; border: none; border-radius: 0; padding: 0; margin-bottom: 16px; box-shadow: none; }
.selector-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--c-text, #334155); margin-bottom: 8px; }

/* 여행 상품 예약 수량 안내 — 인원 구성과 수량이 곱해진다는 것을 담기 전에 알려 준다 */
.qty-hint { margin: -8px 0 16px; font-size: 0.8rem; line-height: 1.5; color: var(--c-text-2, #475569); }

/* ── 추가 선택 (조식·포장 등) ──
   조합과 성격이 달라 화면 자리도 따로 둔다. 본품에 얹는 것이므로 조합 아래에 놓는다. */
.addon-pick { margin-top: 15px; }
.addon-pick-sub {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 400;
    color: var(--c-muted-2, #94a3b8);
}
.addon-pick-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.addon-pick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--c-white, #fff);
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--c-text, #334155);
    cursor: pointer;
}
.addon-pick-item:hover { border-color: var(--c-line-2, #cbd5e1); background: var(--c-bg, #f8fafc); }
.addon-pick-item input[type="checkbox"] { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.addon-pick-item:has(input:checked) { border-color: #93c5fd; background: #eff6ff; }
.addon-pick-name { flex: 1; min-width: 0; }
.addon-pick-price { font-weight: 600; color: var(--c-ink, #0f172a); white-space: nowrap; }
.addon-pick-sold {
    font-size: 0.75rem;
    font-weight: 500;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid var(--c-danger-line, #fecaca);
    border-radius: 4px;
    padding: 1px 6px;
    white-space: nowrap;
}
/* 품절 표시는 줄 전체에 붙는다 — 수량칸까지 함께 흐려야 한다 */
.addon-pick-row.is-sold { opacity: 0.55; }
.addon-pick-row.is-sold .addon-pick-item,
.addon-pick-row.is-sold input { cursor: not-allowed; }

/* 남은 수량 — 왜 더 고를 수 없는지 알 수 있어야 한다 */
.addon-pick-stock {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--c-text-2, #475569);
    background: var(--c-fill, #f1f5f9);
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: 4px;
    padding: 1px 6px;
    white-space: nowrap;
}

/* ── 추가 선택 수량 ──
   고른 뒤에만 보인다. 상한은 그 항목의 재고다. */
.addon-pick-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.addon-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 8px 36px;   /* 체크상자 자리만큼 안쪽으로 */
    background: var(--c-bg, #f8fafc);
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: 8px;
}
.addon-qty[hidden] { display: none; }
.addon-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--c-line-2, #cbd5e1);
    background: var(--c-white, #fff);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text-2, #475569);
    cursor: pointer;
    line-height: 1;
}
.addon-qty-btn:hover { background: var(--c-fill, #f1f5f9); }
.addon-qty-input {
    width: 46px;
    height: 28px;
    text-align: center;
    border: 1px solid var(--c-line-2, #cbd5e1);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-ink, #0f172a);
    background: var(--c-white, #fff);
}
.addon-qty-max {
    font-size: 0.75rem;
    color: var(--c-muted-2, #94a3b8);
    margin-left: 2px;
}

/* 조합 카드에 남은 재고를 적어 둔다 — 왜 더 담기지 않는지 알 수 있어야 한다 */
.opt-stock-left {
    font-size: 0.75rem;
    color: var(--c-muted, #64748b);
    text-align: right;
}

/* 살 수 없는 상품의 사유 — 눌리지 않는 버튼만 남기지 않고 이유를 적는다 */
.buy-blocked {
    margin: 0 0 10px;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid var(--c-danger-line, #fecaca);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #b91c1c;
}
.buy-blocked i { margin-right: 6px; }

/* 비활성 구매 버튼은 눌리지 않는다는 것이 보여야 한다 */
.btn-buy-now:disabled,
.btn-cart:disabled {
    background: var(--c-line, #e2e8f0);
    border-color: var(--c-line-2, #cbd5e1);
    color: var(--c-muted-2, #94a3b8);
    cursor: not-allowed;
    opacity: 1;
}

/* 옵션 선택 셀렉트 디자인 (커스텀 화살표) */
.opt-step-dropdown { width: 100%; padding: 12px 38px 12px 14px; border: 1px solid #d7dee6; border-radius: 8px; font-size: 0.9rem; color: var(--c-ink-2, #1e293b); background-color: var(--c-white, #fff); box-sizing: border-box; cursor: pointer; transition: border-color 0.15s; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.opt-step-dropdown:focus { outline: none; border-color: var(--c-muted-2, #94a3b8); }
.opt-step-dropdown:disabled { background-color: var(--c-fill, #f1f5f9); color: var(--c-muted-2, #94a3b8); cursor: not-allowed; }


/* ── 달력 칸 높이 — 가로폭을 따라간다 ──────────────────────────
   예약 달력은 일정을 얹지 않고 «고를 수 있는 날» 을 배경색으로만 보인다.
   그런데 FullCalendar 는 일정이 들어갈 자리를 늘 잡아 두므로 칸이 세로로 길어진다.
   그 자리를 걷어내는 규칙이 예전에는 좁은 화면(768px 이하)에만 있어,
   넓은 화면에서는 라이브러리 기본값 그대로 칸이 컸다.

   ⚠ 높이를 픽셀로 못 박으면 «가로가 좁아져도 세로는 그대로» 다.
     창을 줄일수록 칸이 세로로 길쭉해져 보기 나빠진다 — 그래서 비율로 잡는다.
     가로가 줄면 세로도 함께 준다. 다만 날짜 숫자가 들어갈 자리는 남겨야 하므로
     아래로는 더 납작해지지 않게 하한을 둔다. */

/* 칸 안에 든 것이 날짜 숫자 하나뿐이므로 그 둘레 여백도 줄인다.
   여백을 그대로 두면 칸만 납작해지고 숫자가 칸을 꽉 채워 답답해 보인다. */
/* .fc-highlight-range 규칙은 아래 「선택된 여행 기간」 자리 하나로 모았다.
   여기에 opacity 가 함께 걸려 있어 짙기가 곱해지는 바람에
   고른 날이 거의 보이지 않았다(0.20 × 0.25 = 0.05). */

.selected-opt-card { background: var(--c-bg, #f8fafc); border: 1px solid #e6ebf1; border-radius: 8px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.selected-opt-name { font-size: 13px; font-weight: 700; color: var(--c-ink-2, #1e293b); }
.selected-opt-price { font-size: 13px; font-weight: 800; color: var(--c-text, #334155); }

.people-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--c-line, #e2e8f0); }
.people-row:last-child { border-bottom: none; }
.people-label { font-size: 0.85rem; font-weight: 600; color: var(--c-text-2, #475569); }
.qty-control { display: inline-flex; align-items: center; border: 1px solid #d7dee6; border-radius: 8px; overflow: hidden; background: var(--c-white, #fff); }
.qty-control button { width: 34px; height: 34px; border: none; background: var(--c-bg, #f8fafc); color: var(--c-text, #334155); font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s; }
.qty-control button:hover { background: #eef2f7; color: var(--c-ink-2, #1e293b); }
.qty-control input { width: 44px; height: 34px; border: none; border-left: 1px solid #eef2f7; border-right: 1px solid #eef2f7; text-align: center; font-size: 0.9rem; font-weight: 800; color: var(--c-ink, #0f172a); }

/* 총 예상 결제 금액 (박스 없이 상단 구분선 행) */
.total-price-box { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-line, #e2e8f0); }
.total-price-box .tpb-label { font-size: 0.9rem; color: var(--c-text-2, #475569); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.total-price-box .tpb-amount { font-size: 1.5rem; font-weight: 800; color: var(--c-ink-2, #1e293b); letter-spacing: -0.02em; white-space: nowrap; }

/* 구매 버튼 (Sleek / 절제된 톤 — 커서룰 §9.2 준수) */
.buy-btn-row { display: flex; gap: 8px; margin-top: 18px; align-items: stretch; }
.btn-buy-now { flex: 1.3; background: var(--c-text-2, #475569); color: var(--c-white, #fff); font-size: 0.98rem; font-weight: 700; padding: 15px; border: none; border-radius: 0; cursor: pointer; transition: background 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-buy-now:hover { background: #3b475a; }
.btn-cart { flex: 1; background: var(--c-white, #fff); color: var(--c-text-2, #475569); border: 1px solid var(--c-line-2, #cbd5e1); font-size: 0.95rem; font-weight: 700; padding: 15px; border-radius: 0; cursor: pointer; transition: background 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-cart:hover { background: var(--c-bg, #f8fafc); }

/* 📍 찜하기 버튼 — 라운딩 제거(직각) 및 좌측 버튼과 100% 동일한 높이/테두리 매칭 */
.btn-wish { width: 50px; flex-shrink: 0; align-self: stretch; background: var(--c-white, #fff); color: var(--c-muted, #64748b); border: 1px solid var(--c-line-2, #cbd5e1); border-radius: 0 !important; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.btn-wish:hover { background: var(--c-bg, #f8fafc); }
.btn-wish i { font-size: 1.25rem; color: var(--c-muted, #64748b); transition: color 0.15s; }
.btn-wish.wished { border-color: var(--c-danger, #ef4444) !important; background: var(--c-white, #fff); }
.btn-wish.wished i,
.btn-wish.wished .fa-heart { color: var(--c-danger, #ef4444) !important; }

/* 여행 기간 안내 띠.
   전에는 display:block 이라 글줄이 상자 «위쪽» 에 붙어 보였다.
   flex + align-items:center 로 아이콘과 글자를 세로 한가운데에 맞춘다.
   (여닫이는 JS 가 display 를 block/none 으로 바꾸므로, 열렸을 때만
    flex 가 되도록 .is-open 을 쓰지 않고 JS 쪽에서 flex 를 넣는다) */
.range-highlight-banner {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 12px;
    display: none;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
/* [2박 3일 연속 선택] — 날짜와 구분되게 색을 달리하고 왼쪽을 띄운다 */
.range-highlight-banner .range-nights {
    margin-left: 10px;
    color: var(--c-accent, #ea580c);
    font-weight: 800;
}

/* 우측 구매 패널 반응형 (PC/모바일 고도화) */
@media (max-width: 991px) {
    .prod-title { font-size: 1.5rem; }
    .price-final { font-size: 1.4rem; }
}
@media (max-width: 768px) {
    /* 모바일 좌우 여백 최소화 (입력 가능 폭 확대) */
    .detail-container { padding: 16px 10px 30px 10px; margin-bottom: 50px; }
    .prod-info-box { gap: 16px; }
    .prod-title { font-size: 1.35rem; }
    .price-final { font-size: 1.3rem; }
    .total-price-box .tpb-amount { font-size: 1.4rem; }
    .buy-btn-row { gap: 8px; }
    .btn-buy-now { padding: 15px 12px; font-size: 0.96rem; }
    .btn-cart { padding: 15px 12px; font-size: 0.92rem; }
}

/* FullCalendar 스타일 (좌우 여백 최소화 + 콤팩트) */
/* 달력 칸 높이는 위 한 곳에서만 정한다(비율 + 하한).
   여기 또 적으면 뒤에 있는 쪽이 이겨 위 하한이 뜻을 잃는다 —
   실제로 이 자리는 @media 안처럼 보이지만 그 블록은 앞에서 이미 닫혀 있어
   «모든 폭» 에 걸린다. 눈으로만 보면 좁은 화면 전용으로 읽혀 함정이 된다. */
/* 선택 가능한 날짜: 텍스트 없이 배경색으로 구분 */
/* 선택된 여행 기간 하이라이트 */
/* 배경 일정의 제목(「선택된 여행 기간」)이 날짜 숫자와 겹쳐 보였다 */
/* 고른 날의 숫자를 굵고 진하게 — 바탕만으로는 구분이 약하다 */

/* 상품 상세 정보 에디터 본문 전용 래퍼 (외부 영향 0% 안전 스코프 CSS) */
.goods-detail-body-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-break: break-word;
}
.goods-detail-body-content img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}
.goods-detail-body-content iframe,
.goods-detail-body-content video {
    max-width: 100% !important;
    box-sizing: border-box;
}
.goods-detail-body-content table {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* 상단 공지(웹에디터) 본문 이미지/미디어 박스 이탈 방지 */
.notice-body-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-break: break-word;
}
.notice-body-content img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}
.notice-body-content iframe,
.notice-body-content video {
    max-width: 100% !important;
    box-sizing: border-box;
}
.notice-body-content table {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* ── 하단 후기/문의/배송 안내 4탭 ── */
.detail-bottom-tabs {
    margin-top: 60px;
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: 20px;
    overflow: hidden;
    background: var(--c-white, #ffffff);
}
.tab-header {
    display: flex;
    background: var(--c-bg, #f8fafc);
    border-bottom: 1px solid var(--c-line, #e2e8f0);
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    /* 고른 칸에만 3px 윗선이 «생기면» 그만큼 글자가 아래로 밀린다.
       처음부터 같은 두께를 투명으로 깔아 두고 고를 때 색만 바꾼다.
       border:none 보다 «뒤» 에 두어야 지워지지 않는다. */
    border-top: 3px solid transparent;
    border-right: 1px solid var(--c-line, #e2e8f0);
    padding: 18px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-muted, #64748b);
    cursor: pointer;
    outline: none;
    /* transition: all 이면 굵기(700→800)까지 0.2초 동안 «애니메이션» 으로
       재생된다. 글자가 서서히 두꺼워지며 좌우로 밀려 울렁여 보인다.
       색과 바탕만 부드럽게 하고 굵기는 곧바로 바꾼다. */
    transition: background-color 0.2s, color 0.2s, border-top-color 0.2s;
    text-align: center;
    /* 「상품평 (0)」 처럼 숫자가 든 칸은 굵기가 바뀔 때 숫자 폭까지
       달라져 가운데 정렬이 흔들린다. 숫자를 고정폭으로 그린다. */
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}
.tab-btn:last-child {
    border-right: none;
}
.tab-btn.active {
    background: var(--c-white, #ffffff);
    color: var(--c-accent, #ea580c);
    border-top-color: var(--c-accent, #ea580c);   /* 두께는 그대로, 색만 바꾼다 */
    /* 굵기는 700 그대로 둔다.
       한글은 700↔800 이 0px 로 똑같이 그려지는데 숫자·괄호만 0.55px
       넓어져서, 「상품평 (0)」 처럼 (숫자) 가 든 칸만 글자가 좌우로
       0.27px 밀려 울렁여 보였다. 고른 칸은 흰 바탕·주황 글자·주황
       윗선으로 이미 충분히 드러나므로 굵기까지 바꾸지 않는다. */
}
.tab-content-wrap {
    padding: 30px;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.tab-panel img {
    max-width: 100% !important;
    height: auto !important;
}
.review-item-card {
    border-bottom: 1px dashed var(--c-line, #e2e8f0);
    padding: 20px 0;
}
.review-item-card:last-child {
    border-bottom: none;
}
.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 11px;
    flex-wrap: wrap;
}
.reviewer-name {
    font-weight: 700;
    color: var(--c-text-2, #475569);
}
.review-date {
    color: var(--c-muted-2, #94a3b8);
}
.review-card-body {
    font-size: 13.5px;
    color: var(--c-text, #334155);
    line-height: 1.65;
}

/* ── 구매 후기 첨부 이미지 그리드 ── */
.review-card-images {
    margin-top: 12px;
}
.review-img-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.review-img-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--c-line, #e2e8f0);
    background: var(--c-bg, #f8fafc);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.review-img-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.review-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.review-img-zoom-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: rgba(15, 23, 42, 0.65);
    color: var(--c-white, #ffffff);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    pointer-events: none;
    transition: background 0.15s ease;
}
.review-img-item:hover .review-img-zoom-badge {
    background: rgba(15, 23, 42, 0.85);
}

/* ── 리뷰 도움돼요 (추천) 버튼 ── */
.review-card-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
}
.review-helpful-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.review-helpful-query {
    font-size: 13px;
    color: var(--c-text-2, #475569);
    font-weight: 500;
}
.btn-review-helpful {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-white, #ffffff);
    border: 1px solid var(--c-line-2, #cbd5e1);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text, #334155);
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-review-helpful i {
    color: var(--c-danger, #ef4444);
    font-size: 14px;
    transition: transform 0.15s ease;
}
.btn-review-helpful:hover {
    border-color: var(--c-muted-2, #94a3b8);
    background: var(--c-bg, #f8fafc);
}
.btn-review-helpful:hover i {
    transform: scale(1.15);
}
.btn-review-helpful.is-liked {
    border-color: var(--c-danger, #ef4444);
    background: #fef2f2;
    color: var(--c-danger-2, #dc2626);
    font-weight: 700;
}
.btn-review-helpful.is-liked i {
    color: var(--c-danger-2, #dc2626);
}

.qna-item-card {
    border-bottom: 1px solid var(--c-fill, #f1f5f9);
    padding: 20px 0;
}
.qna-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 11px;
    flex-wrap: wrap;
}
.qna-title {
    font-size: 13px;
    color: var(--c-ink-2, #1e293b);
}
.qna-card-body {
    font-size: 12px;
    color: var(--c-text-2, #475569);
    line-height: 1.6;
    padding-left: 5px;
    margin-bottom: 10px;
}
.qna-answer-box {
    background: var(--c-bg, #f8fafc);
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: 8px;
    padding: 12px 16px;
    margin-left: 15px;
}
.answer-header {
    font-size: 11px;
    font-weight: 800;
    color: var(--c-accent, #ea580c);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.answer-date {
    color: var(--c-muted-2, #94a3b8);
    font-weight: 500;
}
.answer-body {
    font-size: 12px;
    color: var(--c-text-2, #475569);
    line-height: 1.5;
}

/* 상품 문의(Q&A) 등록 폼 */
.qna-write-box { background: var(--c-bg, #f8fafc); border: 1px solid #e6ebf1; border-radius: 10px; padding: 10px; margin-bottom: 20px; }
.qna-write-box h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: var(--c-ink, #0f172a); display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #e6ebf1; }
.qna-write-box h4 i { color: var(--c-text-2, #475569); font-size: 14px; }
.qna-write-box .form-group { margin-bottom: 12px; }
.qna-label { font-size: 12px; font-weight: 700; color: var(--c-text-2, #475569); display: block; margin-bottom: 6px; }
.qna-field { width: 100%; padding: 10px 12px; border: 1px solid #d7dee6; border-radius: 8px; font-size: 13px; color: var(--c-ink-2, #1e293b); background: var(--c-white, #fff); box-sizing: border-box; transition: border-color 0.15s; font-family: inherit; }
.qna-field:focus { outline: none; border-color: var(--c-muted-2, #94a3b8); }
textarea.qna-field { resize: vertical; min-height: 92px; line-height: 1.5; }
.qna-form-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.qna-secret-label { font-size: 12px; font-weight: 600; color: var(--c-muted, #64748b); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.qna-btn-open { background: var(--c-text-2, #475569); color: var(--c-white, #fff); font-size: 12px; font-weight: 700; padding: 8px 14px; border: none; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.15s; }
.qna-btn-open:hover { background: #3b475a; }
.qna-btn-submit { background: var(--c-text-2, #475569); color: var(--c-white, #fff); font-size: 12px; font-weight: 700; padding: 9px 18px; border: none; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.qna-btn-submit:hover { background: #3b475a; }
.qna-btn-cancel { background: var(--c-white, #fff); color: var(--c-text-2, #475569); font-size: 12px; font-weight: 700; padding: 9px 16px; border: 1px solid var(--c-line-2, #cbd5e1); border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.qna-btn-cancel:hover { background: var(--c-fill, #f1f5f9); }

/* 배송/교환/반품 안내 탭 콘텐츠 */
.delivery-info h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--c-ink, #0f172a);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-line, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 8px;
}
.delivery-info h4:first-child { margin-top: 0; }
.delivery-info h4 i { color: var(--c-info-3, #0284c7); }
.delivery-info ul {
    margin: 0 0 8px;
    padding-left: 18px;
    list-style: disc;
}
.delivery-info li {
    font-size: 13px;
    color: var(--c-text-2, #475569);
    line-height: 1.9;
}
.delivery-info li strong { color: var(--c-ink-2, #1e293b); }

@media (max-width: 768px) {
    /* 4개 탭이 좁은 화면에서 잘리지 않도록 폰트/여백 축소 + 줄바꿈 허용 */
    .tab-btn {
        padding: 12px 4px;
        font-size: 11.5px;
        line-height: 1.3;
        white-space: normal;
        word-break: keep-all;
    }
    .tab-content-wrap { padding: 18px 10px; }
    .delivery-info li { font-size: 12.5px; }
}

/* 전자상거래 상품 고시 정보 영역 */
.prod-notice-box {
    margin-top: 40px;
    background: transparent;
    padding: 0;
}
.prod-notice-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-ink, #0f172a);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.prod-notice-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-white, #fff);
    border: 1px solid var(--c-line, #e2e8f0);
    font-size: 0.875rem;
}
.prod-notice-table tr {
    border-bottom: 1px solid var(--c-line, #e2e8f0);
}
.prod-notice-table tr:last-child {
    border-bottom: none;
}
.prod-notice-table th {
    width: 30%;
    background: var(--c-bg, #f8fafc);
    color: var(--c-text-2, #475569);
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-right: 1px solid var(--c-line, #e2e8f0);
}
.prod-notice-table td {
    padding: 10px 14px;
    color: var(--c-ink-2, #1e293b);
}

/* 소비자가격 / 할인율 / 판매가 렌더링 스타일 (실 판매가격 압도적 강조) */
.price-display-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.price-disc-rate {
    color: var(--c-danger, #ef4444);
    font-weight: 800;
    font-size: 1.15rem;
}
.price-final-num,
.price-final-amt {
    color: var(--c-ink, #0f172a);
    font-weight: 900;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
}
.price-consumer-strike {
    color: var(--c-muted-2, #94a3b8);
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 400;
}

/* 회원 등급 할인 안내 — 판매가에 «이미 반영된» 금액이라 조용한 빛깔로 둔다.
   소비자가 할인율(빨강)과 성격이 다르므로 빛깔로 갈라 놓는다. */
.price-grade-disc {
    /* 위 여백을 걷었다 — 이제 .price-line 안에 있어 gap 이 사이를 맡는다.
       여백이 남아 있으면 큰 금액보다 아래로 처져 보인다. */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 6px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 400;
    /* 줄 높이를 글자에 바짝 붙이고 여백은 padding 으로 대칭하게 준다 —
       1.4 로 상자를 키우면 한글이 그 안에서 위쪽에 치우쳐 그려져
       아래 여백이 더 넓어 보인다(글자가 위로 쏠린다). */
    line-height: 1;
}
.price-grade-disc .pgd-amount {
    font-weight: 600;
}

/* 📍 동일/상위 카테고리 무작위 추천 상품 5열 반응형 그리드 */
.category-5col-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1200px) {
    .category-5col-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
@media (max-width: 768px) {
    .category-5col-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 📍 타임세일 상세 페이지 배너 스타일 (PC/모바일 반응형 최적화) */
.time-sale-detail-banner {
    background: linear-gradient(135deg, #fef2f2 0%, var(--c-danger-bg, #fee2e2) 100%);
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    box-sizing: border-box;
}

.time-sale-badge {
    order: 1;
    background: var(--c-danger, #ef4444);
    color: var(--c-white, #ffffff);
    font-size: 11.5px;
    font-weight: 800;
    padding: 0 8px;
    height: 24px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.time-sale-text {
    order: 2;
    font-size: 14px;
    font-weight: 800;
    color: #991b1b;
    white-space: nowrap;
    word-break: keep-all;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    margin-right: auto;
}

.time-sale-text i {
    color: var(--c-danger-2, #dc2626);
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.detail-timer-box {
    order: 3;
    font-size: 14px;
    font-weight: 800;
    color: var(--c-danger-2, #dc2626);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    word-break: keep-all;
    line-height: 1;
    height: 24px;
}

.detail-timer-box i {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.detail-timer-box .timer-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    gap: 3px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.detail-timer-box .timer-digits {
    font-family: 'Roboto Mono', 'Outfit', monospace, sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 66px;
    text-align: center;
}

/* 📍 1024px 이하 태블릿 및 모바일 디바이스 2행 대칭 균형 레이아웃 */
@media (max-width: 1024px) {
    .time-sale-detail-banner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        margin-top: 12px;
        margin-bottom: 12px;
        gap: 0;
    }
    /* 1행: 좌측 HOT TIME SALE 뱃지 */
    .time-sale-badge {
        order: 1;
        font-size: 11px;
        height: 22px;
        padding: 0 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        margin-bottom: 9px;
    }
    /* 1행: 우측 남은시간 타이머 */
    .detail-timer-box {
        order: 2;
        font-size: 13px;
        height: 22px;
        margin-left: 0;
        margin-bottom: 9px;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        line-height: 1;
        gap: 6px;
    }
    .detail-timer-box i {
        font-size: 13px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .detail-timer-box .timer-text {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        gap: 3px;
    }
    .detail-timer-box .timer-digits {
        font-size: 13px;
        min-width: 62px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    /* 2행: 특가 안내 문구 (가로 점선 기준 상하 9px씩 완벽 대칭 배치) */
    .time-sale-text {
        order: 3;
        width: 100%;
        margin-right: 0;
        margin-top: 0;
        padding-top: 9px;
        border-top: 1px dashed rgba(239, 68, 68, 0.28);
        font-size: 13px;
        color: #7f1d1d;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        line-height: 1;
        min-height: 22px;
        position: relative;
        top: 0;
    }
    .time-sale-text i {
        font-size: 13px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================================
   📍 6. 상품 이미지 프리뷰 라이트박스 (.lb-*)
   → 공용 모듈로 이관: /view/assets/css/image_lightbox.css
     (동작 스크립트: /view/assets/js/image_lightbox.js)
   커서룰 §10 "공통 JS/CSS 분리 원칙"에 따라 중복 정의를 제거했습니다.
   ============================================================ */


/* 「선택 인원 1회 기본 소계」 띠 (인라인에서 옮겨 옴 · §10).
   글자가 12px/14px 이라 작아 보여 한 단씩 키웠다.
   flex + align-items:center 로 상자 세로 한가운데에 맞춘다. */
.people-subtotal-bar {
    margin-top: 12px;
    background: #f0f9ff;
    border: 1px dashed #bae6fd;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.people-subtotal-bar .psb-label {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    line-height: 1.4;
}
.people-subtotal-bar .psb-amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-info-3, #0284c7);
    line-height: 1.4;
}
/* ── BEST 후기 ─────────────────────────────────────────────────

   관리자가 고른 후기다. 목록 맨 앞에 서므로 «왜 앞에 있는지» 가 한눈에
   보여야 한다. 배지를 별점 앞에 두고, 카드 왼쪽에 띠를 하나 세운다. */
.review-best-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--c-accent, #ea580c);
    color: var(--c-white, #fff);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}
.review-best-badge i { font-size: 10px; }

.review-item-card.is-best {
    border-left: 3px solid var(--c-accent, #ea580c);
    padding-left: 13px;
    background: #fffbf7;
}

@media (max-width: 768px) {
    .review-best-badge { font-size: 10px; padding: 1px 6px; }
}

/* ── 판매자 답변 ───────────────────────────────────────────────

   손님이 쓴 후기와 헷갈리지 않아야 한다. 안으로 한 칸 들이고 왼쪽에
   띠를 세워 «이 후기에 딸린 말» 임을 보인다. */
.review-answer {
    margin: 12px 0 0 16px;
    padding: 12px 14px;
    background: var(--c-bg, #f8fafc);
    border-left: 3px solid #0f766e;
}
.review-answer-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}
.review-answer-head i { color: #0f766e; font-size: 11px; }
.review-answer-who { font-weight: 600; color: #0f766e; }
.review-answer-date { color: var(--c-muted-2, #94a3b8); }
.review-answer-body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--c-text, #334155);
    word-break: break-word;
}

@media (max-width: 768px) {
    .review-answer { margin-left: 10px; padding: 10px 12px; }
    .review-answer-body { font-size: 12.5px; }
}

/* 판매가격 줄 — 금액과 등급 할인 뱃지를 한 줄에 세우고 가운데를 맞춘다.
   크기가 크게 다른 글자(1.65rem 과 0.82rem)를 아무 축 없이 나란히 두면
   한글에서는 밑선이 맞아도 «글자 중앙» 이 어긋나 보인다.
   flex 의 가운데 맞춤은 상자 중앙끼리 맞추므로 글꼴과 무관하게 어긋남이 0 이다.
   좁아서 다 못 담으면 뱃지가 아래로 내려간다 — gap 이 그 사이도 맡는다. */
.price-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}
/* 금액은 줄어들지 않는다 — 뱃지가 밀어 내면 안 된다 */
.price-line .price-final-num,
.price-line .price-final-amt {
    line-height: 1.2;
    flex-shrink: 0;
}
/* 소비자가·할인율이 함께 있는 구분도 이 줄의 한 칸으로 들어간다 —
   따로 줄을 차지하지 않게 한다 */
.price-line .price-display-wrapper {
    margin: 0;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .price-line { gap: 6px 8px; }
}

/* ──────────────────────────────────────────────────────────────
   예약 달력 — 직접 만든 것

   예전에는 FullCalendar(276KB)를 싣고 그 위를 CSS 로 눌러 썼다.
   스물세 줄 가운데 아홉 줄이 `!important` 였다 — 라이브러리 기본을 이기려던 자국이다.
   이제 우리가 그리는 대로 나오므로 `!important` 가 한 줄도 없다.

   ⚠ 칸 높이는 가로폭을 따라간다(aspect-ratio). 픽셀로 못 박으면 창을 줄일수록
     칸이 세로로 길쭉해져 보기 나빠진다.
   ────────────────────────────────────────────────────────────── */
#booking_calendar { margin-top: 10px; }

.bcal {
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: 12px;
    background: var(--c-white, #fff);
    padding: 10px;
}

/* ── 머리: 이전 · 년월 고르기 · 다음 · 오늘 ────────────────── */
.bcal-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.bcal-pick { display: flex; gap: 6px; flex: 1; min-width: 0; }
.bcal-sel {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 26px 0 10px;
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: 8px;
    background-color: var(--c-white, #fff);
    color: var(--c-ink, #0f172a);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    transition: border-color .12s;
}
.bcal-sel:hover { border-color: var(--c-muted-2, #94a3b8); }
.bcal-sel:focus { outline: none; border-color: var(--c-info-3, #0284c7); }

.bcal-nav,
.bcal-today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: 8px;
    background: var(--c-white, #fff);
    color: var(--c-text-2, #475569);
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}
.bcal-nav { width: 34px; flex-shrink: 0; }
.bcal-today { padding: 0 12px; font-size: 0.82rem; font-weight: 700; flex-shrink: 0; }
.bcal-nav:hover,
.bcal-today:hover {
    background: var(--c-fill, #f1f5f9);
    border-color: var(--c-muted-2, #94a3b8);
    color: var(--c-ink, #0f172a);
}

/* ── 요일 줄 ────────────────────────────────────────────────── */
.bcal-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
.bcal-dow-cell {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--c-text-2, #475569);
    padding: 4px 0;
}
.bcal-dow-cell.is-sun { color: #dc2626; }
.bcal-dow-cell.is-sat { color: #2563eb; }

/* ── 날짜 격자 ──────────────────────────────────────────────── */
.bcal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.bcal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    /* 공휴일 이름이 숫자 아래에 한 줄 더 들어가므로 칸을 조금 키운다 */
    aspect-ratio: 1 / 0.86;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--c-text, #334155);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0 2px;
    cursor: default;
    overflow: hidden;
    transition: background .12s, border-color .12s, color .12s;
}
.bcal-num { line-height: 1.1; }

/* 공휴일 이름 — 칸이 좁으므로 아주 작게, 넘치면 줄인다.
   이름이 잘려도 칸에 title 이 달려 있어 손대면 온전히 보인다. */
.bcal-holi {
    max-width: 100%;
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bcal-cell.is-sun { color: #dc2626; }
.bcal-cell.is-sat { color: #2563eb; }
/* 지난달·다음달 날짜 — 자리는 지키되 눈에 띄지 않게 */
.bcal-cell.is-other { color: var(--c-line-2, #cbd5e1); }

/* 오늘 — 테두리로만 알린다. 고를 수 있는 날과 헷갈리지 않게 배경은 두지 않는다 */
.bcal-cell.is-today { border-color: var(--c-muted-2, #94a3b8); }


/* 고를 수 있는 날 */
.bcal-cell.is-available {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    cursor: pointer;
}
.bcal-cell.is-available:hover { background: #dbeafe; }

/* 지난달·다음달 칸은 고를 수 있어도 «이 달 날짜가 아님» 을 먼저 알린다.
   `.is-available` «뒤» 에 적는다 — 겹 수가 (0,3,0) 이라 배경·글자색을 이긴다.
   예전에는 `.is-other` 가 앞에 있어 다음 달 날짜가 이 달 날짜와 똑같이 파랗게 보였다.
   지난달 칸은 지난 날이라 애초에 고를 수 없어 흐렸고, 그래서 앞뒤가 갈려 보였다
   (사용자 지적 2026-09-16 「달력이 이상하다」). */
.bcal-cell.is-other.is-available {
    background: #f8fafc;
    color: #94a3b8;
    font-weight: 600;
}
.bcal-cell.is-other.is-available:hover { background: #f1f5f9; }

/* 공휴일 — 날짜를 빨갛게. 예약 가능 여부와는 별개라 배경은 건드리지 않는다.
   공휴일이면서 예약도 되는 날이면 배경은 「고를 수 있는 날」 것이 그대로 남고 글자만 바뀐다.

   ⚠ 반드시 `.is-available` «뒤» 에 적는다.
     겹 수가 같으므로(둘 다 0,2,0) 앞에 두면 진다 —
     실제로 그랬다. 예약 되는 공휴일만 파랗게 남아 같은 연휴가 색이 갈렸다.
   ⚠ 그리고 아래 `.is-picked`·`.is-in-range` «앞» 이어야 한다.
     고른 날은 파란 바탕에 흰 글자라, 공휴일이 그것을 이기면 읽을 수 없다. */
.bcal-cell.is-holiday,
.bcal-cell.is-holiday.is-sat,
.bcal-cell.is-holiday.is-available { color: #dc2626; }
.bcal-cell.is-holiday .bcal-holi { color: #dc2626; }
/* 지난달·다음달 칸의 공휴일은 그 달 날짜가 아니므로 함께 흐리게 둔다 */
.bcal-cell.is-other.is-holiday,
.bcal-cell.is-other.is-holiday .bcal-holi { color: #fecaca; }

/* 고른 날 */
.bcal-cell.is-picked {
    background: var(--c-info-3, #0284c7);
    border-color: var(--c-info-3, #0284c7);
    color: #fff;
    font-weight: 800;
}
/* 여행 기간 — 고른 날 다음부터 끝까지. 고른 날보다 옅게 두어 시작점이 드러나게 한다 */
.bcal-cell.is-in-range {
    background: #bae6fd;
    color: #075985;
    font-weight: 700;
}

/* ⚠ 고른 날·기간 위에서는 공휴일 이름도 그 바탕에 맞춘다.
     안 그러면 파란 바탕에 빨간 글자가 남아 읽기 나쁘다.
     (칸 자신의 글자색은 아래쪽에 적힌 규칙이 이미 이긴다 — 여기서는 자식만 맞춘다) */
.bcal-cell.is-picked .bcal-holi { color: rgba(255, 255, 255, .85); }
.bcal-cell.is-in-range .bcal-holi { color: #075985; }

@media (max-width: 768px) {
    .bcal { padding: 8px; }
    .bcal-cell { font-size: 0.8rem; min-height: 32px; }
    /* 좁은 화면에서는 공휴일 이름을 감춘다 — 칸이 작아 읽히지도 않고 숫자만 밀어낸다.
       칸에 달린 title 은 남아 있어 손대면 이름이 나온다. */
    .bcal-holi { display: none; }
    .bcal-sel { height: 32px; font-size: 0.86rem; }
    .bcal-nav, .bcal-today { height: 32px; }
}

/* 예약 가능 기간이 끝난 상품 — 달력 자리에 까닭을 적는다.
   목록에서는 빠지지만 상세는 열리므로(사용자 지시 2026-09-16), 왜 고를 수 없는지 여기서 알린다. */
.booking-closed {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--c-line, #e2e8f0);
    border-radius: 8px;
    background: var(--c-fill, #f8fafc);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--c-text-2, #475569);
}
.booking-closed i { flex: 0 0 auto; color: #94a3b8; }

/* 판매자 줄 — 스토어 상품일 때만 값 표에 나타난다.
   아이콘·상호·바로가기가 한 줄에 서므로 flex 로 가운데를 맞춘다 (한글은 x높이 축이 어긋난다). */
.gd-seller { display: inline-flex; align-items: center; gap: 6px; }
.gd-seller > i { color: #94a3b8; font-size: 0.85em; }
.gd-seller b { font-weight: 600; }
.gd-seller-go {
    margin-left: 2px;
    padding: 2px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.6;
    text-decoration: none;
}
.gd-seller-go:hover { border-color: #94a3b8; color: #1e293b; }
