@charset "UTF-8";

/* ==========================================================================
   화천(HWACHEON) Product Detail 상세 페이지
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #ffffff !important;
    color: #111111;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    width: 100%;
    overflow-x: hidden;
    padding-top: 4.5rem;
    box-sizing: border-box;
}

.max-layout-width {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-section-padding {
    padding: 5rem 0 7rem;
}

.bg-white {
    background-color: #ffffff !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. 상단 메인 히어로 2열 그리드
   ────────────────────────────────────────────────────────────────────────── */
.prod-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: stretch;
}

.prod-gallery-box {
    width: 100%;
    height: 100%;
    min-height: 520px;
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.prod-swiper {
    width: 100%;
    height: 100%;
    flex: 1;
}

.prod-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background: #f4f4f4;
}

.prod-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.prod-pagination {
    bottom: 1.5rem !important;
}

.prod-pagination .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
    width: 8px;
    height: 8px;
}

.prod-pagination .swiper-pagination-bullet-active {
    background: #111111;
    opacity: 1;
}

.prod-info-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.exp-top-actions {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.btn-exp-action {
    padding: 0.5rem 1.2rem;
    background: #ffffff;
    border: 1px solid #111111;
    color: #111111;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-exp-action.btn-highlight, .btn-exp-action:hover {
    background: #111111;
    color: #ffffff;
}

.prod-title-group {
    border-bottom: 2px solid #111111;
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.prod-title-kr {
    font-size: 2rem;
    font-weight: 600;
    color: #111111;
    margin: 0 0 0.3rem 0;
    letter-spacing: -0.02em;
}

.prod-title-en {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    color: #888888;
    margin: 0;
}

.prod-price-box {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 1.8rem;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111111;
}

.price-unit {
    font-size: 1.1rem;
    color: #111111;
}

.prod-volume-info {
    margin-left: auto;
    font-size: 0.92rem;
    color: #777777;
}

.prod-spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 1.8rem;
}

.spec-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    font-size: 0.9rem;
    line-height: 1.6;
}

.spec-label {
    font-weight: 600;
    color: #111111;
}

.spec-val {
    color: #555555;
}

.prod-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.qty-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111111;
}

.qty-counter {
    display: inline-flex;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    overflow: hidden;
}

.btn-qty {
    width: 34px;
    height: 38px;
    background: #fafafa;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.qty-input {
    width: 44px;
    height: 38px;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
}

.prod-delivery-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #666666;
    margin-bottom: 1.5rem;
}

.prod-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

.total-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111111;
}

.total-price-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111111;
}

.prod-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-cart, .btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-cart {
    background: #ffffff;
    border: 1px solid #111111;
    color: #111111;
}

.btn-cart:hover {
    background: #f4f4f4;
}

.btn-buy {
    background: #111111;
    color: #ffffff;
}

.btn-buy:hover {
    background: #333333;
}

/* ──────────────────────────────────────────────────────────────────────────
   2. 상세 하단 탭 (Detail / Review / Q&A)
   ────────────────────────────────────────────────────────────────────────── */
.prod-detail-tabs-section {
    border-top: 1px solid #e2e2e2;
    padding-top: 4rem;
}

.detail-tab-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #111111;
    margin-bottom: 4rem;
    width: 100%;
}

.tab-item {
    font-family: 'Jost', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #888888;
    text-decoration: none;
    padding: 1.2rem 0;
    position: relative;
    flex: 1;
    transition: color 0.2s ease;
}

.tab-item:nth-child(1) { text-align: left; }
.tab-item:nth-child(2) { text-align: center; }
.tab-item:nth-child(3) { text-align: right; }

.tab-item.active {
    color: #111111;
    font-weight: 700;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #111111;
}

.detail-tab-content {
    min-height: 300px;
}

.detail-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.detail-img-wrapper img {
    max-width: 1000px;
    width: 100%;
    height: auto;
}

/* ──────────────────────────────────────────────────────────────────────────
   TAB 2: Review
   ────────────────────────────────────────────────────────────────────────── */
.review-score-banner {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3.5rem;
}

.score-center-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.star-gold, .rev-stars {
    color: #F59E0B !important;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.score-bold {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111111;
    margin-left: 0.3rem;
}

.score-slash {
    font-size: 1.1rem;
    color: #888888;
}

.score-sub-notice {
    font-size: 0.95rem;
    color: #555555;
    margin: 0;
}

.review-table-container {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #111111;
}

.review-row-item {
    display: grid;
    grid-template-columns: 240px 1fr 220px;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2.5rem 1rem;
    border-bottom: 1px solid #e2e2e2;
}

