/* ООО "Фирма "Арсений"" — supermarket layout (mockup palette) */
:root {
    --op-bg: #f5f5f5;
    --op-surface: #ffffff;
    --op-text: #212121;
    --op-topbar: #0a1f14;
    --op-header: #1b432c;
    --op-header-deep: #153524;
    --op-graphite: #1b432c;
    --op-graphite-2: #0a1f14;
    --op-accent: #2d6a3e;
    --op-accent-hover: #256035;
    --op-bronze: #85bb65;
    --op-bronze-hover: #2d6a3e;
    --op-bronze-line: rgb(45 106 62 / 0.35);
    --op-sand: #ecfdf5;
    --op-border: #e0e0e0;
    --op-muted: #757575;
    --op-primary: #2d6a3e;
    --op-primary-dark: #1b432c;
    --op-search-btn: #263238;
    --op-font: "Onest", system-ui, sans-serif;
    --op-radius: 10px;
    --op-shadow: 0 4px 18px rgb(10 31 20 / 0.08);
    --op-shadow-hover: 0 8px 28px rgb(10 31 20 / 0.12);
    --sm-header-h: 64px;
    --sm-sidebar-w: 248px;
    --sm-sticky-top: 168px;
    --op-gold-line: linear-gradient(90deg, transparent, #c9a962 20%, #e8d5a3 50%, #c9a962 80%, transparent);
    --op-micro-bg: #eef3ef;
    --op-micro-text: #3d5347;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.optimus {
    margin: 0;
    font-family: var(--op-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--op-text);
    background: var(--op-bg);
    -webkit-font-smoothing: antialiased;
}

.op-main {
    background: var(--op-bg);
    padding: 14px 0 48px;
}

.optimus a {
    color: inherit;
    text-decoration: none;
}

.optimus img {
    max-width: 100%;
    height: auto;
    display: block;
}

.op-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* —— Top bar —— */
.op-topbar {
    background: var(--op-graphite);
    color: #e5e7eb;
    font-size: 12px;
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.op-topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    flex-wrap: wrap;
}

.op-topbar__left,
.op-topbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.op-pill-b2b {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--op-bronze);
    padding: 4px 10px;
    border: 1px solid var(--op-bronze-line);
    border-radius: 999px;
}

.op-region-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d1d5db;
    font-weight: 500;
}

.op-top-link {
    color: #d1d5db;
    transition: color 0.15s;
}

.op-top-link:hover {
    color: #fff;
}

.op-btn-partner {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid var(--op-bronze);
    color: var(--op-bronze);
    font-weight: 600;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
}

.op-btn-partner:hover {
    background: var(--op-bronze);
    color: var(--op-graphite);
}

.op-cart-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgb(255 255 255 / 0.06);
    border-radius: 8px;
    font-weight: 600;
}

.op-cart-top__amount {
    color: var(--op-bronze);
    font-variant-numeric: tabular-nums;
}

/* —— Main nav —— */
.op-header {
    background: var(--op-surface);
    border-bottom: 1px solid var(--op-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgb(17 24 39 / 0.04);
}

.op-header__row {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}

.op-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.op-brand__mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.op-brand__name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.op-brand__tag {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--op-muted);
    margin-top: 2px;
}

.op-search {
    display: flex;
    align-items: stretch;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 1px 2px rgb(17 24 39 / 0.04);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--op-border);
}

.op-search__catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: var(--op-graphite);
    color: #fff;
    border: none;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.op-search__catalog svg {
    opacity: 0.9;
}

.op-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 13px 16px;
    font: inherit;
    background: #fff;
    outline: none;
}

.op-search__input::placeholder {
    color: #9ca3af;
}

.op-search__submit {
    padding: 0 22px;
    border: none;
    background: var(--op-graphite);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.op-header__tools {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
}

.op-header__tools a {
    color: var(--op-graphite-2);
    transition: color 0.15s;
}

.op-header__tools a:hover {
    color: var(--op-bronze-hover);
}

/* Mega menu */
.op-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgb(17 24 39 / 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.op-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.op-mega {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 201;
    width: min(360px, 92vw);
    height: 100%;
    background: var(--op-surface);
    box-shadow: var(--op-shadow);
    transform: translateX(-102%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 24px;
}

.op-mega.is-open {
    transform: translateX(0);
}

.op-mega__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.op-mega__title {
    font-size: 1.1rem;
    font-weight: 700;
}

.op-mega__close {
    border: none;
    background: var(--op-sand);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.op-mega ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.op-mega li {
    border-bottom: 1px solid var(--op-border);
}

.op-mega a {
    display: block;
    padding: 12px 4px;
    font-weight: 500;
}

.op-mega a:hover {
    color: var(--op-bronze-hover);
}

/* Main */
.op-main {
    padding: 28px 0 56px;
}

.op-flash {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--op-radius);
    font-size: 14px;
}

.op-flash--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.op-flash--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Hero — always corporate (not legacy retail banners) */
.op-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, #fdfbf7 0%, #f3ebe0 48%, #ebe3d4 100%);
    border: 1px solid var(--op-bronze-line);
    border-radius: 14px;
    padding: 40px 44px;
    min-height: 280px;
    overflow: hidden;
    position: relative;
}

.op-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgb(197 160 89 / 0.12);
    pointer-events: none;
}

.op-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 22ch;
}

.op-hero__lead {
    margin: 0 0 22px;
    color: var(--op-muted);
    max-width: 42ch;
    font-size: 15px;
}

.op-hero__cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: var(--op-bronze);
    color: var(--op-graphite);
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.op-hero__cta:hover {
    background: var(--op-bronze-hover);
    transform: translateY(-1px);
}

.op-hero__visual {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.op-hero__tile {
    background: var(--op-surface);
    border-radius: 12px;
    border: 1px solid var(--op-bronze-line);
    padding: 16px;
    text-align: center;
    box-shadow: var(--op-shadow);
}

.op-hero__tile img {
    max-height: 100px;
    margin: 0 auto;
    object-fit: contain;
}

.op-hero__tile span {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--op-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Trust */
.op-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.op-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--op-surface);
    border: 1px solid var(--op-bronze-line);
    border-radius: var(--op-radius);
    font-size: 14px;
    font-weight: 600;
}

.op-trust__ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--op-sand);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Section */
.op-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 44px 0 18px;
    gap: 12px;
}

.op-section-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.op-section-head a {
    font-size: 14px;
    font-weight: 700;
    color: var(--op-bronze-hover);
}

