@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --shop2-red: #DC2222;
    --shop2-bg: #f5f7fa;
    --shop2-card: #fff;
    --shop2-text: #222;
    --shop2-muted: #6c757d;
    --shop2-border: #dee2e6;
    --shop2-cart-panel-h: min(48vh, 380px);
    --shop2-cart-head-h: 52px;
}

.shop2-page {
    font-family: 'Open Sans', sans-serif;
    background: var(--shop2-bg);
    color: var(--shop2-text);
    min-height: 100vh;
    height: auto;
    max-height: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* shop.css: html,body { max-height:100vh } — иначе PDP/витрина обрезаются без прокрутки документа */
html:has(body.shop2-page) {
    height: auto;
    max-height: none;
    min-height: 100%;
}

.shop2-main {
    flex: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 16px 160px;
    box-sizing: border-box;
}

/* Каталог/поиск: сетка товаров на всю ширину вьюпорта, вплотную к fixed-сайдбару слева (без max-width 1320px) */
.shop2-main:has(> .shop2-hub-layout--catalog) {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Хаб витрины (shop2.php, shop2_section, карточка товара и т.д.): без max-width 1320 — колонка контента на всю ширину */
.shop2-main:has(> .shop2-hub-layout:not(.shop2-hub-layout--catalog)) {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.shop2-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: var(--shop2-card);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Витрина shop2.php: панель «корзина + поиск по разделам» липнет к верху окна при скролле, чтобы ввод не уезжал при scrollIntoView */
.shop2-toolbar.shop2-toolbar--sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 120;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Под фикс. красный топлайн (body.shop2-shell-fixed): панель — ниже шапки, не под неё */
body.shop2-shell-fixed .shop2-toolbar.shop2-toolbar--sticky {
    top: var(--shop-top-chrome, 50px);
    z-index: 12040;
}

body.shop2-shell-fixed .shop2-cat-block {
    scroll-margin-top: calc(var(--shop-top-chrome, 50px) + 80px);
}

body.shop2-shell-fixed section.shop2-cat-block.shop2-hub-search-hit,
body.shop2-shell-fixed .shop2-under-group.shop2-hub-search-hit,
body.shop2-shell-fixed .shop2-under-subchip.shop2-hub-search-hit {
    scroll-margin-top: calc(var(--shop-top-chrome, 50px) + 80px);
}

/* Точка отсчёта для IntersectionObserver: когда ушла вверх — полоска тулбара реально «прилипла» к верху окна */
.shop2-toolbar-sticky-sentinel {
    height: 2px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}

/* Панель прилипла — подсказка только на поле поиска (жёлтая «аура», без красной обводки). Тулбар целиком не анимируем — иначе визуальный скачок. */
.shop2-toolbar.shop2-toolbar--sticky.shop2-toolbar--stuck {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.shop2-toolbar.shop2-toolbar--sticky .shop2-toolbar__hubsearch {
    position: relative;
    align-items: stretch;
}

.shop2-toolbar.shop2-toolbar--sticky.shop2-toolbar--stuck .shop2-hub-section-search-input:not(:focus) {
    border: 1px solid rgba(250, 204, 21, 0.55);
    box-shadow: 0 0 0 2px rgba(254, 240, 138, 0.45);
    animation: shop2-hub-input-yellow-pulse 2.4s ease-in-out infinite;
}

.shop2-toolbar.shop2-toolbar--sticky.shop2-toolbar--stuck .shop2-hub-section-search-input:focus {
    animation: none;
}

@keyframes shop2-hub-input-yellow-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(254, 240, 138, 0.35);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop2-toolbar.shop2-toolbar--sticky.shop2-toolbar--stuck .shop2-hub-section-search-input:not(:focus) {
        animation: none;
        box-shadow: 0 0 0 2px rgba(254, 240, 138, 0.5);
    }
}

.shop2-toolbar__left {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.shop2-toolbar__hubsearch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-start;
}

.shop2-screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop2-hub-section-search-input {
    flex: 1 1 12rem;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 8px 12px;
    border: 1px solid var(--shop2-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--shop2-text);
    background: #fff;
    box-sizing: border-box;
    min-height: 44px;
}

.shop2-hub-section-search-input::placeholder {
    color: #9aa0a6;
}

.shop2-hub-section-search-input:focus {
    outline: 0;
    border-color: var(--shop2-red);
    box-shadow: 0 0 0 2px rgba(220, 34, 34, 0.15);
}

.shop2-toolbar-hubsearch-meta {
    font-size: 13px;
    color: var(--shop2-muted);
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

/* Подсветка найденного раздела (витрина shop2.php) */
section.shop2-cat-block.shop2-hub-search-hit,
.shop2-under-group.shop2-hub-search-hit,
.shop2-under-subchip.shop2-hub-search-hit {
    scroll-margin-top: 120px;
    background: #d4edda;
    box-shadow: 0 0 0 2px #28a745;
    border-radius: 8px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.shop2-toolbar a,
.shop2-toolbar .shop2-btn-link {
    color: var(--shop2-red);
    text-decoration: none;
    font-weight: 600;
}

.shop2-toolbar a:hover {
    text-decoration: underline;
}

.shop2-seg {
    display: inline-flex;
    border: 1px solid var(--shop2-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.shop2-seg a {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--shop2-text);
    text-decoration: none;
    border-right: 1px solid var(--shop2-border);
}

.shop2-seg a:last-child {
    border-right: 0;
}

.shop2-seg a.shop2-active {
    background: var(--shop2-red);
    color: #fff;
}

.shop2-breadcrumb {
    font-size: 14px;
    color: var(--shop2-muted);
    margin-bottom: 12px;
}

.shop2-breadcrumb a {
    color: var(--shop2-red);
    text-decoration: none;
}

/* Каталог: сетка категорий */
.shop2-cat-block {
    background: var(--shop2-card);
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    scroll-margin-top: 120px;
}

.shop2-cat-block h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: var(--shop2-red);
    display: flex;
    align-items: center;
    gap: 10px;
}



.shop2-cat-thumb {
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--shop2-border);
}

/* Превью на витрине: компактные размеры */
.shop2-thumb-cat {
    width: 48px;
    height: 48px;
}

.shop2-thumb-fallback {
    display: inline-block;
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    vertical-align: middle;
}

.shop2-thumb-cat.shop2-thumb-fallback {
    width: 48px;
    height: 48px;
}

/* Витрина shop2.php: один список подкатегорий в блоке категории */
.shop2-under-list {
    margin: 0;
    padding: 0;
}

/* Подкатегории в адаптивной сетке (как раньше вели себя подразделы) */
.shop2-under-list.shop2-under-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.shop2-under-list.shop2-under-list--grid > .shop2-under-group {
    margin-bottom: 0;
    min-width: 0;
}

.shop2-under-group {
    padding: 12px 14px;
    margin: 0 0 6px;
    border-radius: 10px;
    border: 1px solid var(--shop2-border);
}

.shop2-under-group--a {
    background: #fafbfc;
}

.shop2-under-group--b {
    background: #f0f3f7;
}

.shop2-under-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.shop2-under-heading-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--shop2-border);
}

.shop2-under-heading .shop2-thumb-fallback {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.shop2-under-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shop2-text);
    text-decoration: none;
    line-height: 1.25;
}

.shop2-under-title:hover {
    color: var(--shop2-red);
}

/* Подразделы: сетка — в каждой колонке текст начинается с одной вертикали (после иконки) */
.shop2-under-subs--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    column-gap: 16px;
    row-gap: 10px;
    padding-left: 0;
}

/* Подразделы: одна колонка внутри карточки подкатегории */
.shop2-under-subs--stack {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.shop2-under-subs--stack > .shop2-under-subchip {
    padding: 3px 0;
    margin: 0;
    min-width: 0;
}

.shop2-under-subchip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    min-width: 0;
}

.shop2-under-subchip-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--shop2-border);
    flex-shrink: 0;
}

.shop2-under-subchip .shop2-thumb-fallback {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.shop2-under-subchip a {
    flex: 1;
    min-width: 0;
    color: #333;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.shop2-under-subchip a:hover {
    text-decoration: underline;
}

.shop2-under-subchip.shop2-under-subchip--text {
    display: block;
    line-height: 1.3;
}

.shop2-under-subchip.shop2-under-subchip--text a {
    line-height: inherit;
}

/* Категория без подкатегорий — как чип подраздела, без крупного заголовка */
.shop2-cat-block--solo {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--shop2-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--shop2-border);
}

.shop2-under-subchip--solo-cat a {
    font-weight: 600;
}

/* Список товаров */
.shop2-goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.shop2-page.shop2-view-list .shop2-goods-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.shop2-card {
    background: var(--shop2-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.shop2-page.shop2-view-list .shop2-card {
    flex-direction: row;
    align-items: center;
}

.shop2-page.shop2-view-list .shop2-card-media {
    width: 72px;
    min-width: 72px;
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
}

/* Сетка «блоками»: превью 150×150 по фактическому размеру картинок */
.shop2-card-media {
    position: relative;
    background: #eef0f3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    max-width: 100%;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    margin: 10px auto 0;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.shop2-card-photo-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: zoom-in;
}

.shop2-card-media img,
.shop2-card-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.shop2-card-noimg {
    color: #aaa;
    font-size: 12px;
    text-decoration: none;
    padding: 8px;
    text-align: center;
}

.shop2-card-noimg:hover {
    color: var(--shop2-red);
}

.shop2-card-fav {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    padding: 4px 6px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}
.shop2-card-fav i {
    font-size: 1.1rem;
}
.shop2-page.shop2-view-list .shop2-card-fav {
    padding: 2px 4px;
}
.shop2-page.shop2-view-list .shop2-card-fav i {
    font-size: 0.95rem;
}

.shop2-product__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.shop2-product__title-row .shop2-product__title {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.shop2-pdp-fav {
    flex-shrink: 0;
    margin-top: 2px;
    padding: 6px;
    line-height: 1;
    cursor: pointer;
}

/* Админ: фото в карточке каталога shop2_catalog */
.shop2-card-admin-photos {
    margin: 0 0 8px;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.3;
    color: #334155;
}
.shop2-adm-ph-hd {
    font-weight: 600;
    margin-bottom: 4px;
    color: #0f172a;
}
.shop2-adm-ph-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-bottom: 6px;
}
.shop2-adm-ph-lbl {
    width: 100%;
    font-size: 10px;
    color: #64748b;
}
.shop2-adm-ph-thumb {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.shop2-adm-ph-empty {
    display: inline-block;
    min-width: 32px;
    text-align: center;
    color: #94a3b8;
}
.shop2-adm-ph-btn,
.shop2-adm-ph-add,
.shop2-adm-ph-swap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
}
.shop2-adm-ph-btn:hover,
.shop2-adm-ph-add:hover,
.shop2-adm-ph-swap:hover {
    border-color: var(--shop2-red, #c00);
    color: var(--shop2-red, #c00);
}
.shop2-card-admin-photos input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}
.shop2-adm-ph-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #64748b;
}
.shop2-adm-ph-del:hover:not(:disabled) {
    border-color: #b91c1c;
    color: #b91c1c;
}
.shop2-adm-ph-del:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.shop2-adm-ph-gal {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
}
.shop2-adm-ph-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    max-width: 100%;
}
.shop2-adm-ph-item > img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.shop2-adm-ph-broken {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fef3c7;
    color: #b45309;
    border-radius: 4px;
    font-weight: 700;
}
.shop2-adm-ph-msg {
    min-height: 1.2em;
    margin-top: 4px;
    font-size: 10px;
}
.shop2-page.shop2-view-list .shop2-card-admin-photos {
    max-width: 220px;
}

.shop2-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* «Блоками»: короче карточка — заголовок до 3 строк */
.shop2-page:not(.shop2-view-list) .shop2-card-body {
    padding: 8px 10px 10px;
}

.shop2-page:not(.shop2-view-list) .shop2-card-title {
    flex: 0 1 auto;
    margin: 4px 0;
    line-height: 1.25;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.shop2-page:not(.shop2-view-list) .shop2-card-hitarea {
    flex: 0 1 auto;
}

.shop2-page:not(.shop2-view-list) .shop2-card-code {
    margin-bottom: 0;
}

.shop2-card-price-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    box-sizing: border-box;
}

.shop2-card-price-wrap {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
}

.shop2-card-price-wrap .shop2-card-price-hit,
.shop2-card-price-wrap .shop2-card-price,
.shop2-card-price-wrap .fox-price-ask-btn {
    white-space: nowrap;
}

.shop2-page:not(.shop2-view-list) .shop2-card-price-row .shop2-card-price {
    margin: 0;
    font-size: 16px;
    white-space: nowrap;
}

.shop2-page:not(.shop2-view-list) .shop2-card-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 0;
}