.rev-col-user {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rev-user-id {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
}

.rev-prod-name {
    font-size: 0.85rem;
    color: #777777;
}

.rev-col-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.rev-text {
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    word-break: keep-all;
}

.rev-date {
    font-size: 0.85rem;
    color: #888888;
}

.rev-col-thumbs {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

.thumb-badge-box {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f4f4;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.thumb-badge-box.user-photo-thumb {
    cursor: pointer;
}

.thumb-badge-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-tag {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 2px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.badge-tag.tag-product {
    background: rgba(17, 17, 17, 0.75);
}

.badge-tag.tag-user {
    background: #111111;
}

/* ──────────────────────────────────────────────────────────────────────────
   TAB 3: Q&A
   ────────────────────────────────────────────────────────────────────────── */
.qna-top-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.total-q-count {
    font-size: 1.05rem;
    color: #444444;
}

.total-q-count strong {
    font-weight: 700;
    color: #111111;
}

.btn-primary-qna {
    padding: 0.8rem 1.8rem;
    background: #111111;
    color: #ffffff;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.25s ease;
}

.btn-primary-qna:hover {
    background: #333333;
}

.qna-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.qna-card-item {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem 1.8rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qna-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.qna-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.badge-done {
    background: #111111;
    color: #ffffff;
}

.qna-date {
    font-size: 0.85rem;
    color: #aaaaaa;
}

.card-user-id {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 0.8rem;
}

.qna-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111111;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
}

.qna-card-answer {
    display: none;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eeeeee;
    font-size: 0.92rem;
    color: #555555;
    line-height: 1.6;
}

.qna-card-item.active .qna-card-answer {
    display: block;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. Other Product
   ────────────────────────────────────────────────────────────────────────── */
.other-products-section {
    border-top: 1px solid #f0f0f0;
}

.section-header-center h2 {
    font-family: 'Jost', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3.5rem;
}

.ticker-slider-container {
    width: 100%;
    overflow: hidden;
    padding-bottom: 2rem;
}

.ticker-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: infiniteScroll 25s linear infinite;
}

.ticker-slider-container:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    width: 360px;
    flex-shrink: 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    width: 100%;
}

.prod-thumb-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f4f4f4;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.2rem;
    border-radius: 6px;
}

.prod-img-box {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0 !important;
    box-sizing: border-box;
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .prod-img-box img {
    transform: scale(1.06);
}

.prod-caption-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.prod-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.prod-title a {
    color: #111111;
    text-decoration: none;
}

.prod-desc {
    font-size: 0.85rem;
    color: #777777;
    margin: 0;
}

.prod-price-badge span {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
}

@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

/* ──────────────────────────────────────────────────────────────────────────
   4. 팝업 모달 공통 & 체험위치 지도 / 예약 달력 UI 스타일
   ────────────────────────────────────────────────────────────────────────── */
.prod-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.prod-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.prod-modal-container {
    position: relative;
    width: 90%;
    max-width: 580px;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.8rem 2.4rem;
    box-sizing: border-box;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.prod-modal-overlay.is-open .prod-modal-container {
    transform: translateY(0);
}

.btn-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-modal-close:hover {
    color: #111111;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111111;
    margin: 0 0 0.35rem 0;
}

.modal-sub {
    font-size: 0.9rem;
    color: #777777;
    margin: 0 0 1.8rem 0;
}

.modal-map-wrapper {
    width: 100%;
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.calendar-modal-container {
    max-width: 500px;
}

.calendar-wrapper {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.calendar-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.cal-month-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.02em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    text-align: center;
}

.day-head {
    font-size: 0.85rem;
    font-weight: 700;
    color: #777777;
    padding-bottom: 0.6rem;
}

.day-head.sun { color: #e53e3e; }
.day-head.sat { color: #3182ce; }

.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    font-size: 0.92rem;
    border-radius: 8px;
    box-sizing: border-box;
    user-select: none;
    transition: all 0.2s ease;
}

.cal-day.disabled {
    color: #cccccc;
    cursor: default;
    background: transparent;
}

.cal-day.available {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    color: #111111;
    font-weight: 500;
    cursor: pointer;
}

.cal-day.available:hover {
    border-color: #111111;
    background: #f0f0f0;
}

.cal-day.available.active {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.time-select-box {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.time-label {
    font-size: 0.9rem;
    color: #555555;
    display: block;
    margin-bottom: 0.8rem;
}

.time-label strong {
    color: #111111;
}

.time-buttons {
    display: flex;
    gap: 0.8rem;
}

.btn-time {
    flex: 1;
    padding: 0.75rem 0.5rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #444444;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-time:hover {
    border-color: #111111;
    color: #111111;
}

.btn-time.active {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    font-weight: 600;
}

.btn-modal-confirm {
    width: 100%;
    height: 52px;
    background: #111111;
    color: #ffffff;
    border: none;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.btn-modal-confirm:hover {
    background: #333333;
}

.photo-modal-container {
    max-width: 800px;
    padding: 1.5rem;
    background: transparent;
    box-shadow: none;
}

.photo-modal-body {
    width: 100%;
    display: flex;
    justify-content: center;
}

.photo-modal-body img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.reveal-element {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1023px) {
    .prod-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .review-row-item { grid-template-columns: 1fr; gap: 1.2rem; }
    .rev-col-thumbs { justify-content: flex-start; }
    .qna-card-grid { grid-template-columns: 1fr; }
    .tab-item { font-size: 0.98rem; }
}