/* Categories — supermarket-style row */
.op-categories {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.op-cat {
    background: var(--op-sand);
    border: 1px solid rgb(197 160 89 / 0.22);
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.op-cat:hover {
    box-shadow: var(--op-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--op-bronze);
}

.op-cat__glyph {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--op-graphite);
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.op-cat__glyph svg {
    width: 22px;
    height: 22px;
    stroke: var(--op-graphite);
}

.op-cat__label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    hyphens: auto;
}

/* Products */
.op-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.op-card {
    background: var(--op-surface);
    border: 1px solid var(--op-bronze-line);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.op-card:hover {
    box-shadow: var(--op-shadow-hover);
    border-color: var(--op-bronze);
}

.op-card__media {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.op-card__media img {
    max-height: 88%;
    object-fit: contain;
    padding: 8px;
}

.op-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--op-bronze);
    color: var(--op-graphite);
}

.op-card__unit {
    font-size: 1.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.op-card__unit small {
    font-size: 12px;
    font-weight: 600;
    color: var(--op-muted);
}

.op-card__pack {
    margin-top: 4px;
    font-size: 12px;
    color: var(--op-muted);
    font-variant-numeric: tabular-nums;
}

.op-card__title {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.op-card__title:hover {
    color: var(--op-bronze-hover);
}

.op-buy {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.op-qty {
    display: flex;
    border: 1px solid var(--op-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--op-bg);
}

.op-qty button {
    width: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--op-graphite);
}

.op-qty input {
    width: 36px;
    border: none;
    text-align: center;
    font: inherit;
    font-weight: 700;
    background: transparent;
}

.op-btn-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 10px;
    border: none;
    border-radius: 8px;
    background: var(--op-primary);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.op-btn-cart:hover {
    background: var(--op-primary-dark);
}

.op-stock-out {
    margin-top: 14px;
    text-align: center;
    padding: 10px;
    background: var(--op-bg);
    border-radius: 8px;
    font-size: 13px;
    color: var(--op-muted);
}

/* Catalog grid */
.op-grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.op-page-title {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.op-muted {
    color: var(--op-muted);
    font-size: 14px;
}

.op-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 36px;
}

.op-pagination a {
    min-width: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--op-border);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    background: var(--op-surface);
}

.op-pagination a.is-active {
    background: var(--op-graphite);
    color: #fff;
    border-color: var(--op-graphite);
}

/* —— Footer (dostavka24 layout, Arseni palette) —— */
.sm-footer {
    margin-top: 28px;
    font-family: inherit;
}

.sm-footer-band {
    background: var(--op-header);
    color: #fff;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.sm-footer-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 18px 16px 22px;
}

.sm-footer-band__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    flex: 1 1 280px;
}

.sm-footer-band__links a {
    color: rgb(255 255 255 / 0.88);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.sm-footer-band__links a:hover {
    color: #fff;
}

.sm-footer-news {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 280px;
    max-width: 420px;
}

.sm-footer-news input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    color: var(--op-header);
}

.sm-footer-news button,
.sm-footer-call-open {
    height: 44px;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    padding: 0 16px;
    cursor: pointer;
}

.sm-footer-news button {
    border: 0;
    background: #fff;
    color: var(--op-header);
}

.sm-footer-call-open {
    border: 1px solid rgb(255 255 255 / 0.45);
    background: transparent;
    color: #fff;
    white-space: nowrap;
}

.sm-footer-main {
    background: var(--op-header);
    color: rgb(255 255 255 / 0.72);
    padding: 40px 16px 32px;
}

.sm-footer-main__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
}

.sm-footer-brand__logo img {
    display: block;
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.sm-footer-brand__text {
    margin: 14px 0 0;
    max-width: 22rem;
    font-size: 14px;
    line-height: 1.5;
}

.sm-footer-brand__addr {
    margin: 10px 0 0;
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.45;
}

.sm-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.sm-footer-col__title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.sm-footer-col a {
    color: rgb(255 255 255 / 0.72);
    font-size: 14px;
    text-decoration: none;
}

.sm-footer-col a:hover {
    color: #fff;
}

.sm-footer-phone {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.sm-footer-copy {
    background: var(--op-header);
    border-top: 1px solid rgb(255 255 255 / 0.1);
    padding: 14px 16px;
    text-align: center;
    font-size: 12px;
    color: rgb(255 255 255 / 0.5);
}

.sm-footer-legal {
    background: #f4f5f8;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.55;
    padding: 28px 16px 40px;
    border-top: 1px solid #e5e7eb;
}

.sm-footer-legal p {
    margin: 0 0 10px;
}

.sm-footer-legal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
}

.sm-footer-legal a {
    color: var(--op-header);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.sm-footer-call {
    position: fixed;
    inset: 0;
    z-index: 450;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgb(15 23 42 / 0.55);
}

.sm-footer-call[hidden] {
    display: none;
}

.sm-footer-call__card {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    color: var(--op-text);
    box-shadow: 0 18px 50px rgb(10 31 20 / 0.28);
}

.sm-footer-call__kicker {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--op-muted);
}

.sm-footer-call__card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

.sm-footer-call__card > p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--op-muted);
}

.sm-footer-call__form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.sm-footer-call__form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.sm-footer-call__form input {
    height: 44px;
    border: 1px solid var(--op-border);
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
}

.sm-footer-call__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.sm-footer-call__actions button {
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.sm-footer-call__close {
    border: 1px solid var(--op-border);
    background: #fff;
    color: var(--op-text);
}

.sm-footer-call__actions button[type="submit"],
.sm-footer-call__submit {
    border: 0;
    background: var(--op-header);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 699px) {
    .sm-footer-band__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .sm-footer-band__links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sm-footer-news,
    .sm-footer-news input,
    .sm-footer-news button,
    .sm-footer-call-open {
        width: 100%;
        max-width: none;
    }

    .sm-footer-main__grid {
        grid-template-columns: 1fr;
    }
}

.op-compare-hint {
    background: var(--op-topbar);
    color: rgb(133 187 101 / 0.92);
    text-align: center;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.op-compare-hint a {
    color: #c8e6c9;
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .op-categories {
        grid-template-columns: repeat(4, 1fr);
    }
    .op-products {
        grid-template-columns: repeat(3, 1fr);
    }
    .op-hero {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .op-header__row {
        grid-template-columns: 1fr;
    }
    .op-search {
        max-width: none;
    }
    .op-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .op-products {
        grid-template-columns: repeat(2, 1fr);
    }
    .op-trust {
        grid-template-columns: 1fr;
    }
    .op-topbar__right {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ========== B2B header ========== */
.sm-header {
    position: sticky;
    top: 0;
    z-index: 200;
}

.sm-header__micro {
    background: var(--op-micro-bg);
    border-bottom: 1px solid rgb(27 67 44 / 0.08);
    font-size: 12px;
    color: var(--op-micro-text);
}

.sm-header__micro-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    flex-wrap: wrap;
}

.sm-header__micro-start,
.sm-header__micro-end {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sm-header__phone {
    font-weight: 700;
    font-size: 13px;
    color: var(--op-header);
}

.sm-header__phone:hover {
    color: var(--op-accent);
}

.sm-header__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgb(61 83 71 / 0.35);
}

.sm-header__stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.75);
    border: 1px solid rgb(27 67 44 / 0.1);
    font-weight: 600;
    font-size: 12px;
}

.sm-header__vitrine a {
    color: var(--op-accent);
    font-weight: 600;
    text-decoration: underline;
}

.sm-topstrip {
    position: relative;
    background: var(--op-header);
    font-size: 12px;
}

.sm-topstrip__toolbar-inner {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 112px;
    padding: 14px 0 16px;
}

.sm-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #fff;
}

.sm-brand-block__crest {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.04);
    border: 1px solid rgb(201 169 98 / 0.45);
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.06) inset,
        0 0 24px rgb(201 169 98 / 0.12);
}

.sm-brand-block__crest img {
    display: block;
    height: 72px;
    width: auto;
    max-width: 76px;
    object-fit: contain;
}

.sm-brand-block__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sm-brand-block__name {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    max-width: 12.5rem;
}

.sm-brand-block__tag {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    color: rgb(255 255 255 / 0.72);
    max-width: 14ch;
}