.shop2-page:not(.shop2-view-list) .shop2-card-price-row .shop2-card-stock {
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
    justify-self: end;
}

.shop2-card-hitarea {
    display: block;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.shop2-card-hitarea:hover .shop2-card-title {
    color: var(--shop2-red);
}

.shop2-card-code {
    font-size: 11px;
    color: var(--shop2-muted);
}

.shop2-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 6px 0;
    flex: 1;
}

.shop2-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--shop2-red);
}

.shop2-stock-in { color: #198754; font-size: 12px; }
.shop2-stock-out { color: #dc3545; font-size: 12px; }

.shop2-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Степпер количества (− | поле | +): единая «пилюля», как в табличном shop.php */
.shop2-card-qty {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 0;
    gap: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.shop2-qty-btn {
    flex: 0 0 34px;
    width: 34px;
    min-height: 32px;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.shop2-qty-btn--minus {
    background: #eff6ff;
    color: #1d4ed8;
}

.shop2-qty-btn--minus:hover {
    background: #1d4ed8;
    color: #fff;
}

.shop2-qty-btn--plus {
    background: #ecfdf5;
    color: #047857;
}

.shop2-qty-btn--plus:hover {
    background: #059669;
    color: #fff;
}

.shop2-qty-btn:active {
    transform: scale(0.96);
}

.shop2-qty-input {
    flex: 1 1 auto;
    width: 1%;
    min-width: 36px;
    max-width: none;
    margin: 0;
    padding: 0 6px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    background: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--shop2-text);
    -moz-appearance: textfield;
}

.shop2-qty-input:focus {
    outline: none;
    background: #fafafa;
    box-shadow: inset 0 0 0 1px rgba(220, 34, 34, 0.25);
}

.shop2-qty-input::-webkit-outer-spin-button,
.shop2-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Режим «Списком»: одна строка, без растягивания по высоте */
.shop2-page.shop2-view-list .shop2-card-body {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 6px 10px 6px 8px;
    gap: 10px;
    min-height: 0;
}

.shop2-page.shop2-view-list .shop2-card-hitarea {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
}

.shop2-page.shop2-view-list .shop2-card-code {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.shop2-page.shop2-view-list .shop2-card-title {
    flex: 1 1 140px;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shop2-page.shop2-view-list .shop2-card-price-row {
    flex: 1 1 200px;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.shop2-page.shop2-view-list .shop2-card-price-row .shop2-card-price {
    margin: 0;
    font-size: 15px;
    white-space: nowrap;
}

.shop2-page.shop2-view-list .shop2-card-price-row .shop2-card-stock {
    margin: 0;
    white-space: nowrap;
    font-size: 11px;
    text-align: right;
    flex-shrink: 0;
}

.shop2-page.shop2-view-list .shop2-card-actions {
    margin-top: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: 6px;
}

.shop2-page.shop2-view-list .shop2-card-qty {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    max-width: 220px;
}

.shop2-page.shop2-view-list .shop2-qty-input {
    min-width: 36px;
    padding: 0 4px;
    font-size: 12px;
}

.shop2-page.shop2-view-list .shop2-qty-btn {
    flex-basis: 30px;
    width: 30px;
    min-height: 28px;
    font-size: 14px;
}

@media (max-width: 560px) {
    .shop2-page.shop2-view-list .shop2-card-body {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .shop2-page.shop2-view-list .shop2-card-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
    }
}

.shop2-btn {
    display: inline-block;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
}

.shop2-btn-primary {
    background: #198754;
    color: #fff;
}

.shop2-btn-primary:hover {
    background: #157347;
}

.shop2-btn-outline {
    background: #fff;
    color: var(--shop2-red);
    border: 1px solid var(--shop2-red);
}

/* Пагинация: один ряд, prev/next, окно вокруг текущей страницы */
.shop2-pagination {
    margin-top: 24px;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.shop2-pagination a,
.shop2-pagination span {
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--shop2-border);
    background: #fff;
    color: var(--shop2-text);
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.shop2-pagination a:hover {
    border-color: var(--shop2-red);
    color: var(--shop2-red);
}

.shop2-pagination .shop2-pg-current {
    background: var(--shop2-red);
    color: #fff;
    border-color: var(--shop2-red);
}

.shop2-pg-arrow {
    font-weight: 700;
    min-width: 38px;
    text-align: center;
}

.shop2-pg-arrow--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.shop2-pg-gap {
    border: none;
    background: transparent;
    padding: 6px 4px;
    color: var(--shop2-muted);
    font-size: 13px;
}

/* Фиксированная корзина: селектор #shop2-cart-dock — и shop2, и shop.php (перебивает shop.css) */
#shop2-cart-dock {
    position: relative;
    z-index: 1;
}

#shop2-cart-dock .shop2-cart-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 52px;
    z-index: 50;
    max-height: var(--shop2-cart-panel-h);
    display: flex;
    flex-direction: column;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, box-shadow 0.25s ease;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
    border-top: 1px solid rgba(220, 34, 34, 0.35);
    box-shadow:
        0 -8px 32px rgba(15, 23, 42, 0.12),
        0 -1px 0 rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
}

#shop2-cart-dock .shop2-cart-panel--collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-top-color: transparent;
    box-shadow: none;
    pointer-events: none;
}

#shop2-cart-dock .shop2-cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    min-height: var(--shop2-cart-head-h);
    padding: 0 14px 0 16px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(220, 34, 34, 0.07) 0%, rgba(255, 255, 255, 0.65) 42%, transparent 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    position: relative;
}

#shop2-cart-dock .shop2-cart-panel-head::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #ef4444 0%, var(--shop2-red) 100%);
}

#shop2-cart-dock .shop2-cart-panel-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 8px;
    min-width: 0;
}

#shop2-cart-dock .shop2-cart-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
    color: var(--shop2-red);
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Иконка Bootstrap Icons в шапке панели (перебивает обнуления шрифта из других CSS) */
#shop2-cart-dock .shop2-cart-panel-icon i {
    display: inline-block;
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#shop2-cart-dock .shop2-cart-fab i {
    display: inline-block;
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-weight: normal !important;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

#shop2-cart-dock .shop2-cart-panel-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

#shop2-cart-dock .shop2-cart-hide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 7px 14px 7px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#shop2-cart-dock .shop2-cart-hide-btn:hover {
    background: #fff;
    border-color: #cbd5e1;
    color: var(--shop2-red);
    box-shadow: 0 2px 8px rgba(220, 34, 34, 0.12);
}

#shop2-cart-dock .shop2-cart-hide-btn i {
    font-size: 14px;
    opacity: 0.85;
}

#shop2-cart-dock .shop2-cart-panel-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    max-height: calc(var(--shop2-cart-panel-h) - var(--shop2-cart-head-h));
}

#shop2-cart-dock .shop2-basket-in-dock {
    margin: 0;
    box-shadow: none;
    display: block;
    max-width: 100%;
    padding: 0 12px 14px;
    min-height: 0;
}

#shop2-cart-dock .shop2-basket-in-dock table {
    font-size: 13px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #cbd5e1 !important;
}

#shop2-cart-dock .shop2-basket-in-dock .resize-handle {
    display: none;
}

#shop2-cart-dock .shop2-basket-in-dock thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 8px;
    font-size: 10px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1e293b !important;
    background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%) !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-color: #cbd5e1 !important;
    white-space: nowrap;
}

#shop2-cart-dock .shop2-basket-in-dock thead th:nth-child(2) {
    text-align: left;
}

#shop2-cart-dock .shop2-basket-in-dock tbody td {
    padding: 9px 8px;
    border-bottom: 1px solid #e2e8f0 !important;
    border-color: #e2e8f0 !important;
    vertical-align: middle;
    color: #0f172a !important;
    font-weight: 500;
    font-size: 13px !important;
}

#shop2-cart-dock .shop2-basket-in-dock tbody td:nth-child(1) {
    text-align: center;
    font-weight: 600;
}

#shop2-cart-dock .shop2-basket-in-dock tbody td:nth-child(2) {
    text-align: left;
    color: #0f172a !important;
}

#shop2-cart-dock .shop2-basket-in-dock tbody td:nth-child(n+3) {
    text-align: center;
}

#shop2-cart-dock .shop2-basket-in-dock tbody tr:nth-child(even) td {
    background: #f8fafc !important;
}

#shop2-cart-dock .shop2-basket-in-dock tbody tr:hover td {
    background: #fff7ed !important;
}

#shop2-cart-dock .shop2-basket-in-dock #add_cart {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.35);
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
}

#shop2-cart-dock .shop2-basket-in-dock #add_cart a {
    padding: 10px 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff !important;
    background: transparent !important;
    text-decoration: none;
    display: block;
}

#shop2-cart-dock .shop2-basket-in-dock #add_cart a:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

#shop2-cart-dock .shop2-basket-in-dock .del-good {
    transition: color 0.15s ease;
    color: #475569 !important;
}

#shop2-cart-dock .shop2-basket-in-dock .del-good:hover {
    color: var(--shop2-red) !important;
}

/* Кастомная позиция после перетаскивания (inline left/top + этот класс перебивает bottom/right из темы) */
#shop2-cart-dock .shop2-cart-fab.shop2-cart-fab--pos-custom,
body.shop-php-qty-pill #shop2-cart-dock .shop2-cart-fab.shop2-cart-fab--pos-custom,
body.shop2-shell-fixed #shop2-cart-dock .shop2-cart-fab.shop2-cart-fab--pos-custom {
    right: auto !important;
    bottom: auto !important;
    left: auto;
    top: auto;
}

#shop2-cart-dock .shop2-cart-fab.shop2-cart-fab--dragging {
    transition: none;
    cursor: grabbing;
    z-index: 12180;
    touch-action: none;
}

#shop2-cart-dock .shop2-cart-fab {
    position: fixed;
    top: auto;
    /* Не перекрывать правую панель «Фильтры / Цена» — FAB у нижнего края, над #bottom_mnu */
    bottom: calc(var(--shop-bottom-chrome, 64px) + 12px + env(safe-area-inset-bottom, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    left: auto;
    z-index: 60;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    cursor: pointer;
    box-shadow:
        0 4px 16px rgba(185, 28, 28, 0.35),
        0 0 0 3px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#shop2-cart-dock .shop2-cart-fab:hover {
    transform: scale(1.06);
    filter: brightness(1.05);
    box-shadow:
        0 6px 22px rgba(185, 28, 28, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.65);
}

#shop2-cart-dock .shop2-cart-fab-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
    color: #422006;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#shop2-cart-dock .shop2-cart-fab[hidden] {
    display: none !important;
}

/* Панель свернута, в корзине есть товары — мягкое напоминание */
@keyframes shop2-cart-fab-pulse-glow {
    0%,
    100% {
        box-shadow:
            0 4px 16px rgba(185, 28, 28, 0.35),
            0 0 0 3px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 6px 22px rgba(250, 204, 21, 0.45),
            0 0 0 4px rgba(254, 240, 138, 0.75),
            0 0 18px rgba(220, 34, 34, 0.35);
    }
}

