.nvk-product-page{padding:clamp(28px,4vw,56px) var(--nvk-content-gutter) 0}.nvk-product-page__breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:clamp(28px,5vw,68px);color:var(--nvk-color-text-muted);font-size:11px}.nvk-product-page__breadcrumbs svg{width:13px;height:13px}.nvk-product-page__breadcrumbs a:hover{color:var(--nvk-color-primary)}.nvk-product-page__breadcrumbs [aria-current=page]{color:var(--nvk-color-text)}.nvk-product-page__layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(28px,6vw,100px);align-items:center}.nvk-product-page__visual{position:relative;display:grid;place-items:center;min-height:clamp(310px,46vw,660px);padding:24px;overflow:hidden;border:1px solid var(--nvk-color-border);border-radius:clamp(20px,3vw,34px);background:radial-gradient(circle at 50% 50%,var(--nvk-color-primary-soft),transparent 42%),var(--nvk-color-surface-muted)}.nvk-product-page__visual>.nvk-eyebrow{position:absolute;top:24px;left:24px}.nvk-product-page__visual>svg{width:clamp(78px,12vw,160px);height:clamp(78px,12vw,160px);color:var(--nvk-color-primary);stroke-width:1}.nvk-product-page__visual-mark{position:absolute;right:24px;bottom:22px;color:var(--nvk-color-text-soft);font-size:9px;letter-spacing:.16em}.nvk-product-page__content h1,.nvk-product-page__not-found h1{margin:12px 0 18px;font-size:clamp(36px,5.4vw,76px);font-weight:800;line-height:1.03;letter-spacing:-.065em}.nvk-product-page__lead{margin:0;color:var(--nvk-color-text-muted);font-size:clamp(15px,1.5vw,19px);line-height:1.7}.nvk-product-page__specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:28px;padding-block:18px;border-top:1px solid var(--nvk-color-border);border-bottom:1px solid var(--nvk-color-border)}.nvk-product-page__specs div span,.nvk-product-page__specs div strong{display:block}.nvk-product-page__specs div span{margin-bottom:5px;color:var(--nvk-color-text-muted);font-size:10px}.nvk-product-page__specs div strong{font-size:11px;line-height:1.5}.nvk-product-page__placeholder{margin:20px 0 0;color:var(--nvk-color-text-muted);font-size:11px;line-height:1.7}.nvk-product-page__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.nvk-product-page__primary,.nvk-product-page__secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:0 17px;border:1px solid var(--nvk-color-border);border-radius:999px;font-size:11px;font-weight:800;transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease}.nvk-product-page__primary{border-color:var(--nvk-color-text);background:var(--nvk-color-text);color:var(--nvk-color-bg)}.nvk-product-page__primary:hover{border-color:var(--nvk-color-primary);background:var(--nvk-color-primary);color:#fff}.nvk-product-page__secondary:hover{border-color:var(--nvk-color-primary);color:var(--nvk-color-primary)}.nvk-product-page__actions svg{width:15px;height:15px}.nvk-product-page__not-found{min-height:55vh;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.nvk-product-page__not-found h1 span{color:var(--nvk-color-primary)}.nvk-product-page__not-found>p:not(.nvk-eyebrow){margin:0 0 26px;color:var(--nvk-color-text-muted)}@media(max-width:850px){.nvk-product-page__layout{grid-template-columns:1fr;gap:28px}.nvk-product-page__visual{min-height:320px}.nvk-product-page__content h1{font-size:clamp(36px,9vw,60px)}}@media(max-width:460px){.nvk-product-page__specs{grid-template-columns:1fr;gap:14px}.nvk-product-page__actions{flex-direction:column;align-items:stretch}.nvk-product-page__primary,.nvk-product-page__secondary{width:100%}}

/* ---------------------------------------------------------
   Дополнения для каталога, вариантов и оформления заявки
   Базовые стили предыдущей версии сохранены выше.
   --------------------------------------------------------- */

/* Реальное изображение товара из каталога. */
.nvk-product-page__visual > img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 620px;
    object-fit: contain;
    object-position: center;
}

.nvk-product-page__attributes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 0;
}

.nvk-product-page__attributes > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--nvk-color-border);
    border-radius: 12px;
    background: var(--nvk-color-surface);
}

.nvk-product-page__attributes dt {
    margin-bottom: 5px;
    color: var(--nvk-color-text-muted);
    font-size: 10px;
}