.sm-header__center {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.sm-stock-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.08);
    border: 1px solid rgb(255 255 255 / 0.12);
    color: #fff;
    transition: background 0.15s, border-color 0.15s;
}

.sm-stock-widget--guest {
    padding: 5px 12px;
    gap: 8px;
    border-radius: 8px;
}

.sm-stock-widget--guest .sm-stock-widget__ico {
    font-size: 17px;
}

.sm-stock-widget__text {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    color: rgb(255 255 255 / 0.88);
}

.sm-stock-widget--guest .sm-stock-widget__arrow {
    font-size: 15px;
}

a.sm-stock-widget:hover {
    background: rgb(255 255 255 / 0.12);
    border-color: rgb(201 169 98 / 0.35);
}

.sm-stock-widget--ok {
    background: rgb(255 255 255 / 0.06);
}

.sm-stock-widget__ico {
    font-size: 22px;
    line-height: 1;
    opacity: 0.95;
}

.sm-stock-widget__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sm-stock-widget__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sm-stock-widget__hint {
    font-size: 12px;
    color: rgb(255 255 255 / 0.78);
    line-height: 1.35;
}

.sm-stock-widget__hint strong {
    color: #e8d5a3;
    font-weight: 700;
}

.sm-stock-widget__arrow {
    margin-left: auto;
    font-size: 18px;
    opacity: 0.7;
}

.sm-header__accent {
    height: 2px;
    background: var(--op-gold-line);
    opacity: 0.85;
}

.sm-toolbar__trail {
    justify-self: end;
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sm-search--top {
    width: 100%;
    max-width: none;
    margin: 0;
}

.sm-search--premium {
    min-height: 48px;
    border: 1px solid rgb(255 255 255 / 0.15);
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.12);
}

.sm-search__scan {
    display: grid;
    place-items: center;
    width: 44px;
    flex-shrink: 0;
    background: rgb(27 67 44 / 0.04);
    border-right: 1px solid var(--op-border);
    color: var(--op-header);
    font-size: 18px;
    cursor: default;
}

.sm-topstrip__toolbar-inner .sm-search {
    align-self: stretch;
}

.sm-topstrip__links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.sm-action--compact {
    padding: 4px 6px;
    color: #fff;
}

.sm-action--compact.sm-action--cart {
    padding: 8px 14px;
    background: #fff;
    color: var(--op-header);
    border-radius: 12px;
    border: 1px solid rgb(201 169 98 / 0.25);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    gap: 10px;
}

.sm-action__cart-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    gap: 1px;
}

.sm-action__positions {
    font-size: 11px;
    font-weight: 600;
    color: var(--op-muted);
}

.sm-action--cart .sm-action__sum {
    font-size: 14px;
    font-weight: 800;
}

.sm-topstrip__links a {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.sm-topstrip__links a:hover {
    color: #c8e6c9;
}

.sm-topstrip__phone {
    font-weight: 700;
    color: #fff !important;
    white-space: nowrap;
}

.sm-topstrip__login-inline {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.sm-header--sub {
    background: var(--op-surface);
    border-bottom: 1px solid var(--op-border);
    padding: 10px 0;
}

.sm-header__sub {
    display: flex;
    align-items: center;
}

.sm-logo--compact .sm-logo__img {
    height: 40px;
}

.sm-btn-catalog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    border: none;
    border-radius: 10px;
    background: var(--op-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}

.sm-btn-catalog:hover {
    background: var(--op-accent-hover);
}

.sm-logo {
    display: flex;
    align-items: center;
}

.sm-logo__img {
    height: 48px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.sm-search-wrap {
    position: relative;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    z-index: 120;
}

.sm-search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgb(0 0 0 / 0.14), 0 0 0 1px rgb(0 0 0 / 0.06);
    max-height: min(70vh, 420px);
    overflow: auto;
}

.sm-search-suggest__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.sm-search-suggest__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease;
}

.sm-search-suggest__item:hover,
.sm-search-suggest__item:focus-visible {
    background: #f4f7f5;
}

.sm-search-suggest__thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #fafafa;
}

.sm-search-suggest__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-search-suggest__brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--op-muted, #6b7280);
}

.sm-search-suggest__title {
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sm-search-suggest__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--op-header, #1b432c);
}

.sm-search-suggest__all {
    display: block;
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--op-header, #1b432c);
    text-decoration: none;
    border-top: 1px solid #eee;
}

.sm-search-suggest__all:hover {
    background: #f4f7f5;
}

.sm-search-suggest__empty {
    padding: 16px 14px 8px;
    font-size: 13px;
    color: var(--op-muted, #6b7280);
    text-align: center;
}

.sm-search {
    display: flex;
    align-items: stretch;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.12);
    min-height: 44px;
}

.sm-search input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font: inherit;
    font-size: 14px;
    outline: none;
    color: var(--op-text);
}

.sm-search input::placeholder {
    color: #9e9e9e;
}

.sm-search__submit {
    padding: 0 22px;
    border: none;
    background: var(--op-header);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.sm-search__submit:hover {
    background: var(--op-header-deep);
}

.sm-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sm-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--op-graphite);
}

.sm-action__ico {
    font-size: 22px;
    line-height: 1;
}

.sm-action--phone .sm-action__label {
    max-width: 140px;
    line-height: 1.2;
    font-size: 12px;
}

.sm-action--cart {
    background: var(--op-bg);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--op-border);
}

.sm-action__badge {
    position: absolute;
    top: -4px;
    left: 14px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--op-bronze);
    color: var(--op-graphite-2);
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.sm-action__sum {
    font-variant-numeric: tabular-nums;
    color: var(--op-header);
    font-weight: 800;
}

.sm-topstrip__toolbar .sm-action__ico {
    font-size: 20px;
}

.sm-quicklinks-wrap {
    position: sticky;
    top: var(--sm-sticky-top, 168px);
    z-index: 32;
    padding: 10px 0 12px;
    margin-bottom: 2px;
    background: var(--op-bg);
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.04);
}

.sm-quicklinks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sm-quicklinks--stage {
    grid-template-columns: var(--sm-sidebar-w) repeat(3, minmax(0, 1fr));
}

.sm-quicklinks__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid rgb(0 0 0 / 0.04);
}

.sm-quicklinks__item:hover {
    transform: translateY(-1px);
    box-shadow: var(--op-shadow);
}

.sm-quicklinks__item.is-active {
    box-shadow: inset 0 0 0 2px currentColor;
}

.sm-quicklinks__item--hits {
    background: #fff4e5;
    color: #d97706;
}

.sm-quicklinks__item--actions {
    background: #ffe4e6;
    color: #e11d48;
}

.sm-quicklinks__item--new {
    background: #ecfdf5;
    color: #059669;
}

.sm-quicklinks__item--excl {
    background: #f5f3ff;
    color: #7c3aed;
}

.sm-stage {
    display: grid;
    grid-template-columns: var(--sm-sidebar-w) 1fr;
    gap: 0;
    align-items: start;
    background: var(--op-surface);
    border: 1px solid var(--op-border);
    border-radius: 4px;
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.04);
}

.sm-stage__aside {
    position: relative;
    align-self: stretch;
    min-width: 0;
    z-index: 35;
}

