/* Переключатель комплектаций: карточка товара и предпросмотр в админке. Цвета наследуются от темы. */
.pv { margin: 4px 0 16px; width: 100%; --pv-ink: var(--ys-color-token-text-primary, #17171a); --pv-muted: var(--ys-color-token-text-secondary, #6c6c72); --pv-line: var(--ys-color-token-border-primary, #e3e3e8); --pv-accent: var(--pv-ink); }
.pv__title { margin: 0 0 10px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--pv-ink); }
.pv__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pv--extended .pv__list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pv__item { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 11px 12px 12px; border: 1px solid var(--pv-line); border-radius: 12px; background: #fff; color: var(--pv-ink); text-decoration: none; line-height: 1.25; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.pv__item:hover { border-color: var(--pv-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(-1px); }
a.pv__item:focus-visible { outline: 2px solid var(--pv-ink); outline-offset: 2px; }
.pv__item.is-active { border-color: var(--pv-accent); box-shadow: inset 0 0 0 1px var(--pv-accent), 0 4px 14px rgba(0, 0, 0, .08); cursor: default; }
.pv__item.is-active::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--pv-accent); }
.pv__line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0; min-width: 0; }
.pv__line--head { padding-right: 14px; }
.pv__s { min-width: 0; overflow-wrap: anywhere; }
.pv__s + .pv__s::before { content: "·"; margin: 0 5px; color: var(--pv-muted); font-weight: 400; }
.pv__s--platform { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.pv--bigplatform .pv__s--platform { font-size: 17px; }
.pv__s--label, .pv__s--sku { font-size: 12px; color: var(--pv-muted); }
.pv__line--spec { font-size: 13px; color: var(--pv-ink); }
.pv--compact .pv__line--spec { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pv--compact.pv--inline .pv__line--spec { display: block; }
.pv--stacked .pv__line--spec .pv__s + .pv__s::before { content: none; }
.pv__s.is-empty { color: var(--pv-muted); }
.pv__cap { color: var(--pv-muted); font-size: 12px; }
.pv__line--price { margin-top: auto; padding-top: 5px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.pv--bigprice .pv__line--price { font-size: 18px; font-weight: 700; }
.pv__item.is-unavailable:not(.is-active) { background: #fafafb; }
.pv__item.is-unavailable .pv__line--price { color: var(--pv-muted); }
.pv__note { font-size: 11px; color: var(--pv-muted); }
.pv__more { margin-top: 8px; }
.pv__more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--pv-ink); padding: 6px 0; list-style: none; }
.pv__more summary::-webkit-details-marker { display: none; }
.pv__more summary::after { content: " ▾"; }
.pv__more[open] summary::after { content: " ▴"; }
.pv__more .pv__list { margin-top: 6px; }
@media (max-width: 640px) {
  .pv { margin: 0 0 14px; }
  .pv__list, .pv--extended .pv__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv__item { padding: 10px 11px 11px; min-height: 48px; }
  .pv--extended .pv__list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .pv__item { transition: none; } a.pv__item:hover { transform: none; } }
/* компактный вид: переносы только между характеристиками, а не внутри «8 ядер» / «С крутилками» */
.pv--compact .pv__line--spec .pv__s { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
