/* ============================================================
   COMPARE.CSS — 제품 스펙 비교 페이지
   ============================================================ */

.compare-page .cmp-hero{
    background: var(--c-darkgray);
    padding: 100px 32px 100px;
    text-align: center;
    border-bottom: 1px solid var(--c-line);
}
.compare-page .cmp-hero-inner{ max-width: var(--max-w); margin: 0 auto; }
.compare-page .cmp-hero .eyebrow{
    font-family: var(--font-display);
    font-size: 14px; letter-spacing: 0.5px;
    color: var(--c-navy-hl); margin-bottom: 16px;
}
.compare-page .cmp-hero h1{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 0.5px;
    color: var(--c-white);
    margin-bottom: 16px;
}
.compare-page .cmp-hero .lead{ color: var(--c-white-2); letter-spacing: 0.3px; }

/* 선택 카드 */
.cmp-selector{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cmp-card{
    cursor: pointer;
    user-select: none;
}
.cmp-card input{ display: none; }
.cmp-card-inner{
    background: var(--c-darkgray);
    border: 1.5px solid var(--c-line);
    padding: 24px;
    text-align: center;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.cmp-card:hover .cmp-card-inner{
    border-color: rgba(46,98,179,0.5);
    transform: translateY(-3px);
}
.cmp-card input:checked ~ .cmp-card-inner{
    border-color: var(--c-navy-hl);
    background: linear-gradient(180deg, rgba(46,98,179,0.12), var(--c-darkgray));
    box-shadow: 0 6px 22px rgba(46,98,179,0.25);
}
.cmp-card-img{
    width: 100%;
    height: 200px;
    background: var(--c-black-2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--c-line);
}
.cmp-card-img img{
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}
.cmp-card-name{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 0.5px;
    color: var(--c-white);
    margin-bottom: 6px;
}
.cmp-card-tag{
    font-size: 13px;
    color: var(--c-white-2);
    letter-spacing: 0.5px;
}
.cmp-check{
    position: absolute;
    top: 14px; right: 14px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--c-navy-hl);
    color: var(--c-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.7);
    transition: all .25s ease;
}
.cmp-card input:checked ~ .cmp-card-inner .cmp-check{
    opacity: 1;
    transform: scale(1);
}

/* 비교 표 */
.cmp-table-section{
    background: var(--c-black-2);
}
.cmp-table-wrap{
    overflow-x: auto;
    border: 1px solid var(--c-line);
    background: var(--c-darkgray);
}
.cmp-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.cmp-table thead th{
    background: var(--c-black-2);
    padding: 24px 18px;
    border-bottom: 2px solid var(--c-navy-hl);
    border-right: 1px solid var(--c-line);
    text-align: center;
    vertical-align: middle;
}
.cmp-table thead th:last-child{ border-right: none; }
.cmp-table thead th.head-empty{
    width: 180px;
    min-width: 160px;
    background: var(--c-darkgray);
    border-bottom: 2px solid var(--c-line);
}
.cmp-table .head-img{
    width: 110px;
    height: 110px;
    background: var(--c-darkgray);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    border: 1px solid var(--c-line);
    overflow: hidden;
}
.cmp-table .head-img img{
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
}
.cmp-table .head-name{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.3px;
    color: var(--c-white);
    margin-bottom: 4px;
}
.cmp-table .head-name a{ color: inherit; }
.cmp-table .head-name a:hover{ color: var(--c-navy-hl); }
.cmp-table .head-sub{
    font-size: 12px;
    color: var(--c-white-2);
    letter-spacing: 0.5px;
}
.cmp-table tbody th{
    background: var(--c-black-2);
    color: var(--c-white-2);
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-line);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.3px;
    font-weight: 500;
    width: 180px;
    min-width: 160px;
}
.cmp-table tbody td{
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-line);
    border-right: 1px solid var(--c-line);
    text-align: center;
    color: var(--c-white);
    font-size: 14px;
}
.cmp-table tbody td:last-child{ border-right: none; }
.cmp-table tbody tr:hover td{
    background: rgba(46,98,179,0.06);
}
.cmp-table tbody td.dim{ color: var(--c-white-2); opacity: 0.5; }
.cmp-table tbody td small{
    display: inline;
    font-size: 11px;
    color: var(--c-white-2);
    opacity: 0.8;
    margin-left: 2px;
}

.cmp-empty{
    text-align: center;
    padding: 80px 20px;
    color: var(--c-white-2);
}

.cmp-note{
    margin-top: 20px;
    font-size: 12px;
    color: var(--c-white-2);
    text-align: right;
    opacity: 0.7;
}

/* ---------- 32"+ 대형 ---------- */
@media (min-width: 1600px){
    .compare-page .cmp-hero{ padding: 130px 40px 110px; }
    .cmp-selector{ gap: 32px; }
    .cmp-card-img{ height: 260px; }
    .cmp-card-name{ font-size: 28px; }
    .cmp-table thead th{ padding: 32px 24px; }
    .cmp-table .head-img{ width: 140px; height: 140px; }
    .cmp-table .head-name{ font-size: 22px; }
    .cmp-table tbody td{ font-size: 15px; padding: 18px 22px; }
    .cmp-table tbody th{ font-size: 14px; padding: 18px 22px; }
}

/* ---------- 태블릿 (≤960px) ---------- */
@media (max-width: 960px){
    .cmp-selector{ grid-template-columns: 1fr 1fr; gap: 18px; }
    .cmp-card:last-child{ grid-column: 1 / -1; max-width: 480px; justify-self: center; width: 100%; }
}

/* ---------- 모바일 (≤860px) ---------- */
@media (max-width: 860px){
    .cmp-selector{ grid-template-columns: 1fr; }
    .cmp-card:last-child{ grid-column: auto; max-width: none; }
    .cmp-card-img{ height: 160px; }
    .cmp-table thead th{ padding: 16px 10px; }
    .cmp-table .head-img{ width: 80px; height: 80px; }
}

/* ---------- 작은 모바일 (≤480px) ---------- */
@media (max-width: 480px){
    .compare-page .cmp-hero{ padding: 70px 16px 60px; }
    .cmp-card-inner{ padding: 18px; }
    .cmp-card-img{ height: 140px; }
    .cmp-card-name{ font-size: 20px; letter-spacing: 0.4px; }
    .cmp-table-wrap{ font-size: 12px; }
    .cmp-table thead th{ padding: 14px 8px; }
    .cmp-table .head-name{ font-size: 16px; letter-spacing: 0.3px; }
    .cmp-table .head-sub{ font-size: 11px; }
    .cmp-table tbody th{ width: 130px; min-width: 120px; padding: 12px 10px; font-size: 12px; }
    .cmp-table tbody td{ padding: 12px 10px; font-size: 13px; }
}