.sm-sidebar {
    position: sticky;
    top: var(--sm-sidebar-top, var(--sm-sticky-top, 176px));
    align-self: start;
    height: calc(100vh - var(--sm-sidebar-top, var(--sm-sticky-top, 176px)) - 16px);
    max-height: calc(100vh - var(--sm-sidebar-top, var(--sm-sticky-top, 176px)) - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid var(--op-border);
    display: flex;
    flex-direction: column;
    background: var(--op-surface);
    z-index: 30;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.sm-stage__main {
    position: relative;
    min-width: 0;
}

.sm-sidebar__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--op-text);
    border-bottom: 1px solid var(--op-border);
    transition: background 0.12s, color 0.12s;
}

.sm-sidebar__label {
    flex: 1;
    min-width: 0;
}

.sm-sidebar__chev {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    color: var(--op-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.12s, transform 0.12s;
}

.sm-sidebar__row--mega:hover,
.sm-sidebar__row--mega.is-active {
    background: #f3f7f4;
    color: var(--op-header);
}

.sm-sidebar__row--mega:hover .sm-sidebar__chev,
.sm-sidebar__row--mega.is-active .sm-sidebar__chev {
    opacity: 1;
    transform: translateX(0);
    color: var(--op-accent);
}

.sm-mega {
    display: none;
    position: absolute;
    top: var(--sm-mega-top, 0);
    left: 100%;
    width: min(640px, calc(100vw - var(--sm-sidebar-w) - 24px));
    margin-left: -6px;
    padding-left: 10px;
    z-index: 50;
    pointer-events: none;
    box-sizing: border-box;
}

.sm-mega::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    pointer-events: auto;
}

.sm-mega.is-open {
    display: block;
    pointer-events: auto;
}

.sm-mega__panel {
    background: #fff;
    border: 1px solid var(--op-border);
    border-radius: 4px;
    box-shadow: 0 12px 40px rgb(10 31 20 / 0.14);
    padding: 16px 20px 20px;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    animation: sm-mega-in 0.16s ease-out;
    pointer-events: auto;
}

@keyframes sm-mega-in {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sm-mega__head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--op-border);
}

.sm-mega__all {
    font-size: 13px;
    font-weight: 700;
    color: var(--op-header);
}

.sm-mega__all:hover {
    color: var(--op-accent);
}

.sm-mega__cols {
    display: grid;
    grid-template-columns: repeat(var(--sm-mega-cols, 3), minmax(0, 1fr));
    gap: 20px 28px;
}

.sm-mega__group + .sm-mega__group {
    margin-top: 14px;
}

.sm-mega__group-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--op-text);
    padding: 6px 10px;
    margin-bottom: 6px;
    background: #f5f6f5;
    border-radius: 4px;
    border-left: 3px solid var(--op-accent);
}

.sm-mega__group-title:hover {
    background: var(--op-sand);
    color: var(--op-header);
}

.sm-mega__list {
    margin: 0;
    padding: 0 0 0 4px;
    list-style: none;
}

.sm-mega__list li + li {
    margin-top: 2px;
}

.sm-mega__list a {
    display: block;
    padding: 5px 8px;
    font-size: 13px;
    color: var(--op-muted);
    border-radius: 4px;
    line-height: 1.35;
}

.sm-mega__list a:hover {
    color: var(--op-header);
    background: rgb(45 106 62 / 0.08);
}

.sm-sidebar__row.is-current {
    background: #eef5ef;
    color: var(--op-header);
    font-weight: 600;
}

.sm-sidebar__ico {
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    font-size: 18px;
}

.sm-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 14px 16px 24px;
    min-width: 0;
    background: #fff;
}

.sm-shelf {
    min-width: 0;
}

.sm-shelf__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sm-shelf__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--op-text);
}

.sm-shelf__all {
    font-size: 13px;
    font-weight: 700;
    color: var(--op-accent);
    white-space: nowrap;
}

.sm-shelf__all:hover {
    color: var(--op-header);
}

.sm-shelf__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.sm-shelf__track .sm-product {
    flex: 0 0 calc((100% - 40px) / 5);
    min-width: 158px;
    max-width: 210px;
    scroll-snap-align: start;
}

.sm-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sm-brands__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--op-border);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sm-brands__item:hover {
    border-color: var(--op-accent);
    box-shadow: var(--op-shadow);
}

.sm-brands__item img {
    height: 28px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
}

.sm-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.sm-catalog-card {
    border: 1px solid var(--op-border);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}

.sm-catalog-card__title {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--op-header);
}

.sm-catalog-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sm-catalog-card__list li + li {
    margin-top: 4px;
}

.sm-catalog-card__list a {
    font-size: 12px;
    color: var(--op-muted);
}

.sm-catalog-card__list a:hover {
    color: var(--op-accent);
}

.sm-hero-banner {
    --sm-banner-h: clamp(120px, 16vw, 170px);
    width: 100%;
}

.sm-hero-banner--full .sm-slider-wrap {
    width: 100%;
}

.sm-slider-wrap {
    position: relative;
    min-width: 0;
    border: 1px solid var(--op-border);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    min-height: var(--sm-banner-h);
}

.sm-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 100%;
    scrollbar-width: none;
}

.sm-slider::-webkit-scrollbar {
    display: none;
}

.sm-slider__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
}

.sm-slider__slide img {
    width: 100%;
    height: var(--sm-banner-h);
    object-fit: cover;
}

.sm-slider__slide--product img {
    object-fit: contain;
    background: #fff;
    padding: 16px;
}

.sm-slider__slide--fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--op-sand), #ebe3d4);
    padding: 24px;
    text-align: center;
}

.sm-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.92);
    box-shadow: var(--op-shadow);
    cursor: pointer;
    font-size: 22px;
    z-index: 2;
}

.sm-slider__nav--prev {
    left: 8px;
}

.sm-slider__nav--next {
    right: 8px;
}

.sm-slider__dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.sm-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgb(255 255 255 / 0.55);
    cursor: pointer;
}

.sm-slider__dot.is-active {
    background: var(--op-primary);
    box-shadow: 0 0 0 1px rgb(26 61 46 / 0.35);
}

.sm-topblock {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sm-topblock__title {
    margin: 4px 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--op-text);
}

.sm-topgrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sm-topgrid > .sm-product:nth-child(n + 6) {
    display: none;
}

.sm-product {
    position: relative;
    background: #fff;
    border: 1px solid var(--op-border);
    border-radius: 12px;
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.sm-product--grid:hover {
    border-color: rgb(45 106 62 / 0.35);
    box-shadow: var(--op-shadow);
}

.sm-product__badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 40px);
}

.sm-badge {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.sm-badge--hit {
    background: var(--op-accent);
    color: #fff;
}

.sm-badge--action {
    background: #ffe4e6;
    color: #be123c;
}

.sm-badge--excl {
    background: #f5f3ff;
    color: #6d28d9;
}

.sm-badge--bonus {
    background: #fff4e5;
    color: #b45309;
}

.sm-product__fav {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    border: none;
    background: transparent;
    color: var(--op-header);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    padding: 2px;
}

.sm-product__fav:hover,
.sm-product__fav.is-active,
.sm-pdp-buy__fav.is-active {
    opacity: 1;
    color: #be123c;
}

.sm-product__fav-form,
.sm-pdp-buy__fav-form {
    display: contents;
}

.sm-action__badge[hidden] {
    display: none;
}

.sm-product__img {
    position: relative;
    display: block;
    aspect-ratio: 1;
    margin: 4px 0 10px;
    padding: 4px;
}

.sm-product__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sm-product__price-block {
    margin-bottom: 6px;
}

.sm-product__price-main {
    font-weight: 800;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--op-text);
    line-height: 1.2;
}