#shop2-cart-dock .shop2-cart-fab.shop2-cart-fab--pulse {
    animation: shop2-cart-fab-pulse-glow 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    #shop2-cart-dock .shop2-cart-fab.shop2-cart-fab--pulse {
        animation: none;
        box-shadow:
            0 4px 16px rgba(185, 28, 28, 0.4),
            0 0 0 3px rgba(254, 240, 138, 0.65);
    }
}


.shop2-cat-block h2 a {
    color: var(--shop2-red) !important;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 600px) {
    #shop2-cart-dock .shop2-cart-fab {
        right: 8px;
        bottom: calc(var(--shop-bottom-chrome, 64px) + 10px + env(safe-area-inset-bottom, 0px));
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    #shop2-cart-dock .shop2-cart-hide-text {
        display: none;
    }

    #shop2-cart-dock .shop2-cart-hide-btn {
        padding: 8px 10px;
        border-radius: 12px;
    }

    #shop2-cart-dock .shop2-cart-panel-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    #shop2-cart-dock .shop2-basket-in-dock {
        padding: 0 8px 12px;
    }

    #shop2-cart-dock .shop2-basket-in-dock thead th {
        font-size: 9px;
        padding: 8px 4px;
    }

    #shop2-cart-dock .shop2-basket-in-dock tbody td {
        padding: 8px 4px;
        font-size: 12px !important;
    }

}

/* ========== Карточка товара (PDP) — тот же язык, что у маркетплейсов ========== */
.shop2-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(222, 226, 230, 0.95);
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    overflow: visible;
    min-width: 0;
}

@media (min-width: 901px) {
    .shop2-product-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.82fr);
        align-items: start;
    }
}

.shop2-product__media {
    width: 100%;
    min-width: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--shop2-border);
    padding: 24px 20px 20px;
    box-sizing: border-box;
}

@media (min-width: 901px) {
    .shop2-product__media {
        border-bottom: none;
        border-right: 1px solid var(--shop2-border);
    }
}

.shop2-product__gallery {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

/* slick: картинка тянется на ширину колонки */
.shop2-product__gallery:not(.shop2-product__gallery--single) .slick-slide > div {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.shop2-product__gallery:not(.shop2-product__gallery--single) .slick-slide img {
    width: 100%;
    max-width: 100%;
    max-height: min(68vh, 720px);
    height: auto;
    object-fit: contain;
    display: block;
}

.shop2-product__gallery--single {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 240px;
    max-height: min(72vh, 720px);
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.shop2-product__gallery--single img {
    width: 100%;
    max-width: 100%;
    max-height: min(64vh, 680px);
    height: auto;
    object-fit: contain;
    display: block;
}

.shop2-product__ph {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop2-muted);
    font-size: 14px;
    border: 1px solid var(--shop2-border);
    border-radius: 12px;
    background: #fff;
    margin: 0 auto;
    width: 100%;
    max-width: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.shop2-product__stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px 24px;
    background: #f8fafc;
    align-items: stretch;
    min-width: 0;
}

/* Панели как отдельные «карточки» внутри листа */
.shop2-pdp-panel {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    padding: 20px 20px 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    min-width: 0;
    box-sizing: border-box;
}

.shop2-pdp-panel--spec {
    padding-top: 18px;
}

/* Характеристики — отдельная строка на всю ширину карточки (под фото + блок покупки) */
.shop2-product__spec--fullwidth {
    grid-column: 1 / -1;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(226, 232, 240, 0.98);
    box-shadow: none;
    padding: 20px 20px 22px;
    background: #fff;
}

@media (min-width: 901px) {
    .shop2-product__spec--fullwidth .shop2-pdp-kv {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 32px;
        align-items: start;
    }

    .shop2-product__spec--fullwidth .shop2-pdp-kv li {
        margin: 0;
    }

    .shop2-product__spec--fullwidth .shop2-pdp-kv li:nth-child(odd),
    .shop2-product__spec--fullwidth .shop2-pdp-kv li:nth-child(even) {
        background: #f8fafc;
    }
}

.shop2-product__title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.22;
    color: var(--shop2-text);
    letter-spacing: -0.03em;
}

.shop2-product__codes {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--shop2-muted);
}

.shop2-product__price {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 14px 0 10px;
    color: var(--shop2-text);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    letter-spacing: -0.02em;
}

.shop2-product__price--sale .shop2-product__price-new {
    color: #198754; /* скидочная цена */
    font-weight: 800;
}

.shop2-product__price--sale .shop2-product__price-old {
    color: var(--shop2-muted);
    font-size: 1rem;
    text-decoration: line-through;
    font-weight: 500;
}

.shop2-product__stock {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 500;
}

.shop2-product__meta-dl {
    margin: 0 0 20px;
    padding: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    border-top: 1px solid #eef0f3;
}

.shop2-product__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 8px 0;
    margin: 0;
    border-bottom: 1px solid #f1f3f5;
}

.shop2-product__meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shop2-product__meta-row dt {
    margin: 0;
    color: var(--shop2-muted);
    font-weight: 500;
    font-size: 13px;
    flex: 0 0 44%;
    max-width: 11rem;
}

.shop2-product__meta-row dd {
    margin: 0;
    text-align: right;
    min-width: 0;
    word-break: break-word;
    font-size: 14px;
    color: var(--shop2-text);
    flex: 1;
}

.shop2-product__spec-title {
    margin: 0 0 14px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #64748b;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* CTA + степпер: короче поле, по центру */
.shop2-product__order-cta {
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf0;
    text-align: center;
}

.shop2-product__order-eyebrow {
    margin: 0 0 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: #94a3b8;
}

.shop2-product__order-heading {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--shop2-text);
    letter-spacing: -0.02em;
}

.shop2-product__order-lead {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.shop2-product__order-steper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.shop2-product-cart-qty {
    margin-top: 0;
}

.shop2-card-qty--pdp {
    width: auto;
    max-width: 158px;
    margin: 0 auto;
}

.shop2-card-qty--pdp .shop2-qty-btn {
    flex: 0 0 30px;
    width: 30px;
    min-height: 30px;
    min-width: 30px;
}

.shop2-card-qty--pdp .shop2-qty-input {
    flex: 0 0 42px;
    min-width: 40px;
    max-width: 44px;
    width: 42px;
    padding: 0 2px;
    font-size: 13px;
}

@media (min-width: 901px) {
    .shop2-product__order-cta {
        text-align: left;
    }

    .shop2-product__order-lead {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .shop2-product__order-steper {
        justify-content: flex-start;
    }

    .shop2-card-qty--pdp {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Каталог: тот же CTA + компактный степпер, что в модалке (max-width 101px) */
.shop2-goods-grid .shop2-card__order-cta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8ecf0;
    text-align: center;
}

.shop2-goods-grid .shop2-card__order-title {
    display: block;
    margin: 0 0 4px;
    font-size: 0.95rem;
    line-height: 1.2;
}

.shop2-goods-grid .shop2-card__order-lead {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.3;
    max-width: 100%;
}

.shop2-goods-grid .shop2-card__order-cta .shop2-product__order-eyebrow {
    font-size: 0.6rem;
    margin-bottom: 2px;
}

.shop2-card-qty--catalog {
    width: auto;
    max-width: 101px;
    margin: 12px auto 0;
}

.shop2-card-qty--catalog .shop2-qty-btn {
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    min-height: 30px;
}

.shop2-card-qty--catalog .shop2-qty-input {
    flex: 0 0 40px;
    min-width: 38px;
    max-width: 44px;
    width: 40px;
    padding: 0 2px;
    font-size: 13px;
}

.shop2-page.shop2-view-list .shop2-card-qty--catalog {
    max-width: 101px;
}

.shop2-gallery-main {
    background: #f0f2f5;
    border-radius: 10px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop2-gallery-main img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.shop2-props__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Страница товара: характеристики — список ul, не table */
.shop2-pdp-kv {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop2-pdp-kv li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px 20px;
    padding: 10px 12px;
    margin: 0;
    border-radius: 8px;
}

.shop2-pdp-kv li:nth-child(odd) {
    background: #f8fafc;
}

.shop2-pdp-kv li:nth-child(even) {
    background: transparent;
}

.shop2-pdp-kv__k {
    flex: 0 1 38%;
    max-width: 15rem;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.shop2-pdp-kv__v {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: var(--shop2-text);
    line-height: 1.45;
    word-break: break-word;
}

/* Модалка товара catalog — поверх shell-fixed; визуально «карточка» с мягким ободом */
.blocker .modal#info_form {
    max-width: min(920px, calc(100vw - 24px));
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 28px 64px rgba(15, 23, 42, 0.22),
        0 12px 28px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(203, 213, 225, 0.95);
    box-sizing: border-box;
    max-height: min(90vh, 880px);
    text-align: left;
    vertical-align: middle;
}

#info_form .goods-modal {
    min-width: 0;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: inherit;
    overflow: hidden;
}

#info_form .goods-modal__head {
    flex-shrink: 0;
    padding: 18px 24px 14px;
    border-bottom: 1px solid #e8ecf0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

#info_form .goods-modal__title {
    margin: 0 0 6px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
    padding: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#info_form .goods-modal__crumbs {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    padding: 0;
    word-wrap: break-word;
}

#info_form .goods-modal__grid {
    display: grid;
    grid-template-columns: minmax(200px, 360px) minmax(0, 1fr);
    gap: 0 28px;
    align-items: stretch;
    padding: 20px 24px 22px;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

#info_form .goods-modal__media-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 8px 0 4px;
}

#info_form .goods-modal__main-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 0;
}

#info_form .goods-modal__media-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid #e8ecf0;
}

#info_form .goods-modal__media-inner--empty {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#info_form .goods-modal__ph {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

#info_form .goods-modal__panel {
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

#info_form .goods-modal__panel--desc {
    flex-shrink: 0;
    max-height: min(28vh, 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#info_form .goods-modal__desc {
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    word-break: break-word;
}

#info_form .goods-modal--loading {
    min-width: 280px;
    max-width: 100%;
    padding: 36px 28px;
    text-align: center;
    box-sizing: border-box;
}

#info_form .goods-modal__loading-msg,
#info_form .goods-modal__err {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #64748b;
}

#info_form .goods-modal__err {
    color: #b91c1c;
}

#info_form .goods-modal__panel--props {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
    max-height: min(38vh, 340px);
    overflow: hidden;
}

#info_form .goods-modal__panel--props .goods-modal__h--props {
    flex-shrink: 0;
}

#info_form .goods-modal__panel--props .goods-modal__kv--props {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
}

#info_form .goods-modal__h,
#info_form .goods-modal__h--props {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: #64748b;
    margin: 0 0 10px;
    padding: 0 0 8px;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    line-height: 1.3;
}

#info_form .goods-modal__empty-hint {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    font-style: normal;
}

/* Модалка: списки ключ–значение */
#info_form .goods-modal__kv {
    list-style: none;
    margin: 0;
    padding: 0;
}

#info_form .goods-modal__kv li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

#info_form .goods-modal__kv li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#info_form .goods-modal__k {
    flex: 0 1 44%;
    max-width: 11rem;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

#info_form .goods-modal__v {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-word;
}

#info_form .goods-modal__v--price {
    font-size: clamp(1.15rem, 2.8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

#info_form .goods-modal__kv--props .goods-modal__k {
    max-width: 48%;
}

#info_form .goods-modal__kv--props .goods-modal__v {
    text-align: left;
    font-weight: 500;
    color: #334155;
}

#info_form .goods-modal__order {
    flex-shrink: 0;
    margin-top: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #f8fafc 100%);
}

#info_form .goods-modal__order-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}

#info_form .goods-modal__order-text {
    flex: 1;
    min-width: 140px;
    text-align: left;
}

#info_form .goods-modal__order-eyebrow {
    margin: 0 0 2px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #94a3b8;
}

#info_form .goods-modal__order-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

#info_form .goods-modal__order-lead {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
    padding: 0;
}

#info_form .goods-modal__order-hint {
    margin: 12px 0 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
    text-align: center;
}

