.product-detail-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 80px;
    background: #ffffff;
}

.product-detail-top {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    padding: 42px 0 56px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-gallery__main {
    overflow: hidden;
    border-radius: 28px;
    background: #f5f5f5;
    aspect-ratio: 0.82;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumb-btn {
    width: 92px;
    height: 92px;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    padding: 0;
}

.thumb-btn--active {
    border-color: #111111;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    max-width: 560px;
}

.product-info__brand {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #666666;
}

.product-info__title {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #111111;
}

.product-info__summary {
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.75;
    color: #666666;
}

.product-info__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 28px;
}

.product-info__price strong {
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.product-info__discount {
    font-size: 30px;
    font-weight: 800;
    color: #ff5d73;
    letter-spacing: -0.04em;
}

.product-info__meta {
    margin-top: 28px;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f2f2f2;
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-row span {
    color: #777777;
    font-size: 14px;
}

.meta-row strong {
    color: #111111;
    font-size: 14px;
}

.product-option-box {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-option-box label {
    font-size: 14px;
    font-weight: 700;
    color: #222222;
}

.product-select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #dddddd;
    border-radius: 14px;
    background: #ffffff;
    font-size: 14px;
}

.quantity-box {
    display: flex;
    align-items: center;
    width: 160px;
    height: 52px;
    border: 1px solid #dddddd;
    border-radius: 14px;
    overflow: hidden;
}

.quantity-box button {
    width: 48px;
    height: 52px;
    font-size: 20px;
    background: #fafafa;
}

.quantity-box input {
    width: 64px;
    height: 52px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.product-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding: 20px 0;
    border-top: 1px solid #ececec;
}

.product-total-box span {
    font-size: 16px;
    color: #555555;
}

.product-total-box strong {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.product-action-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.action-btn {
    height: 56px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    padding: 0 22px;
}

.action-btn--light {
    background: #f7f7f7;
    color: #111111;
}

.action-btn--line {
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #111111;
    flex: 1;
}

.action-btn--dark {
    background: #111111;
    color: #ffffff;
    flex: 1.2;
}

.product-detail-content {
    padding-top: 48px;
    border-top: 1px solid #ececec;
}

.detail-tab-row {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1.5px solid #e0e0e0;
}

.detail-tab {
    min-height: 48px;
    padding: 0 28px;
    border: none;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #aaaaaa;
    cursor: pointer;
    margin-bottom: -1.5px;
    transition: color 0.15s, border-bottom-color 0.15s;
}

.detail-tab--active {
    color: #111111;
    border-bottom-color: #111111;
    background: transparent;
}

.detail-panel {
    display: none;
}

.detail-panel--active {
    display: block;
}

.detail-section {
    padding: 18px 0 24px;
}

.detail-section h2 {
    margin: 0 0 16px;
    font-size: 28px;
    letter-spacing: -0.03em;
    color: #111111;
}

.detail-section p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: #666666;
}

.detail-image-block {
    margin-top: 18px;
    overflow: hidden;
    border-radius: 24px;
    background: #f6f6f6;
}

.detail-image-block img {
    width: 100%;
    display: block;
}

.guide-list {
    margin: 0;
    padding-left: 18px;
    color: #666666;
    line-height: 2;
    font-size: 15px;
}

.review-empty {
    color: #888888;
}

.related-product-section {
    padding-top: 72px;
}

.section-head {
    margin-bottom: 24px;
}

.section-head--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-head__label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #8b8b8b;
}

.section-head h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 18px;
}

.related-card {
    display: block;
}

.related-card__thumb {
    position: relative;
    overflow: hidden;
}

.related-card__thumb--dimmed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1;
}

.related-card__thumb img {
    position: relative;
    z-index: 0;
}

.related-card__body {
    padding-top: 14px;
}

.related-card__brand {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #666666;
}

.related-card__name {
    margin: 0;
    min-height: 44px;
    font-size: 16px;
    line-height: 1.45;
    color: #111111;
}

.related-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.related-card__price span {
    color: #ff5d73;
    font-size: 22px;
    font-weight: 800;
}