.sm-product__price-main span {
    font-size: 12px;
    font-weight: 600;
    color: var(--op-muted);
}

.sm-product__pack {
    font-size: 12px;
    color: var(--op-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.sm-product__name {
    font-size: 13px;
    line-height: 1.35;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    color: var(--op-text);
    flex: 1;
}

.sm-product__name:hover {
    color: var(--op-header);
}

.sm-product__form {
    margin-top: auto;
}

.sm-product__cart-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: var(--op-header);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 11px 12px;
    transition: background 0.15s;
}

.sm-product__cart-btn:hover {
    background: var(--op-accent);
}

.sm-pack-qty {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    background: #eef1f8;
    border: 1px solid #e3e8f2;
    color: #2c3340;
}

.sm-pack-qty button {
    flex: 0 0 44px;
    height: 42px;
    border: none;
    background: transparent;
    color: #2c3340;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.sm-pack-qty button:disabled {
    opacity: 0.35;
    cursor: default;
}

.sm-pack-qty [data-pack-val] {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.sm-cart-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 168px auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--op-surface);
    border: 1px solid var(--op-bronze-line);
    border-radius: 12px;
    margin-bottom: 12px;
}

.sm-cart-line img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.sm-cart-line__title {
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.sm-cart-line__sum {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sm-cart-line__remove {
    border: 0;
    background: transparent;
    color: #991b1b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 4px;
}

.sm-cart-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    font-size: 1.35rem;
    font-weight: 800;
}

@media (max-width: 720px) {
    .sm-cart-line {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .sm-cart-line__qty,
    .sm-cart-line__sum,
    .sm-cart-line__remove {
        grid-column: 2;
    }
}

.sm-product__cart-btn--wide {
    flex: 1;
    width: auto;
}

.sm-product__out {
    font-size: 12px;
    color: var(--op-muted);
    text-align: center;
    padding: 10px;
    background: var(--op-bg);
    border-radius: 10px;
    margin-top: auto;
}

/* —— Catalog listing (dostavka24-style) —— */
.sm-catalog-page {
    padding: 16px 18px 28px;
    background: #fff;
    min-width: 0;
}

.sm-stage--catalog .sm-stage__main {
    background: #fff;
}

.sm-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--op-muted);
    margin-bottom: 14px;
}

.sm-breadcrumb a:hover {
    color: var(--op-accent);
}

.sm-breadcrumb__sep {
    opacity: 0.45;
}

.sm-breadcrumb__current {
    color: var(--op-text);
    font-weight: 600;
}

.sm-catalog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sm-catalog-head__title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--op-text);
}

.sm-catalog-head__count {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--op-muted);
}

.sm-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sm-catalog-toolbar__btn,
.sm-catalog-toolbar__sort select {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--op-border);
    background: #fff;
    color: var(--op-text);
    cursor: pointer;
}

.sm-catalog-toolbar__btn.is-active {
    border-color: var(--op-accent);
    color: var(--op-accent);
    box-shadow: inset 0 0 0 1px var(--op-accent);
}

.sm-catalog-toolbar__sort {
    margin: 0;
}

.sm-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s;
}

.sm-filters-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sm-filters-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 100vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 401;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.sm-filters-drawer.is-open {
    transform: translateX(0);
}

.sm-filters-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--op-border);
}

.sm-filters-drawer__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--op-text);
}

.sm-filters-drawer__close {
    font: inherit;
    font-size: 28px;
    line-height: 1;
    border: 0;
    background: none;
    color: var(--op-muted);
    cursor: pointer;
    padding: 4px 8px;
}

.sm-filters-form {
    flex: 1;
    overflow: auto;
    padding: 16px 20px 24px;
}

.sm-filters-block {
    margin-bottom: 20px;
}

.sm-filters-block__label {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--op-text);
}

.sm-filters-price__track {
    position: relative;
    height: 28px;
    margin-bottom: 12px;
}

.sm-filters-price__track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    background: #e2e8f0;
    border-radius: 4px;
}

.sm-filters-price__fill {
    position: absolute;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    background: var(--op-accent);
    border-radius: 4px;
    pointer-events: none;
}

.sm-filters-price__range {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    pointer-events: none;
    appearance: none;
    background: transparent;
}

.sm-filters-price__range::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--op-accent);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.sm-filters-price__range::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--op-accent);
    cursor: pointer;
}

.sm-filters-price__range--max {
    z-index: 2;
}

.sm-filters-price__inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-filters-price__input {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid var(--op-border);
    border-radius: 8px;
}

.sm-filters-price__dash {
    color: var(--op-muted);
}

.sm-filters-accordion {
    border: 0;
}

.sm-filters-accordion__summary {
    list-style: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--op-text);
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-filters-accordion__summary::-webkit-details-marker {
    display: none;
}

.sm-filters-accordion__summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--op-accent);
    border-bottom: 2px solid var(--op-accent);
    transform: rotate(-45deg);
    transition: transform 0.15s;
}

.sm-filters-accordion:not([open]) .sm-filters-accordion__summary::after {
    transform: rotate(45deg);
}

.sm-filters-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-filters-checks--scroll {
    max-height: 220px;
    overflow: auto;
}

.sm-filters-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
}

.sm-filters-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--op-accent);
    flex-shrink: 0;
}

.sm-filters-check__count {
    margin-left: auto;
    font-size: 13px;
    color: var(--op-muted);
}

.sm-filters-drawer__foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--op-border);
}

.sm-filters-apply {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--op-header);
    color: #fff;
    cursor: pointer;
}

.sm-filters-reset {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--op-accent);
}

body.sm-filters-open {
    overflow: hidden;
}

.sm-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sm-catalog-pagination {
    margin-top: 28px;
}

.op-pagination a.is-active {
    background: var(--op-header);
    border-color: var(--op-header);
    color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* —— Product page (PDP, dostavka24-style) —— */
.sm-product-page {
    padding: 8px 0 36px;
}

.sm-pdp-card {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) minmax(260px, 300px);
    gap: 24px;
    align-items: start;
    padding: 24px;
    border-radius: 16px;
    background: #f7f8f7;
    border: 1px solid var(--op-border);
}

.sm-pdp-card__media {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--op-border);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.sm-pdp-card__media img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.sm-pdp-card__title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.sm-pdp-specs {
    margin: 0 0 18px;
}

.sm-pdp-specs__row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgb(0 0 0 / 0.06);
    font-size: 14px;
}

.sm-pdp-specs__row dt {
    margin: 0;
    color: var(--op-muted);
    font-weight: 500;
}

.sm-pdp-specs__row dd {
    margin: 0;
    color: var(--op-text);
    font-weight: 600;
}

.sm-pdp-specs__brand {
    color: var(--op-header);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sm-pdp-specs__brand:hover {
    color: var(--op-accent);
}

.sm-pdp-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--op-muted);
    max-height: 280px;
    overflow-y: auto;
}

.sm-pdp-buy {
    position: sticky;
    top: var(--sm-sticky-top, 176px);
    background: #fff;
    border: 1px solid var(--op-border);
    border-radius: 14px;
    padding: 18px 16px 16px;
    box-shadow: var(--op-shadow);
}