#info_form .shop2-card-qty--modal {
    width: auto;
    max-width: none;
    margin: 0;
    flex-shrink: 0;
}

#info_form .shop2-card-qty--modal .shop2-qty-btn {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
}

#info_form .shop2-card-qty--modal .shop2-qty-input {
    flex: 0 0 44px;
    min-width: 42px;
    max-width: 52px;
    width: 46px;
    padding: 0 4px;
    font-size: 14px;
}

#info_form .goods-modal__gallery {
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
}

#info_form .goods-modal__gallery img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Модалка товара: несколько фото — только стрелки (символы в кнопке, без шрифта slick), свайп */
#info_form .goods-modal__gallery-viewport {
    position: relative;
    min-width: 0;
    border-radius: 10px;
    background: #f8fafc;
}

#info_form .goods-modal__gallery-viewport .slick-list {
    border-radius: 8px;
}

/* Карусель в модалке: фиксированная «рамка», картинки разного размера не дёргают высоту */
#info_form .goods-modal__gallery-viewport--carousel {
    aspect-ratio: 4 / 3;
    max-height: min(48vh, 400px);
    width: 100%;
    background: #eef2f6;
}

#info_form .goods-modal__gallery-viewport--carousel .slick-list,
#info_form .goods-modal__gallery-viewport--carousel .slick-track {
    height: 100%;
}

#info_form .goods-modal__gallery-viewport--carousel .slick-slide {
    height: 100%;
}

#info_form .goods-modal__gallery-viewport--carousel .slick-slide > div {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px;
}

#info_form .goods-modal__gallery-viewport--carousel .slick-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

#info_form .goods-modal__gallery-viewport .goods-modal__gal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px !important;
    height: 42px !important;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    color: #fff !important;
    font-size: 30px !important;
    line-height: 40px !important;
    text-align: center;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#info_form .goods-modal__gallery-viewport .goods-modal__gal-arrow:hover,
#info_form .goods-modal__gallery-viewport .goods-modal__gal-arrow:focus {
    background: rgba(15, 23, 42, 0.78) !important;
    color: #fff !important;
    outline: none;
}

#info_form .goods-modal__gallery-viewport .goods-modal__gal-arrow--prev {
    left: 8px;
}

#info_form .goods-modal__gallery-viewport .goods-modal__gal-arrow--next {
    right: 8px;
}

#info_form .goods-modal__gallery-viewport .slick-prev:before,
#info_form .goods-modal__gallery-viewport .slick-next:before {
    display: none !important;
}

@media (max-width: 720px) {
    .blocker .modal#info_form {
        max-width: 100vw;
        max-height: none;
        margin: 8px;
        border-radius: 14px;
    }

    #info_form .goods-modal {
        max-height: none;
        overflow: visible;
    }

    #info_form .goods-modal__grid {
        grid-template-columns: 1fr;
        padding: 16px 16px 20px;
        gap: 12px;
        overflow: visible;
    }

    #info_form .goods-modal__media-inner--empty {
        min-height: 160px;
    }

    #info_form .goods-modal__panel--props {
        max-height: min(50vh, 400px);
    }

    #info_form .goods-modal__order-row {
        flex-direction: column;
        align-items: stretch;
    }

    #info_form .goods-modal__order-text {
        text-align: center;
    }

    #info_form .shop2-card-qty--modal {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Витрина: сайдбар + ленивая колонка */
.shop2-hub-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.shop2-hub-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 56px;
    align-self: flex-start;
    /* min-height:0 — иначе flex не даёт сжаться ниже контента и max-height не включает скролл */
    min-height: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--shop2-card);
    border-radius: 12px;
    border: 1px solid var(--shop2-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop2-hub-catnav {
    padding: 10px 0;
}

/* Строка категории (обёртка для sortable) */
.shop2-hub-catrow {
    display: block;
}

.shop2-hub-catnav-title {
    padding: 0 14px 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--shop2-muted);
}

.shop2-hub-catlink {
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--shop2-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
}

.shop2-hub-catlink:hover {
    background: #f0f3f7;
    color: #333;
}

.shop2-hub-catlink.active {
    background: rgba(220, 34, 34, 0.08);
    color: #333;
    font-weight: 700;
    border-left-color: var(--shop2-red);
}

.shop2-cat-thumb .shop2-thumb-cat a {
    color: #333;
}

.shop2-hub-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
}

/* Витрина/страница одной категории: запас снизу — чтобы последнюю секцию можно было поднять под липкий тулбар (не «упираемся» в конец документа). Каталог/карточка товара — без класса shift+not modifier см. ниже */
.shop2-hub-layout > .shop2-hub-content.shop2-hub-shift:not(.shop2-hub-content--catalog):not(.shop2-hub-content--product) {
    padding-bottom: max(58vh, 400px);
}

.shop2-hub-filters {
    margin-top: 4px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--shop2-border);
}

.shop2-hub-filters-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--shop2-muted);
    margin-bottom: 10px;
}

.shop2-hub-price-filter .shop2-hub-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-top: 8px;
    margin-bottom: 4px;
}

.shop2-hub-price-filter .shop2-hub-filter-label:first-of-type {
    margin-top: 0;
}

.shop2-hub-filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid var(--shop2-border);
    border-radius: 8px;
    font-size: 14px;
}

.shop2-hub-filter-hint {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: var(--shop2-muted);
}

.shop2-hub-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.shop2-hub-filter-submit {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: var(--shop2-red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.shop2-hub-filter-submit:hover {
    filter: brightness(1.05);
}

.shop2-hub-filter-reset {
    font-size: 13px;
    color: var(--shop2-muted);
    text-decoration: none;
}

.shop2-hub-filter-reset:hover {
    color: var(--shop2-red);
    text-decoration: underline;
}

.shop2-hub-content--catalog .shop2-breadcrumb {
    margin-top: 0;
}

.shop2-hub-content--product .shop2-product-layout {
    margin-top: 0;
}

.shop2-hub-content--product {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.shop2-pdp-breadcrumb {
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #64748b;
}

.shop2-pdp-breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.shop2-pdp-breadcrumb a:hover {
    color: var(--shop2-red);
    text-decoration: underline;
}

.shop2-pdp-toolbar {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    align-items: center;
}

.shop2-pdp-back {
    font-weight: 700;
    color: var(--shop2-red);
    text-decoration: none;
}

.shop2-pdp-back:hover {
    text-decoration: underline;
}

.shop2-pdp-cartline {
    font-size: 13px;
    color: var(--shop2-muted);
}

.shop2-product-layout--v2 .shop2-product__primary.shop2-pdp-panel {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.shop2-product-layout--v2 .shop2-product__media {
    background: #f8fafc;
}

/* PDP без фото: не держим вторую пустую колонку сетки */
@media (min-width: 901px) {
    .shop2-product-layout--v2.shop2-product-layout--no-media {
        grid-template-columns: 1fr;
    }
}

.shop2-hub-content--product .shop2-product__gallery:not(.shop2-product__gallery--single) .slick-slide img {
    max-height: min(52vh, 480px);
}

.shop2-hub-content--product .shop2-product__gallery--single {
    max-height: min(52vh, 480px);
}

.shop2-hub-content--product .shop2-product__gallery--single img {
    max-height: min(48vh, 440px);
}

/* PDP v3: галерея миниатюры слева + крупное фото (как у маркетплейсов) */
@media (min-width: 901px) {
    .shop2-product-layout--v3 {
        grid-template-columns: minmax(260px, 1.08fr) minmax(300px, 0.92fr);
    }
}

.shop2-pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

@media (min-width: 901px) {
    .shop2-pdp-gallery {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }
}

.shop2-pdp-gallery__thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (min-width: 901px) {
    .shop2-pdp-gallery__thumbs {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 76px;
        flex: 0 0 76px;
        max-height: min(72vh, 560px);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 2px 4px 4px 2px;
    }
}

.shop2-pdp-gallery__thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    margin: 0;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop2-pdp-gallery__thumb:hover {
    border-color: #cbd5e1;
}

.shop2-pdp-gallery__thumb.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.shop2-pdp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop2-pdp-gallery__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    padding: 12px 16px 16px;
    box-sizing: border-box;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
}

.shop2-pdp-gallery__main-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(68vh, 640px);
    object-fit: contain;
    display: block;
}

.shop2-hub-content--product .shop2-pdp-gallery__main-img {
    max-height: min(58vh, 560px);
}

.shop2-pdp-chips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
}

.shop2-pdp-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.shop2-pdp-chip-row__l {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    min-width: 4.5rem;
}

.shop2-pdp-chip-row__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop2-pdp-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 999px;
    line-height: 1.2;
}

.shop2-pdp-pill--current {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e3a8a;
}

.shop2-pdp-pill--link {
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    cursor: pointer;
}

.shop2-pdp-pill--link:hover {
    border-color: #2563eb;
    color: #1e40af;
    background: #eff6ff;
}

.shop2-pdp-chip-row--variants {
    margin-bottom: 4px;
}

.shop2-pdp-art-inline {
    white-space: normal;
}

.shop2-pdp-copy-art {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 4px 6px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    vertical-align: middle;
}

.shop2-pdp-copy-art:hover {
    color: var(--shop2-red);
    background: rgba(239, 68, 68, 0.08);
}

.shop2-pdp-copy-art__tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%) translateY(4px);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    background: #1e293b;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.shop2-pdp-copy-art__tip.is-on {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.shop2-pdp-about {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8ecf0;
}

.shop2-pdp-about__title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shop2-text);
    letter-spacing: -0.02em;
}

.shop2-pdp-kv--leaders {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop2-pdp-kv-li--leaders {
    display: flex;
    align-items: baseline;
    width: 100%;
    gap: 0;
    padding: 8px 0;
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
    background: transparent !important;
}

.shop2-pdp-kv-li--leaders:last-child {
    border-bottom: none;
}

.shop2-pdp-kv--leaders .shop2-pdp-kv__k {
    flex: 0 1 auto;
    max-width: 48%;
    text-align: left;
}

.shop2-pdp-kv__lead {
    flex: 1 1 auto;
    min-width: 12px;
    margin: 0 6px;
    border-bottom: 1px dotted #cbd5e1;
    height: 0;
    align-self: center;
    opacity: 0.95;
}

.shop2-pdp-kv--leaders .shop2-pdp-kv__v {
    flex: 0 1 auto;
    text-align: right;
    max-width: 46%;
}

.shop2-pdp-about-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

button.shop2-pdp-about-more {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

button.shop2-pdp-about-more:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

.shop2-pdp-about-more__ic {
    display: inline-block;
    transition: transform 0.2s ease;
}

.shop2-pdp-about-more.is-open .shop2-pdp-about-more__ic {
    transform: rotate(-180deg);
}

.shop2-pdp-spec-panel--collapsed {
    display: none !important;
}

@media print {
    .shop2-pdp-spec-panel--collapsed {
        display: block !important;
    }
}

.shop2-pdp-about-more:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

#shop2-pdp-spec-full {
    scroll-margin-top: 88px;
}

.shop2-product__buy {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e8ecf0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.shop2-product__buy-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.shop2-pdp-similar {
    margin-top: 20px;
    padding: 18px 18px 20px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.shop2-pdp-similar__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.shop2-pdp-similar__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.shop2-pdp-similar__more {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--shop2-red);
    text-decoration: none;
    white-space: nowrap;
}

.shop2-pdp-similar__more:hover {
    text-decoration: underline;
}

.shop2-pdp-similar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

.shop2-pdp-similar-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}

.shop2-pdp-similar-card:hover {
    border-color: #fecaca;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.shop2-pdp-similar-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    min-height: 100px;
    background: #fff;
    overflow: hidden;
}

.shop2-pdp-similar-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.shop2-pdp-similar-card__ph {
    color: #cbd5e1;
    font-size: 28px;
}

.shop2-pdp-similar-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px 10px;
}

