/* ── PC Compare Page ─────────────────────────────────── */

.gab-pcc {
    background: #f0f4f8;
    min-height: 100vh;
    padding: 24px 0 48px;
}

.gab-pcc__header {
    text-align: center;
    padding: 0 16px 28px;
}

.gab-pcc__header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px;
}

.gab-pcc__header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

/* ── Compare bar (үнэ харьцуулах) ───────────────────── */
.gab-pcc__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto 20px;
    padding: 0 18px;
}

.gab-pcc__bar-side {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

.gab-pcc__bar-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gab-pcc__bar-total {
    font-size: 22px;
    font-weight: 800;
    color: #127dae;
}

/* INTEL / AMD өнгөт зураас */
.gab-pcc__bar-side--a { border-left: 4px solid #0068b5 !important; }
.gab-pcc__bar-side--b { border-right: 4px solid #ed1c24 !important; }

.gab-pcc__bar-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #374151;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(18,125,174,0.3);
    flex-shrink: 0;
}

.gab-pcc__bar-winner {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #dcfce7;
    color: #16a34a;
    font-weight: 700;
    display: none;
}

.gab-pcc__bar-winner.is-visible {
    display: inline-block;
}

/* ── 2 columns layout ───────────────────────────────── */
.gab-pcc__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 18px;
    align-items: start;
}

.gab-pcc__col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gab-pcc__col-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px 10px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* INTEL — цэнхэр */
.gab-pcc__col--a .gab-pcc__col-label {
    background: #0068b5;
}

/* AMD — улаан */
.gab-pcc__col--b .gab-pcc__col-label {
    background: #ed1c24;
}

/* Compare доторх grid — 2 карт мөрөнд, scroll */
.gab-pcc__col .gab-pcb__grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Main хэсэг өндрөө барина, scroll гарна */
.gab-pcc__col .gab-pcb__main {
    display: flex;
    flex-direction: column;
    max-height: 800px;
}

.gab-pcc__col .gab-pcb__grid {
    overflow-y: auto;
    flex: 1;
    padding: 12px;
}

/* PC Builder-ийн section-г багана дотор байрлуулах */
.gab-pcc__col .gab-pcb {
    background: transparent;
    padding: 0;
    min-height: unset;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.gab-pcc__col .gab-pcb__layout {
    grid-template-columns: 200px minmax(0, 1fr);
    padding: 0;
    gap: 0;
    max-width: unset;
}

/* Summary хэсгийг нуух (compare bar-д харуулна) */
.gab-pcc__col .gab-pcb__summary {
    display: none;
}

.gab-pcc__col .gab-pcb__panel {
    border-radius: 0;
    border-right: 1px solid #dfe6ee;
    border-top: none;
    position: sticky;
    top: 80px;
}

.gab-pcc__col .gab-pcb__main {
    border-radius: 0 0 10px 0;
    border-top: none;
    border-left: none;
}

/* ── Compare summary table ──────────────────────────── */
.gab-pcc__compare {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 18px;
}

.gab-pcc__compare-box {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

.gab-pcc__compare-head {
    display: grid;
    grid-template-columns: 160px 1fr 1fr;
    background: #f8fafc;
    border-bottom: 1px solid #e5eaf0;
    font-weight: 700;
    font-size: 13px;
}

.gab-pcc__compare-head > div {
    padding: 12px 16px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gab-pcc__compare-head > div:first-child {
    border-right: 1px solid #e5eaf0;
}

.gab-pcc__compare-row {
    display: grid;
    grid-template-columns: 160px 1fr 1fr;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.gab-pcc__compare-row:last-child {
    border-bottom: none;
}

.gab-pcc__compare-row:hover {
    background: #f8fafc;
}

.gab-pcc__compare-cat {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-right: 1px solid #e5eaf0;
    display: flex;
    align-items: center;
}

.gab-pcc__compare-cell {
    padding: 10px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
}

.gab-pcc__compare-cell:first-of-type {
    border-right: 1px solid #f1f5f9;
}

.gab-pcc__compare-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f8fafc;
}

.gab-pcc__compare-name {
    font-size: 12px;
    color: #1f2937;
    line-height: 1.3;
}

.gab-pcc__compare-price {
    font-size: 11px;
    color: #127dae;
    font-weight: 700;
    margin-top: 2px;
}

.gab-pcc__compare-empty {
    color: #94a3b8;
    font-style: italic;
    font-size: 12px;
}

/* ── Mobile: бүх контентыг нуугаад мессеж харуулна ── */
@media (max-width: 991.98px) {
    .gab-pcc__bar,
    .gab-pcc__cols,
    .gab-pcc__compare {
        display: none !important;
    }

    .gab-pcc__header::after {
        content: "";
        display: block;
        margin: 32px auto 0;
        width: 64px;
        height: 64px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23127dae'%3E%3Cpath d='M20 3H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h7v2H8v2h8v-2h-3v-2h7a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 13H4V5h16v11z'/%3E%3C/svg%3E") center/contain no-repeat;
    }

    .gab-pcc__mobile-msg {
        display: block !important;
    }
}