.sm-pdp-buy__price {
    font-size: 1.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.sm-pdp-buy__price span {
    font-size: 14px;
    font-weight: 600;
    color: var(--op-muted);
}

.sm-pdp-buy__pack {
    margin-top: 6px;
    font-size: 13px;
    color: var(--op-muted);
}

.sm-pdp-buy__old {
    margin-top: 4px;
    font-size: 13px;
    text-decoration: line-through;
    color: var(--op-muted);
}

.sm-pdp-buy__bonus {
    margin-top: 8px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff4e5;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
}

.sm-pdp-buy__fav {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 1px solid var(--op-border);
    background: #fff;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    color: var(--op-header);
}

.sm-pdp-buy__fav.is-active {
    border-color: #fecdd3;
    background: #fff1f2;
}

.sm-pdp-buy__form {
    margin-top: 16px;
}

.sm-pdp-buy__qty {
    margin-bottom: 10px;
}

.sm-pdp-buy__qty .op-qty {
    width: 100%;
    justify-content: center;
}

.sm-pdp-buy__note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--op-muted);
}

.sm-pdp-buy__note--ok {
    color: var(--op-accent);
}

.sm-pdp-buy__delivery {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--op-border);
    font-size: 12px;
    color: var(--op-muted);
    line-height: 1.4;
}

.sm-product__cart-btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    margin-top: 16px;
}

.sm-shelf--similar {
    margin-top: 28px;
}

.sm-shelf--similar .sm-shelf__track .sm-product {
    flex: 0 0 200px;
    min-width: 180px;
    max-width: 220px;
}

@media (max-width: 1100px) {
    .sm-shelf__track .sm-product {
        flex: 0 0 calc((100% - 20px) / 3);
        min-width: 140px;
    }
}

@media (max-width: 1100px) {
    .sm-stage {
        grid-template-columns: 1fr;
    }
    .sm-sidebar {
        display: none;
    }
    .sm-main {
        padding: 12px;
    }
    .sm-topgrid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sm-header__row {
        grid-template-columns: 1fr;
    }
    .sm-search {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .sm-topgrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sm-quicklinks {
        grid-template-columns: repeat(2, 1fr);
    }
    .sm-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm-pdp-card {
        grid-template-columns: 1fr;
    }

    .sm-pdp-buy {
        position: static;
    }
}

@media (max-width: 1024px) {
    .sm-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ========== Mobile (d24 layout, Arseni colors) ========== */
.sm-mobile-authbar {
    display: none;
    background: var(--op-topbar);
    color: rgb(255 255 255 / 0.92);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.sm-mobile-authbar a {
    display: block;
    padding: 8px 12px;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sm-mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 4px 0 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sm-mobile-menu-btn__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
}

.sm-mobile-menu-btn__bars i {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.sm-mobile-menu-btn__label {
    line-height: 1;
}

.sm-action__login-text {
    display: none;
}

.sm-action__ico--user {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
}

.sm-action__ico--user::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 14px;
    height: 7px;
    margin-left: -7px;
    border: 2px solid currentColor;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.sm-mobile-dock__ico {
    position: relative;
    width: 22px;
    height: 22px;
    color: inherit;
}

.sm-mobile-dock__ico--home {
    border: 2px solid currentColor;
    border-top: none;
    border-radius: 0 0 3px 3px;
    box-sizing: border-box;
    margin-top: 4px;
}

.sm-mobile-dock__ico--home::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -9px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    transform-origin: center;
    box-sizing: border-box;
}

.sm-mobile-dock__ico--catalog {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    font-size: 0;
}

.sm-mobile-dock__ico--catalog i {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 8px;
    border-radius: 2px;
    background: currentColor;
}

.sm-mobile-dock__ico--cart {
    border: 2px solid currentColor;
    border-radius: 0 0 4px 4px;
    box-sizing: border-box;
}

.sm-mobile-dock__ico--cart::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    right: 4px;
    height: 8px;
    border: 2px solid currentColor;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.sm-mobile-dock__ico--user {
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

.sm-mobile-dock__ico--user::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 16px;
    height: 8px;
    margin-left: -8px;
    border: 2px solid currentColor;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.sm-mobile-dock__item.is-active {
    color: var(--op-header);
}

.sm-mcat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px 16px;
    border-bottom: 1px solid var(--op-border);
}

.sm-mcat-quick a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #f0f4f1;
    color: var(--op-header);
}

.sm-mcat-drawer__section {
    margin: 0;
    padding: 14px 18px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--op-muted);
}

.sm-mobile-dock {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    min-height: 52px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #fff;
    border-top: 1px solid var(--op-border);
    box-shadow: 0 -4px 20px rgb(15 23 42 / 0.06);
}

.sm-mobile-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px 8px;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    color: var(--op-muted);
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sm-action--login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
}

.sm-mcat-overlay {
    position: fixed;
    inset: 0;
    z-index: 450;
    background: rgb(15 23 42 / 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s;
}

.sm-mcat-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sm-mcat-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(360px, 92vw);
    height: 100vh;
    height: 100dvh;
    z-index: 451;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 32px rgb(0 0 0 / 0.14);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.sm-mcat-drawer.is-open {
    transform: translateX(0);
}

.sm-mcat-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    padding-top: max(16px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--op-border);
    background: #fff;
    color: var(--op-header);
}

.sm-mcat-drawer__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
}

.sm-mcat-drawer__close {
    font: inherit;
    font-size: 28px;
    line-height: 1;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 4px 8px;
}

.sm-mcat-drawer__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 24px;
}

.sm-mcat-link {
    display: block;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--op-text);
    border-bottom: 1px solid var(--op-border);
}

.sm-mcat-group {
    border-bottom: 1px solid var(--op-border);
}

.sm-mcat-group__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.sm-mcat-group__summary::-webkit-details-marker {
    display: none;
}

