:root {
    --pt-bg: #f5f2ec;
    --pt-surface: #ffffff;
    --pt-surface-muted: #f7f4ee;
    --pt-ink: #12141a;
    --pt-ink-muted: #565d6b;
    --pt-ink-soft: #8a919c;
    --pt-border: #e7e3da;
    --pt-border-strong: #d9d3c6;
    --pt-brand: #f2a900;
    --pt-brand-dark: #cc8f00;
    --pt-brand-deep: #7a3b00;
    --pt-header: #0f1722;
    --pt-header-surface: #16202d;
    --pt-header-ink: #f2f4f7;
    --pt-header-muted: #9aa5b4;
    --pt-danger: #c0392b;
    --pt-success: #2e8b57;
    --pt-info: #2f6fd1;
    --pt-shadow-sm: 0 1px 2px rgba(17, 20, 26, 0.06);
    --pt-shadow-md: 0 8px 24px -12px rgba(17, 20, 26, 0.18);
    --pt-shadow-lg: 0 24px 60px -30px rgba(17, 20, 26, 0.35);
    --pt-radius-xs: 6px;
    --pt-radius-sm: 10px;
    --pt-radius: 14px;
    --pt-radius-lg: 20px;
    --pt-radius-xl: 28px;
    --pt-font-display: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --pt-font-body: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --pt-container: min(1440px, 100%);
    /* Единая высота контролов «цена / ед. / кол-во» */
    --pt-control-h: 40px;
    --pt-control-h-sm: 36px;
    /* Нативные select / степпер: как у Bootstrap, без «капсулы» (выпадающий список ОС всё равно прямоугольный) */
    --pt-ctrl-radius: 0.375rem;
    --pt-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 6.25L8 9.75l3.5-3.5' stroke='%23565d6b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { height: 100%; }
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: var(--pt-bg);
    color: var(--pt-ink);
    font-family: var(--pt-font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pt-font-display);
    font-weight: 700;
    color: var(--pt-ink);
    line-height: 1.2;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.25rem, 0.8vw + 1rem, 1.75rem); }

a { color: var(--pt-brand-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--pt-brand-dark); }

button, input, select, textarea { font-family: inherit; }

.pt-app { min-height: 100%; display: flex; flex-direction: column; }
.pt-main { flex: 1; padding: 24px 0 80px; }
.pt-main__inner { padding-left: clamp(12px, 2vw, 24px); padding-right: clamp(12px, 2vw, 24px); }
.pt-page > h1:first-child,
.pt-page > h2:first-child { margin-top: 0; }