.shop2-pdp-similar-card__name {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop2-pdp-similar-card__price {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.shop2-hub-main .shop2-cat-block {
    margin-bottom: 20px;
}

.shop2-hub-main .shop2-cat-block:last-child {
    margin-bottom: 0;
}

.shop2-hub-sentinel {
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.shop2-hub-status {
    text-align: center;
    padding: 12px;
    font-size: 14px;
    color: var(--shop2-muted);
}

.shop2-hub-breadcrumb {
    margin-bottom: 12px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .shop2-hub-layout:not(.shop2-hub-layout--drawer) {
        flex-direction: column;
    }

    .shop2-hub-layout:not(.shop2-hub-layout--drawer) .shop2-hub-sidebar {
        width: 100%;
        max-height: min(52vh, 420px);
        min-height: 0;
        overflow-y: auto;
        position: relative;
        top: 0;
    }

    .shop2-hub-layout:not(.shop2-hub-layout--drawer) .shop2-hub-catnav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
    }

    .shop2-hub-layout:not(.shop2-hub-layout--drawer) .shop2-hub-catnav-title {
        width: 100%;
        padding: 0 0 4px;
    }

    .shop2-hub-layout:not(.shop2-hub-layout--drawer) .shop2-hub-catlink {
        border-left: none;
        border-radius: 8px;
        padding: 6px 12px;
        background: #f5f7fa;
    }

    .shop2-hub-layout:not(.shop2-hub-layout--drawer) .shop2-hub-catlink.active {
        background: var(--shop2-red);
        color: #fff;
    }

    /* Выдвижной сайдбар: на узком экране остаётся off-canvas, не «колонка» */
    .shop2-hub-layout--drawer .shop2-hub-catnav {
        display: block;
        padding: 10px 0;
    }

    .shop2-hub-layout--drawer .shop2-hub-catnav-title {
        width: auto;
        padding: 0 14px 8px;
    }

    .shop2-hub-layout--drawer .shop2-hub-catlink {
        border-left: 3px solid transparent;
        border-radius: 0;
        padding: 9px 14px;
        background: transparent;
    }

    .shop2-hub-layout--drawer .shop2-hub-catlink.active {
        background: rgba(220, 34, 34, 0.08);
        color: #333;
    }
}

/* Кнопка «Каталог товаров» + выезжающий слева сайдбар */
.shop2-main--nav-toggle {
    padding-top: 56px;
}

.shop2-sidebar-toggle {
    position: fixed;
    top: 56px;
    left: 12px;
    z-index: 250;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin: 0;
    border: 1px solid var(--shop2-border);
    border-radius: 10px;
    background: var(--shop2-card);
    color: var(--shop2-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.shop2-sidebar-toggle:hover {
    border-color: rgba(220, 34, 34, 0.45);
    box-shadow: 0 4px 14px rgba(220, 34, 34, 0.12);
}

.shop2-sidebar-toggle:focus {
    outline: 2px solid var(--shop2-red);
    outline-offset: 2px;
}

.shop2-sidebar-toggle i {
    font-size: 1.25rem;
    color: var(--shop2-red);
    line-height: 1;
}

.shop2-page.shop2-sidebar-open .shop2-sidebar-toggle {
    background: #fff5f5;
    border-color: var(--shop2-red);
}

.shop2-hub-layout--drawer {
    display: block;
}

.shop2-hub-layout--drawer .shop2-hub-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.shop2-hub-layout--drawer .shop2-hub-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(288px, 86vw);
    max-height: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 210;
    align-self: stretch;
    box-shadow: none;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop2-hub-layout--drawer .shop2-hub-sidebar .shop-lf-drawer__body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.shop2-page.shop2-sidebar-open .shop2-hub-layout--drawer .shop2-hub-sidebar {
    transform: translate3d(0, 0, 0);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
}

.shop2-hub-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    pointer-events: none;
}

.shop2-page.shop2-sidebar-open .shop2-hub-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Витрина shop2.php: категории слева в потоке, по умолчанию открыты; кнопка только сворачивает колонку */
.shop2-hub-layout--pinned-cat.shop2-hub-layout--drawer {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.shop2-hub-layout--pinned-cat .shop2-hub-drawer-backdrop {
    display: none !important;
    pointer-events: none !important;
}

.shop2-hub-layout--pinned-cat .shop2-hub-sidebar {
    position: sticky;
    top: 56px;
    left: auto;
    bottom: auto;
    width: 240px;
    flex-shrink: 0;
    height: auto;
    max-height: calc(100vh - 120px);
    margin: 0;
    border-radius: 12px;
    transform: none !important;
    transition: opacity 0.2s ease, max-height 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop2-page.shop2-hub-pinned:not(.shop2-hub-cat-collapsed) .shop2-sidebar-toggle {
    background: #fff5f5;
    border-color: var(--shop2-red);
}

.shop2-page.shop2-hub-pinned.shop2-hub-cat-collapsed .shop2-hub-layout--pinned-cat .shop2-hub-sidebar {
    display: none;
}

@media (max-width: 900px) {
    .shop2-hub-layout--pinned-cat.shop2-hub-layout--drawer {
        flex-direction: column;
    }

    .shop2-hub-layout--pinned-cat .shop2-hub-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-width: none;
        max-height: min(52vh, 420px);
    }

    .shop2-hub-layout--pinned-cat .shop2-hub-catnav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
    }

    .shop2-hub-layout--pinned-cat .shop2-hub-catnav-title {
        width: 100%;
        padding: 0 0 4px;
    }

    .shop2-hub-layout--pinned-cat .shop2-hub-catlink {
        border-left: none;
        border-radius: 8px;
        padding: 6px 12px;
        background: #f5f7fa;
    }

    .shop2-hub-layout--pinned-cat .shop2-hub-catlink.active {
        background: var(--shop2-red);
        color: #fff;
    }
}

@media (max-width: 600px) {
    .shop2-main--nav-toggle {
        padding-top: 52px;
    }

    .shop2-sidebar-toggle {
        top: 52px;
        left: 8px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .shop2-sidebar-toggle__text {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Отступ под фикс. кнопку «Каталог» + левая колонка фильтра цены */
.shop2-main--price-aside {
    padding-left: 148px;
}

.shop2-with-price-aside {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.shop2-price-aside {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 56px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.shop2-price-aside-inner {
    background: var(--shop2-card);
    border: 1px solid var(--shop2-border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop2-price-aside-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--shop2-muted);
    margin: 0 0 12px;
}

.shop2-pf-row {
    margin-bottom: 14px;
}

.shop2-pf-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.shop2-pf-range {
    width: 100%;
    height: 8px;
    margin: 0 0 6px;
    accent-color: var(--shop2-red);
    cursor: pointer;
}

.shop2-pf-pretty {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--shop2-red);
    margin: 4px 0 8px;
}

.shop2-pf-label--sub {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--shop2-muted);
}

.shop2-pf-inp {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid var(--shop2-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.shop2-pf-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.shop2-pf-submit {
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: var(--shop2-red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.shop2-pf-submit:hover {
    filter: brightness(1.05);
}

.shop2-pf-reset {
    font-size: 12px;
    color: var(--shop2-muted);
    text-align: center;
    text-decoration: none;
}

.shop2-pf-reset:hover {
    color: var(--shop2-red);
    text-decoration: underline;
}

.shop2-hub-primary {
    flex: 1;
    min-width: 0;
}

/* Витрина shop2.php: индикатор подгрузки следующих категорий */
.shop2-hub-more-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    margin: 12px 0 0;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.shop2-hub-more-loader--done {
    display: none;
}

.shop2-hub-more-loader__text {
    color: #64748b;
}

.shop2-hub-more-loader__dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 8px;
}

.shop2-hub-more-loader__dots > span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #94a3b8;
    opacity: 0.45;
    animation: shop2HubMoreDot 1.05s infinite ease-in-out;
}

.shop2-hub-more-loader__dots > span:nth-child(2) {
    animation-delay: 0.18s;
}

.shop2-hub-more-loader__dots > span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes shop2HubMoreDot {
    0%,
    70%,
    100% {
        opacity: 0.35;
        transform: translateY(0) scale(0.92);
    }
    35% {
        opacity: 0.95;
        transform: translateY(-3px) scale(1);
    }
}

@media (max-width: 900px) {
    .shop2-main--price-aside {
        padding-left: 12px;
    }

    .shop2-with-price-aside {
        flex-direction: column;
    }

    .shop2-price-aside {
        width: 100%;
        max-width: none;
        position: relative;
        top: 0;
        max-height: none;
    }
}

/* Подсветка совпадений в поиске (витрина + таблица shop.php через ajax) */
mark.shop2-search-hit,
.shop2-search-hit {
    background: #b9f6b0;
    color: inherit;
    padding: 0 0.06em;
    border-radius: 2px;
}

.shop2-search-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop2-search-preview-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    background: #f8fafc;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid transparent;
}

.shop2-search-preview-row:hover {
    border-color: var(--shop2-border);
    background: #fff;
}

.shop2-search-preview-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--shop2-border);
}

.shop2-search-preview-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--shop2-muted);
    background: #e9ecef;
}

.shop2-search-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.shop2-search-preview-code {
    font-size: 11px;
    color: var(--shop2-muted);
}

.shop2-search-preview-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.shop2-search-preview-price {
    font-size: 13px;
    color: var(--shop2-red);
    font-weight: 600;
}

.shop2-search-preview-more,
.shop2-search-muted,
.shop2-search-preview-empty,
.shop2-search-preview-err {
    font-size: 13px;
    color: var(--shop2-muted);
    margin: 0.35em 0;
}

.shop2-search-preview-err {
    color: #c0392b;
}

.shop2-search-loading {
    font-size: 13px;
    color: var(--shop2-muted);
}

.shop2-search-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.shop2-search-inline-input {
    min-width: 180px;
    flex: 1;
    max-width: 360px;
    padding: 8px 12px;
    border: 1px solid var(--shop2-border);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.shop2-search-inline-submit {
    padding: 8px 16px;
    border-radius: 8px;
    border: 0;
    background: var(--shop2-red);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* shop.php — превью в колонке с иконкой: клик открывает модалку (.send_mod, common.js) */
body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    vertical-align: middle;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    line-height: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:hover,
body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:focus-visible {
    box-shadow: 0 0 0 2px rgba(220, 34, 34, 0.22);
    background: #fff;
    outline: none;
}

body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb .shop-table-thumb__img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: transform 0.22s ease;
    transform-origin: center center;
}

body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:hover .shop-table-thumb__img,
body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:focus-visible .shop-table-thumb__img {
    transform: scale(1.1);
}

body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb .shop-table-thumb__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:hover .shop-table-thumb__placeholder,
body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:focus-visible .shop-table-thumb__placeholder {
    transform: scale(1.08);
    color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
    body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb .shop-table-thumb__img,
    body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb .shop-table-thumb__placeholder {
        transition: none;
    }

    body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:hover .shop-table-thumb__img,
    body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:focus-visible .shop-table-thumb__img,
    body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:hover .shop-table-thumb__placeholder,
    body.shop-php-qty-pill #tableGoods .send_mod.shop-table-thumb:focus-visible .shop-table-thumb__placeholder {
        transform: none;
    }
}

/* shop.php — колонка «Количество»: тот же степпер, что .shop2-card-qty на витрине */
body.shop-php-qty-pill #tableGoods .get-to-cart-block {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 112px;
    max-width: 118px;
    margin: 4px auto;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

body.shop-php-qty-pill #tableGoods .number-plus,
body.shop-php-qty-pill #tableGoods .number-minus {
    flex: 0 0 34px;
    width: 34px;
    min-height: 32px;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

body.shop-php-qty-pill #tableGoods .number-minus {
    background: #eff6ff;
    color: #1d4ed8;
}

body.shop-php-qty-pill #tableGoods .number-minus:hover {
    background: #1d4ed8;
    color: #fff;
    border-radius: 0;
}

body.shop-php-qty-pill #tableGoods .number-plus {
    background: #ecfdf5;
    color: #047857;
}

body.shop-php-qty-pill #tableGoods .number-plus:hover {
    background: #059669;
    color: #fff;
    border-radius: 0;
}

