/* 차로차 상세 스킨 — 레거시 detail.php 인라인 CSS 포팅 (스코프: charocha-detail-*) */

body.charocha-detail-skin {
    --charocha-accent: var(--epc-site-main, var(--maincolor, var(--clf-accent, var(--clf-brand, #0080c8))));
    --charocha-accent-dark: color-mix(in srgb, var(--charocha-accent) 82%, #000);
    --charocha-accent-light: color-mix(in srgb, var(--charocha-accent) 65%, #fff);
    --charocha-accent-deep: color-mix(in srgb, var(--charocha-accent) 55%, #1a1a2e);
    --charocha-accent-soft: color-mix(in srgb, var(--charocha-accent) 12%, #fff);
    --charocha-accent-muted: color-mix(in srgb, var(--charocha-accent) 38%, #fff);
    --charocha-price: var(--epc-site-price, var(--maincolor, var(--sw21-money, var(--chadil-money, var(--charocha-accent)))));
    --charocha-on-accent: var(--off_color, #fff);
}

body.charocha-detail-skin .epc-subpage-shell {
    position: relative;
}

.charocha-detail-shell {
    width: var(--epc-detail-max-width, 1000px);
    max-width: 100%;
    margin: 12px auto 24px;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 4;
    container-type: inline-size;
    container-name: charocha-detail;
}

body.charocha-detail-skin.epc-layout-mobile .epc-subpage-shell .charocha-detail-shell {
    width: 100%;
    margin-top: 8px;
    padding: 0;
}

.charocha-detail-page.car-detail-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 10px 0;
    box-sizing: border-box;
}

.charocha-detail-page .car-header {
    background: #fff;
    padding: 22px 26px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.charocha-detail-page .car-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px 28px;
}

.charocha-detail-page .car-header-main__left {
    flex: 1 1 auto;
    min-width: 0;
}

.charocha-detail-page .car-header-main__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    max-width: 100%;
}

.charocha-detail-page .car-header .car-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
    letter-spacing: -0.04em;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    line-height: 1.25;
}

.charocha-detail-page .car-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.charocha-detail-page .car-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.charocha-detail-page .car-header-action:hover {
    border-color: var(--charocha-accent);
    color: var(--charocha-accent);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.charocha-detail-page .car-header-action--perf {
    border-color: var(--charocha-accent);
    background: var(--charocha-accent);
    color: var(--charocha-on-accent, #fff);
}

.charocha-detail-page .car-header-action--perf:hover {
    background: var(--charocha-accent-dark, var(--charocha-accent));
    border-color: var(--charocha-accent-dark, var(--charocha-accent));
    color: var(--charocha-on-accent, #fff);
}

.charocha-detail-page .car-header-action--history {
    border-color: #fecaca;
    background: #fff5f5;
    color: var(--charocha-accent, #f21e1e);
}

.charocha-detail-page .car-header-action--history:hover {
    background: #ffe8e8;
    border-color: var(--charocha-accent, #f21e1e);
    color: var(--charocha-accent, #f21e1e);
}

.charocha-detail-page .car-header-topline-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 3px;
    line-height: 1;
}

.charocha-detail-page .car-basic-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 0;
}

.charocha-detail-page .car-basic-info .info-text {
    font-size: 14px;
    color: #6b7280;
    letter-spacing: -0.02em;
}

.charocha-detail-page .car-badges {
    display: flex;
    gap: 6px;
    margin-left: 0;
    flex-wrap: wrap;
}

.charocha-detail-page .car-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    background: var(--charocha-accent-muted);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.35;
}

.charocha-detail-page .car-price-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.charocha-detail-page .car-price-section--lease {
    width: 100%;
    justify-content: flex-end;
}

.charocha-detail-page .price-main {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.charocha-detail-page .price-label {
    font-size: 14px;
    color: #666;
    font-weight: bold;
    margin-right: 10px;
}

.charocha-detail-page .price-amount {
    font-size: 36px;
    color: var(--charocha-price);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1;
}

.charocha-detail-page .price-unit {
    font-size: 16px;
    color: var(--charocha-price);
    font-weight: 700;
}

.charocha-detail-page .installment-section {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f6f7f9;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #eef0f3;
    flex-wrap: wrap;
}

.charocha-detail-page .installment-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.charocha-detail-page .installment-select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}

.charocha-detail-page .installment-amount {
    font-size: 20px;
    color: var(--charocha-price);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.charocha-detail-page .installment-unit {
    font-size: 16px;
    color: #666;
}

.charocha-detail-page .car-image-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    min-width: 0;
}

.charocha-detail-page .main-image {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 100%;
}

.charocha-detail-page .charocha-main-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 6px;
    overflow: hidden;
}

.charocha-detail-page .main-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.charocha-detail-page .main-image-empty {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    color: #999;
}

.charocha-detail-page .thumbnail-grid {
    flex: 0 1 360px;
    width: min(410px, 100%);
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    min-width: 0;
}

.charocha-detail-page .thumbnail-item {
    width: 84px;
    height: 71px;
    cursor: zoom-in;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    padding: 0;
    margin: 0;
    font: inherit;
    background: none;
    appearance: none;
    box-sizing: border-box;
}

.charocha-detail-page .thumbnail-item:hover {
    border-color: var(--charocha-accent);
    transform: scale(1.05);
}

.charocha-detail-page .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.charocha-detail-page .car-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* 차량정보 · 판매자 · 문자상담 — 3열 */
.charocha-detail-page .charocha-info-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(260px, 300px);
    gap: 18px;
    align-items: stretch;
}

.charocha-detail-page .charocha-info-cards--no-seller {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

.charocha-detail-page .charocha-info-cards__cell {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.charocha-detail-page .charocha-info-cards__cell > .info-card,
.charocha-detail-page .charocha-info-cards__cell > .sms-form-card,
.charocha-detail-page .charocha-info-cards__cell--inquiry .sms-form-card {
    flex: 1 1 auto;
    height: 100%;
}

.charocha-detail-page .charocha-info-cards__cell--inquiry .sms-form-card {
    position: sticky;
    top: 20px;
}

.charocha-detail-page .charocha-info-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.charocha-detail-page .charocha-info-stack .charocha-section-wrap {
    min-width: 0;
}

.charocha-detail-page .info-card {
    background: #fff;
    padding: 22px 22px 18px;
    border-radius: 14px;
    border: 1px solid #eef0f3;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
    box-sizing: border-box;
}

.charocha-detail-page .info-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #111827;
    letter-spacing: -0.02em;
    border-bottom: 0;
    padding: 0 0 12px;
    position: relative;
}

.charocha-detail-page .info-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--charocha-accent);
}

.charocha-detail-page .info-card h3 .epc-section-title-row,
.charocha-detail-page .encar-section-title .epc-section-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
    line-height: 1.25;
    vertical-align: middle;
}

.charocha-detail-page .info-card h3 .epc-section-title-row .epc-section-help,
.charocha-detail-page .encar-section-title .epc-section-title-row .epc-section-help {
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex-shrink: 0;
    line-height: 1;
}

.charocha-detail-page .info-card h3 .epc-section-title-row .epc-section-help__btn,
.charocha-detail-page .encar-section-title .epc-section-title-row .epc-section-help__btn {
    position: relative;
    top: 1px;
    padding-top: 1px;
}

.charocha-detail-page .info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.charocha-detail-page .info-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.charocha-detail-page .info-table tr:last-child {
    border-bottom: 0;
}

.charocha-detail-page .info-table td,
.charocha-detail-page .info-table th {
    padding: 10px 0;
    font-size: 14px;
    vertical-align: top;
    line-height: 1.45;
}

.charocha-detail-page .info-label {
    color: #8b939a;
    width: 8.5em;
    min-width: 8.5em;
    max-width: 8.5em;
    font-weight: 500;
    text-align: left;
    font-size: 13px;
    white-space: nowrap;
    letter-spacing: -0.03em;
    padding-right: 10px !important;
}

.charocha-detail-page .charocha-section-spec .info-label,
.charocha-detail-page .charocha-section-seller .info-label {
    width: 11em;
    min-width: 11em;
    max-width: 11em;
    padding-right: 12px !important;
    vertical-align: middle;
}

.charocha-detail-page .charocha-section-seller .info-value {
    vertical-align: middle;
}


.charocha-detail-page .info-label__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 8px;
    background: #f3f5f7;
    color: var(--charocha-accent, #f21e1e);
    vertical-align: middle;
    box-sizing: border-box;
    flex-shrink: 0;
}

.charocha-detail-page .info-label__icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.charocha-detail-page .info-label__text {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.35;
}

.charocha-detail-page .info-value {
    color: #1f2937;
    font-weight: 600;
    text-align: left;
    font-size: 14px;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.charocha-detail-page .charocha-section-spec .info-value {
    vertical-align: middle;
}

.charocha-detail-page .dealer-contact {
    font-size: 20px;
    color: var(--charocha-accent);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.charocha-detail-page .dealer-contact a {
    color: inherit;
    text-decoration: none;
}

.charocha-detail-page .dealer-contact a:hover {
    text-decoration: underline;
}

.charocha-detail-page .id-card {
    display: block;
    width: 100% !important;
    max-width: 220px;
    margin: 0 0 14px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #e8ecf0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* 이미지 없으면 빈 카드 자체 숨김 */
.charocha-detail-page .id-card:empty,
.charocha-detail-page .id-card:not(:has(img)),
.charocha-detail-page .charocha-seller-photo:not(:has(img)),
.charocha-detail-page .dealer-card > div:first-of-type:not(:has(img)) {
    display: none !important;
}

.charocha-detail-page .id-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--charocha-accent);
    border-radius: 12px 12px 0 0;
}

.charocha-detail-page .id-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.charocha-detail-page .sms-form-card {
    background: #fff;
    padding: 22px 20px 20px;
    border-radius: 14px;
    border: 1px solid #eef0f3;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
    position: sticky;
    top: 20px;
    box-sizing: border-box;
}

.charocha-detail-page .sms-form-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #111827;
    letter-spacing: -0.02em;
    padding: 0 0 12px;
    position: relative;
}

.charocha-detail-page .sms-form-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--charocha-accent);
}

.charocha-detail-page .sms-textarea,
.charocha-detail-page .sms-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    background: #fafbfc;
    color: #1f2937;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.charocha-detail-page .sms-textarea:focus,
.charocha-detail-page .sms-input:focus {
    outline: 0;
    border-color: color-mix(in srgb, var(--charocha-accent) 55%, #fff);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--charocha-accent) 16%, transparent);
}

.charocha-detail-page .sms-textarea {
    height: 200px;
    resize: none;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.charocha-detail-page .sms-submit-btn {
    width: 100%;
    padding: 14px 16px;
    background: var(--charocha-accent);
    color: var(--charocha-on-accent);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.02em;
    margin-top: 4px;
    transition: filter .15s ease, transform .12s ease;
}

.charocha-detail-page .sms-submit-btn:hover {
    filter: brightness(0.96);
}

.charocha-detail-page .sms-submit-btn:active {
    transform: translateY(1px);
}

.charocha-detail-page .sms-submit-btn:hover {
    background: var(--charocha-accent-dark);
}

/* 하단 탭 영역 */
.charocha-detail-tabs-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 10px 20px;
    box-sizing: border-box;
}

.charocha-detail-tabs-wrap .detail-tabs {
    background: #fff;
    margin: 0;
    padding: 15px 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
}

.charocha-detail-tabs-wrap .tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

.charocha-detail-tabs-wrap .tab-item {
    flex: 1;
}

.charocha-detail-tabs-wrap .tab-link {
    display: block;
    padding: 16px 20px;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.charocha-detail-tabs-wrap .tab-link:hover {
    color: var(--charocha-accent);
    background: color-mix(in srgb, var(--charocha-accent) 6%, transparent);
}

.charocha-detail-tabs-wrap .tab-link.active {
    color: var(--charocha-accent);
    background: #fff;
    border-bottom-color: var(--charocha-accent);
    font-weight: bold;
}

.charocha-detail-tabs-wrap .charocha-detail-tabs-panels > .detail-section {
    display: none;
    padding: 30px 20px;
    background: #fff;
    line-height: 1.8;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 0 20px;
    border-radius: 0 0 8px 8px;
}

.charocha-detail-tabs-wrap .charocha-detail-tabs-panels > .detail-section.is-active {
    display: block;
}

.charocha-detail-tabs-wrap .charocha-detail-tabs-panels > #detailpic.is-active {
    display: grid;
}

.charocha-detail-tabs-wrap #detailpic {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 20px;
}

.charocha-detail-tabs-wrap #detailpic > div,
.charocha-detail-tabs-wrap #detailpic > .charocha-tab-photo-item {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 6px;
    overflow: hidden;
    appearance: none;
}

.charocha-detail-tabs-wrap #detailpic img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.charocha-detail-tabs-wrap .detail-section p {
    margin: 10px 0;
    text-align: right;
    color: #999;
    font-size: 13px;
}

.charocha-detail-tabs-wrap .charocha-detail-memo {
    padding: 0;
    line-height: 0;
}

.charocha-detail-tabs-wrap .charocha-detail-memo__body {
    line-height: 1.8;
}

.charocha-detail-tabs-wrap .charocha-detail-memo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.charocha-detail-tabs-wrap .charocha-detail-memo p {
    margin: 0;
    line-height: 0;
    text-align: left;
}

.charocha-detail-tabs-wrap .safe-record-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--charocha-accent);
    border-radius: 6px;
    color: var(--charocha-accent);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.charocha-detail-tabs-wrap .safe-record-btn:hover {
    background: var(--charocha-accent);
    color: var(--charocha-on-accent);
}

/* 차량옵션 */
.charocha-detail-tabs-wrap .charocha-detail-option {
    overflow: visible;
}

.charocha-detail-tabs-wrap .charocha-detail-option__head {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    letter-spacing: -0.02em;
    overflow: visible;
}

.charocha-section-key-options,
.charocha-section-key-options h3 {
    overflow: visible;
}

.charocha-detail-page .epc-section-help--wide .epc-section-help__tip {
    min-width: 280px;
    max-width: min(420px, 94vw);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.charocha-detail-tabs-wrap .charocha-optable,
.charocha-detail-page .charocha-optable {
    --charocha-op-cols: 4;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.charocha-detail-tabs-wrap .charocha-optable[data-cols="4"],
.charocha-detail-page .charocha-optable[data-cols="4"],
.charocha-detail-tabs-wrap .charocha-optable[data-cols="5"],
.charocha-detail-page .charocha-optable[data-cols="5"],
.charocha-detail-tabs-wrap .charocha-optable[data-cols="6"],
.charocha-detail-page .charocha-optable[data-cols="6"] {
    --charocha-op-cols: 4;
}

.charocha-detail-tabs-wrap .charocha-optable__legend,
.charocha-detail-page .charocha-optable__legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin: 0 2px 2px;
}

.charocha-detail-tabs-wrap .charocha-optable__legend-item,
.charocha-detail-page .charocha-optable__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: -0.02em;
}

.charocha-detail-tabs-wrap .charocha-optable__legend-item::before,
.charocha-detail-page .charocha-optable__legend-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #e5e7eb;
    box-sizing: border-box;
}