.pt-skip-link { position: absolute; top: -100px; left: 0; background: var(--pt-ink); color: #fff; padding: 10px 14px; z-index: 2000; border-radius: 0 0 10px 0; }
.pt-skip-link:focus { top: 0; }

/* HEADER */
.pt-header { position: sticky; top: 0; z-index: 1040; background: var(--pt-header); color: var(--pt-header-ink); box-shadow: 0 1px 0 rgba(255,255,255,0.04), var(--pt-shadow-md); }
.pt-topbar { background: rgba(0,0,0,0.25); font-size: 13px; padding: 8px 0; color: var(--pt-header-muted); }
.pt-topbar__badge { background: linear-gradient(135deg, rgba(242,169,0,0.18), rgba(242,169,0,0.04)); border: 1px solid rgba(242,169,0,0.3); color: #ffd87c; padding: 4px 12px; border-radius: 999px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.pt-topbar__link { color: var(--pt-header-ink); display: inline-flex; align-items: center; gap: 6px; }
.pt-topbar__link:hover { color: var(--pt-brand); }
.pt-topbar__muted { color: var(--pt-header-muted); }

.pt-navbar { padding: 14px 0 0; }
.pt-navbar > .container { padding-bottom: 14px; gap: 16px; }
.pt-navbar__burger { border: 0; background: transparent; color: var(--pt-header-ink); font-size: 28px; padding: 4px 8px; margin-left: -6px; }
.pt-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--pt-header-ink); text-decoration: none; }
.pt-logo:hover { color: var(--pt-header-ink); }
.pt-logo__mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--pt-brand) 0%, var(--pt-brand-dark) 100%); display: grid; place-items: center; color: #fff; font-size: 22px; box-shadow: 0 8px 18px -10px rgba(242,169,0,0.8); flex-shrink: 0; }
.pt-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.pt-logo__name { font-family: var(--pt-font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pt-logo__sub { font-size: 12px; color: var(--pt-header-muted); font-weight: 500; }

.pt-search { display: flex; flex: 1; max-width: 520px; background: var(--pt-header-surface); border-radius: 14px; padding: 4px; border: 1px solid rgba(255,255,255,0.06); transition: border-color .15s ease, background .15s ease; }
.pt-search:focus-within { border-color: rgba(242,169,0,0.6); background: #1b2636; }
.pt-search input { border: 0; background: transparent; color: var(--pt-header-ink); box-shadow: none !important; padding: 10px 14px; }
.pt-search input::placeholder { color: var(--pt-header-muted); }
.pt-search input:focus { color: var(--pt-header-ink); background: transparent; }
.pt-search .btn { background: var(--pt-brand); color: #1a1304; border: 0; font-weight: 600; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; }
.pt-search .btn:hover { background: #ffc23d; color: #1a1304; }
.pt-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    color: var(--pt-header-muted);
    text-decoration: none;
    border-radius: 8px;
}
.pt-search__clear:hover { color: var(--pt-header-ink); background: rgba(255,255,255,0.06); }
.pt-search-reset { font-weight: 600; white-space: nowrap; }

.pt-header__actions .pt-header__action {
    display: inline-flex; align-items: center; gap: 10px; color: var(--pt-header-ink);
    padding: 8px 12px; border-radius: 12px; position: relative; transition: background .15s ease;
}
.pt-header__action:hover { background: rgba(255,255,255,0.06); color: var(--pt-header-ink); }
.pt-header__action i { font-size: 22px; }
.pt-header__action-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.pt-header__action-title { font-size: 12px; color: var(--pt-header-muted); }
.pt-header__action-sub { font-size: 14px; font-weight: 600; }
.pt-header__action--cart .pt-header__action-sub { white-space: nowrap; }
.pt-header__action.pt-btn-primary { background: var(--pt-brand); color: #1a1304; font-weight: 600; }
.pt-header__action.pt-btn-primary:hover { background: #ffc23d; color: #1a1304; }
.pt-header__badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--pt-brand); color: #1a1304; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--pt-header);
}
.pt-header__badge[hidden] { display: none; }

.pt-navbar__menu { background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.04); }
.pt-navbar__menu > .container { padding-top: 8px; padding-bottom: 8px; gap: 6px; }
.pt-navbar__item {
    color: var(--pt-header-muted); padding: 8px 14px; border-radius: 10px;
    display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px;
    transition: background .15s ease, color .15s ease;
}
.pt-navbar__item:hover { background: rgba(255,255,255,0.06); color: var(--pt-header-ink); }
.pt-navbar__item.is-active { background: rgba(242,169,0,0.15); color: #ffd87c; }

.pt-assort { display: inline-flex; align-items: center; gap: 10px; }
.pt-assort__label { color: var(--pt-header-muted); font-size: 13px; }
.pt-assort__toggle { display: inline-flex; padding: 4px; background: rgba(0,0,0,0.3); border-radius: 999px; border: 1px solid rgba(255,255,255,0.05); }
.pt-assort__btn { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--pt-header-muted); transition: all .15s ease; }
.pt-assort__btn:hover { color: var(--pt-header-ink); }
.pt-assort__btn.is-active { background: var(--pt-brand); color: #1a1304; }

/* OFFCANVAS MOBILE */
.pt-offcanvas { background: var(--pt-header); color: var(--pt-header-ink); }
.pt-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,0.06); }
.pt-offcanvas__user { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,0.04); border-radius: 12px; }
.pt-offcanvas__user i { font-size: 32px; color: var(--pt-brand); }
.pt-offcanvas__name { font-weight: 700; }
.pt-offcanvas__company { font-size: 12px; color: var(--pt-header-muted); }
.pt-offcanvas__nav { display: flex; flex-direction: column; gap: 4px; }
.pt-offcanvas__link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--pt-header-ink); border-radius: 10px; font-weight: 500; }
.pt-offcanvas__link:hover { background: rgba(255,255,255,0.06); color: var(--pt-header-ink); }
.pt-offcanvas__badge { margin-left: auto; background: var(--pt-brand); color: #1a1304; font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.pt-offcanvas__contacts { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 14px; }
.pt-offcanvas__title { font-size: 12px; text-transform: uppercase; color: var(--pt-header-muted); letter-spacing: 0.08em; margin-bottom: 8px; }

/* BOTTOM NAV */
.pt-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
    border-top: 1px solid var(--pt-border);
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.pt-bottomnav__item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 11px; color: var(--pt-ink-muted); padding: 6px 4px; border-radius: 12px;
    transition: color .15s ease, background .15s ease;
}
.pt-bottomnav__item i { font-size: 22px; }
.pt-bottomnav__item.is-active { color: var(--pt-brand-deep); background: rgba(242,169,0,0.12); }
.pt-bottomnav__item span { font-weight: 500; }
@media (max-width: 991.98px) { body { padding-bottom: 74px; } }

