:root {
    --store-blue-950: #071f3d;
    --store-blue-900: #0b2d55;
    --store-blue-800: #0e4778;
    --store-blue-700: #12629e;
    --store-blue-600: #1976c7;
    --store-blue-100: #e9f3fc;
    --store-red: #e02b35;
    --store-red-dark: #bd1f2a;
    --store-ink: #10243e;
    --store-muted: #667991;
    --store-line: #dce5ef;
    --store-bg: #f3f6fa;
    --store-surface: #ffffff;
    --store-radius-sm: 12px;
    --store-radius: 18px;
    --store-radius-lg: 26px;
    --store-shadow: 0 10px 32px rgba(15, 45, 78, .08);
    --store-shadow-hover: 0 18px 44px rgba(15, 45, 78, .14);
    --store-shell: 1320px;
}

.storefront-home {
    background: var(--store-bg);
    color: var(--store-ink);
    font-family: Inter, Nunito, "Segoe UI", Arial, sans-serif;
}

.storefront-home :where(h1, h2, h3, h4, p, a, button, input, select, textarea, small, strong, span) {
    font-family: inherit;
}

.store-shell {
    width: min(var(--store-shell), calc(100% - 40px));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.store-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--store-blue-950);
    color: #fff !important;
    transform: translateY(-150%);
    transition: transform .18s ease;
}

.store-skip-link:focus { transform: translateY(0); }

.store-header {
    position: relative;
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--store-line);
    box-shadow: 0 4px 18px rgba(15, 45, 78, .04);
}

.store-header__top {
    background: var(--store-blue-950);
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.store-header__top-inner {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.store-header__top-inner div { display: flex; align-items: center; gap: 10px; }
.store-header__top a { color: #fff; font-weight: 800; text-decoration: none; }

.store-header__main {
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 88px;
}

.store-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--store-blue-950) !important;
    text-decoration: none !important;
}

.store-brand__mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    background: #fff;
}

.store-brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.store-brand__copy { display: grid; line-height: 1.05; }
.store-brand__copy b { color: var(--store-blue-950); font-size: 19px; font-weight: 900; letter-spacing: -.03em; }
.store-brand__copy small { margin-top: 5px; color: var(--store-muted); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

.store-search {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 5px 5px 5px 16px;
    border: 2px solid #cbd9e8;
    border-radius: 16px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.store-search:focus-within {
    border-color: var(--store-blue-600);
    box-shadow: 0 0 0 4px rgba(25, 118, 199, .12);
}

.store-search svg,
.store-actions svg,
.store-navigation svg,
.store-icon-button svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.store-search svg { width: 21px; height: 21px; color: var(--store-muted); }
.store-search input[type='search'] {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--store-ink);
    font-size: 14px;
    outline: 0;
}

.store-search button {
    min-height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: var(--store-blue-700);
    box-shadow: none;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.store-search button:hover { background: var(--store-blue-800); }

.store-actions { display: flex; align-items: stretch; gap: 4px; }
.store-action {
    position: relative;
    display: grid;
    min-width: 62px;
    min-height: 54px;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 4px 7px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--store-ink) !important;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.store-action:hover { background: var(--store-blue-100) !important; color: var(--store-blue-800) !important; }
.store-action__icon { position: relative; display: grid; place-items: center; }
.store-action svg { width: 22px; height: 22px; }
.store-action b {
    position: absolute;
    top: -7px;
    right: -10px;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--store-red);
    color: #fff;
    font-size: 9px;
    line-height: 1;
}

.store-icon-button {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--store-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: var(--store-ink);
}
.store-icon-button svg { width: 23px; height: 23px; }

.store-navigation { border-top: 1px solid var(--store-line); }
.store-navigation__inner { display: flex; min-height: 48px; align-items: center; gap: 27px; }
.store-navigation a { color: #324960; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.store-navigation a:hover { color: var(--store-blue-700); }
.store-navigation__catalog { display: inline-flex; align-items: center; gap: 9px; color: var(--store-blue-800) !important; }
.store-navigation__catalog svg { width: 19px; height: 19px; }
.store-navigation__contact { margin-left: auto; color: var(--store-red) !important; }
.store-navigation__drawer-head,
.store-navigation-backdrop { display: none; }
.store-navigation-backdrop[hidden] { display: none !important; }

.site-main { width: min(var(--store-shell), calc(100% - 40px)); }
.storefront-home .site-main { padding: 22px 0 70px !important; }

.store-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: var(--store-blue-950);
    color: rgba(255, 255, 255, .7);
}

.store-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 52px;
    padding-block: 56px 44px;
}