.nvk-product-page__attributes dd {
    margin: 0;
    color: var(--nvk-color-text);
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

@media (max-width: 460px) {
    .nvk-product-page__attributes {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Страница товара: стабильная композиция и компактные варианты
   ========================================================= */

/* Верхняя область остаётся двухколоночной независимо от числа вариантов. */
.nvk-product-page {
    padding-top: clamp(24px, 2.8vw, 38px);
}

.nvk-product-page__breadcrumbs {
    margin-bottom: clamp(20px, 2.4vw, 32px);
}

.nvk-product-page__layout {
    align-items: start;
    gap: clamp(24px, 5vw, 76px);
}

.nvk-product-page__visual {
    height: clamp(360px, 40vw, 600px);
    min-height: 0;
}

.nvk-product-page__visual > img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    min-width: 0;
    min-height: 0;
    padding: 46px 26px 26px;
    object-fit: contain;
    object-position: center;
}

.nvk-product-page__title-sku {
    color: var(--nvk-color-primary);
}

.nvk-product-page__content {
    min-width: 0;
}

.nvk-product-page__content h1 {
    overflow-wrap: anywhere;
}

/* Секция вариантов находится под всей верхней композицией, а не внутри колонки текста. */
.nvk-product-variants {
    width: 100%;
    margin-top: clamp(34px, 4.5vw, 64px);
    padding-bottom: clamp(36px, 5vw, 68px);
}

.nvk-product-variants__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.nvk-product-variants__heading .nvk-eyebrow {
    margin: 0;
}

.nvk-product-variants__heading h2 {
    margin: 7px 0 0;
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.045em;
}

.nvk-product-variants__description {
    max-width: 650px;
    margin: 9px 0 0;
    color: var(--nvk-color-text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.nvk-product-variants__count {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid var(--nvk-color-border);
    border-radius: 999px;
    color: var(--nvk-color-text-muted);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.nvk-product-variants__tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.nvk-product-variants__search {
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(100%, 620px);
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--nvk-color-border);
    border-radius: 13px;
    background: var(--nvk-color-surface);
    color: var(--nvk-color-text-muted);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.nvk-product-variants__search:focus-within {
    border-color: var(--nvk-color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nvk-color-primary) 12%, transparent);
}

.nvk-product-variants__search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.nvk-product-variants__search input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--nvk-color-text);
    font: inherit;
    font-size: 12px;
}

.nvk-product-variants__search input::placeholder {
    color: var(--nvk-color-text-muted);
    opacity: .85;
}

.nvk-product-variants__status {
    margin: 0;
    color: var(--nvk-color-text-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
}

.nvk-product-variants__status[hidden] {
    display: none;
}

.nvk-product-variants__status[data-state="error"] {
    color: #b63a43;
}

.nvk-product-variants__table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--nvk-color-border);
    border-radius: 16px;
    background: var(--nvk-color-surface);
    overscroll-behavior-x: contain;
}

.nvk-product-variants__table {
    width: 100%;
    min-width: 690px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 12px;
}

.nvk-product-variants__table thead th {
    padding: 13px 15px;
    border-bottom: 1px solid var(--nvk-color-border);
    background: var(--nvk-color-surface-muted);
    color: var(--nvk-color-text-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}

.nvk-product-variants__table thead th:first-child {
    padding-left: 18px;
}

.nvk-product-variants__table tbody th,
.nvk-product-variants__table tbody td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--nvk-color-border);
    background: var(--nvk-color-surface);
    color: var(--nvk-color-text);
    font-size: 11px;
    line-height: 1.5;
    vertical-align: middle;
}

.nvk-product-variants__table tbody tr:last-child th,
.nvk-product-variants__table tbody tr:last-child td {
    border-bottom: 0;
}

.nvk-product-variants__table tbody .nvk-product-variants__row:hover th,
.nvk-product-variants__table tbody .nvk-product-variants__row:hover td {
    background: color-mix(in srgb, var(--nvk-color-primary) 4%, var(--nvk-color-surface));
}

.nvk-product-variants__designation {
    min-width: 145px;
    padding-left: 18px !important;
    font-weight: 800;
    white-space: nowrap;
}

.nvk-product-variants__unit {
    color: var(--nvk-color-text-muted) !important;
    white-space: nowrap;
}