/* BREADCRUMB — Битрикс рендерит .bx-breadcrumb с float:left;white-space:nowrap */
.bx-breadcrumb {
    display: flex !important; flex-wrap: wrap; align-items: center; gap: 2px 0;
    margin: 6px 0 18px !important; overflow: hidden; max-width: 100%;
}
.bx-breadcrumb .bx-breadcrumb-item {
    float: none !important; white-space: nowrap; margin: 0 !important;
    font-size: 13px; color: var(--pt-ink-muted); display: flex; align-items: center;
}
/* разделитель — убираем иконку Font Awesome, ставим стрелку CSS */
.bx-breadcrumb .bx-breadcrumb-item i.fa { display: none !important; }
.bx-breadcrumb .bx-breadcrumb-item + .bx-breadcrumb-item::before {
    content: "›"; margin: 0 6px; color: var(--pt-border-strong); font-size: 16px; line-height: 1;
}
.bx-breadcrumb .bx-breadcrumb-item a,
.bx-breadcrumb .bx-breadcrumb-item span { font-family: inherit; font-size: 13px; white-space: nowrap; }
.bx-breadcrumb .bx-breadcrumb-item a { color: var(--pt-ink-muted); }
.bx-breadcrumb .bx-breadcrumb-item a:hover { color: var(--pt-brand-deep); }
/* последний пункт (текущая страница) — обрезаем длинное название */
.bx-breadcrumb .bx-breadcrumb-item:last-child {
    overflow: hidden; min-width: 0; flex-shrink: 1;
}
.bx-breadcrumb .bx-breadcrumb-item:last-child span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 50ch;
}
/* Bootstrap-крошки на всякий случай */
.breadcrumb { flex-wrap: wrap; overflow: hidden; max-width: 100%; margin: 0; padding: 6px 0 18px; font-size: 13px; }
.breadcrumb a { color: var(--pt-ink-muted); }
.breadcrumb a:hover { color: var(--pt-brand-deep); }