.related-card__price strong {
    font-size: 24px;
    letter-spacing: -0.03em;
}

@media (max-width: 1200px) {
    .product-detail-top {
        grid-template-columns: 1fr;
    }

    .product-info {
        max-width: 100%;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail-page {
        padding: 0 18px 56px;
    }

    .product-detail-top {
        gap: 24px;
        padding: 28px 0 36px;
    }

    .product-gallery__main {
        border-radius: 20px;
    }

    .thumb-btn {
        width: 72px;
        height: 72px;
        border-radius: 12px;
    }

    .product-info__title {
        font-size: 30px;
    }

    .product-info__summary {
        font-size: 14px;
        line-height: 1.75;
    }

    .product-info__price strong {
        font-size: 30px;
    }

    .product-info__discount {
        font-size: 24px;
    }

    .product-action-row {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .detail-section h2 {
        font-size: 22px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }

    .related-card__name {
        min-height: 40px;
        font-size: 15px;
    }

    .related-card__price strong {
        font-size: 20px;
    }

    .related-card__price span {
        font-size: 18px;
    }
}

/* 추가 */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.review-card {
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
}

.review-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.review-card__content {
    margin: 0;
    line-height: 1.8;
    color: #444444;
}

.review-card__image {
    margin-top: 14px;
    max-width: 220px;
    overflow: hidden;
    border-radius: 12px;
}

.review-card__image img {
    width: 100%;
    display: block;
}

.review-card__date {
    margin-top: 12px;
    font-size: 13px;
    color: #888888;
}

/* ============================
   구매 버튼 비활성화 스타일
   ============================ */

.action-btn--disabled {
    background: #999999 !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 1;
}

.action-btn--line[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 옵션/수량 비활성화 */
.product-select[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.quantity-box button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.product-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.product-badge--temp-sold {
    background: rgba(214, 122, 127, 0.95);
}

.product-badge--no-stock {
    background: rgba(60, 60, 60, 0.92);
    color: #ffffff;
}

/* =========================
   문의 섹션
   ========================= */
.inquiry-section {
    padding-top: 8px;
}

.inquiry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.inquiry-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #9a9a9a;
}

.inquiry-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111111;
}

.inquiry-guide {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
}

.inquiry-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.inquiry-alert--success {
    background: #f5f7ff;
    color: #1d4ed8;
}

.inquiry-alert--error {
    background: #fff1f2;
    color: #dc2626;
}

.inquiry-write-row {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0 18px;
}

.inquiry-form-box {
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid #ececec;
    border-radius: 18px;
    background: #fafafa;
}

.inquiry-login-text {
    margin: 0;
    font-size: 14px;
    color: #666666;
}

.inquiry-login-text a {
    margin-left: 6px;
    color: #111111;
    font-weight: 700;
    text-decoration: underline;
}

.inquiry-form__group + .inquiry-form__group {
    margin-top: 14px;
}

.inquiry-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
}

.inquiry-input,
.inquiry-textarea {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    box-sizing: border-box;
}

.inquiry-input {
    height: 46px;
    padding: 0 14px;
}

.inquiry-textarea {
    padding: 14px;
    resize: vertical;
    line-height: 1.6;
}

.inquiry-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.inquiry-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inquiry-empty {
    padding: 28px 20px;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    background: #fcfcfc;
    text-align: center;
    font-size: 14px;
    color: #888888;
}

.inquiry-card {
    padding: 18px 18px 16px;
    border: 1px solid #ededed;
    border-radius: 18px;
    background: #ffffff;
}

.inquiry-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.inquiry-card__writer,
.inquiry-card__date {
    font-size: 13px;
    color: #7a7a7a;
}

.inquiry-card__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #111111;
}

.inquiry-card__content {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #444444;
    white-space: pre-line;
}

.inquiry-answer {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f7f7f7;
    border: 1px solid #efefef;
}

.inquiry-answer__label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #111111;
}

.inquiry-answer__content {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
    white-space: pre-line;
}