body.shop-php-qty-pill #tableGoods .number-plus:active,
body.shop-php-qty-pill #tableGoods .number-minus:active {
    transform: scale(0.96);
}

body.shop-php-qty-pill #tableGoods .order-qty-input {
    flex: 1 1 auto;
    min-width: 36px;
    max-width: 44px;
    width: 1%;
    height: 32px;
    margin: 0;
    padding: 0 6px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    background: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--shop2-text);
    box-sizing: border-box;
    -moz-appearance: textfield;
}

body.shop-php-qty-pill #tableGoods .order-qty-input:focus {
    outline: none;
    background: #fafafa;
    box-shadow: inset 0 0 0 1px rgba(220, 34, 34, 0.25);
}

body.shop-php-qty-pill #tableGoods .order-qty-input::-webkit-outer-spin-button,
body.shop-php-qty-pill #tableGoods .order-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* shop.php — шапка таблицы: визуал + подсказка сортировки (клик / aria-sort из tablesort) */
body.shop-php-qty-pill #tableGoods thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 10px 8px;
    font-size: 10px;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475569 !important;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: none !important;
    border-bottom: 2px solid #cbd5e1 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
    vertical-align: middle;
    white-space: nowrap;
}

body.shop-php-qty-pill #tableGoods thead th[role="columnheader"] {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}

body.shop-php-qty-pill #tableGoods thead th[role="columnheader"]:hover {
    background: linear-gradient(180deg, #e8eef5 0%, #d8dee9 100%) !important;
    color: #1e293b !important;
}

body.shop-php-qty-pill #tableGoods thead th[role="columnheader"]:focus-visible {
    outline: 2px solid rgba(220, 34, 34, 0.45);
    outline-offset: -2px;
}

body.shop-php-qty-pill #tableGoods thead th + th {
    border-left: 1px solid #e2e8f0 !important;
}

body.shop-php-qty-pill #tableGoods thead .resize-handle {
    opacity: 0.4;
}

body.shop-php-qty-pill #tableGoods #table_price .goods-th-sort-hint {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.45;
    color: #64748b;
    vertical-align: -0.1em;
    transition: opacity 0.15s ease, color 0.15s ease;
}

body.shop-php-qty-pill #tableGoods #table_price[role="columnheader"]:hover .goods-th-sort-hint {
    opacity: 0.85;
    color: var(--shop2-red);
}

/* FAB корзины: правый верх под фикс. шапкой (витрина/каталог/ПДП + таблица); кастомная поза после перетаскивания не перебиваем */
body.shop-php-qty-pill #shop2-cart-dock,
body.shop2-shell-fixed #shop2-cart-dock {
    z-index: 12150;
}

body.shop-php-qty-pill #shop2-cart-dock .shop2-cart-fab:not(.shop2-cart-fab--pos-custom),
body.shop2-shell-fixed #shop2-cart-dock .shop2-cart-fab:not(.shop2-cart-fab--pos-custom) {
    top: calc(var(--shop-top-chrome, 50px) + 6px);
    bottom: auto;
    right: max(10px, env(safe-area-inset-right, 0px));
    left: auto;
    z-index: 12160;
}

/* Напоминание о корзине: справа, ниже области FAB / над нижним меню; z-index под доком корзины */
.shop2-cart-nudge {
    position: fixed;
    z-index: 12140;
    right: 0;
    bottom: calc(var(--shop-bottom-chrome, 64px) + 72px + env(safe-area-inset-bottom, 0px));
    max-width: min(300px, calc(100vw - 16px));
    padding: 0 0 0 10px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.35;
    color: #0f172a;
    pointer-events: none;
    transform: translateX(calc(100% + 24px));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.shop-php-qty-pill .shop2-cart-nudge,
body.shop2-shell-fixed .shop2-cart-nudge {
    bottom: calc(var(--shop-bottom-chrome, 64px) + 12px + env(safe-area-inset-bottom, 0px));
}

.shop2-cart-nudge.shop2-cart-nudge--visible {
    transform: translateX(0);
    pointer-events: auto;
}

.shop2-cart-nudge__inner {
    position: relative;
    padding: 12px 36px 12px 14px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-right: none;
    box-shadow:
        -6px 8px 28px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.shop2-cart-nudge__accent {
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--shop2-red, #dc2626) 0%, #b91c1c 100%);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.35);
}

.shop2-cart-nudge__title {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.shop2-cart-nudge__text {
    margin: 0 0 10px;
    font-size: 13px;
    color: #475569;
}

.shop2-cart-nudge__cta {
    display: inline-block;
    margin: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.shop2-cart-nudge__cta:hover {
    filter: brightness(1.06);
}

.shop2-cart-nudge__close {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(241, 245, 249, 0.95);
    color: #64748b;
    font-size: 18px;
    line-height: 26px;
    cursor: pointer;
    pointer-events: auto;
}

.shop2-cart-nudge__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

@media (prefers-reduced-motion: reduce) {
    .shop2-cart-nudge {
        transition-duration: 0.15s;
    }
}

/* Фильтр цены в правой шторке shop2 (inc_shop2_rf_price_drawer.php) */
.shop2-pf-drawer-inner {
    padding: 4px 2px 8px;
}

/* С .shop-rf — отступы как у shop.php, не перебивать узким padding */
.shop2-pf-drawer-inner.shop-rf {
    padding: 14px 16px 0;
    box-sizing: border-box;
}

/* Блок цены без сворачиваемого заголовка — только тело секции */
.shop2-pf-sec-price.shop-rf-sec {
    margin-bottom: 8px;
}

.shop2-pf-sec-price .shop-rf-sec__body--flat {
    padding-top: 12px;
}

/* Подразделы в шторке фильтров (после цены), только при uc>0 в каталоге */
.shop2-pf-ss-nav .shop2-pf-ss-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop2-pf-ss-nav .shop2-pf-ss-list li {
    margin: 0.4em 0;
}

.shop2-pf-ss-nav .shop2-pf-ss-list .shop-rf-link.shop2-active {
    font-weight: 600;
    text-decoration: underline;
}

.shop2-pf-drawer-hint {
    margin-top: 0;
    margin-bottom: 12px;
}

body.shop-php-qty-pill #tableGoods #table_price .goods-th-sort-hint.goods-th-sort-hint--active {
    opacity: 1;
    color: var(--shop2-red);
}

body.shop-php-qty-pill #tableGoods .goods-th-label {
    display: inline-block;
    vertical-align: middle;
}

/* --- Заказы и сервис: orders.php, defect.php --- */
body.shop-php-orders .shop2-orders-title,
body.shop-php-defect .shop2-orders-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.35rem;
    margin: 12px 0 16px;
    color: var(--shop2-text);
}

body.shop-php-orders #content.shop2-orders-content,
body.shop-php-defect #content.shop2-orders-content {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 6px 160px;
    box-sizing: border-box;
    flex-direction: column;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.shop-php-orders .shop2-orders-table-card,
body.shop-php-defect .shop2-orders-table-card {
    background: var(--shop2-card);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--shop2-border);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Список заказов забирает оставшуюся высоту и скроллится; не выталкивает панель «Состав» в ноль */
body.shop-php-orders #mainTable.shop2-orders-table-card,
body.shop-php-defect #mainTable.shop2-orders-table-card {
    flex: 1 1 0;
    min-height: 0;
}

body.shop-php-orders .shop2-orders-table-card table,
body.shop-php-defect .shop2-orders-table-card table {
    border: none;
}

body.shop-php-orders .shop2-orders-table-card th,
body.shop-php-orders .shop2-orders-table-card td,
body.shop-php-defect .shop2-orders-table-card th,
body.shop-php-defect .shop2-orders-table-card td {
    border-color: #e8ecf1;
}

body.shop-php-orders .shop2-orders-table-card thead th,
body.shop-php-defect .shop2-orders-table-card thead th {
    background: linear-gradient(180deg, #f1f4f8 0%, #e8ecf2 100%);
    color: #475569;
    font-weight: 600 !important;
    padding: 10px 8px;
    font-size: 12px;
    border-bottom: 1px solid var(--shop2-border);
}

body.shop-php-orders .shop2-orders-table-card tbody td,
body.shop-php-defect .shop2-orders-table-card tbody td {
    padding: 8px 6px;
    font-size: 13px;
}

/* числа, даты, суммы — в одну строку (класс tnum в разметке заказов) */
body.shop-php-orders .shop2-orders-table-card .tnum,
body.shop-php-defect .shop2-orders-table-card .tnum {
    white-space: nowrap;
}

body.shop-php-orders .shop2-orders-table-card tr.show_order_table,
body.shop-php-defect .shop2-orders-table-card tr.show_order_table {
    cursor: pointer;
    transition: background 0.12s ease;
}

body.shop-php-orders .shop2-orders-table-card tr.show_order_table:hover td,
body.shop-php-defect .shop2-orders-table-card tr.show_order_table:hover td {
    background-color: #f8fafc;
}

/* Строки «Мои заказы»: палитра статусов как в adm/index.php (#tableGoods) */
body.shop-php-orders #tableGoods tr.show_order_table.shop2-order-row--st-processing {
    background-color: #e2e8f0;
}
body.shop-php-orders #tableGoods tr.show_order_table.shop2-order-row--st-delivering {
    background-color: #dbeafe;
}
body.shop-php-orders #tableGoods tr.show_order_table.shop2-order-row--st-ready_ship {
    background-color: #fef3c7;
}
body.shop-php-orders #tableGoods tr.show_order_table.shop2-order-row--st-shipped {
    background-color: #ccfbf1;
}
body.shop-php-orders #tableGoods tr.show_order_table.shop2-order-row--st-done {
    background-color: #bbf7d0;
}
body.shop-php-orders #tableGoods tr.show_order_table.shop2-order-row--st-cancel {
    background-color: #fecaca;
}
body.shop-php-orders #tableGoods tr.show_order_table[class*="shop2-order-row--st-"]:hover td {
    background-color: transparent;
}
body.shop-php-orders #tableGoods tr.show_order_table[class*="shop2-order-row--st-"]:hover {
    filter: brightness(0.98);
}
body.shop-php-orders #tableGoods tr.or_table_active[class*="shop2-order-row--st-"] {
    filter: brightness(0.965);
}

body.shop-php-orders .shop2-orders-table-card tr.or_table_active td,
body.shop-php-defect .shop2-orders-table-card tr.or_table_active td {
    background-color: rgba(220, 34, 34, 0.08) !important;
    box-shadow: inset 3px 0 0 var(--shop2-red);
}

body.shop-php-orders .shop2-orders-table-card .tnum a,
body.shop-php-defect .shop2-orders-table-card .tnum a {
    color: var(--shop2-red);
    font-weight: 600;
    text-decoration: none;
}

body.shop-php-orders .shop2-orders-table-card .tnum a:hover,
body.shop-php-defect .shop2-orders-table-card .tnum a:hover {
    text-decoration: underline;
}

/* Панель состава заказа (под таблицей заказов, не «липкая» полоска внизу экрана) */
body.shop-php-orders #ordertable.shop2-order-detail-panel,
body.shop-php-defect #ordertable.shop2-order-detail-panel {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    border: 1px solid var(--shop2-border);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    background: var(--shop2-card);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

body.shop-php-orders #ordertable.shop2-order-detail-panel.is-visible,
body.shop-php-defect #ordertable.shop2-order-detail-panel.is-visible {
    display: flex !important;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

body.shop-php-orders #ordertable.shop2-order-detail-panel[hidden],
body.shop-php-defect #ordertable.shop2-order-detail-panel[hidden]:not(.is-visible) {
    display: none !important;
}

body.shop-php-orders .shop2-order-detail-toolbar,
body.shop-php-defect .shop2-order-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--shop2-border);
}

body.shop-php-orders .shop2-order-detail-heading,
body.shop-php-defect .shop2-order-detail-heading {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shop2-text);
}