.charocha-detail-tabs-wrap .charocha-optable__legend-item--on,
.charocha-detail-page .charocha-optable__legend-item--on {
    color: var(--charocha-accent, #f21e1e);
}

.charocha-detail-tabs-wrap .charocha-optable__legend-item--on::before,
.charocha-detail-page .charocha-optable__legend-item--on::before {
    background: var(--charocha-accent, #f21e1e);
}

.charocha-detail-tabs-wrap .charocha-optable__group,
.charocha-detail-page .charocha-optable__group {
    margin: 0;
    padding: 14px 14px 12px;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
    box-sizing: border-box;
}

.charocha-detail-tabs-wrap .charocha-optable__head,
.charocha-detail-page .charocha-optable__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 2px 10px;
    border-bottom: 1px solid #f1f3f5;
}

.charocha-detail-tabs-wrap .charocha-optable__cat-icon,
.charocha-detail-page .charocha-optable__cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f3f5f7;
    color: var(--charocha-accent, #f21e1e);
    flex-shrink: 0;
}

.charocha-detail-tabs-wrap .charocha-optable__cat-icon svg,
.charocha-detail-page .charocha-optable__cat-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.charocha-detail-tabs-wrap .charocha-optable__cat,
.charocha-detail-page .charocha-optable__cat {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.charocha-detail-tabs-wrap .charocha-optable__count,
.charocha-detail-page .charocha-optable__count {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff5f5;
    color: var(--charocha-accent, #f21e1e);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.charocha-detail-tabs-wrap .charocha-optable__list,
.charocha-detail-page .charocha-optable__list {
    display: grid;
    grid-template-columns: repeat(var(--charocha-op-cols, 3), minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.charocha-detail-tabs-wrap .charocha-optable__list li,
.charocha-detail-page .charocha-optable__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #fafbfc;
    box-sizing: border-box;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.charocha-detail-tabs-wrap .charocha-optable__list li.is-on,
.charocha-detail-page .charocha-optable__list li.is-on {
    color: #111827;
    font-weight: 700;
    background: #fff;
    border-color: #fecaca;
    box-shadow: 0 2px 8px rgba(242, 30, 30, 0.06);
}

.charocha-detail-tabs-wrap .charocha-optable__check,
.charocha-detail-page .charocha-optable__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--charocha-accent, #f21e1e);
    color: #fff;
    flex-shrink: 0;
}

.charocha-detail-tabs-wrap .charocha-optable__check svg,
.charocha-detail-page .charocha-optable__check svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.charocha-detail-tabs-wrap .charocha-optable__dot,
.charocha-detail-page .charocha-optable__dot {
    width: 8px;
    height: 8px;
    margin: 0 5px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.charocha-detail-tabs-wrap .charocha-optable__list .encar-option-icon,
.charocha-detail-page .charocha-optable__list .encar-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #fff5f5;
    color: var(--charocha-accent, #f21e1e);
    flex-shrink: 0;
}

.charocha-detail-tabs-wrap .charocha-optable__list .encar-option-icon svg,
.charocha-detail-page .charocha-optable__list .encar-option-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.charocha-detail-tabs-wrap .charocha-optable__name,
.charocha-detail-page .charocha-optable__name {
    min-width: 0;
    flex: 1 1 auto;
}

.charocha-detail-tabs-wrap .charocha-optable__list li.is-on .charocha-optable__name,
.charocha-detail-page .charocha-optable__list li.is-on .charocha-optable__name {
    color: var(--charocha-accent, #f21e1e);
}

.charocha-detail-tabs-wrap .charocha-optable__empty,
.charocha-detail-page .charocha-optable__empty {
    margin: 0;
    padding: 28px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    background: #fafbfc;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
}

/* 구 마크업 호환 */
.charocha-detail-tabs-wrap .charocha-opouter {
    width: 100%;
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
}

.charocha-detail-tabs-wrap .charocha-opouter td {
    border-bottom: 1px solid #e8ecf0;
    vertical-align: middle;
}

.charocha-detail-tabs-wrap .charocha-opouter tr:last-child > td {
    border-bottom: 0;
}

.charocha-detail-tabs-wrap .charocha-opouter-label {
    width: 44px;
    padding: 12px 0;
    background-color: #f3f5f7;
    color: #374151;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    letter-spacing: 0.06em;
    border-right: 1px solid #e8ecf0;
}

.charocha-detail-tabs-wrap .charocha-opouter-body {
    padding: 0;
}

.charocha-detail-tabs-wrap .charocha-opinner {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #9ca3af;
}

.charocha-detail-tabs-wrap .charocha-opinner td {
    border: 0;
    border-right: 1px solid #f1f3f5;
    border-bottom: 1px solid #f1f3f5;
    padding: 8px 10px;
    width: 16.666%;
    font-size: 13px;
    line-height: 1.4;
    vertical-align: middle;
    word-break: keep-all;
}

.charocha-detail-tabs-wrap .charocha-opinner tr:last-child td {
    border-bottom: 0;
}

.charocha-detail-tabs-wrap .charocha-opinner td:last-child {
    border-right: 0;
}

.charocha-detail-tabs-wrap .charocha-opinner span.on {
    color: var(--charocha-accent);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .charocha-detail-tabs-wrap .charocha-optable,
    .charocha-detail-page .charocha-optable {
        --charocha-op-cols: 3;
    }
}

@media (max-width: 900px) {
    .charocha-detail-page .charocha-info-cards,
    .charocha-detail-page .charocha-info-cards--no-seller {
        grid-template-columns: 1fr;
    }

    .charocha-detail-page .charocha-info-cards__cell--inquiry .sms-form-card {
        position: relative;
        top: 0;
    }
}

/* ~1000px 본문 — 갤러리 높이 맞춤 · 3열 카드 정리 (콘텐츠 너비 기준) */
@container charocha-detail (min-width: 760px) and (max-width: 1040px) {
    .charocha-detail-page.car-detail-container {
        padding: 16px 8px 0;
    }

    .charocha-detail-page .car-header {
        padding: 22px 20px;
    }

    .charocha-detail-page .car-header .car-title {
        font-size: 30px;
    }

    .charocha-detail-page .car-image-section {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: 14px;
        align-items: stretch;
        padding: 16px;
    }

    .charocha-detail-page .main-image {
        flex: unset;
        min-width: 0;
        max-height: 392px;
        display: flex;
    }

    .charocha-detail-page .main-image img {
        width: 100%;
        height: 100%;
        min-height: 280px;
        max-height: 392px;
        object-fit: cover;
    }

    .charocha-detail-page .thumbnail-grid {
        flex: unset;
        width: auto;
        max-width: none;
        max-height: 392px;
        overflow-x: hidden;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        align-content: start;
        scrollbar-width: thin;
        scrollbar-color: color-mix(in srgb, var(--charocha-accent) 35%, #ccc) transparent;
    }

    .charocha-detail-page .thumbnail-grid::-webkit-scrollbar {
        width: 5px;
    }

    .charocha-detail-page .thumbnail-grid::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background: color-mix(in srgb, var(--charocha-accent) 40%, #bbb);
    }

    .charocha-detail-page .thumbnail-item {
        width: auto;
        height: auto;
        aspect-ratio: 4 / 3;
        border-width: 1px;
    }

    .charocha-detail-page .thumbnail-item:hover {
        transform: none;
    }

    .charocha-detail-page .charocha-info-cards {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 248px;
        gap: 12px;
        align-items: stretch;
    }

    .charocha-detail-page .charocha-info-cards--no-seller {
        grid-template-columns: minmax(0, 1fr) 248px;
    }

    .charocha-detail-page .charocha-info-cards__cell {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .charocha-detail-page .charocha-info-cards__cell > .info-card,
    .charocha-detail-page .charocha-info-cards__cell > .sms-form-card {
        flex: 1 1 auto;
        height: 100%;
        padding: 18px 14px;
        box-sizing: border-box;
    }

    .charocha-detail-page .info-card h3,
    .charocha-detail-page .sms-form-title {
        font-size: 17px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .charocha-detail-page .info-table td,
    .charocha-detail-page .info-table th {
        padding: 7px 4px;
        font-size: 13px;
        line-height: 1.45;
    }

    .charocha-detail-page .info-label {
        width: 8.5em;
        min-width: 8.5em;
        max-width: 8.5em;
        font-size: 12px;
        padding-right: 8px !important;
        white-space: nowrap;
        word-break: keep-all;
    }

    .charocha-detail-page .charocha-section-spec .info-label,
    .charocha-detail-page .charocha-section-seller .info-label {
        width: 10.5em;
        min-width: 10.5em;
        max-width: 10.5em;
    }

    .charocha-detail-page .info-label__icon {
        width: 24px;
        height: 24px;
        margin-right: 6px;
        border-radius: 7px;
    }

    .charocha-detail-page .info-label__icon svg {
        width: 13px;
        height: 13px;
    }

    .charocha-detail-page .info-value {
        font-size: 13px;
        font-weight: 600;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .charocha-detail-page .dealer-card > div:first-of-type {
        text-align: center;
        margin-bottom: 8px;
    }

    .charocha-detail-page .id-card {
        width: 100% !important;
        max-width: 132px;
        padding: 10px;
        margin: 0 auto;
    }

    .charocha-detail-page .dealer-contact {
        font-size: 17px;
    }

    .charocha-detail-page .charocha-dealer-intro-line {
        font-size: 14px;
        line-height: 1.65;
        color: #111827;
    }

    .charocha-detail-page .charocha-info-cards__cell--inquiry .sms-form-card {
        top: 0;
        display: flex;
        flex-direction: column;
    }

    .charocha-detail-page .charocha-info-cards__cell--inquiry .charocha-sms-form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    .charocha-detail-page .sms-textarea {
        flex: 1 1 auto;
        min-height: 110px;
        height: auto;
        margin-bottom: 8px;
        font-size: 12px;
        line-height: 1.45;
    }

    .charocha-detail-page .sms-input {
        padding: 10px;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .charocha-detail-page .sms-submit-btn {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .charocha-detail-page .car-image-section {
        flex-direction: column;
    }

    .charocha-detail-page .thumbnail-grid {
        width: 100%;
    }

    .charocha-detail-page .car-price-section {
        flex-direction: column;
        align-items: stretch;
    }

    .charocha-detail-page .car-header-main {
        flex-direction: column;
        gap: 14px;
    }

    .charocha-detail-page .car-header-main__right {
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    .charocha-detail-page .car-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .charocha-detail-page .car-header-topline-price {
        justify-content: flex-start;
    }

    .charocha-detail-page .car-header .car-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .charocha-detail-page .installment-section {
        width: 100%;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .charocha-detail-page .price-amount {
        font-size: 30px;
    }

    .charocha-detail-tabs-wrap #detailpic {
        grid-template-columns: 1fr;
    }

    .charocha-detail-tabs-wrap .tab-link {
        padding: 12px 8px;
        font-size: 13px;
    }

    .charocha-detail-tabs-wrap .charocha-optable,
    .charocha-detail-page .charocha-optable {
        --charocha-op-cols: 2;
        gap: 12px;
    }

    .charocha-detail-tabs-wrap .charocha-optable__group,
    .charocha-detail-page .charocha-optable__group {
        padding: 12px;
        border-radius: 12px;
    }

    .charocha-detail-tabs-wrap .charocha-optable__list li,
    .charocha-detail-page .charocha-optable__list li {
        min-height: 40px;
        padding: 7px 8px;
        font-size: 12px;
        gap: 6px;
    }

    .charocha-detail-tabs-wrap .charocha-optable__list .encar-option-icon,
    .charocha-detail-page .charocha-optable__list .encar-option-icon {
        width: 22px;
        height: 22px;
        border-radius: 6px;
    }

    .charocha-detail-tabs-wrap .charocha-opouter-label {
        width: 36px;
    }

    .charocha-detail-tabs-wrap .charocha-opinner td {
        width: 50%;
    }
}

body.epc-layout-mobile.charocha-detail-skin.site-wooin0724 .charocha-detail-page.car-detail-container {
    max-width: 100%;
    padding: 12px 12px 32px;
}

body.epc-layout-mobile.charocha-detail-skin.site-wooin0724 .charocha-detail-page .car-header .car-title {
    font-size: 18px;
}

body.epc-layout-mobile.charocha-detail-skin.site-wooin0724 .charocha-detail-page .car-image-section {
    flex-direction: column;
}

body.epc-layout-mobile.charocha-detail-skin.site-wooin0724 .charocha-detail-page .thumbnail-item {
    width: calc(25% - 6px);
    height: auto;
    aspect-ratio: 4 / 3;
}

body.epc-layout-mobile.charocha-detail-skin.site-wooin0724 .charocha-detail-page .sms-textarea {
    height: 160px;
}

body.epc-layout-mobile.charocha-detail-skin.site-wooin0724 .charocha-detail-tabs-wrap {
    max-width: 100%;
    padding: 0 0 20px;
}

/* 판매방식 · 소개 (prep.php 공통 변수) */
.charocha-detail-page .charocha-dealer-intro-line {
    font-weight: 500;
    line-height: 1.5;
    color: #334155;
    word-break: keep-all;
}

.charocha-detail-page .epc-sale-method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.charocha-detail-page .epc-section-help,
.charocha-detail-page .epc-sale-method-help,
.charocha-detail-tabs-wrap .epc-section-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.charocha-detail-page .epc-section-help__btn,
.charocha-detail-page .epc-sale-method-help__btn,
.charocha-detail-tabs-wrap .epc-section-help__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    padding: 0;
    margin: 0;
    border: 1.5px solid #c5ccd6;
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-indent: 0;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.charocha-detail-page .epc-section-help__btn:hover,
.charocha-detail-page .epc-sale-method-help__btn:hover,
.charocha-detail-tabs-wrap .epc-section-help__btn:hover,
.charocha-detail-page .epc-section-help__btn:focus-visible,
.charocha-detail-page .epc-sale-method-help__btn:focus-visible,
.charocha-detail-tabs-wrap .epc-section-help__btn:focus-visible {
    border-color: var(--charocha-accent, #f21e1e);
    color: var(--charocha-accent, #f21e1e);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(242, 30, 30, 0.16);
    outline: none;
}

.charocha-detail-page .epc-section-help.is-open .epc-section-help__btn,
.charocha-detail-tabs-wrap .epc-section-help.is-open .epc-section-help__btn {
    border-color: var(--charocha-accent, #f21e1e);
    color: var(--charocha-accent, #f21e1e);
    background: #fff5f5;
}

.charocha-detail-tabs-wrap .charocha-detail-option__head .epc-section-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    vertical-align: middle;
}

.charocha-detail-tabs-wrap .charocha-detail-option__head .epc-section-help__btn {
    position: relative;
    top: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    font-size: 13px;
}

.charocha-detail-page .epc-section-help__tip,
.charocha-detail-page .epc-sale-method-help__tip,
.charocha-detail-tabs-wrap .epc-section-help__tip {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    min-width: 120px;
    max-width: 260px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: normal;
    word-break: keep-all;
    text-align: left;
}

.charocha-detail-page .epc-section-help__tip::after,
.charocha-detail-page .epc-sale-method-help__tip::after,
.charocha-detail-tabs-wrap .epc-section-help__tip::after {
    content: '';
    position: absolute;
    left: 14px;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    transform: rotate(45deg);
}

.charocha-detail-page .epc-section-help.is-open .epc-section-help__tip,
.charocha-detail-page .epc-sale-method-help.is-open .epc-sale-method-help__tip,
.charocha-detail-tabs-wrap .epc-section-help.is-open .epc-section-help__tip {
    display: block;
}

.charocha-detail-tabs-wrap .epc-section-help--below .epc-section-help__tip {
    bottom: auto;
    top: calc(100% + 8px);
}

.charocha-detail-tabs-wrap .epc-section-help--below .epc-section-help__tip::after {
    bottom: auto;
    top: -6px;
    border-right: 1px solid #cbd5e1;
    border-bottom: none;
    border-top: 1px solid #cbd5e1;
    border-left: 1px solid #cbd5e1;
}

.charocha-detail-tabs-wrap .epc-section-title-row .epc-section-help--below .epc-section-help__tip {
    left: 50%;
    transform: translateX(-50%);
}

.charocha-detail-tabs-wrap .epc-section-title-row .epc-section-help--below .epc-section-help__tip::after {
    left: 50%;
    margin-left: -5px;
}

/* 섹션 순서 · 리스 */
.charocha-detail-page .encar-lease-schedule {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.charocha-detail-page .encar-lease-schedule .encar-section-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 16px;
    color: #000;
    border-bottom: 2px solid var(--charocha-accent);
    padding-bottom: 10px;
    text-align: left;
}

.charocha-detail-page .encar-lease-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 1px solid #e8eef3;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.charocha-detail-page .charocha-lease-headline {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.charocha-detail-page .charocha-lease-headline__prefix,
.charocha-detail-page .charocha-lease-headline__suffix {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.charocha-detail-page .charocha-lease-headline__amount {
    font-size: 42px;
    font-weight: bold;
    color: var(--charocha-price);
}

.charocha-detail-page .encar-lease-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.charocha-detail-page .encar-lease-table thead th {
    padding: 11px 20px;
    background: #f8fafc;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.charocha-detail-page .encar-lease-table thead th:first-child,
.charocha-detail-page .encar-lease-table tbody th {
    text-align: center;
    width: 42%;
}

.charocha-detail-page .encar-lease-table thead th:last-child,
.charocha-detail-page .encar-lease-table tbody td {
    text-align: right;
    width: 58%;
    padding-right: 24px;
}

.charocha-detail-page .encar-lease-table tbody th,
.charocha-detail-page .encar-lease-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.charocha-detail-page .encar-lease-table tbody tr:last-child th,
.charocha-detail-page .encar-lease-table tbody tr:last-child td {
    border-bottom: 0;
}

.charocha-detail-page .encar-lease-table tbody th {
    font-weight: 600;
    color: #333;
}

.charocha-detail-page .encar-lease-table__amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--charocha-price);
}

.charocha-detail-page .encar-lease-table__unit {
    margin-left: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.charocha-detail-page .encar-lease-table tbody tr.is-default {
    background: var(--charocha-accent-soft);
}

.charocha-detail-page .encar-lease-table tbody tr.is-default .encar-lease-table__amount {
    color: var(--charocha-accent-dark);
}

.charocha-detail-page .charocha-key-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.charocha-detail-page .charocha-key-options li {
    background: var(--charocha-accent-soft);
    color: var(--charocha-accent);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.charocha-detail-page .charocha-detail-perf,
.charocha-detail-tabs-wrap .charocha-detail-perf {
    text-align: center;
    padding: 40px 20px;
}

.charocha-detail-tabs-wrap .charocha-detail-tabs-nav {
    position: sticky;
    top: 0;
    z-index: 10;
}

body.site-stcompany.charocha-detail-skin .charocha-detail-tabs-wrap .charocha-detail-tabs-nav {
    top: 0;
}

.charocha-detail-tabs-wrap .charocha-detail-tabs-panels {
    position: relative;
}

/* 전체화면 사진 보기 — modern/encar 공통 라이트박스 */
body.epc-photo-lightbox-open {
    overflow: hidden;
}

.epc-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000001;
}

.epc-photo-lightbox[hidden] {
    display: none !important;
}

.epc-photo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.epc-photo-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 20px 24px;
    box-sizing: border-box;
}

.epc-photo-lightbox__close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.epc-photo-lightbox__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.epc-photo-lightbox__header {
    flex: 0 0 auto;
    padding-right: 48px;
    margin-bottom: 12px;
}

.epc-photo-lightbox__title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.epc-photo-lightbox__main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epc-photo-lightbox__stage {
    width: min(100%, 980px);
    max-height: calc(100vh - 220px);
}

.epc-photo-lightbox__stage img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: 10px;
}

.epc-photo-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.epc-photo-lightbox__nav--prev {
    left: 0;
}

.epc-photo-lightbox__nav--next {
    right: 0;
}

.epc-photo-lightbox__nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epc-photo-lightbox__counter {
    position: absolute;
    right: 0;
    bottom: -8px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
}

.epc-photo-lightbox__grid {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 18px;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.epc-photo-lightbox__grid::-webkit-scrollbar {
    height: 6px;
}

.epc-photo-lightbox__grid::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
}

.epc-photo-lightbox__grid-item {
    flex: 0 0 auto;
    width: 88px;
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #1e293b;
    cursor: pointer;
    box-sizing: border-box;
}

.epc-photo-lightbox__grid-item.is-on {
    border-color: #fff;
}

.epc-photo-lightbox__grid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