/* BUTTONS */
.btn { border-radius: var(--pt-radius-sm); font-weight: 600; transition: all .15s ease; }
.btn-primary, .pt-btn-primary { background: var(--pt-brand); border-color: var(--pt-brand); color: #1a1304; }
.btn-primary:hover, .pt-btn-primary:hover { background: var(--pt-brand-dark); border-color: var(--pt-brand-dark); color: #1a1304; }
.btn-outline-primary { color: var(--pt-brand-deep); border-color: var(--pt-brand); }
.btn-outline-primary:hover { background: var(--pt-brand); border-color: var(--pt-brand); color: #1a1304; }
.btn-dark { background: var(--pt-header); border-color: var(--pt-header); }
.btn-dark:hover { background: #1b2636; border-color: #1b2636; }
.pt-btn-ghost { background: transparent; color: var(--pt-ink); border: 1px solid var(--pt-border-strong); }
.pt-btn-ghost:hover { background: var(--pt-surface-muted); color: var(--pt-ink); }

/* CARDS & SURFACES */
.pt-card { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow-sm); }
.pt-card--solid { padding: 20px; }
.pt-card--hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pt-card--hover:hover { transform: translateY(-2px); box-shadow: var(--pt-shadow-md); border-color: var(--pt-border-strong); }

.pt-hint { display: flex; gap: 12px; padding: 16px 20px; border-radius: var(--pt-radius); background: linear-gradient(135deg, #fff8e6 0%, #fff 100%); border: 1px solid #f2dea8; color: #614700; }
.pt-hint i { font-size: 22px; color: var(--pt-brand-dark); flex-shrink: 0; }
.pt-hint--info { background: linear-gradient(135deg, #eaf2ff 0%, #fff 100%); border-color: #c5d7f7; color: #1e3a70; }
.pt-hint--info i { color: var(--pt-info); }
.pt-hint--danger { background: linear-gradient(135deg, #ffecec 0%, #fff 100%); border-color: #f3c6c6; color: #7a1e17; }
.pt-hint--danger i { color: var(--pt-danger); }
.pt-hint__title { font-weight: 700; margin-bottom: 2px; }
.pt-hint__text { font-size: 14px; }

/* HERO */
.pt-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(242,169,0,0.25), transparent 60%),
        radial-gradient(800px 500px at -10% 110%, rgba(122,59,0,0.25), transparent 70%),
        linear-gradient(135deg, #0f1722 0%, #16202d 100%);
    color: var(--pt-header-ink); border-radius: var(--pt-radius-xl);
    padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 64px);
    margin-bottom: 32px;
}
.pt-hero::before { content: ''; position: absolute; inset: auto -40px -40px auto; width: 340px; height: 340px; background: radial-gradient(circle, rgba(242,169,0,0.35) 0%, transparent 70%); filter: blur(10px); }
.pt-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(242,169,0,0.18); color: #ffd87c; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; border: 1px solid rgba(242,169,0,0.3); }
.pt-hero h1 { color: #fff; font-size: clamp(1.75rem, 3vw + 1rem, 3.25rem); margin: 18px 0 14px; max-width: 16ch; }
.pt-hero__lead { font-size: clamp(15px, 1vw + 12px, 18px); color: #cfd5df; max-width: 54ch; margin-bottom: 28px; }
.pt-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pt-hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-top: 40px; }
.pt-hero__stat { padding: 18px 20px; border-radius: var(--pt-radius); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.pt-hero__stat strong { font-size: 24px; font-family: var(--pt-font-display); color: #fff; display: block; margin-bottom: 4px; }
.pt-hero__stat span { font-size: 13px; color: #9aa5b4; }

/* FEATURE GRID */
.pt-features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pt-feature { padding: 24px; border-radius: var(--pt-radius); background: var(--pt-surface); border: 1px solid var(--pt-border); transition: transform .2s ease, box-shadow .2s ease; }
.pt-feature:hover { transform: translateY(-3px); box-shadow: var(--pt-shadow-md); }
.pt-feature__icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #fff8e6 0%, #ffecb8 100%); display: grid; place-items: center; color: var(--pt-brand-dark); font-size: 24px; margin-bottom: 16px; }
.pt-feature h3 { font-size: 18px; margin-bottom: 6px; }
.pt-feature p { color: var(--pt-ink-muted); font-size: 14px; margin: 0; }

/* SECTION */
.pt-section { margin: 48px 0; }
.pt-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pt-section__head-main { flex: 1; min-width: 0; }
.pt-section__title {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25em 0.55em;
}
.pt-section__title-meta {
    font-family: var(--pt-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pt-ink-muted);
    white-space: nowrap;
}
.pt-section__subtitle { color: var(--pt-ink-muted); font-size: 15px; margin: 0; }
.pt-section__subtitle--inline { margin-top: 6px; font-size: 14px; }

/* CATALOG */
.pt-catalog {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
@media (min-width: 992px) {
    .pt-catalog {
        grid-template-columns: 280px minmax(0, 1fr);
    }
    .pt-catalog-sticky-dock { display: none !important; }
    .pt-catalog__filters { grid-column: 1; }
    .pt-catalog__products-wrap { grid-column: 2; min-width: 0; }
}

/* Мобильный каталог: раздел + поиск закреплены под шапкой через sticky. */
/* Содержащий блок для sticky — .pt-page (высокий), поэтому дока держится весь скролл. */
/* Заголовок «Каталог» прокручивается как обычный контент — это стандартное поведение. */
.pt-catalog-sticky-dock {
    margin: 0 0 16px;
    padding: 10px 0 12px;
    background: var(--pt-bg);
    border-bottom: 1px solid var(--pt-border);
}
@media (max-width: 991.98px) {
    .pt-catalog-sticky-dock {
        position: sticky;
        top: var(--pt-header-height, 72px);
        z-index: 25;
        margin-left: calc(-1 * clamp(12px, 2vw, 24px));
        margin-right: calc(-1 * clamp(12px, 2vw, 24px));
        padding-left: clamp(12px, 2vw, 24px);
        padding-right: clamp(12px, 2vw, 24px);
        box-shadow: 0 6px 20px -14px rgba(17, 20, 26, 0.28);
    }
}
.pt-catalog-sticky-dock__row--section {
    margin-bottom: 10px;
}
.pt-catalog-sticky-dock__row--section .form-select {
    font-weight: 500;
}
.pt-catalog-sticky-dock__search {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}
.pt-catalog-sticky-dock__search .form-control {
    flex: 1;
    min-width: 0;
}
.pt-catalog-sticky-dock__submit {
    flex-shrink: 0;
    padding-left: 16px;
    padding-right: 16px;
}
.pt-catalog-sticky-dock__clear {
    flex-shrink: 0;
    padding-left: 10px;
    padding-right: 10px;
}
.pt-catalog-sticky-dock__filters-btn {
    padding-left: 12px;
    padding-right: 12px;
}

.pt-catalog-offcanvas.offcanvas {
    --bs-offcanvas-width: min(100vw - 24px, 420px);
}
.pt-catalog-offcanvas .offcanvas-title {
    font-family: var(--pt-font-display);
    font-weight: 700;
}
.pt-catalog-offcanvas .offcanvas-body {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.pt-catalog__filters { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 18px; position: sticky; top: 140px; align-self: start; z-index: 10; }
.pt-catalog__filters h4 { font-size: 15px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pt-ink-muted); }

.pt-section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pt-section-card { display: block; padding: 18px; border-radius: var(--pt-radius); background: var(--pt-surface); border: 1px solid var(--pt-border); color: var(--pt-ink); transition: all .2s ease; }
.pt-section-card:hover { border-color: var(--pt-brand); box-shadow: var(--pt-shadow-md); color: var(--pt-ink); transform: translateY(-2px); }
.pt-section-card__name { font-weight: 700; font-family: var(--pt-font-display); }
.pt-section-card__count { font-size: 13px; color: var(--pt-ink-muted); margin-top: 4px; }

/* Каталог: на типичных экранах — 2 плитки в ряд (шире карточка, влезает ед. изм.).
   С широкой области контента снова auto-fill для 3+ колонок. */
.pt-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}
@media (max-width: 575.98px) {
    .pt-products { gap: 10px; }
}
@media (min-width: 1200px) {
    .pt-products {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
    }
}
.pt-product {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--pt-surface);
    /* visible — иначе при узкой колонке обрезается блок «единица + количество» */
    border: 1px solid var(--pt-border); border-radius: var(--pt-radius); overflow: visible;
    transition: all .2s ease; position: relative;
    container-type: inline-size;
    container-name: pt-card;
}
.pt-product:hover { border-color: var(--pt-brand); box-shadow: var(--pt-shadow-md); transform: translateY(-2px); }
.pt-product__image {
    aspect-ratio: 1; min-width: 0; min-height: 0; width: 100%;
    background: var(--pt-surface-muted); display: grid; place-items: center; overflow: hidden; position: relative;
    border-radius: var(--pt-radius) var(--pt-radius) 0 0;
}
.pt-product__image img {
    min-width: 0; min-height: 0; max-width: 100%; max-height: 100%;
    width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box;
}
.pt-product__image-placeholder { color: var(--pt-ink-soft); font-size: 42px; }
.pt-product__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; }
.pt-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; background: var(--pt-brand); color: #1a1304; }
.pt-badge--new { background: var(--pt-success); color: #fff; }
.pt-badge--hit { background: var(--pt-info); color: #fff; }
.pt-product__body {
    padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1;
    background: var(--pt-surface);
    border-radius: 0 0 var(--pt-radius) var(--pt-radius);
}
.pt-product__name { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--pt-ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-product__name a { color: inherit; }
.pt-product__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-product__meta-chip { font-size: 11px; color: var(--pt-ink-muted); background: var(--pt-surface-muted); padding: 2px 8px; border-radius: 999px; }
/* Футер плитки: 3 столбца — цена | растягивающийся блок единицы заказа | степпер.
   CSS Grid даёт надёжное «1fr» для среднего столбца независимо от поведения <select>. */
.pt-product__footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--pt-border);
    min-width: 0;
}
.pt-product__price-wrap { min-width: 0; }
.pt-product-card-order {
    display: grid;
    /* Селект сжимается (ellipsis); колонка степпера — auto, чтобы «+» не обрезался */
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 6px;
    align-items: center;
    min-width: 0;
}
.pt-product__price { font-family: var(--pt-font-display); font-size: 18px; font-weight: 800; color: var(--pt-ink); line-height: 1; white-space: nowrap; }
.pt-product__price-unit { font-size: 12px; color: var(--pt-ink-muted); font-weight: 500; }
.pt-product__price-hidden { font-size: 13px; color: var(--pt-ink-soft); }
.pt-product__add { margin-left: auto; border: 0; background: var(--pt-brand); color: #1a1304; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: background .15s ease; }
.pt-product__add:hover { background: var(--pt-brand-dark); color: #1a1304; }
.pt-product__add[disabled] { background: var(--pt-surface-muted); color: var(--pt-ink-soft); cursor: not-allowed; }

/* Карточка товара: цена и блок заказа в одну линию */
.pt-product-order-block {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pt-product-order-block::-webkit-scrollbar { display: none; }
.pt-product-order-block__price {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 8.75rem;
}
.pt-product__price--detail {
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
}
.pt-product-order-block__form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}
.pt-product-order__submit {
    height: var(--pt-control-h);
    padding: 0 18px;
    border-radius: var(--pt-ctrl-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--pt-shadow-sm);
}
.btn.btn-primary.pt-product-order__submit {
    --bs-btn-border-radius: var(--pt-ctrl-radius);
    border-radius: var(--pt-ctrl-radius) !important;
}
.pt-product-order-block__form .pt-qty--unified {
    flex-shrink: 0;
}

/* AUTH */
.pt-auth { max-width: 480px; margin: 40px auto; padding: 36px; background: var(--pt-surface); border-radius: var(--pt-radius-lg); box-shadow: var(--pt-shadow-lg); border: 1px solid var(--pt-border); }
.pt-auth__title { margin: 0 0 8px; font-size: 26px; }
.pt-auth__lead { color: var(--pt-ink-muted); margin-bottom: 24px; font-size: 14px; }
.pt-auth .form-control, .pt-auth .form-select { border-radius: 12px; padding: 12px 16px; border: 1px solid var(--pt-border-strong); font-size: 15px; }
.pt-auth .form-control:focus, .pt-auth .form-select:focus { border-color: var(--pt-brand); box-shadow: 0 0 0 3px rgba(242,169,0,0.2); }
.pt-auth .form-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.pt-auth .btn-primary { padding: 12px 20px; font-size: 15px; width: 100%; }
.pt-auth__meta { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--pt-border); color: var(--pt-ink-muted); font-size: 13px; }
.pt-auth__error { padding: 12px 16px; border-radius: 12px; background: #fbecec; border: 1px solid #f0c2c2; color: #7a1e17; margin-bottom: 16px; font-size: 14px; }

/* PERSONAL CABINET */
.pt-personal { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .pt-personal { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); } }
.pt-personal__aside { display: flex; flex-direction: column; gap: 18px; }
.pt-profile { padding: 24px; border-radius: var(--pt-radius); background: linear-gradient(135deg, #0f1722 0%, #16202d 100%); color: #fff; position: relative; overflow: hidden; }
.pt-profile::after { content: ''; position: absolute; top: -40px; right: -40px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(242,169,0,0.3) 0%, transparent 70%); }
.pt-profile__label { font-size: 12px; text-transform: uppercase; color: #9aa5b4; letter-spacing: 0.06em; margin-bottom: 8px; }
.pt-profile__company { font-family: var(--pt-font-display); font-size: 22px; font-weight: 800; margin-bottom: 6px; position: relative; z-index: 1; }
.pt-profile__inn { color: #cfd5df; font-size: 13px; position: relative; z-index: 1; }
.pt-profile__list { margin-top: 18px; display: grid; gap: 12px; position: relative; z-index: 1; }
.pt-profile__list-item { display: flex; gap: 10px; align-items: flex-start; color: #cfd5df; font-size: 14px; }
.pt-profile__list-item i { color: var(--pt-brand); margin-top: 2px; flex-shrink: 0; }
.pt-profile__list-item strong { color: #fff; font-weight: 600; display: block; }

.pt-manager { padding: 20px; border-radius: var(--pt-radius); background: var(--pt-surface); border: 1px solid var(--pt-border); }
.pt-manager__label { font-size: 12px; text-transform: uppercase; color: var(--pt-ink-muted); letter-spacing: 0.06em; margin-bottom: 10px; }
.pt-manager__name { font-family: var(--pt-font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pt-manager__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pt-nav-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pt-nav-tile { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--pt-radius); background: var(--pt-surface); border: 1px solid var(--pt-border); color: var(--pt-ink); transition: all .2s ease; }
.pt-nav-tile:hover { border-color: var(--pt-brand); box-shadow: var(--pt-shadow-md); color: var(--pt-ink); transform: translateY(-2px); }
.pt-nav-tile i { font-size: 24px; color: var(--pt-brand-dark); }
.pt-nav-tile strong { display: block; font-family: var(--pt-font-display); }
.pt-nav-tile span { font-size: 13px; color: var(--pt-ink-muted); }

.pt-kpi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; }
.pt-kpi__card { padding: 18px; border-radius: var(--pt-radius); background: var(--pt-surface); border: 1px solid var(--pt-border); }
.pt-kpi__label { font-size: 12px; text-transform: uppercase; color: var(--pt-ink-muted); letter-spacing: 0.06em; }
.pt-kpi__value { font-family: var(--pt-font-display); font-size: 24px; font-weight: 800; margin-top: 4px; }
.pt-kpi__sub { font-size: 13px; color: var(--pt-ink-muted); margin-top: 2px; }

/* ORDERS TABLE */
.pt-orders { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); overflow: hidden; }
.pt-orders table { width: 100%; border-collapse: collapse; }
.pt-orders th { background: var(--pt-surface-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pt-ink-muted); text-align: left; padding: 12px 16px; }
.pt-orders td { padding: 14px 16px; border-top: 1px solid var(--pt-border); font-size: 14px; vertical-align: middle; }
.pt-orders tr:hover td { background: var(--pt-surface-muted); }
.pt-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.pt-status--new { background: #eaf2ff; color: #1e3a70; }
.pt-status--processing { background: #fff5e0; color: #7a5200; }
.pt-status--done { background: #e0f3e9; color: #1e5c33; }
.pt-status--cancelled { background: #fbecec; color: #7a1e17; }

/* CART */
.pt-cart { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .pt-cart { grid-template-columns: minmax(0, 1fr) 360px; } }
.pt-cart__items { display: flex; flex-direction: column; gap: 12px; }
/* min-width/min-height: 0 — иначе min-height:auto у грид-ячейки тянет строку по интрисик-высоте полного фото */
.pt-cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 14px; padding: 14px; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); align-items: start; }
.pt-cart-item__image {
    width: 72px;
    height: 72px;
    min-width: 0;
    min-height: 0;
    max-width: 72px;
    max-height: 72px;
    border-radius: 10px;
    background: var(--pt-surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.pt-cart-item__image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 6px;
    box-sizing: border-box;
}
.pt-cart-item__body { min-width: 0; }
/* Название слева, ед. изм. / кол-во / удалить — справа в одной строке */
.pt-cart-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
    min-width: 0;
}
.pt-cart-item__name {
    font-weight: 600;
    color: var(--pt-ink);
    flex: 1 1 10rem;
    min-width: 0;
    line-height: 1.35;
}
.pt-cart-item__meta { font-size: 13px; color: var(--pt-ink-muted); margin-top: 8px; }
.pt-cart-item__toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    min-width: 0;
    flex: 0 0 auto;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pt-cart-item__toolbar::-webkit-scrollbar { display: none; height: 0; }
.pt-cart-item__unit {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: 12rem;
}
.pt-cart-item__remove {
    flex-shrink: 0;
    width: var(--pt-control-h);
    height: var(--pt-control-h);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pt-ctrl-radius);
    border: 1px solid rgba(192, 57, 43, 0.35);
    background: var(--pt-surface);
    color: var(--pt-danger);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    box-shadow: var(--pt-shadow-sm);
}
.pt-cart-item__remove:hover {
    background: #fbecec;
    border-color: var(--pt-danger);
    color: #7a1e17;
}

/* Нативный select: скруглённое поле (список опций — системный) */
/* !important — перебиваем Bootstrap .form-select / reboot на плоских углах */
select.pt-select {
    height: var(--pt-control-h);
    padding: 0 2rem 0 0.75rem;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pt-ink);
    background-color: var(--pt-surface);
    border: 1px solid var(--pt-border-strong) !important;
    border-radius: var(--pt-ctrl-radius) !important;
    box-shadow: var(--pt-shadow-sm);
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: var(--pt-select-chevron);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
    min-width: 0;
}
select.pt-select:hover { border-color: var(--pt-ink-soft); }
select.pt-select:focus {
    outline: none;
    border-color: var(--pt-brand);
    box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.22);
}
.pt-select--detail {
    flex: 0 1 auto;
    width: auto;
    max-width: 13rem;
    min-width: 5.5rem;
}
.pt-select--cart {
    height: var(--pt-control-h);
}
/* Плитка каталога: селект растягивается на всё свободное место внутри order-обёртки.
   Специфичность select.pt-select.pt-select--card > select.pt-select — иначе
   значение «упак (×12)» зажимается базовым padding-right: 2rem и не видно. */
select.pt-select.pt-select--card {
    height: 32px;
    padding: 0 1.25rem 0 0.5rem;
    font-size: 12px;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    background-position: right 6px center;
    background-size: 10px;
    text-overflow: ellipsis;
}
.pt-product-order__unit { min-width: 0; }

.pt-qty--catalog { flex: 0 0 auto; }

/* Степпер количества — единая высота, скругление как у Bootstrap */
.pt-qty {
    --pt-qty-h: var(--pt-control-h);
    display: inline-flex;
    align-items: stretch;
    height: var(--pt-qty-h);
    border: 1px solid var(--pt-border-strong);
    border-radius: var(--pt-ctrl-radius);
    overflow: hidden;
    background: var(--pt-surface);
    box-shadow: var(--pt-shadow-sm);
    flex-shrink: 0;
}
.pt-qty button {
    border: 0;
    background: transparent;
    width: var(--pt-qty-h);
    min-width: var(--pt-qty-h);
    height: var(--pt-qty-h);
    font-size: 18px;
    line-height: 1;
    color: var(--pt-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.pt-qty button:hover { background: var(--pt-surface-muted); }
.pt-qty input {
    width: 42px;
    border: 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    height: var(--pt-qty-h);
    min-height: 0;
    padding: 0;
}
.pt-qty input:focus { outline: none; }
.pt-qty--unified {
    --pt-qty-h: var(--pt-control-h);
}
.pt-qty--catalog {
    --pt-qty-h: 32px;
    border-radius: var(--pt-ctrl-radius);
}
.pt-qty--catalog button {
    width: 26px;
    min-width: 26px;
    font-size: 15px;
}
.pt-qty--catalog input {
    width: 28px;
    font-size: 12px;
    font-weight: 700;
}
.pt-qty--catalog input::-webkit-outer-spin-button,
.pt-qty--catalog input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pt-qty--catalog input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}
.pt-qty--unified input::-webkit-outer-spin-button,
.pt-qty--unified input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pt-qty--unified input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}
.pt-qty--catalog button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.pt-catalog-qty-input {
    cursor: default;
    color: var(--pt-ink);
}

.pt-cart__summary { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 20px; position: sticky; top: 140px; align-self: start; }
.pt-cart__row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--pt-ink-muted); }
.pt-cart__row--total { border-top: 1px dashed var(--pt-border); margin-top: 10px; padding-top: 14px; font-size: 16px; color: var(--pt-ink); font-weight: 700; }
.pt-cart__row--total strong { font-family: var(--pt-font-display); font-size: 22px; }

.pt-delivery-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pt-delivery-dates input { position: absolute; opacity: 0; pointer-events: none; }
.pt-delivery-dates label {
    cursor: pointer; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--pt-border-strong);
    font-weight: 600; font-size: 13px; text-align: center; transition: all .15s ease;
    display: inline-flex; flex-direction: column; gap: 2px; min-width: 84px;
}
.pt-delivery-dates label:hover { border-color: var(--pt-brand); }
.pt-delivery-dates input:checked + label { background: var(--pt-brand); border-color: var(--pt-brand); color: #1a1304; box-shadow: 0 6px 16px -8px rgba(242,169,0,0.5); }
.pt-delivery-dates__dow { font-size: 11px; font-weight: 500; color: var(--pt-ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pt-delivery-dates input:checked + label .pt-delivery-dates__dow { color: #614700; }

/* EMPTY STATES */
.pt-empty { padding: 48px 24px; text-align: center; background: var(--pt-surface); border: 1px dashed var(--pt-border-strong); border-radius: var(--pt-radius); }
.pt-empty__icon { font-size: 48px; color: var(--pt-brand-dark); margin-bottom: 12px; }
.pt-empty__title { font-family: var(--pt-font-display); font-size: 20px; margin-bottom: 6px; }
.pt-empty__text { color: var(--pt-ink-muted); margin-bottom: 16px; }

/* FOOTER */
.pt-footer { background: #0c131c; color: #cfd5df; padding: 48px 0 30px; margin-top: 40px; }
.pt-footer__title { color: #fff; font-family: var(--pt-font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.pt-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-footer__list a { color: #cfd5df; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.pt-footer__list a:hover { color: var(--pt-brand); }
.pt-footer__list i { color: var(--pt-brand); }
.pt-footer__tagline { color: #9aa5b4; font-size: 14px; margin: 18px 0 0; max-width: 40ch; }
.pt-logo--footer { color: #fff; }
.pt-logo--footer:hover { color: #fff; }
.pt-footer__muted { font-size: 13px; color: #9aa5b4; }
.pt-footer__bottom {
    margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #6f7885;
}

/* SMALL PRIVATE UTILS */
.pt-muted { color: var(--pt-ink-muted); }
.pt-divider { height: 1px; background: var(--pt-border); margin: 24px 0; border: 0; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-chip { background: var(--pt-surface-muted); border: 1px solid var(--pt-border); padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--pt-ink-muted); display: inline-flex; align-items: center; gap: 4px; }

/* PRODUCT DETAIL IMAGE */
.pt-product-detail__image {
    background: var(--pt-surface-muted); border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    max-height: 480px; min-height: 240px; padding: 16px;
}
.pt-product-detail__image img {
    max-width: 100%; max-height: 440px; width: auto; height: auto;
    object-fit: contain; display: block;
}
.pt-product-detail__placeholder { font-size: 120px; color: var(--pt-ink-soft); }

/* PRODUCT PROPERTIES — плоский dl (dt/dd подряд): надёжнее для скринридеров и вложенных браузеров */
.pt-props {
    display: grid;
    grid-template-columns: minmax(120px, 40%) 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    overflow: hidden;
}
.pt-props dt,
.pt-props dd {
    padding: 8px 12px;
    font-size: 13px;
    margin: 0;
    border-bottom: 1px solid var(--pt-border);
}
.pt-props dt {
    color: var(--pt-ink-muted);
    font-weight: 500;
    background: var(--pt-surface-muted);
}
.pt-props dd {
    color: var(--pt-ink);
}
.pt-props dt:last-of-type,
.pt-props dd:last-of-type {
    border-bottom: none;
}

/* FACET FILTERS */
.pt-facet { }
.pt-facet__title { font-size: 13px; font-weight: 600; color: var(--pt-ink); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.pt-facet__options { display: flex; flex-direction: column; gap: 2px; }
.pt-facet__option {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 8px; border-radius: 7px; cursor: pointer;
    font-size: 13px; color: var(--pt-ink); transition: background .12s;
    user-select: none;
}
.pt-facet__option:hover { background: var(--pt-surface-muted); }
.pt-facet__option.is-checked { background: rgba(242,169,0,0.13); color: var(--pt-brand-deep); }
.pt-facet__option input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--pt-brand); flex-shrink: 0; cursor: pointer; }
.pt-facet__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-facet__cnt { font-size: 11px; color: var(--pt-ink-soft); background: var(--pt-surface-muted); border-radius: 99px; padding: 1px 6px; flex-shrink: 0; }
.pt-facet__option.is-checked .pt-facet__cnt { background: rgba(242,169,0,0.2); color: var(--pt-brand-deep); }

/* FORMS */
.form-control, .form-select { border-radius: 10px; border-color: var(--pt-border-strong); padding: 10px 14px; }
.form-control:focus, .form-select:focus { border-color: var(--pt-brand); box-shadow: 0 0 0 3px rgba(242,169,0,0.18); }
textarea.form-control { min-height: 100px; }

/* MOBILE TWEAKS */
@media (max-width: 767.98px) {
    .pt-topbar { display: none; }
    .pt-navbar { padding-top: 10px; }
    .pt-logo__sub { display: none; }
    .pt-logo__name { font-size: 18px; }
    .pt-logo__mark { width: 36px; height: 36px; font-size: 18px; }
    .pt-header__action-text { display: none; }
    .pt-header__action { padding: 8px; }
    .pt-main { padding-top: 16px; padding-bottom: 90px; }
    .pt-hero { padding: 32px 22px; }
    .pt-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pt-hero__stat { padding: 12px 14px; }
    .pt-hero__stat strong { font-size: 18px; }
    .pt-catalog__filters { position: static; }
    .pt-orders table thead { display: none; }
    .pt-orders table, .pt-orders tbody, .pt-orders tr, .pt-orders td { display: block; width: 100%; }
    .pt-orders tr { padding: 10px; border-top: 1px solid var(--pt-border); }
    .pt-orders td { border: 0; padding: 4px 0; }
    .pt-cart-item { grid-template-columns: 64px minmax(0, 1fr); align-items: start; }
    .pt-cart-item__unit { max-width: min(100%, 12rem); flex: 0 1 auto; }
    .pt-cart-item__toolbar { gap: 6px; }
}

/* Bitrix sale.basket: компактное превью товара (перекрывает широкие правила шаблона на мобильных) */
.basket-items-list-item-container img.basket-item-image {
    max-width: 72px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (max-width: 580px) {
    .basket-items-list-item-container img.basket-item-image {
        max-width: 72px;
        max-height: 72px;
        margin: 0 auto;
    }
}

/* PANEL (Bitrix admin bar) safety */
#panel { z-index: 2000; }