body.shop-php-orders .shop2-order-detail-close,
body.shop-php-defect .shop2-order-detail-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

body.shop-php-orders .shop2-order-detail-close:hover,
body.shop-php-defect .shop2-order-detail-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.shop-php-orders .shop2-order-detail-table-scroll,
body.shop-php-defect .shop2-order-detail-table-scroll {
    overflow: auto;
    min-height: 200px;
    max-height: min(70vh, 600px);
    -webkit-overflow-scrolling: touch;
    padding: 0 4px 12px;
    flex: 0 1 auto;
}

body.shop-php-orders .shop2-order-detail-table,
body.shop-php-defect .shop2-order-detail-table {
    width: 100%;
    border: none;
    border-collapse: collapse;
}

body.shop-php-orders .shop2-order-detail-table thead th,
body.shop-php-defect .shop2-order-detail-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eef2f7;
    color: #475569;
    font-weight: 600 !important;
    font-size: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--shop2-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.shop-php-orders .shop2-order-detail-table th,
body.shop-php-orders .shop2-order-detail-table td,
body.shop-php-defect .shop2-order-detail-table th,
body.shop-php-defect .shop2-order-detail-table td {
    border: 1px solid #e8ecf1;
    border-top: none;
}

body.shop-php-defect .shop2-order-detail-table tbody td {
    padding: 14px 12px;
    font-size: 14px;
    vertical-align: middle;
}

/* Состав заказа в adm/index: ниже строки, чем дефекты */
body.shop-php-orders .shop2-order-detail-table tbody td {
    padding: 6px 8px;
    font-size: 13px;
    vertical-align: middle;
}

body.shop-php-orders .shop2-order-detail-table thead th {
    padding: 7px 8px;
    font-size: 11px;
}

body.shop-php-orders .shop2-order-detail-table .shop2-order-line__code,
body.shop-php-defect .shop2-order-detail-table .shop2-order-line__code {
    font-weight: 700;
    color: var(--shop2-red);
    white-space: nowrap;
    width: 1%;
}

body.shop-php-orders .shop2-order-detail-table .shop2-order-line__title,
body.shop-php-defect .shop2-order-detail-table .shop2-order-line__title {
    text-align: left !important;
    font-weight: 600;
    line-height: 1.4;
    max-width: 520px;
    word-break: break-word;
}

body.shop-php-orders .shop2-order-detail-table .shop2-order-line__sum,
body.shop-php-defect .shop2-order-detail-table .shop2-order-line__sum {
    font-weight: 700;
    white-space: nowrap;
}

body.shop-php-orders .shop2-order-detail-table .shop2-order-line__qty,
body.shop-php-defect .shop2-order-detail-table .shop2-order-line__qty {
    font-weight: 600;
}

body.shop-php-orders .shop2-order-detail-table .shop2-order-line__muted,
body.shop-php-defect .shop2-order-detail-table .shop2-order-line__muted {
    color: #64748b;
    font-size: 13px;
}

body.shop-php-orders .shop2-order-detail-table tr.shop2-order-line:hover td,
body.shop-php-defect .shop2-order-detail-table tr.shop2-order-line:hover td {
    background-color: #f8fafc;
}

/* Оповещение об изменении даты доставки (orders.php + myorders.js) */
body.shop-php-orders .fox-order-dd-toast {
    margin: 0 0 14px;
    padding: 12px 14px 12px 40px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.45;
    position: relative;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.12);
}
body.shop-php-orders .fox-order-dd-toast__item + .fox-order-dd-toast__item {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(59, 130, 246, 0.25);
}
body.shop-php-orders .fox-order-dd-toast__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #1d4ed8;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
body.shop-php-orders .fox-order-dd-toast__close:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* --- История цены: кнопка в карточке; модалка — css/price_history_modal.css --- */
.shop2-card-price-hit {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}
.shop2-card-price-hit:hover {
    color: var(--shop2-red, #DC2222);
}

/* ---------- Публичная витрина (shop2_*_pub): шапка и CTA в стиле витрины, без .glo ---------- */
.shop2-page .shop2-public-top {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 16px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    background: var(--shop2-card);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--shop2-border);
    border-top: 0;
}

.shop2-public-top__spacer {
    flex: 1;
    min-width: 12px;
}