.nvk-product-variants__details-cell {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.nvk-product-variants__details-toggle {
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid var(--nvk-color-border);
    border-radius: 9px;
    background: var(--nvk-color-surface);
    color: var(--nvk-color-primary);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.nvk-product-variants__details-toggle:hover,
.nvk-product-variants__details-toggle[aria-expanded="true"] {
    border-color: var(--nvk-color-primary);
    background: var(--nvk-color-primary-soft);
}

.nvk-product-variants__no-details {
    color: var(--nvk-color-text-muted);
}

.nvk-product-variants__expanded-row[hidden] {
    display: none;
}

.nvk-product-variants__expanded-row > td {
    padding: 0 !important;
    background: var(--nvk-color-surface-muted) !important;
}

.nvk-product-variant-details {
    padding: 16px 18px 18px;
}

.nvk-product-variant-details__heading {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
}

.nvk-product-variant-details__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.nvk-product-variant-details__item {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--nvk-color-border);
    border-radius: 10px;
    background: var(--nvk-color-surface);
}

.nvk-product-variant-details__item dt {
    margin: 0 0 4px;
    color: var(--nvk-color-text-muted);
    font-size: 9px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.nvk-product-variant-details__item dd {
    margin: 0;
    color: var(--nvk-color-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.nvk-product-variant-details__empty {
    margin: 0;
    color: var(--nvk-color-text-muted);
    font-size: 11px;
}

.nvk-product-variants__empty-row td {
    padding: 30px 18px !important;
    color: var(--nvk-color-text-muted) !important;
    text-align: center;
}

.nvk-product-variants__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.nvk-product-variants__summary {
    margin: 0;
    color: var(--nvk-color-text-muted);
    font-size: 11px;
}

.nvk-product-variants__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 18px;
    border: 1px solid var(--nvk-color-primary);
    border-radius: 999px;
    background: var(--nvk-color-primary);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease;
}

.nvk-product-variants__more:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.nvk-product-variants__more:disabled {
    cursor: progress;
    opacity: .65;
    transform: none;
}

.nvk-product-variants__more[hidden] {
    display: none;
}

.nvk-product-variants__noscript {
    margin: 12px 0 0;
    color: var(--nvk-color-text-muted);
    font-size: 11px;
}

@media (max-width: 850px) {
    .nvk-product-page__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .nvk-product-page__visual {
        height: clamp(320px, 64vw, 480px);
    }

    .nvk-product-page__content h1 {
        font-size: clamp(36px, 8vw, 60px);
    }

    .nvk-product-variants__heading h2 {
        font-size: 25px;
    }

    .nvk-product-variant-details__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .nvk-product-page__visual {
        height: clamp(290px, 84vw, 390px);
        padding: 20px;
    }

    .nvk-product-page__visual > img {
        padding: 42px 8px 8px;
    }

    .nvk-product-variants__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .nvk-product-variants__tools {
        align-items: stretch;
        flex-direction: column;
    }

    .nvk-product-variants__search {
        width: 100%;
    }

    .nvk-product-variants__status {
        text-align: left;
    }

    .nvk-product-variants__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .nvk-product-variants__more {
        width: 100%;
    }

    .nvk-product-variant-details__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .nvk-product-variants__count {
        padding: 7px 9px;
    }

    .nvk-product-variants__table {
        min-width: 610px;
    }

    .nvk-product-variant-details {
        padding: 12px;
    }

    .nvk-product-variant-details__list {
        gap: 6px;
    }
}

/* =========================================================
   Полное описание товара — между карточкой и исполнениями
   ========================================================= */
.nvk-product-description {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-top: clamp(28px, 3.8vw, 48px);
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--nvk-color-border);
    border-radius: clamp(18px, 2.4vw, 28px);
    background: var(--nvk-color-surface);
}

.nvk-product-description > .nvk-eyebrow {
    margin: 0;
    color: var(--nvk-color-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.nvk-product-description h2 {
    margin: 0;
    color: var(--nvk-color-text);
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.nvk-product-description__body {
    width: 100%;
    min-width: 0;
    color: var(--nvk-color-text-muted);
    font-size: clamp(13px, 1.15vw, 15px);
    line-height: 1.85;
    overflow-wrap: anywhere;
}

/* Если описание присутствует, не оставляем между ним и таблицей лишний зазор. */
.nvk-product-description + .nvk-product-variants {
    margin-top: clamp(24px, 3vw, 40px);
}

@media (max-width: 600px) {
    .nvk-product-description {
        gap: 10px;
        margin-top: 26px;
        padding: 20px 17px;
        border-radius: 18px;
    }

    .nvk-product-description h2 {
        font-size: clamp(23px, 6vw, 28px);
    }

    .nvk-product-description__body {
        font-size: 13px;
        line-height: 1.75;
    }
}

@media (max-width: 360px) {
    .nvk-product-description {
        padding: 17px 14px;
    }
}

