.pc-builder {
    background: #f8fbfc;
}

.pc-builder-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .10), rgba(37, 99, 235, .08)),
        #fff;
}

.pc-builder-hero h1 {
    max-width: 760px;
    margin: 0 0 10px;
    font-weight: 900;
}

.pc-builder-hero p {
    max-width: 740px;
    color: var(--muted);
    margin: 0;
}

.pc-compat-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: var(--radius);
    background: #eef8f6;
    color: var(--brand-dark);
    font-weight: 800;
}

.pc-compat-note i {
    font-size: 18px;
}

.pc-select-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pc-builder-group {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.pc-builder-group__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.pc-builder-group__head > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: #eef8f6;
    color: var(--brand);
}

.pc-builder-group__head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.pc-builder-group__head small {
    color: var(--muted);
}

.pc-part-select {
    min-height: 48px;
    border-radius: var(--radius);
    border-color: var(--line);
    font-weight: 800;
}

.pc-part-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.pc-selected-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 14px;
    border-radius: var(--radius);
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.pc-selected-card strong {
    display: block;
    color: var(--ink);
    line-height: 1.25;
}

.pc-selected-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.pc-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.pc-specs span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    padding: 5px 8px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.pc-specs b {
    color: var(--ink);
    display: inline-block;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.pc-specs em {
    display: inline-block;
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: normal;
    vertical-align: bottom;
}

.pc-selected-card__side {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 8px;
}

.pc-selected-card__side b {
    font-size: 18px;
}

.pc-stock {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.pc-stock--in_stock {
    background: #dcfce7;
    color: #166534;
}

.pc-stock--preorder {
    background: #fef3c7;
    color: #92400e;
}

.pc-stock--check {
    background: #dbeafe;
    color: #1d4ed8;
}

.pc-stock--out_of_stock {
    background: #fee2e2;
    color: #991b1b;
}

.pc-summary {
    position: sticky;
    top: 86px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.pc-summary__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.pc-summary__head span {
    color: var(--muted);
    font-weight: 800;
}

.pc-summary__head strong {
    color: var(--brand);
    font-size: 28px;
    line-height: 1;
    text-align: right;
}

.pc-summary__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}

.pc-summary__meta div {
    padding: 12px;
    border-radius: var(--radius);
    background: #f8fafc;
}

.pc-summary__meta span,
.pc-summary__part span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.pc-summary__meta strong {
    display: block;
    margin-top: 4px;
}

.pc-summary__parts {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    max-height: 310px;
    overflow: auto;
    padding-right: 4px;
}

.pc-summary__part {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
}

.pc-summary__part b {
    text-align: right;
}

.pc-summary__warnings {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.pc-share-box,
.pc-request-form {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 14px;
}

.pc-share-box textarea {
    font-size: 12px;
    min-height: 82px;
    resize: vertical;
}

.pc-share-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 10px;
    padding: 0;
    font-weight: 800;
}

.pc-request-form h3 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
}

.pc-warning {
    border-radius: var(--radius);
    padding: 10px 12px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
}

.pc-warning--ok {
    background: #ecfdf5;
    color: #047857;
}

@media (max-width: 991px) {
    .pc-builder-hero {
        align-items: start;
        flex-direction: column;
        padding: 22px;
    }

    .pc-builder-hero h1 {
        font-size: 30px;
    }

    .pc-select-board {
        grid-template-columns: 1fr;
    }

    .pc-summary {
        position: static;
    }
}

@media (max-width: 575px) {
    .pc-builder {
        padding-top: 28px;
    }

    .pc-builder-group {
        padding: 14px;
    }

    .pc-selected-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .pc-selected-card__side {
        align-items: flex-start;
    }

    .pc-specs span {
        width: 100%;
        justify-content: space-between;
        border-radius: var(--radius);
    }

    .pc-specs b {
        max-width: 52%;
    }

    .pc-specs em {
        max-width: 42%;
        text-align: right;
    }

    .pc-summary__meta {
        grid-template-columns: 1fr;
    }
}