.shop2-public-top__nav {
    color: var(--shop2-red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.shop2-public-top__nav:hover {
    text-decoration: underline;
}

/* Кнопки как у .shop2-seg / активного сегмента */
.shop2-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop2-cta--sm {
    padding: 8px 14px;
    font-size: 13px;
}

.shop2-cta--primary {
    background: var(--shop2-red);
    color: #fff;
    border-color: var(--shop2-red);
    box-shadow: 0 1px 2px rgba(220, 34, 34, 0.25);
}

.shop2-cta--primary:hover {
    background: #c41e1e;
    border-color: #c41e1e;
    color: #fff;
}

.shop2-cta--partner {
    background: linear-gradient(180deg, #2f9d5c 0%, #248a4f 100%);
    color: #fff;
    border-color: #1e7a44;
    box-shadow: 0 2px 6px rgba(36, 138, 79, 0.35);
    font-weight: 600;
}

.shop2-cta--partner:hover {
    background: linear-gradient(180deg, #34aa65 0%, #299456 100%);
    border-color: #1e7a44;
    color: #fff;
}

.shop2-cta--outline {
    background: var(--shop2-card);
    color: var(--shop2-text);
    border-color: var(--shop2-border);
}

.shop2-cta--outline:hover {
    border-color: var(--shop2-red);
    color: var(--shop2-red);
    background: #fff;
}

.shop2-public-toolbar-link {
    color: var(--shop2-red);
    font-weight: 700;
    text-decoration: none;
}

.shop2-public-toolbar-link:hover {
    text-decoration: underline;
}

.shop2-public-toolbar-link--partner {
    color: #14824a;
    font-weight: 800;
}

.shop2-public-toolbar-link--partner:hover {
    color: #0d5c32;
}

/* Карточка каталога: полоса с ценой заменена на CTA */
.shop2-card-price-row--public {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.shop2-card-price-row--public .shop2-cta {
    width: 100%;
}

.shop2-page.shop2-view-list .shop2-card-price-row--public .shop2-cta {
    width: auto;
    align-self: flex-start;
}

/* PDP: блок вместо цены */
.shop2-product__price--public {
    margin: 16px 0 0;
}

.shop2-product__price--public .shop2-cta {
    min-width: 200px;
}

@media (max-width: 520px) {
    .shop2-page .shop2-public-top {
        flex-direction: column;
        align-items: stretch;
    }

    .shop2-public-top__spacer {
        display: none;
    }

    .shop2-public-top .shop2-cta {
        justify-content: center;
    }

    .shop2-product__price--public .shop2-cta {
        width: 100%;
        min-width: 0;
    }
}

/* Акции / главная: карточки как в каталоге, с ценой + «Заказать» */
.shop2-goods-grid--promo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.shop2-card--promo {
    position: relative;
}

.shop2-card-media--promo {
    position: relative;
}

.shop2-card-pct {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: var(--shop2-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.shop2-card-price-row--show {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px 10px;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
}

.shop2-card-prow-prices {
    min-width: 0;
}

.shop2-card-old {
    color: var(--shop2-muted);
    font-size: 12px;
    display: block;
    line-height: 1.2;
}

.shop2-card-old s {
    text-decoration: line-through;
}

.shop2-card-price-row--show .shop2-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--shop2-red);
    margin: 2px 0 0;
}

.shop2-card-qtytext {
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.shop2-card-price-row--order {
    margin-top: 6px;
}

.shop2-card-price-row--order .shop2-cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

/* shop2.php: лента акций в потоке под тулбаром (горизонтальный скролл) */
.shop2-promo-ribbon {
    margin: 0 0 14px;
    padding: 10px 12px 12px;
    background: linear-gradient(165deg, #fff5f5 0%, #fff 55%);
    border: 1px solid rgba(252, 165, 165, 0.65);
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.shop2-promo-ribbon__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.shop2-promo-ribbon__heading {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--shop2-text);
}

.shop2-promo-ribbon__all {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--shop2-red);
    text-decoration: none;
    white-space: nowrap;
}

.shop2-promo-ribbon__all:hover,
.shop2-promo-ribbon__all:focus {
    text-decoration: underline;
}

.shop2-promo-ribbon__viewport {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin: 0 -2px;
    width: 100%;
    max-width: 100%;
}

.shop2-promo-ribbon__strip {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
}

.shop2-promo-ribbon__nav {
    flex-shrink: 0;
    align-self: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: var(--shop2-red);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop2-promo-ribbon__nav:hover,
.shop2-promo-ribbon__nav:focus {
    border-color: #fecaca;
    background: #fff5f5;
    outline: none;
}

.shop2-promo-ribbon--static .shop2-promo-ribbon__nav {
    display: none;
}

.shop2-promo-ribbon--static .shop2-promo-ribbon__strip {
    flex: 1 1 100%;
}

.shop2-promo-ribbon__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 6px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.shop2-promo-ribbon--autoscroll .shop2-promo-ribbon__track {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.shop2-promo-ribbon--autoscroll .shop2-promo-ribbon__card {
    scroll-snap-align: none;
}

.shop2-promo-ribbon--autoscroll .shop2-promo-ribbon__track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.shop2-promo-ribbon__track:focus {
    outline: 2px solid rgba(220, 38, 38, 0.35);
    outline-offset: 2px;
}

.shop2-promo-ribbon__card {
    position: relative;
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.shop2-promo-ribbon__card:hover {
    border-color: #fecaca;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.shop2-promo-ribbon__hit {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
}

.shop2-promo-ribbon__media {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop2-promo-ribbon__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop2-promo-ribbon__ph {
    color: #94a3b8;
    font-size: 18px;
}

.shop2-promo-ribbon__body {
    min-width: 0;
}

.shop2-promo-ribbon__code {
    margin: 0 0 3px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}
.shop2-promo-ribbon__code-lbl {
    color: var(--shop2-muted);
    font-weight: 600;
}
.shop2-promo-ribbon__code-num {
    color: var(--shop2-text);
    font-weight: 600;
}

.shop2-promo-ribbon__card-title {
    margin: 0 0 3px;
    font-size: 12px;
    line-height: 1.2;
    color: var(--shop2-text);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop2-promo-ribbon__prices {
    margin: 0;
    font-size: 12px;
    color: var(--shop2-muted);
}

.shop2-promo-ribbon__prices s {
    color: var(--shop2-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(100, 116, 139, 0.55);
    font-weight: 600;
    margin-right: 6px;
}

.shop2-promo-ribbon__prices strong {
    color: var(--shop2-red);
    font-weight: 800;
    font-size: 13px;
    margin-left: 0;
}

.shop2-promo-ribbon__pct {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
    background: var(--shop2-red);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    padding: 2px 6px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .shop2-promo-ribbon {
        padding: 8px 10px 10px;
    }
    .shop2-promo-ribbon__card {
        width: 196px;
    }
    .shop2-promo-ribbon__heading {
        font-size: 14px;
    }
}

.shop2-goods-grid--promo .shop2-card-body {
    padding: 8px 10px 10px;
}

.shop2-goods-grid--promo .shop2-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
    line-height: 1.25;
    font-size: 13px;
    margin: 4px 0;
    font-weight: 600;
}

/* Главная: секция с акциями (фон как витрина) */
.shop2-home-picks {
    background: var(--shop2-bg);
    color: var(--shop2-text);
    padding: 32px 0 44px;
    margin: 0;
}

.shop2-home-picks__head {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--shop2-text);
}

.shop2-home-picks__lead {
    text-align: center;
    color: var(--shop2-muted);
    font-size: 14px;
    max-width: 40rem;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.shop2-home-picks__foot {
    text-align: center;
    margin-top: 20px;
}

.shop2-home-picks__foot .shop2-cta--outline,
.shop2-home-picks__foot .shop2-cta--primary {
    min-width: 200px;
}

/* ========== Главная (shop2-page--home) ========== */
.shop2-page--home {
    background: var(--shop2-bg);
    color: var(--shop2-text);
}

.shop2-page--home .fox-site-header {
    border-bottom: 1px solid var(--shop2-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.shop2-page--home .fox-header-container,
.shop2-page--home .container {
    max-width: 1140px;
}

/* Hero под шапкой */
.fox-home-hero {
    background: linear-gradient(135deg, #1a1d24 0%, #2d333f 50%, #1e2430 100%);
    color: #fff;
    padding: 36px 20px 40px;
    text-align: center;
}

.fox-home-hero__inner {
    max-width: 44rem;
    margin: 0 auto;
}

.fox-home-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
}

.fox-home-hero__lead {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 20px;
}

.fox-home-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
}

.fox-home-hero__ctas .shop2-cta--primary {
    background: var(--shop2-red);
    color: #fff;
    border-color: var(--shop2-red);
}

.fox-home-hero__ctas .shop2-cta--primary:hover {
    background: #c41e1e;
    border-color: #c41e1e;
    color: #fff;
}

.fox-home-hero__ctas .shop2-cta--outline {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.fox-home-hero__ctas .shop2-cta--outline:hover {
    background: #fff;
    color: var(--shop2-text);
    border-color: #fff;
}

.fox-home-slider-wrap {
    background: var(--shop2-bg);
    padding: 0 0 8px;
}

.fox-home-slider-wrap .slider {
    max-width: 1140px;
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.fox-home-slider-wrap .slider img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.fox-home-h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--shop2-text);
    margin: 0 0 8px;
}

/* Плитки направлений */
.fox-home-tiles {
    padding: 32px 0 20px;
}

.fox-home-tiles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.fox-home-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 16px;
    background: var(--shop2-card);
    border: 1px solid var(--shop2-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--shop2-text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fox-home-tile:hover {
    border-color: rgba(220, 34, 34, 0.35);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
    color: var(--shop2-text);
}

.fox-home-tile i {
    font-size: 1.5rem;
    color: var(--shop2-red);
    line-height: 1;
}

.fox-home-tile__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.fox-home-tile__text {
    font-size: 13px;
    color: var(--shop2-muted);
    line-height: 1.4;
}

/* О компании */
.fox-home-about {
    padding: 20px 0 28px;
}

.fox-home-about__card {
    background: var(--shop2-card);
    border: 1px solid var(--shop2-border);
    border-radius: 12px;
    padding: 24px 22px 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.fox-home-about__card .fox-home-h2 {
    text-align: left;
    margin-bottom: 12px;
}

.fox-home-about__lead {
    font-size: 16px;
    line-height: 1.5;
    color: var(--shop2-text);
    margin: 0 0 14px;
    font-weight: 600;
}

.fox-home-about p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--shop2-text);
    margin: 0 0 12px;
}

.fox-home-about__sub {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shop2-red);
    margin: 20px 0 10px;
    text-transform: none;
}

.fox-home-about__list {
    margin: 0 0 16px 20px;
    padding: 0;
    color: var(--shop2-text);
    font-size: 14px;
    line-height: 1.55;
}

.fox-home-about__list li {
    margin: 6px 0;
}

.fox-home-about__mission {
    font-style: italic;
    color: var(--shop2-muted);
    margin-top: 16px;
}

.fox-home-about__ctas {
    margin-top: 20px;
}

.fox-home-about__ctas .shop2-cta {
    width: 100%;
    max-width: 360px;
    justify-content: center;
}

/* Цифры */
.fox-home-stats {
    padding: 8px 0 36px;
}

.fox-home-stats__note {
    text-align: center;
    font-size: 13px;
    color: var(--shop2-muted);
    margin: 0 0 20px;
}

.fox-home-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.fox-home-stat {
    background: var(--shop2-card);
    border: 1px solid var(--shop2-border);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.fox-home-stat__value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--shop2-red);
    line-height: 1.2;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.fox-home-stat__label {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: var(--shop2-muted);
}

/* Партнёры */
.fox-home-partners {
    padding: 0 0 40px;
}

.fox-home-partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px 16px;
    margin-top: 20px;
    align-items: center;
}

.fox-home-partners__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: #fff;
    border: 1px solid var(--shop2-border);
    border-radius: 10px;
    min-height: 64px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fox-home-partners__item:hover {
    border-color: rgba(220, 34, 34, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fox-home-partners__logo {
    max-width: 100px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.fox-home-partners__item:hover .fox-home-partners__logo {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .fox-home-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .fox-home-hero {
        padding: 28px 16px 32px;
    }
    .fox-home-hero__title {
        font-size: 1.25rem;
    }
    .fox-home-hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .fox-home-hero__ctas .shop2-cta {
        width: 100%;
        justify-content: center;
    }
    .fox-home-stats__grid {
        grid-template-columns: 1fr;
    }
    .fox-home-about__card {
        padding: 20px 16px 24px;
    }
}

/* Админ (id=1): ПКМ «Скрыть товар» на таблице shop.php и карточках витрины */
.fox-admin-goods-ctx {
    position: fixed;
    z-index: 100050;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    min-width: 170px;
}
.fox-admin-goods-ctx__item {
    display: block;
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
    color: #b42318;
}
.fox-admin-goods-ctx__item:hover {
    background: #f3f4f6;
}

/* ——— Галерея товара: миниатюры слева, основное фото справа (.fox-pgal) ——— */
.fox-pgal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.fox-pgal__thumbs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.fox-pgal__thumb {
    display: block;
    margin: 0;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fox-pgal__thumb:hover {
    border-color: #94a3b8;
}
.fox-pgal__thumb--active {
    border-color: #0d9488;
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.35);
}
.fox-pgal__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fox-pgal__main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.fox-pgal__main .shop2-card-photo-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}
.fox-pgal__main .shop2-card-photo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}
.fox-pgal__main-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(68vh, 720px);
    object-fit: contain;
    display: block;
    vertical-align: middle;
}

/* Страница товара (PDP) */
.fox-pgal--pdp .fox-pgal__thumb {
    width: 72px;
    height: 72px;
}
.fox-pgal--pdp .fox-pgal__main {
    min-height: 200px;
    padding: 8px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.shop2-product__media > .fox-pgal--pdp {
    align-items: stretch;
}

/* Модалка быстрого просмотра */
#info_form .goods-modal__gallery .fox-pgal--modal .fox-pgal__thumb {
    width: 48px;
    height: 48px;
}
#info_form .goods-modal__gallery .fox-pgal--modal .fox-pgal__main-img {
    max-height: min(50vh, 360px);
}

@media (max-width: 520px) {
    .fox-pgal--pdp {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .fox-pgal--pdp .fox-pgal__thumbs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* Миникорзина: торг — модальное окно вместо prompt/alert */
.shop2-cart-neg-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.shop2-cart-neg-modal[hidden] {
    display: none !important;
}
.shop2-cart-neg-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}
.shop2-cart-neg-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 20px 20px 18px;
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 20px 48px rgba(15, 23, 42, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    box-sizing: border-box;
}
.shop2-cart-neg-x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
}
.shop2-cart-neg-x:hover {
    background: rgba(226, 232, 240, 0.6);
    color: #0f172a;
}
.shop2-cart-neg-title {
    margin: 0 40px 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}
.shop2-cart-neg-hint {
    margin: 0 0 12px;
    font-size: 14px;
    color: #475569;
}
.shop2-cart-neg-lab {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}
.shop2-cart-neg-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
}
.shop2-cart-neg-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.shop2-cart-neg-err {
    margin: 8px 0 0;
    font-size: 13px;
    color: #b91c1c;
}
.shop2-cart-neg-help {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}
.shop2-cart-neg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    justify-content: flex-end;
}
.shop2-cart-neg-btn-primary {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}
.shop2-cart-neg-btn-primary:hover {
    filter: brightness(1.05);
}
.shop2-cart-neg-btn-secondary {
    padding: 10px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #334155;
}
.shop2-cart-neg-btn-secondary:hover {
    background: #f1f5f9;
}

/* Тосты миникорзины */
.shop2-cart-toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 88px;
    z-index: 11990;
    max-width: 420px;
    margin: 0 auto;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15);
    box-sizing: border-box;
}
.shop2-cart-toast[hidden] {
    display: none !important;
}
.shop2-cart-toast--err {
    border-color: rgba(220, 38, 38, 0.35);
    background: linear-gradient(165deg, #fff5f5 0%, #ffffff 100%);
}

/* Популярное: рейл с «парящими» превью (случайный товар из раздела) */
.shop2-popular-rail {
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 0 16px 10px;
    background: transparent;
}
.shop2-popular-rail--bleed {
    width: 100%;
    max-width: none;
    margin: 0 0 12px;
    padding: 10px 16px 14px;
    border-top: 3px solid var(--shop2-red);
    background: linear-gradient(180deg, rgba(220, 34, 34, 0.07) 0%, rgba(245, 247, 250, 0.4) 55%, transparent 100%);
}
.shop2-popular-rail__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}
.shop2-popular-rail__scroller {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px 22px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.shop2-popular-rail__cell {
    flex: 0 0 auto;
    width: 88px;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
}
.shop2-popular-rail__cell:hover .shop2-popular-rail__cap {
    color: var(--shop2-red);
}
.shop2-popular-rail__cell:hover .shop2-popular-rail__img {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}
.shop2-popular-rail__float {
    display: block;
    margin: 0 auto 8px;
}
.shop2-popular-rail__img {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shop2-popular-rail__cap {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    max-width: 100px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shop2-popular-rail__img--ph {
    opacity: 0.95;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

/* Табличный shop.php — чипы «Популярное» (js/load_goods.js) */
.shop-popular-strip {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border: 1px solid #fed7aa;
    box-sizing: border-box;
}
.shop-popular-strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}
.shop-popular-strip__label {
    font-size: 13px;
    font-weight: 700;
    color: #9a3412;
    white-space: nowrap;
}
.shop-popular-strip__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
a.shop-popular-chip,
button.shop-popular-chip {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #fdba74;
    background: #fff;
    color: #c2410c;
    cursor: pointer;
    line-height: 1.3;
    font-family: inherit;
}
a.shop-popular-chip:hover,
button.shop-popular-chip:hover {
    background: #ffedd5;
    border-color: #fb923c;
}
/* Популярное: только подсветка ряда (как референс), без звезды */
.shop2-under-title--popular {
    display: inline-block;
    max-width: 100%;
    padding: 4px 10px;
    margin: -4px -6px;
    border-radius: 6px;
    color: #c44d2b;
    background: #fff5ee;
    box-sizing: border-box;
}
.shop2-under-title--popular:hover {
    color: #b03d26;
    background: #fef2e8;
}
.shop2-under-subchip--popular {
    margin: 2px -8px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff5ee;
}
.shop2-under-subchip--popular a {
    font-weight: 600;
    color: #c44d2b;
    text-decoration: none;
}
.shop2-under-subchip--popular a:hover {
    color: #b03d26;
    text-decoration: underline;
}

/* Цена не указана — запрос в чат, без корзины */
.fox-price-ask-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #dc2222;
    background: #fff;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.25;
    text-align: center;
}
.fox-price-ask-btn:hover {
    background: #fef2f2;
}
.shop2-price-ask-btn--pdp {
    font-size: 15px;
    padding: 8px 18px;
}
.shop2-product__price--missing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.shop2-product__no-price-buy-hint {
    margin: 12px 0 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
}
.shop2-card__no-price-cart-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
}
.shop2-pdp-similar-card-wrap {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shop2-pdp-similar-card-wrap:hover {
    border-color: #fecaca;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.shop2-pdp-similar-card-wrap .shop2-pdp-similar-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.shop2-pdp-similar-card-wrap .shop2-pdp-similar-card:hover {
    box-shadow: none;
}
.shop2-pdp-similar-card__hit {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.shop2-pdp-similar-ask {
    margin: 0 10px 10px;
    align-self: flex-start;
}
.shop2-promo-ribbon__prices--ask {
    margin: 0;
}
