/* ============================================================
   МОКАП КАРТОЧКИ ПЕРИФЕРИИ (1в1 с референсом владельца 06.11):
   фото на волне + наличие, название категории, селект модели
   с иконкой, чипы характеристик, ссылка на товар, розница +
   текстовый опт-бейдж, степпер + синяя кнопка. Без сравнения.
   ============================================================ */
body.periphery .bpc-per { display: flex; flex-direction: column; }
body.periphery .bpc-per .bpc-media { position: relative; height: 200px; overflow: hidden; background: linear-gradient(128deg, #f8fbff 0%, #f3f8ff 42%, #eaf4ff 100%); }
body.periphery .bpc-per .bpc-media::before {
    content: ""; position: absolute; left: -25%; right: 25%; bottom: -65%; height: 105%;
    background: #dbeeff; border-radius: 50% 53% 0 0; transform: rotate(11deg); opacity: 0.7; pointer-events: none;
}
body.periphery .bpc-per .bpc-media::after {
    content: ""; position: absolute; right: -40%; bottom: -95%; width: 120%; height: 150%;
    background: #c7e2ff; border-radius: 65% 80% 0 0; transform: rotate(-29deg); opacity: 0.68; pointer-events: none;
}
body.periphery .bpc-per .bpc-media .card-media { position: relative; z-index: 1; height: 200px; margin: 0; background: transparent; }
body.periphery .bpc-per .card-media-link { display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px 18px 8px; }
body.periphery .bpc-per .card-img { max-height: 178px; filter: drop-shadow(0 11px 11px rgba(13, 26, 48, 0.1)); }
body.periphery .bpc-per .bpc-stockline .bpk-stock { position: absolute; z-index: 3; top: 12px; left: 12px; }
body.periphery .bpc-per .card-content.bpc-body { padding: 17px 19px 19px; display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
body.periphery .bpc-per .card-content.bpc-body > * { order: 0; min-width: 0; }
body.periphery .bpc-per .card-name { order: -1; margin: 0 0 12px; font-size: 21px; }
body.periphery .bpc-per .card-name { margin: 0 0 12px; font-size: 21px; }
/* Селект модели: один бокс, иконка слева, значение справа, шеврон. */
body.periphery .bpc-per .per-variant-label { font-size: 12px; color: #7f8999; font-weight: 650; margin-bottom: 5px; }
body.periphery .bpc-per .per-dd { margin-bottom: 12px; }
body.periphery .bpc-per .per-dd-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: #fff; border: 1px solid #e3e9f2; border-radius: 12px;
    padding: 8px 12px; min-height: 52px;
}
body.periphery .bpc-per .per-dd-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #eaf3ff; color: #1760c8; }
body.periphery .bpc-per .per-dd-ico svg { width: 19px; height: 19px; }
body.periphery .bpc-per .per-dd-value { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 800; color: #1c2736; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.periphery .bpc-per .per-dd-toggle .per-dd-arrow { flex: none; }
/* Чипы характеристик: значение сверху, подпись снизу. */
body.periphery .bpc-per .bpc-chips { display: flex; gap: 8px; margin: 0 0 12px; }
body.periphery .bpc-per .bpc-chip {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px;
    background: #f6f9fd; border: 1px solid #e9eff6; border-radius: 12px; padding: 8px 4px; text-align: center;
}
body.periphery .bpc-per .bpc-chip b { font-size: 13px; font-weight: 800; color: #172236; white-space: nowrap; }
body.periphery .bpc-per .bpc-chip small { font-size: 10.5px; color: #7f8999; }
/* Ссылка на товар — компактным текстом. */
body.periphery .bpc-per .bpc-specs { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; color: #1253b9; font-size: 13.5px; font-weight: 800; text-decoration: none; padding: 2px 0; }
body.periphery .bpc-per .bpc-specs svg { width: 16px; height: 16px; }
body.periphery .bpc-per .bpc-specs:hover { text-decoration: underline; }
/* Цена + текстовый опт-бейдж; ряд покупки: степпер + кнопка. */
body.periphery .bpc-per .bpc-pricebox { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
body.periphery .bpc-per .per-price { font-size: 26px; font-weight: 800; color: #101a28; letter-spacing: -0.02em; white-space: nowrap; }
body.periphery .bpc-per .bpc-buy { display: flex; gap: 10px; align-items: stretch; margin-top: 12px; }
body.periphery .bpc-per .bpc-buy .qty-stepper { min-height: 45px; flex: none; }
body.periphery .bpc-per .bpc-buy .qs-btn { min-height: 0; }
body.periphery .bpc-per .bpc-add { flex: 1 1 auto; min-width: 0; height: 45px; border: 0; border-radius: 11px; background: linear-gradient(180deg, #1664eb 0%, #0d49d3 100%); box-shadow: 0 3px 0 #0a39ae; color: #fff; font-weight: 850; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-transform: none; }
body.periphery .bpc-per .bpc-add svg { width: 18px; height: 18px; }
body.periphery .bpc-per .bpc-add:hover { background: #0b43c3; }
body.periphery .bpc-per .bpc-add.is-added { background: #15803d; }

/* ============================================================
   «Бизнес ПК» — СТРАНИЦА КАТАЛОГА «ПЕРИФЕРИЯ»
   Карточки с вариантами товара. Общие стили карточки — в card.css.
   Подключать ПОСЛЕ: theme-mono.css -> ui/* -> site.css
                      -> card.css -> periphery.css
   ============================================================ */

body.periphery main { padding-bottom: 110px; }

/* ---------- Шапка раздела — единый стиль с computers.css
   (cat-title / cat-sub как в остальных разделах) ---------- */
.cat-head {
    width: min(100% - 48px, 1160px);
    margin: 40px auto 26px;
}

.cat-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nv-tx-2);
    background: var(--nv-panel);
    border: 1px solid var(--nv-line);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    text-decoration: none;
}
.cat-back:hover {
    color: var(--nv-tx);
    border-color: var(--nv-tx-3);
}
.cat-back:active { transform: scale(0.97); }
.cat-back svg { width: 13px; height: 13px; flex-shrink: 0; }

.cat-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.cat-title {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--nv-tx);
}

.cat-sub {
    max-width: 620px;
    margin: 12px 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--nv-tx-2);
}

/* ---------- Дельта изображения: выше и крупнее плейсхолдер ---------- */
body.periphery .card-media { height: 170px; }

body.periphery .card-ph svg { width: 108px; }

/* ---------- Низ карточки как у ПК: те же отступы (.card-content
   из card.css), компактно, без растягивания ---------- */
body.periphery .card-variant {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
body.periphery .per-foot {
    order: 2;
    margin-top: auto;
    padding-top: 16px;
}

.per-variant-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Название выбранного товара — ссылка на его страницу.
   Визуально тихая строка под селектом: компоновку не ломает. */
.per-item-link {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nv-tx-2);
    text-decoration: none;
}
.per-item-link:hover { color: var(--nv-tx); text-decoration: underline; }

/* ---------- Низ карточки: цена + кнопка ---------- */
.per-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
}

.per-price {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--black);
    white-space: nowrap;
}
.per-price .bpk-prices { align-items: flex-start; }
.per-price .bpk-opt-note { margin-top: 2px; }
.per-stock { margin: 2px 0 8px; }
.per-stock .bpk-stock { font-size: 10px; padding: 5px 9px; }

/* ---------- Адаптивность (вид кнопок — из канона ui/buttons.css) ---------- */
@media (max-width: 900px) {
    .cat-title { font-size: 34px; }
}

@media (max-width: 640px) {
    .cat-head { width: min(100% - 32px, 1160px); margin: 26px auto 20px; }
    .cat-title { font-size: 28px; }
    .cat-title-row { margin-top: 14px; gap: 10px; }
    .cat-sub { font-size: 0.88rem; }
    .per-foot { flex-wrap: wrap; }
    .btn--block { flex: 1 1 auto; }
}