.store-brand--footer .store-brand__copy b { color: #fff; }
.store-brand--footer .store-brand__copy small { color: rgba(255, 255, 255, .55); }
.store-footer__brand p { max-width: 33ch; margin: 20px 0; color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.65; }
.store-footer h2 { margin: 4px 0 18px; color: #fff; font-size: 14px; font-weight: 900; }
.store-footer__grid > div:not(.store-footer__brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.store-footer a, .store-footer span { color: rgba(255, 255, 255, .68); font-size: 13px; text-decoration: none; }
.store-footer a:hover { color: #fff; }
.store-footer__socials { display: flex; gap: 8px; }
.store-footer__socials a { display: grid; min-width: 38px; height: 38px; place-items: center; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 11px; color: #fff; font-size: 10px; font-weight: 900; }
.store-footer__bottom { display: flex; min-height: 64px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .1); }

/* Home page */
/* Явная колонка minmax(0, 1fr): без неё grid-трек "auto" растягивается до min-content детей. */
.commerce-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.commerce-catalog { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.commerce-home > *, .commerce-catalog > * { min-width: 0; }
.commerce-home > .ai-projects { margin: 0; }
.commerce-section { scroll-margin-top: 20px; }
.commerce-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.commerce-section__eyebrow { display: block; margin-bottom: 5px; color: var(--store-blue-700); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.commerce-section__head h2 { margin: 0; color: var(--store-blue-950); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.commerce-section__head p { margin: 7px 0 0; color: var(--store-muted); font-size: 14px; }
.commerce-section__link { display: inline-flex; align-items: center; gap: 7px; color: var(--store-blue-700) !important; font-size: 13px; font-weight: 900; text-decoration: none !important; white-space: nowrap; }

.commerce-hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 16px; }
.commerce-hero__card { position: relative; display: flex; flex-direction: column; min-height: 460px; overflow: hidden; border-radius: var(--store-radius-lg); background: var(--store-blue-950); box-shadow: var(--store-shadow); isolation: isolate; }
.commerce-hero__card--side { min-height: 460px; }
.commerce-hero__media, .commerce-hero__overlay { position: absolute; inset: 0; }
.commerce-hero__media { width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.commerce-hero__overlay { z-index: -1; background: linear-gradient(90deg, rgba(3, 18, 38, .97) 0%, rgba(3, 24, 51, .84) 42%, rgba(4, 28, 59, .22) 100%); }
.commerce-hero__card--side .commerce-hero__overlay { background: linear-gradient(180deg, rgba(3, 18, 38, .1) 10%, rgba(3, 18, 38, .94) 85%); }
.commerce-hero__copy { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 40px; color: #fff; }
.commerce-hero__pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border: 1px solid rgba(105, 183, 255, .4); border-radius: 999px; background: rgba(9, 36, 74, .55); color: #bde2ff; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(10px); }
.commerce-hero__pill::before { width: 7px; height: 7px; border-radius: 50%; background: #21a8ff; box-shadow: 0 0 16px #21a8ff; content: ''; }
.commerce-hero h1, .commerce-hero h2 { margin: 18px 0 9px; color: #fff; font-size: clamp(36px, 4.5vw, 66px); line-height: .98; letter-spacing: -.055em; }
.commerce-hero h1, .commerce-hero h2 { overflow-wrap: break-word; }
.commerce-hero h1 span { color: #45a7ff; }
.commerce-hero__card--side h2 { font-size: clamp(28px, 2.7vw, 40px); }
.commerce-hero__lead { max-width: 620px; margin: 0 0 23px; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.55; }
.commerce-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.commerce-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 19px; border-radius: 13px; font-size: 13px; font-weight: 900; text-decoration: none !important; transition: transform .18s ease, background-color .18s ease; }
.commerce-button:hover { transform: translateY(-2px); }
.commerce-button--primary { background: #2689e8; color: #fff !important; }
.commerce-button--primary:hover { background: #1474cc; }
.commerce-button--glass { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff !important; backdrop-filter: blur(8px); }
.commerce-hero__features { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.commerce-hero__feature { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 800; }
.commerce-hero__feature i { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(74, 169, 255, .35); border-radius: 9px; background: rgba(20, 104, 184, .18); color: #70bbff; font-style: normal; }

.commerce-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.commerce-category { display: flex; min-width: 0; min-height: 96px; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--store-line); border-radius: var(--store-radius); background: #fff; box-shadow: 0 4px 16px rgba(15, 45, 78, .04); color: var(--store-ink) !important; text-decoration: none !important; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.commerce-category:hover { transform: translateY(-3px); border-color: #9cc6e9; box-shadow: var(--store-shadow); }
.commerce-category__media { display: grid; width: 64px; height: 64px; flex: 0 0 64px; place-items: center; overflow: hidden; border-radius: 14px; background: #f2f6fa; }
.commerce-category__media img { width: 100%; height: 100%; object-fit: contain; }
.commerce-category > span:last-child { min-width: 0; }
.commerce-category strong { display: block; color: var(--store-ink); font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.commerce-category small { display: block; margin-top: 4px; color: var(--store-muted); font-size: 11px; }

.commerce-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.commerce-product { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--store-line); border-radius: var(--store-radius); background: #fff; box-shadow: 0 5px 22px rgba(15, 45, 78, .055); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.commerce-product:hover { transform: translateY(-4px); border-color: #a7cbe8; box-shadow: var(--store-shadow-hover); }
.commerce-product__media { position: relative; display: grid; height: 210px; place-items: center; overflow: hidden; padding: 17px; background: linear-gradient(145deg, #f8fafc, #eef3f8); }
.commerce-product__media .product-media { height: 100%; border-radius: 0; background: transparent; }
.commerce-product__media img { width: 100% !important; height: 100% !important; object-fit: contain !important; transition: transform .28s ease; }
.commerce-product:hover .commerce-product__media img { transform: scale(1.035); }
.commerce-product__badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 70px); }
.commerce-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--store-blue-700); color: #fff; font-size: 10px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.commerce-badge--hot { background: var(--store-red); }
.commerce-badge--stock { background: #e5f7ed; color: #147449; }
.commerce-badge--order { background: #fff2db; color: #9a5a09; }
.commerce-badge--decor { min-height: 28px; border: 0; background: var(--badge-bg); color: var(--badge-color); box-shadow: 0 5px 13px color-mix(in srgb, var(--badge-bg) 28%, transparent); }
.commerce-badge--pill { border-radius: 999px; }
.commerce-badge--burst { width: 48px; height: 48px; min-height: 48px; justify-content: center; padding: 7px; clip-path: polygon(50% 0%,61% 14%,78% 5%,82% 23%,100% 24%,90% 40%,100% 54%,82% 59%,81% 78%,63% 72%,51% 100%,40% 75%,21% 87%,20% 67%,0 62%,13% 48%,2% 32%,21% 28%,25% 8%,41% 18%); font-size: 8px; text-align: center; white-space: normal; }
.commerce-badge--tag { padding-left: 15px; border-radius: 4px; clip-path: polygon(13% 0,100% 0,100% 100%,13% 100%,0 50%); }
.commerce-badge--ribbon { border-radius: 3px; transform: rotate(-7deg); box-shadow: 0 3px 0 rgba(0,0,0,.16); }
.commerce-product__quick { position: absolute; top: 11px; right: 11px; z-index: 3; display: grid; gap: 7px; }
.commerce-product__quick button { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--store-line); border-radius: 11px; background: rgba(255, 255, 255, .94); box-shadow: 0 5px 14px rgba(15, 45, 78, .09); color: #526b83; cursor: pointer; }
.commerce-product__quick button:hover, .commerce-product__quick button.is-active { border-color: #f4a4aa; background: #fff0f1; color: var(--store-red); }
.commerce-product__quick button[data-store-compare].is-active { border-color: #9bcaf0; background: var(--store-blue-100); color: var(--store-blue-700); }
.commerce-product__quick svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.commerce-product__body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.commerce-product__category { margin-bottom: 7px; color: var(--store-blue-700); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.commerce-product__title { display: -webkit-box; min-height: 44px; margin: 0 0 10px; overflow: hidden; overflow-wrap: anywhere; color: var(--store-ink); font-size: 14px; font-weight: 900; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.commerce-product__title a { color: inherit !important; text-decoration: none !important; }
.commerce-product__specs { display: grid; gap: 5px; min-height: 57px; margin: 0 0 14px; padding: 0; list-style: none; }
.commerce-product__specs li { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; color: var(--store-muted); font-size: 11px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.commerce-product__specs b { color: #3b526a; font-weight: 800; }
.commerce-product__price-row { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf1f5; }
.commerce-product__price-row form { margin: 0; }
.commerce-product__price small { display: block; margin-bottom: 2px; color: var(--store-muted); font-size: 11px; }
.commerce-product__price strong { color: var(--store-red); font-size: 20px; font-weight: 950; line-height: 1; white-space: nowrap; }
.commerce-product__buy { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 15px; border: 0; border-radius: 11px; background: var(--store-blue-700); box-shadow: none; color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
.commerce-product__buy:hover { background: var(--store-blue-800); }

.commerce-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.commerce-brand { display: grid; min-height: 76px; place-items: center; padding: 12px; border: 1px solid var(--store-line); border-radius: 16px; background: #fff; color: #334c67; font-size: 15px; font-weight: 950; letter-spacing: -.02em; text-align: center; }

.commerce-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.commerce-service { display: flex; min-height: 170px; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--store-line); border-radius: var(--store-radius); background: #fff; box-shadow: 0 5px 22px rgba(15, 45, 78, .05); }
.commerce-service__icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 18px; border-radius: 14px; background: var(--store-blue-100); color: var(--store-blue-700); font-size: 20px; font-weight: 900; }
.commerce-service h3 { margin: 0 0 7px; color: var(--store-ink); font-size: 16px; }
.commerce-service p { margin: 0; color: var(--store-muted); font-size: 12px; line-height: 1.5; }
.commerce-service a { margin-top: auto; padding-top: 14px; color: var(--store-blue-700) !important; font-size: 11px; font-weight: 900; text-decoration: none !important; }

.store-toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: min(360px, calc(100% - 40px)); padding: 12px 16px; border-radius: 13px; background: var(--store-blue-950); box-shadow: 0 16px 40px rgba(3, 18, 38, .28); color: #fff; font-size: 13px; font-weight: 800; opacity: 0; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.store-toast.is-visible { opacity: 1; transform: translateY(0); }

:where(.store-header, .commerce-home, .store-footer) :where(a, button, input):focus-visible { outline: 3px solid rgba(25, 118, 199, .35); outline-offset: 2px; }

/* Unified catalog pages: the same visual language as the successful home storefront. */
.storefront-catalog { background: var(--store-bg); color: var(--store-ink); }
.storefront-catalog .site-main { padding: 18px 0 72px !important; }
.storefront-catalog .breadcrumbs {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: var(--store-muted);
    font-size: 12px;
}
.storefront-catalog .breadcrumbs a { color: var(--store-blue-700); text-decoration: none; }
.storefront-catalog .catalog-page { color: var(--store-ink); }
.storefront-catalog .catalog-toolbar { display: none; }
.storefront-catalog .catalog-hero,
.storefront-catalog .catalog-filters,
.storefront-catalog .catalog-smart,
.storefront-catalog .catalog-results-box,
.storefront-catalog .catalog-trust {
    border-color: var(--store-line);
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow);
}
.storefront-catalog .catalog-hero {
    padding: 24px;
    background:
        radial-gradient(520px 220px at 100% 0, rgba(25, 118, 199, .12), transparent 68%),
        linear-gradient(145deg, #fff, #f5f9fd);
}
.storefront-catalog .catalog-hero__eyebrow,
.storefront-catalog .catalog-card__badge { background: var(--store-blue-100); color: var(--store-blue-700); }
.storefront-catalog .catalog-hero__title { color: var(--store-blue-950); }
.storefront-catalog .catalog-btn--primary,
.storefront-catalog .catalog-search__submit { background: var(--store-blue-700); border-color: var(--store-blue-700); }
.storefront-catalog .catalog-btn--primary:hover,
.storefront-catalog .catalog-search__submit:hover { background: var(--store-blue-800); border-color: var(--store-blue-800); }
.storefront-catalog .catalog-filters { padding: 20px; }
.storefront-catalog .catalog-filter-group,
.storefront-catalog .catalog-price-box { border-color: var(--store-line); background: #f7f9fc; }
.storefront-catalog .catalog-chip span { border-color: #cedbe7; font-size: 12px; }
.storefront-catalog .catalog-chip input:checked + span { border-color: #9cc7e8; background: var(--store-blue-100); color: var(--store-blue-800); }
.storefront-catalog .catalog-results-box { padding: 22px; }
.storefront-catalog .catalog-page,
.storefront-catalog .catalog-page > *,
.storefront-catalog .catalog-toolbar__inner,
.storefront-catalog .catalog-search,
.storefront-catalog .catalog-search__field,
.storefront-catalog .catalog-hero__inner,
.storefront-catalog .catalog-hero__inner > *,
.storefront-catalog .catalog-filters,
.storefront-catalog .catalog-filters form,
.storefront-catalog .catalog-filters__grid,
.storefront-catalog .catalog-filters__grid > *,
.storefront-catalog .catalog-main-filters,
.storefront-catalog .catalog-filter-groups,
.storefront-catalog .catalog-filter-group,
.storefront-catalog .catalog-filter-values,
.storefront-catalog .catalog-extra,
.storefront-catalog .catalog-extra__body,
.storefront-catalog .catalog-extra-row,
.storefront-catalog .catalog-extra-row > *,
.storefront-catalog .catalog-extra-row__values,
.storefront-catalog .catalog-results-box,
.storefront-catalog .catalog-results-head,
.storefront-catalog .catalog-grid {
    min-width: 0;
    max-width: 100%;
}
.storefront-catalog .catalog-page { width: 100%; overflow: hidden; }
.storefront-catalog .catalog-filter-values,
.storefront-catalog .catalog-extra-row__values { overflow-wrap: anywhere; }
.storefront-catalog .catalog-chip,
.storefront-catalog .catalog-chip span { max-width: 100%; }
.storefront-catalog .catalog-chip span { overflow-wrap: anywhere; }
.storefront-catalog .catalog-grid.commerce-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.storefront-catalog .catalog-grid.commerce-products .commerce-product { min-width: 0; }
.storefront-catalog .catalog-pagination nav { margin: 0; }

@media (max-width: 1180px) {
    .storefront-catalog .catalog-grid.commerce-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .storefront-catalog .site-main { padding-top: 12px !important; }
    .storefront-catalog .catalog-hero { padding: 18px; }
    .storefront-catalog .catalog-filters,
    .storefront-catalog .catalog-results-box { padding: 16px; }
    .storefront-catalog .catalog-toolbar__inner,
    .storefront-catalog .catalog-filters__grid,
    .storefront-catalog .catalog-extra-row { grid-template-columns: minmax(0, 1fr); }
    .storefront-catalog .catalog-filter-values,
    .storefront-catalog .catalog-extra-row__values {
        display: flex;
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        overflow: visible;
    }
    .storefront-catalog .catalog-chip { min-width: 0; flex: 0 1 auto; }
    .storefront-catalog .catalog-chip span {
        min-width: 0;
        height: auto;
        min-height: 38px;
        padding: 8px 11px;
        white-space: normal;
        line-height: 1.25;
        text-align: left;
    }
    .storefront-catalog .catalog-extra-row__title {
        border-right: 0;
        border-bottom: 1px solid var(--store-line);
    }
    .storefront-catalog .catalog-pagination {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }
    .storefront-catalog .catalog-grid.commerce-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
}

@media (max-width: 560px) {
    .storefront-catalog .catalog-hero__stats { display: grid; grid-template-columns: 1fr; }
    .storefront-catalog .catalog-trust { display: none; }
    .storefront-catalog .catalog-filters { box-shadow: none; }
    .storefront-catalog .catalog-filters__grid { margin-bottom: 8px; }
    .storefront-catalog .catalog-filter-values,
    .storefront-catalog .catalog-extra-row__values { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
    .storefront-catalog .catalog-chip { flex: 0 1 auto; }
    .storefront-catalog .catalog-grid.commerce-products .commerce-product__specs { display: none; }
    .storefront-catalog .catalog-grid.commerce-products .commerce-product__price strong { font-size: 16px; }
    .storefront-catalog .catalog-grid.commerce-products .commerce-product__buy { min-height: 36px; padding-inline: 11px; }
}

@media (max-width: 340px) {
    .storefront-catalog .catalog-grid.commerce-products { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1180px) {
    .store-header__main { grid-template-columns: auto 1fr; gap: 18px; padding-block: 14px; }
    .store-search { grid-column: 1 / -1; grid-row: 2; }
    .store-actions { margin-left: auto; }
    .store-navigation__inner { gap: 18px; overflow-x: auto; scrollbar-width: none; }
    .store-navigation__inner::-webkit-scrollbar { display: none; }
    .commerce-hero { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); }
    .commerce-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .store-footer__grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .commerce-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .store-shell, .site-main { width: min(100% - 28px, var(--store-shell)); }
    .store-header__top { display: none; }
    .store-header__main { grid-template-columns: auto auto 1fr; min-height: 70px; gap: 10px; padding-block: 9px; }
    .store-icon-button { display: grid; }
    .store-brand__mark { width: 42px; height: 42px; }
    .store-brand__copy b { font-size: 16px; }
    .store-actions { justify-self: end; }
    .store-action { min-width: 44px; padding-inline: 4px !important; }
    .store-action > span:last-child { display: none; }
    .store-action--compare { display: none; }
    .store-search { grid-column: 1 / -1; }
    .store-search button { padding-inline: 15px; }
    body.store-menu-open { overflow: hidden; }
    .store-navigation {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 92;
        width: min(86vw, 350px);
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        background: #fff;
        box-shadow: 20px 0 55px rgba(7, 31, 61, .22);
        visibility: hidden;
        transform: translateX(-105%);
        transition: transform .24s ease, visibility 0s linear .24s;
    }
    .store-navigation.is-open {
        visibility: visible;
        transform: translateX(0);
        transition-delay: 0s;
    }
    .store-navigation__inner {
        display: flex;
        width: 100%;
        min-height: 100%;
        margin: 0;
        padding: 0 16px 26px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        overflow: visible;
    }
    .store-navigation__drawer-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        min-height: 78px;
        margin-bottom: 8px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid var(--store-line);
        background: #fff;
    }
    .store-navigation__drawer-brand {
        display: inline-flex;
        min-height: 0 !important;
        align-items: center;
        gap: 10px;
        padding: 0 !important;
    }
    .store-navigation__drawer-brand > span:last-child { display: grid; line-height: 1.05; }
    .store-navigation__drawer-brand b { color: var(--store-blue-950); font-size: 16px; font-weight: 900; }
    .store-navigation__drawer-brand small { margin-top: 5px; color: var(--store-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .store-navigation__drawer-brand .store-brand__mark { width: 40px; height: 40px; border-radius: 11px; }
    .store-navigation__close {
        display: grid;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        place-items: center;
        padding: 0;
        border: 1px solid var(--store-line);
        border-radius: 12px;
        background: var(--store-bg);
        color: var(--store-ink);
        cursor: pointer;
    }
    .store-navigation__close:hover { background: var(--store-blue-100); color: var(--store-blue-700); }
    .store-navigation__close svg { width: 22px; height: 22px; }
    .store-navigation a {
        display: flex;
        min-height: 50px;
        align-items: center;
        padding-inline: 13px;
        border-radius: 12px;
        font-size: 14px;
    }
    .store-navigation a:hover,
    .store-navigation a:focus-visible { background: var(--store-blue-100); color: var(--store-blue-800); outline: 0; }
    .store-navigation__catalog { background: #f3f8fd; }
    .store-navigation__contact { margin: 8px 0 0; background: #fff1f2; color: var(--store-red) !important; }
    .store-navigation-backdrop {
        position: fixed;
        inset: 0;
        z-index: 91;
        display: block;
        border: 0;
        background: rgba(4, 20, 40, .55);
        backdrop-filter: blur(2px);
        cursor: default;
    }
    .commerce-hero { grid-template-columns: minmax(0, 1fr); }
    .commerce-hero__card { min-height: 420px; }
    .commerce-hero__card--side { min-height: 320px; }
    .commerce-hero__copy { padding: 28px; }
    .commerce-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commerce-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commerce-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .store-shell, .site-main { width: min(100% - 20px, var(--store-shell)); }
    .store-header__main { grid-template-columns: auto auto 1fr; }
    .store-brand__copy { display: none; }
    .store-actions { gap: 0; }
    .store-action { min-width: 42px; min-height: 44px; }
    .store-action svg { width: 21px; height: 21px; }
    .store-search { min-height: 50px; padding-left: 13px; }
    .store-search input[type='search'] { font-size: 13px; }
    .store-search button { min-height: 40px; padding-inline: 14px; font-size: 12px; }
    .storefront-home .site-main { padding-top: 12px !important; }
    .commerce-home { gap: 24px; }
    .commerce-hero__card { min-height: 440px; border-radius: 20px; }
    .commerce-hero__card--side { min-height: 280px; }
    .commerce-hero__copy { padding: 22px; }
    .commerce-hero h1 { font-size: 39px; }
    .commerce-hero__card--side h2 { font-size: 29px; }
    .commerce-hero__lead { font-size: 13px; }
    .commerce-hero__features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .commerce-section__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 12px; }
    .commerce-section__head > div { min-width: 0; }
    .commerce-section__head p { display: none; }
    .commerce-section__head h2 { font-size: 25px; }
    .commerce-section__link { min-height: 36px; align-items: center; font-size: 12px; }
    /* 2×2 внутри контейнера: карточка в колонку, чтобы название не выходило за плитку */
    .commerce-categories { gap: 9px; }
    .commerce-category { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 0; padding: 12px; }
    .commerce-category__media { width: 52px; height: 52px; flex-basis: 52px; }
    .commerce-category strong { font-size: 13px; }
    .commerce-products { gap: 12px 10px; }
    /* На главной показываем компактную витрину. Полный ассортимент остаётся в категории. */
    .storefront-home .commerce-products > .commerce-product:nth-child(n + 5) { display: none; }
    .commerce-product { border-radius: 15px; }
    .commerce-product__media { height: clamp(160px, 38vw, 190px); padding: 11px; }
    .commerce-product__badges { top: 7px; left: 7px; gap: 4px; max-width: calc(100% - 50px); }
    .commerce-badge { min-height: 20px; padding-inline: 6px; font-size: 10px; }
    .commerce-product__quick { top: 7px; right: 7px; }
    .commerce-product__quick button { width: 36px; height: 36px; border-radius: 10px; }
    .commerce-product__quick button:nth-child(2) { display: none; }
    .commerce-product__body { padding: 12px; }
    .commerce-product__category { margin-bottom: 6px; font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }
    .commerce-product__title { min-height: 53px; margin-bottom: 11px; font-size: 13px; line-height: 1.36; -webkit-line-clamp: 3; }
    .commerce-product__specs { display: none; }
    .commerce-product__price-row { display: grid; gap: 10px; padding-top: 11px; }
    .commerce-product__price small { font-size: 12px; }
    .commerce-product__price strong { font-size: 19px; }
    .commerce-product__buy { width: 100%; min-height: 44px; font-size: 13px; }
    .commerce-services { grid-template-columns: 1fr; }
    .commerce-service { min-height: 150px; }
    .commerce-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 40px 30px; }
    .store-footer__brand { grid-column: 1 / -1; }
    .store-footer__contacts { grid-column: 1 / -1; }
    .store-footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (max-width: 380px) {
    .store-shell, .site-main { width: min(100% - 16px, var(--store-shell)); }
    .commerce-section__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .commerce-section__link { justify-self: start; }
    .commerce-product__media { height: 152px; }
    .commerce-product__body { padding: 10px; }
    .commerce-product__title { font-size: 12px; }
    .commerce-product__price strong { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .store-header *, .commerce-home *, .store-footer * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