.sm-mcat-group__chev {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--op-muted);
    border-bottom: 2px solid var(--op-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.sm-mcat-group[open] .sm-mcat-group__chev {
    transform: rotate(-135deg);
}

.sm-mcat-sub {
    margin: 0;
    padding: 0 0 10px;
    list-style: none;
    background: #f8faf8;
}

.sm-mcat-sub a {
    display: block;
    padding: 10px 18px 10px 26px;
    font-size: 14px;
    color: var(--op-text);
    line-height: 1.35;
}

.sm-mcat-sub__all {
    font-weight: 700;
    color: var(--op-header) !important;
}

.sm-mcat-sub__title {
    font-weight: 700;
    padding-top: 12px !important;
}

.sm-mcat-sub__nested {
    margin: 0;
    padding: 0 0 6px;
    list-style: none;
}

.sm-mcat-sub__nested a {
    padding-left: 38px;
    font-size: 13px;
    color: var(--op-muted);
}

body.sm-mcat-open,
body.sm-filters-open {
    overflow: hidden;
    touch-action: none;
}

/* ========== Mobile layout refinements ========== */
@media (max-width: 1100px) {
    .sm-mobile-menu-btn {
        display: inline-flex;
    }

    .sm-header__micro {
        display: none;
    }

    .sm-stock-widget {
        display: none !important;
    }

    .sm-header--d24 .sm-topstrip {
        position: sticky;
        top: 0;
        z-index: 90;
        background: #fff;
        color: var(--op-header);
        box-shadow: 0 1px 0 var(--op-border);
    }

    .sm-header--d24 .sm-header__accent {
        display: none;
    }

    .sm-header--d24 .sm-brand-block {
        color: var(--op-header);
    }

    .sm-header--d24 .sm-brand-block__crest {
        width: auto;
        height: auto;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .sm-header--d24 .sm-brand-block__crest img {
        height: 36px;
        max-width: 130px;
    }

    .sm-header--d24 .sm-action--compact {
        color: var(--op-header);
    }

    .sm-header--d24 .sm-action--compact.sm-action--cart {
        background: transparent;
        color: var(--op-header);
        box-shadow: none;
        padding: 8px;
    }

    .sm-header--d24 .sm-mobile-menu-btn {
        color: var(--op-header);
    }

    .sm-topstrip__toolbar-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 8px 10px;
        min-height: 0;
        padding: 8px 0 10px;
    }

    .sm-topstrip__toolbar-inner > * {
        min-width: 0;
    }

    .sm-mobile-menu-btn {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .sm-brand-block {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        gap: 0;
        max-width: 100%;
    }

    .sm-brand-block__text,
    .sm-brand-block__tag {
        display: none;
    }

    .sm-toolbar__trail {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
        width: auto;
    }

    .sm-topstrip__links {
        flex-wrap: nowrap;
        gap: 2px;
    }

    .sm-header__center {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .sm-search-wrap {
        max-width: none;
        z-index: 2;
    }

    .sm-search--premium {
        min-height: 42px;
        border-radius: 999px;
        border: 1px solid var(--op-border);
        background: #fff;
        box-shadow: none;
    }

    .sm-search__scan {
        display: none;
    }

    .sm-search input {
        font-size: 16px;
    }

    .sm-search__submit {
        background: var(--op-header);
        color: #fff;
        border-radius: 999px;
        margin: 4px;
        padding: 0 16px;
        font-weight: 700;
    }

    .sm-action--login {
        display: inline-flex;
    }

    .sm-action__cart-text {
        display: none;
    }

    .sm-mega,
    .sm-mega.is-open {
        display: none !important;
    }

    .sm-quicklinks--stage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sm-stage__aside {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --sm-sticky-top: 118px;
    }

    body.optimus {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
    }

    .sm-mobile-authbar {
        display: block;
    }

    .sm-mobile-dock {
        display: grid;
    }

    .sm-action--login {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .sm-action__login-text {
        display: none;
    }

    .sm-header--d24 .sm-action__ico {
        font-size: 22px;
        line-height: 1;
    }

    .sm-search input {
        background: #fff;
        color: var(--op-text);
    }

    .sm-search-suggest {
        border-radius: 12px;
        margin-top: 6px;
    }

    .sm-hero-banner {
        --sm-banner-h: clamp(100px, 28vw, 140px);
        margin-bottom: 8px;
    }

    .sm-main {
        padding: 0 0 12px;
    }

    .sm-stage {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .op-main {
        padding-top: 8px;
    }

    .sm-shelf__track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
    }

    .sm-shelf__track .sm-product {
        flex: none;
        min-width: 0;
        max-width: none;
    }

    .sm-product {
        border-radius: 8px;
        padding: 8px 8px 10px;
    }

    .sm-product__price-main {
        font-size: 13px;
    }

    .sm-product__name {
        font-size: 12px;
        line-height: 1.25;
        -webkit-line-clamp: 3;
    }

    .sm-product__cart-btn {
        width: 100%;
        font-size: 12px;
        padding: 9px 8px;
        border-radius: 8px;
        background: var(--op-header);
    }

    .sm-product__cart-btn:hover {
        background: var(--op-accent-hover);
    }

    .op-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sm-search input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .sm-search-suggest {
        max-height: min(55vh, 360px);
    }

    .sm-action__cart-text {
        display: none;
    }

    .sm-action--compact {
        padding: 8px;
    }

    .sm-quicklinks-wrap {
        top: 0;
        position: relative;
        padding: 0 0 10px;
        margin: 0;
        background: var(--op-bg);
    }

    .sm-quicklinks {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .sm-quicklinks__item {
        justify-content: center;
        padding: 10px 6px;
        font-size: 11px;
        font-weight: 700;
        border-radius: 8px;
        text-align: center;
        line-height: 1.2;
    }

    .sm-quicklinks__item.is-active {
        box-shadow: inset 0 0 0 2px var(--op-header);
    }

    .sm-shelf__head {
        padding: 0 0 8px;
    }

    .sm-shelf__title {
        font-size: 1.05rem;
    }

    .sm-shelf__all {
        font-size: 13px;
        color: var(--op-header);
        font-weight: 700;
    }

    .sm-footer-band {
        margin-bottom: 12px;
    }

    .sm-catalog-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sm-catalog-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .sm-catalog-toolbar__sort,
    .sm-catalog-toolbar__sort select {
        flex: 1;
        min-width: 0;
    }

    .sm-breadcrumb {
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .sm-filters-drawer {
        width: min(100vw, 400px);
    }

    .sm-pdp-card {
        gap: 16px;
    }

    .sm-slider__nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .sm-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .sm-product__title {
        font-size: 12px;
    }

    .sm-footer-band__links {
        grid-template-columns: 1fr;
    }
}

.sm-action--login button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
}

.sm-mobile-dock form {
    display: flex;
}

.sm-mobile-dock form .sm-mobile-dock__item {
    width: 100%;
}

@media (min-width: 1101px) {
    .sm-action__login-text {
        display: inline;
    }
}

/* ===== Checkout (оформление заказа) ===== */
.op-flash--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.sm-cart-line-warn {
    margin: -4px 0 10px 88px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
}

.op-checkout { margin-top: 22px; }
.op-checkout__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    background: var(--op-surface);
    border: 1px solid var(--op-bronze-line);
    border-radius: 14px;
    padding: 14px 18px;
}
.op-checkout__title { margin: 0 0 0; font-size: 1.1rem; align-self: center; }
.op-checkout__addr-form { display: flex; align-items: flex-end; gap: 10px; flex: 1; min-width: 220px; }
.op-checkout__addr-form .op-field { margin: 0; flex: 1; }
.op-checkout__addr-new { flex-basis: 100%; }
.op-checkout__addr-new summary {
    color: var(--op-bronze-hover);
    font-weight: 700;
    cursor: pointer;
    padding: 8px 0 2px;
    font-size: 14px;
}
.op-checkout__addr-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 0 4px;
}
.op-checkout__addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.op-checkout__addr-fields .op-field { margin: 0; }
.op-checkout__addr-fields .op-field:first-child,
.op-checkout__addr-fields > p,
.op-checkout__addr-fields > button { grid-column: 1 / -1; }
.op-checkout__addr-fields > button { max-width: 220px; }

.op-checkout__quote {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 10px 18px;
    margin-top: 10px;
    background: rgb(133 187 101 / 0.14);
    border: 1px solid var(--op-bronze-line);
    border-radius: 12px;
    font-size: 13px;
    color: #4b5563;
}

.op-checkout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 16px;
    align-items: start;
}
.op-checkout__form, .op-checkout__side {
    background: var(--op-surface);
    border: 1px solid var(--op-bronze-line);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgb(27 67 44 / 0.05);
}
.op-checkout__form .op-field { margin-bottom: 14px; }
.op-checkout__form-note { margin: -4px 0 16px; font-size: 13px; }
.op-checkout label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin: 0 0 6px; }
.op-checkout input[type="text"], .op-checkout input[type="email"], .op-checkout input[type="tel"],
.op-checkout input[type="date"], .op-checkout input[type="number"], .op-checkout select, .op-checkout textarea {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #e3e0d8;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.op-checkout input:focus, .op-checkout select:focus, .op-checkout textarea:focus {
    outline: none;
    border-color: var(--op-accent, #2d6a3e);
    box-shadow: 0 0 0 3px rgb(45 106 62 / 0.12);
}
.op-checkout input[readonly] { background: #f4f3ef; color: #6b7280; }
.op-checkout textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.op-checkout__submit { width: 100%; font-size: 16px; padding: 14px 18px; border-radius: 12px; }
/* Радио-карточки способа оплаты (как в корзине dostavka24) */
.op-pay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op-pay-card {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1.5px solid #e3e0d8;
    border-radius: 12px;
    padding: 11px 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.op-pay-card:hover { border-color: #bcb7a9; }
.op-pay-card input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--op-accent, #2d6a3e);
    flex: 0 0 auto;
}
.op-pay-card:has(input:checked) {
    border-color: var(--op-accent, #2d6a3e);
    background: #f2f7f3;
    box-shadow: inset 0 0 0 1px var(--op-accent, #2d6a3e);
}
.op-pay-card__body { display: block; }
.op-pay-card__title { display: block; font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.op-pay-card__hint { display: block; font-size: 11.5px; color: #9ca3af; margin-top: 3px; }
.op-checkout__side-title { margin: 0 0 10px; font-size: 1.05rem; }
.op-checkout__bonus-form { display: flex; gap: 10px; margin: 10px 0 18px; }
.op-checkout__bonus-form input { max-width: 180px; height: 46px; }
.op-checkout__bonus-form .op-btn-cart { flex: 0 0 auto; }
.op-checkout__summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    background: var(--op-bg);
    border-radius: 12px;
}
.op-checkout__row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: #4b5563; }
.op-checkout__row b { font-variant-numeric: tabular-nums; }
.op-checkout__row--total { border-top: 1px solid var(--op-bronze-line); padding-top: 10px; font-size: 16px; color: inherit; }
.op-checkout__green { color: #15803d; }
.op-checkout__red { color: #b91c1c; }
/* Акцентная карточка «Итого» справа */
.op-checkout__side {
    background: linear-gradient(160deg, #1b432c 0%, #2d6a3e 100%);
    border: none;
    color: #fff;
}
.op-checkout__side .op-checkout__row { color: rgb(255 255 255 / 0.82); }
.op-checkout__side .op-checkout__summary { background: rgb(255 255 255 / 0.09); border-radius: 14px; }
.op-checkout__side .op-checkout__row--total { color: #fff; border-top-color: rgb(255 255 255 / 0.28); font-size: 18px; }
.op-checkout__side .op-checkout__green { color: #b7ecc6; }
.op-checkout__side .op-checkout__red { color: #f6c3c3; }
.op-checkout__side .op-muted { color: rgb(255 255 255 / 0.66); }
.op-checkout__side .op-checkout__bonus-form input {
    background: rgb(255 255 255 / 0.1);
    border-color: rgb(255 255 255 / 0.32);
    color: #fff;
    max-width: 160px;
}
.op-checkout__side .op-btn-cart { background: #fff; color: #1b432c; border-radius: 10px; }
.op-btn-cart--ghost { background: #f3f4f6; color: #272727; }
.op-btn-cart--ghost:hover { background: #e5e7eb; }
.op-checkout__btn-row { display: flex; gap: 10px; align-items: stretch; }
.op-checkout__btn-row input { flex: 1; }
.op-checkout__btn-row .op-btn-cart { flex: 0 0 auto; }

@media (max-width: 900px) {
    .op-checkout__grid { grid-template-columns: 1fr; }
    .op-checkout__addr-fields { grid-template-columns: 1fr; }
    .sm-cart-line-warn { margin-left: 0; }
}

/* ===== Этап 2: переключатель адреса в шапке, Telegram-бот, счёт ===== */
.sm-header__addr-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}
.sm-header__addr-label {
    font-weight: 600;
    font-size: 12px;
    color: rgb(27 67 44 / 0.75);
}
.sm-header__addr-switch select {
    max-width: 220px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgb(27 67 44 / 0.15);
    background: rgb(255 255 255 / 0.85);
    font-size: 12px;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
}
.sm-header__addr-switch select:focus {
    outline: 2px solid var(--op-accent, #2d6a3e);
    outline-offset: 1px;
}
.sm-header__addr-btn {
    padding: 4px 10px;
    border: 1px solid rgb(27 67 44 / 0.15);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.85);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.op-account__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}
.op-tg-steps {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.55;
}
.op-tg-steps li { margin-bottom: 6px; }
.op-tg-command {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
}
.op-tg-connected {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #15803d;
    margin: 0;
}
.op-tg-connected__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #15803d;
    box-shadow: 0 0 0 3px rgb(21 128 61 / 0.18);
}
@media (max-width: 720px) {
    .sm-header__addr-switch select { max-width: 150px; }
    .sm-header__addr-label { display: none; }
}

/* ===== Этапы 3-6: 18+, контакты, страницы ===== */
.sm-pdp-card__media.is-age-gated img { filter: blur(14px); }
.sm-pdp-card__media { position: relative; }
.sm-pdp-card__age-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #b91c1c;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}
.sm-pdp-agegate {
    border: 2px solid #b91c1c;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fef2f2;
}
.sm-pdp-agegate__title {
    margin: 0 0 8px;
    color: #b91c1c;
    font-weight: 800;
    font-size: 1.05rem;
}
.sm-pdp-agegate__text { color: #4b5563; font-size: 14px; line-height: 1.5; }
.sm-pdp-agegate__text p { margin: 0 0 10px; }
.sm-pdp-agegate form { margin-top: 10px; }
.sm-pdp-agegate__note { margin: 10px 0 0; font-size: 12px; color: #9ca3af; }
.op-contacts__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.op-contacts__card {
    background: #fff;
    border: 1px solid var(--op-bronze-line, #e6e2d9);
    border-radius: 14px;
    padding: 18px 20px;
}
.op-contacts__card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.op-contacts__card p { margin: 0 0 12px; }
.op-contacts__label { display: block; font-size: 12px; color: #9ca3af; margin-bottom: 2px; }
.op-contacts__phone, .op-contacts__mail { font-weight: 700; color: inherit; }
.op-contacts__map { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--op-bronze-line, #e6e2d9); }
.op-contacts__form-wrap .op-btn-cart { margin-top: 4px; }
.op-page__content {
    background: #fff;
    border: 1px solid var(--op-bronze-line, #e6e2d9);
    border-radius: 14px;
    padding: 20px 24px;
    line-height: 1.6;
}
.op-page__content img { max-width: 100%; height: auto; }
@media (max-width: 860px) {
    .op-contacts__grid { grid-template-columns: 1fr; }
}

/* ===== Правка: добавление адреса из корзины ведёт в кабинет ===== */
.op-checkout__addr-new-link {
    display: inline-block;
    font-weight: 700;
    color: var(--op-accent, #1b432c);
    text-decoration: underline;
    cursor: pointer;
}
.op-checkout__addr-new-link:hover { opacity: 0.8; }
