@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-cyrillic-variable.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-variable.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans:
    "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono:
    ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", "Courier New",
    monospace;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #eef6ff;
  --text: #172033;
  --muted: #687386;
  --line: #dce6f2;
  --primary: #0b7f7a;
  --primary-dark: #075f5b;
  --blue: #2563eb;
  --orange: #ff6b00;
  --yellow: #ffd43b;
  --pink: #ec4899;
  --red: #dc2626;
  --green: #16a34a;
  --shadow: 0 18px 42px rgba(25, 42, 70, 0.13);
  --radius: 8px;
  --container: 1220px;
  --mobile-filter-panel-top: 132px;
  --mobile-filter-panel-gap: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-anchor: none;
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
}

html.is-search-scroll-locked {
  overflow-anchor: none;
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  overflow-anchor: none;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-variant-numeric: lining-nums;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-search-scroll-locked,
body.is-catalog-search-scroll-locked {
  overflow-anchor: none;
}

body.design-b2b {
  --bg: #eef4f3;
  --surface-2: #eef4f7;
  --primary: #075f5b;
  --primary-dark: #064c49;
  --blue: #1f5fbf;
  --orange: #f26a21;
  --line: #d9e3ea;
  --shadow: 0 16px 36px rgba(23, 32, 51, 0.1);
  background:
    linear-gradient(
      180deg,
      rgba(244, 249, 247, 0.92) 0%,
      rgba(239, 246, 248, 0.9) 48%,
      rgba(255, 247, 238, 0.84) 100%
    ),
    linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.18))
      calc(100% - 132px) 188px / 156px 86px no-repeat,
    linear-gradient(rgba(242, 106, 33, 0.14), rgba(242, 106, 33, 0.08))
      calc(100% - 286px) 274px / 132px 72px no-repeat,
    linear-gradient(rgba(7, 95, 91, 0.11), rgba(7, 95, 91, 0.06))
      calc(100% - 190px) 362px / 116px 92px no-repeat,
    linear-gradient(
        90deg,
        transparent,
        rgba(7, 95, 91, 0.13),
        rgba(242, 106, 33, 0.12),
        transparent
      )
      right 264px / 680px 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(23, 32, 51, 0.08), transparent)
      right 454px / 620px 2px no-repeat,
    linear-gradient(
      115deg,
      rgba(7, 95, 91, 0.12) 0%,
      transparent 34%,
      rgba(242, 106, 33, 0.12) 72%,
      transparent 100%
    ),
    url("assets/hero-assortment.png") calc(100% + 140px) 78px / 760px auto
      no-repeat,
    repeating-linear-gradient(
      180deg,
      transparent 0 128px,
      rgba(7, 95, 91, 0.05) 128px 130px,
      transparent 130px 188px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(23, 32, 51, 0.035) 0 1px,
      transparent 1px 44px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(7, 95, 91, 0.045) 0 1px,
      transparent 1px 96px
    ),
    linear-gradient(135deg, #eef5f3 0%, #f8fbff 38%, #fff6ed 72%, #eef7f3 100%);
  background-attachment:
    scroll, fixed, fixed, fixed, fixed, fixed, scroll, fixed, fixed, fixed,
    fixed, scroll;
}

body.is-locked,
body.is-filter-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code,
kbd,
samp {
  font-family: var(--font-mono);
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow-anchor: none;
  border-bottom: 1px solid rgba(6, 57, 55, 0.24);
  background:
    linear-gradient(
      135deg,
      rgba(7, 95, 91, 0.98),
      rgba(9, 83, 108, 0.96) 58%,
      rgba(18, 71, 80, 0.98)
    ),
    #075f5b;
  box-shadow: 0 14px 34px rgba(6, 57, 55, 0.22);
  backdrop-filter: blur(14px);
}

.header-grid {
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  min-height: 78px;
  align-items: center;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: #fff;
  text-decoration: none;
}

.logo__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 12px;
  background: #c5baaa;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.12);
}

.logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo__text {
  display: grid;
  line-height: 1.1;
}

.logo__text strong {
  font-size: 18px;
}

.logo__text small {
  color: var(--muted);
  font-size: 12px;
}

.site-header .logo {
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  padding: 6px 12px 6px 7px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.site-header .logo:hover,
.site-header .logo:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.site-header .logo__mark {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.site-header .logo__mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.site-header .logo__text strong {
  color: #ffffff;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0;
}

.site-header .logo__text small {
  margin-top: 3px;
  color: #d8fff4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  height: 54px;
  overflow-anchor: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  overflow: visible;
  box-shadow: 0 12px 28px rgba(6, 57, 55, 0.16);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.header-search:focus-within {
  z-index: 180;
  border-color: rgba(255, 212, 59, 0.78);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(255, 212, 59, 0.18),
    0 14px 32px rgba(6, 57, 55, 0.2);
}

.search-field {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
  padding: 7px 16px;
}

.header-search input {
  min-width: 0;
  border: 0;
  padding: 0 34px 0 0;
  outline: 0;
  font-size: 16px;
}

.header-search input[type="search"]::-webkit-search-cancel-button,
.header-search input[type="search"]::-webkit-search-decoration,
.header-search input[type="search"]::-webkit-search-results-button,
.header-search input[type="search"]::-webkit-search-results-decoration {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #dfe8f5;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  padding: 0;
  transform: translateY(-50%);
}

.search-clear:hover {
  border-color: rgba(255, 107, 0, 0.42);
  background: #fff4e8;
  color: #9a3412;
}

.search-clear svg {
  width: 15px;
  height: 15px;
}

.search-clear.is-hidden {
  display: none;
}

.search-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  min-width: 92px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: -2px;
  right: -2px;
  z-index: 50;
  display: grid;
  gap: 14px;
  overflow-anchor: none;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 22px 48px rgba(25, 42, 70, 0.18);
}

.search-suggest::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #dfe8f5;
  border-left: 1px solid #dfe8f5;
  background: #fff;
  transform: rotate(45deg);
}

.search-suggest__section {
  display: grid;
  gap: 9px;
}

.search-suggest__section > strong {
  color: #526071;
  font-size: 12px;
  text-transform: uppercase;
}

.search-suggest__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-suggest__chips button {
  border: 1px solid #e7edf5;
  border-radius: 999px;
  background: #f8fbff;
  color: #344155;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.search-suggest__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 8px;
  color: var(--text);
  text-align: left;
}

.search-suggest__product {
  background: #fff;
}

.search-suggest__item:hover,
.search-suggest__price-item:hover,
.search-suggest__chips button:hover {
  background: #fff4e8;
}

.search-suggest__thumb {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  border: 0;
}

.product-accent--books {
  background: #2563eb;
}

.product-accent--red {
  background: #dc2626;
}

.product-accent--stationery {
  background: #0f766e;
}

.product-accent--green {
  background: #16a34a;
}

.product-accent--toys {
  background: #f97316;
}

.product-accent--purple {
  background: #7c3aed;
}

.product-accent--school {
  background: #4f46e5;
}

.product-accent--craft {
  background: #db2777;
}

.product-accent--cyan {
  background: #0891b2;
}

.product-accent--default {
  background: #344155;
}

.search-suggest__item b,
.search-suggest__item small,
.search-suggest__reason,
.search-suggest__price-item b,
.search-suggest__price-item small {
  display: block;
}

.search-suggest__body {
  min-width: 0;
}

.search-suggest__item b,
.search-suggest__price-item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest__item small,
.search-suggest__price-item small {
  color: var(--muted);
  font-size: 12px;
}

.search-suggest__reason {
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4f91;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.search-suggest__actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.search-suggest__item em,
.search-suggest__price-item em {
  color: #111827;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.search-suggest__open,
.search-suggest__add {
  min-width: 82px;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #344155;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
}

.search-suggest__add {
  border-color: rgba(255, 107, 0, 0.34);
  background: #fff4e8;
  color: #9a3412;
}

.search-suggest__add:disabled {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
}

.search-suggest__price-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px 86px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e7edf5;
  border-radius: 10px;
  background: #f8fbff;
  padding: 9px;
  color: var(--text);
  text-align: left;
}

.search-suggest__price-item mark {
  justify-self: end;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4f91;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.search-suggest__empty {
  border-radius: 10px;
  background: #f8fbff;
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
}

.search-suggest.is-loading .search-suggest__empty {
  background: linear-gradient(
    90deg,
    rgba(248, 251, 255, 0.9),
    rgba(238, 246, 255, 0.9),
    rgba(248, 251, 255, 0.9)
  );
}

.search-suggest__apply {
  min-height: 42px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 10px;
  background: #eef9f6;
  color: var(--primary);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.search-suggest__apply:hover {
  border-color: rgba(255, 107, 0, 0.42);
  background: #fff4e8;
  color: #9a3412;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 18px;
  color: #344155;
  font-size: 14px;
  font-weight: 700;
}

.main-nav button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: inherit;
}

.main-nav a:hover,
.main-nav button:hover,
.text-link:hover,
.link-btn:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plain-btn,
.link-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.header-action {
  display: inline-flex;
  position: relative;
  height: 48px;
  align-items: center;
  gap: 7px;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  background: #f9fbfd;
  color: #2f3a4a;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.header-action span {
  min-width: 0;
}

.header-action--account {
  max-width: 190px;
}

.header-action--account [data-account-action-label] {
  display: block;
  overflow: hidden;
  max-width: 132px;
  text-overflow: ellipsis;
}

.header-action:hover {
  border-color: rgba(11, 127, 122, 0.26);
  background: #eff8f7;
  color: var(--primary);
}

.header-action svg {
  width: 19px;
  height: 19px;
}

.header-action b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
}

.header-action--request {
  border-color: rgba(7, 95, 91, 0.22);
  background: #f2f8f7;
  color: var(--primary-dark);
}

.header-action--request:hover {
  border-color: rgba(7, 95, 91, 0.36);
  background: #e7f3f2;
  color: var(--primary-dark);
}

.request-link b {
  background: var(--primary);
}

.favorite-link {
  color: #344155;
}

.favorite-link:hover {
  border-color: rgba(236, 72, 153, 0.32);
  background: #fff5fa;
  color: var(--pink);
}

.favorite-link b {
  background: var(--pink);
}

.quickbar {
  position: relative;
  z-index: 80;
  border-top: 1px solid rgba(23, 32, 51, 0.06);
  border-bottom: 1px solid rgba(7, 95, 91, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(247, 251, 250, 0.92)
    ),
    #fff;
  backdrop-filter: blur(12px);
}

.quickbar__inner {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(210px, 0.48fr) auto;
  min-height: 52px;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  overflow: visible;
}

.quickbar__group {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  border: 1px solid rgba(223, 232, 245, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 4px;
  scrollbar-width: none;
}

.quickbar__group::-webkit-scrollbar {
  display: none;
}

.quickbar__group--categories {
  z-index: 150;
  width: min(300px, 100%);
  max-width: min(300px, 100%);
  justify-self: start;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (hover: hover) and (pointer: fine) {
  .quickbar__group--categories::after {
    content: "";
    position: absolute;
    top: -10px;
    right: -18px;
    bottom: -10px;
    z-index: 120;
    width: 28px;
    pointer-events: auto;
  }
}

.quickbar__label {
  flex: 0 0 auto;
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(241, 246, 251, 0.86);
  color: var(--muted);
  padding: 0 9px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.quickbar__label--brands {
  background: #fff7ed;
  color: #9a3412;
}

.quickbar__label--tools {
  background: #e8f4f3;
  color: var(--primary-dark);
}

.quickbar__group--brands,
.quickbar__group--tools {
  border-left: 1px solid rgba(223, 232, 245, 0.86);
  padding-left: 4px;
}

.quickbar__group--brands {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.quickbar__group--tools {
  overflow: visible;
}

.quickbar__inner a,
.quickbar__inner button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f2f6fb;
  color: #344155;
  min-height: 28px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.quickbar__inner a:hover,
.quickbar__inner button:hover {
  background: #eaf4f3;
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.quickbar-category-toggle {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-color: rgba(7, 95, 91, 0.18) !important;
  background: #eef8f6 !important;
  color: var(--primary-dark) !important;
  padding: 4px 8px 4px 4px !important;
}

.quickbar-category-toggle__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quickbar-category-toggle svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 0.16s ease;
}

.quickbar__group--categories:is(.is-open, :hover, :focus-within)
  .quickbar-category-toggle
  svg {
  transform: rotate(180deg);
}

.quickbar-category-menu {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  display: flex;
  width: max-content;
  max-width: min(620px, calc(100vw - 360px));
  gap: 6px;
  overflow-x: auto;
  border: 1px solid rgba(223, 232, 245, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  transform: translate(-8px, -50%);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  visibility: hidden;
  z-index: 130;
  scrollbar-color: rgba(7, 95, 91, 0.34) transparent;
  scrollbar-width: thin;
}

.quickbar__group--categories:is(.is-open, :hover, :focus-within)
  .quickbar-category-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
  visibility: visible;
}

.quickbar-category-menu a {
  display: inline-flex;
  min-width: max-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-color: rgba(7, 95, 91, 0.14);
  border-radius: 10px;
  background: #f6fbfa;
  color: #243b3a;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.quickbar-category-menu a:hover {
  border-color: rgba(7, 95, 91, 0.32);
  background: #e8f4f3;
  color: var(--primary-dark);
}

.quickbar-brand-toggle {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-color: rgba(255, 107, 0, 0.16) !important;
  background: #fff7ed !important;
  color: #8a3a0d !important;
  padding: 4px 8px 4px 4px !important;
}

.quickbar-brand-toggle__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quickbar-brand-toggle svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 0.16s ease;
}

.quickbar__group--brands.is-open .quickbar-brand-toggle svg {
  transform: rotate(180deg);
}

.quickbar-brand-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  max-height: min(430px, calc(100vh - 156px));
  gap: 3px;
  overflow-y: auto;
  border: 1px solid rgba(223, 232, 245, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  visibility: hidden;
  z-index: 130;
  scrollbar-color: rgba(7, 95, 91, 0.34) transparent;
  scrollbar-width: thin;
}

.quickbar__group--brands.is-open .quickbar-brand-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.quickbar-brand-search {
  display: grid;
  gap: 6px;
  padding: 2px 2px 6px;
}

.quickbar-brand-search span {
  color: #637083;
  padding-inline: 4px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.quickbar-brand-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(223, 232, 245, 0.96);
  border-radius: 10px;
  background: #f8fbff;
  color: #172033;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 750;
  outline: none;
}

.quickbar-brand-search input:focus {
  border-color: rgba(7, 95, 91, 0.42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 95, 91, 0.1);
}

.quickbar-brand-list {
  display: grid;
  gap: 3px;
}

body.design-b2b .quickbar-brand-menu {
  right: 0;
  left: auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(920px, calc(100vw - 40px));
  max-height: min(72vh, 680px);
  gap: 8px;
  overflow: hidden;
  padding: 10px;
}

body.design-b2b .quickbar-brand-search {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(218, 230, 234, 0.82);
  background: rgba(255, 255, 255, 0.98);
  padding: 2px 2px 9px;
}

body.design-b2b .quickbar-brand-list {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  align-content: start;
  gap: 4px 6px;
  min-height: 0;
  max-height: min(58vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(7, 95, 91, 0.34) transparent;
  scrollbar-width: thin;
}

.quickbar-brand-menu a,
.quickbar__group--brands a {
  border-color: rgba(255, 107, 0, 0.16);
  background: #fff7ed;
  color: #8a3a0d;
}

.quickbar-brand-menu a {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
  padding: 8px 10px;
  color: #293548;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}

body.design-b2b .quickbar-brand-menu a {
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  white-space: nowrap;
}

body.design-b2b .quickbar-brand-menu a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.quickbar-brand-menu a small {
  flex: 0 0 auto;
  color: #7a8798;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

body.design-b2b .quickbar-brand-menu a small {
  margin-left: auto;
}

.quickbar-brand-menu a:hover,
.quickbar__group--brands a:hover {
  border-color: rgba(255, 107, 0, 0.38);
  background: #ffedd5;
  color: #7c2d12;
}

.quickbar-brand-empty {
  margin: 0;
  border-radius: 10px;
  background: #f8fbff;
  color: #697789;
  padding: 12px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.quickbar__group--tools button {
  border-color: rgba(7, 95, 91, 0.14);
  background: #f5faf9;
  color: var(--primary-dark);
}

.quickbar__group--tools button:hover {
  border-color: rgba(7, 95, 91, 0.3);
  background: #e8f4f3;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: var(--surface);
  position: fixed;
  top: 78px; /* Высота шапки */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
}

.mobile-nav.is-open {
  display: block;
  transform: translateX(0);
}

.mobile-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 34;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.mobile-nav__overlay.is-visible {
  display: block;
  opacity: 1;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.mobile-nav__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  background: var(--surface-2);
  border-radius: 8px;
  cursor: pointer;
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-align: left;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
  background: var(--surface-2);
}

.mobile-nav a svg,
.mobile-nav button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mobile-nav__section {
  margin: 16px 0;
}

.mobile-nav__section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px 0;
  padding: 0 12px;
  font-weight: 700;
}

.mobile-nav__badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
}

.mobile-nav__highlight {
  background: var(--surface-2);
  color: var(--orange);
}

.mobile-nav__highlight svg {
  color: var(--orange);
}

.mobile-tabbar {
  display: none;
}

.mobile-tabbar__item {
  position: relative;
  min-width: 0;
}

.mobile-tabbar__badge {
  position: absolute;
}

/* Улучшенные touch feedback для мобильных устройств */
@media (hover: none) and (pointer: coarse) {
  .mobile-tabbar__item:active {
    background: #dce8f8;
    transform: scale(0.95);
  }

  .mobile-nav a:active,
  .mobile-nav button:active {
    background: var(--surface-2);
  }

  /* Улучшенные touch targets */
  .mobile-tabbar__item {
    min-height: 64px; /* Большие touch targets */
  }

  .mobile-nav a,
  .mobile-nav button {
    min-height: 48px;
  }
}

.hero {
  position: relative;
  min-height: min(560px, calc(100vh - 118px));
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(255, 212, 59, 0.42),
      transparent 22%
    ),
    radial-gradient(
      circle at 76% 26%,
      rgba(255, 107, 0, 0.22),
      transparent 22%
    ),
    linear-gradient(
      90deg,
      rgba(246, 248, 251, 0.98) 0%,
      rgba(246, 248, 251, 0.82) 48%,
      rgba(246, 248, 251, 0.22) 100%
    );
}

body.design-b2b .hero {
  min-height: min(330px, calc(100vh - 118px));
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.58),
      rgba(255, 247, 238, 0.22)
    ),
    linear-gradient(180deg, rgba(238, 244, 243, 0.34), rgba(238, 244, 243, 0));
}

body.design-b2b .hero__shade {
  background:
    linear-gradient(rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.24)) 70%
      30% / 220px 54px no-repeat,
    linear-gradient(rgba(255, 247, 238, 0.46), rgba(255, 247, 238, 0.18)) 76%
      72% / 280px 72px no-repeat,
    linear-gradient(
      90deg,
      rgba(245, 249, 247, 0.98) 0%,
      rgba(245, 249, 247, 0.9) 43%,
      rgba(245, 249, 247, 0.36) 100%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(7, 95, 91, 0.045) 0 1px,
      transparent 1px 46px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 118px,
      rgba(23, 32, 51, 0.045) 118px 120px,
      transparent 120px 240px
    );
}

body.design-b2b .hero__content {
  min-height: min(320px, calc(100vh - 118px));
  padding-bottom: 42px;
}

body.design-b2b .hero__lead {
  max-width: 640px;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(560px, calc(100vh - 118px));
  align-content: center;
  padding: 54px 0 76px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
}

/* Цветовые схемы для категорий */
.category-icon--books {
  background: rgba(255, 107, 107, 0.1);
  color: #d35f6c;
}

.category-icon--stationery {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.category-icon--toys {
  background: rgba(244, 114, 208, 0.1);
  color: #f472d0;
}

.category-icon--school {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.category-icon--creativity {
  background: rgba(156, 39, 176, 0.1);
  color: #9c27b0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(38px, 6vw, 72px);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

h3 {
  font-size: 19px;
}

.hero__lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: #344155;
  font-size: 19px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-badges a {
  border: 1px solid rgba(255, 107, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #9a3412;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
}

.hero-badges a:hover {
  border-color: rgba(255, 107, 0, 0.42);
  background: #fff3e8;
}

.hero-ops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 164px));
  gap: 10px;
  max-width: 560px;
  margin-top: 24px;
}

.hero-ops span {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(217, 227, 234, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.08);
}

.hero-ops b {
  color: var(--primary-dark);
  font-size: 22px;
  line-height: 1.05;
}

.hero-ops small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 107, 0, 0.22);
}

.btn--primary:hover {
  background: #e85f00;
}

.btn--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn--ghost {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue);
}

.btn--small {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 13px;
}

.btn--full {
  width: 100%;
}

.market-showcase {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding-bottom: 18px;
}

.market-showcase__grid {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr) 300px;
  gap: 12px;
}

body.design-b2b .market-showcase {
  margin-top: -76px;
  padding-bottom: 26px;
}

body.design-b2b .market-showcase__grid {
  grid-template-columns: 282px minmax(0, 1fr) 330px;
  gap: 14px;
}

.showcase-menu {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  box-shadow: 0 12px 28px rgba(25, 42, 70, 0.08);
}

.showcase-menu > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.showcase-menu strong {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.12;
}

.showcase-menu a {
  display: grid;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344155;
  padding: 9px 10px;
}

.showcase-menu button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #344155;
  padding: 9px 10px;
  text-align: left;
}

.showcase-menu a b {
  font-size: 14px;
  font-weight: 800;
}

.showcase-menu button b {
  font-size: 14px;
  font-weight: 800;
}

.showcase-menu a small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.showcase-menu button small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.showcase-menu a:hover {
  border-color: rgba(255, 107, 0, 0.2);
  background: #fff3e8;
  color: #9a3412;
}

.showcase-menu button:hover {
  border-color: rgba(11, 127, 122, 0.22);
  background: #edf8f6;
  color: var(--primary-dark);
}

.showcase-menu a:hover small {
  color: #9a3412;
}

.showcase-menu button:hover small {
  color: var(--primary-dark);
}

body.design-b2b .showcase-menu {
  border-color: #d7e7e4;
  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.11);
}

.procurement-menu a,
.procurement-menu button {
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.procurement-menu a em,
.procurement-menu button em {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: span 2;
  place-items: center;
  border-radius: 999px;
  background: #edf8f6;
  color: var(--primary-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.procurement-menu a:hover em,
.procurement-menu button:hover em {
  background: #fff;
  color: var(--orange);
}

.purchase-center {
  display: grid;
  align-content: stretch;
  gap: 14px;
  min-width: 0;
  border: 1px solid #d7e7e4;
  border-radius: var(--radius);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(246, 251, 250, 0.92)
    ),
    url("assets/hero-assortment.png") center / cover;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.11);
}

.purchase-center__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.purchase-center__top h2 {
  max-width: 560px;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.05;
}

.purchase-center__top p:not(.eyebrow) {
  max-width: 560px;
  margin: 8px 0 0;
  color: #344155;
  font-size: 16px;
  font-weight: 800;
}

.purchase-center__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.purchase-action {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 148px;
  align-content: space-between;
  gap: 10px;
  border: 1px solid rgba(217, 227, 234, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 14px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.06);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.purchase-action:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 127, 122, 0.28);
  box-shadow: 0 14px 28px rgba(23, 32, 51, 0.09);
}

.purchase-action__index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #e8f5f2;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.purchase-action strong {
  font-size: 18px;
  line-height: 1.14;
}

.purchase-action small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
}

.purchase-action em {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #f6fafb;
  color: #344155;
  padding: 5px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.purchase-action--catalog {
  border-color: rgba(7, 95, 91, 0.24);
}

.purchase-action--prices {
  border-color: rgba(31, 95, 191, 0.22);
}

.purchase-action--quick {
  border-color: rgba(242, 106, 33, 0.24);
}

.purchase-action--prices .purchase-action__index {
  background: #eef5ff;
  color: #1f5fbf;
}

.purchase-action--quick .purchase-action__index {
  background: #fff2e6;
  color: #9a3412;
}

.purchase-center__status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(217, 227, 234, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: 8px;
}

.purchase-center__status span {
  display: grid;
  gap: 1px;
  min-width: 0;
  border-right: 1px solid rgba(217, 227, 234, 0.9);
  padding: 2px 10px;
}

.purchase-center__status span:last-child {
  border-right: 0;
}

.purchase-center__status b {
  font-size: 15px;
  line-height: 1.15;
}

.purchase-center__status small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.purchase-side {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.purchase-side .procurement-board {
  min-height: 0;
}

.wholesale-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #d7e7e4;
  border-radius: var(--radius);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.97),
      rgba(246, 251, 250, 0.94)
    ),
    url("assets/hero-assortment.png") right -80px center / 420px auto no-repeat;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.11);
}

.wholesale-panel__search {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px;
}

.wholesale-panel__headline {
  display: grid;
  gap: 4px;
}

.wholesale-panel__headline h2 {
  max-width: 430px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.06;
}

.wholesale-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 95, 91, 0.22);
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.08);
}

.wholesale-search:focus-within {
  border-color: rgba(7, 95, 91, 0.45);
  box-shadow: 0 0 0 3px rgba(7, 95, 91, 0.12);
}

.wholesale-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  outline: 0;
}

.wholesale-search input::placeholder {
  color: #7b8797;
  font-weight: 700;
}

.wholesale-search .btn {
  min-height: 42px;
  border-radius: 8px;
}

.wholesale-panel__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.wholesale-action {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid rgba(217, 227, 234, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 11px 12px;
  text-align: left;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.wholesale-action:hover,
.wholesale-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(7, 95, 91, 0.28);
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.09);
}

.wholesale-action strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wholesale-action span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wholesale-action small {
  overflow: hidden;
  color: #7a4a11;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wholesale-action__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wholesale-action__title b {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #eef4f3;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 0 7px;
}

.wholesale-action--catalog {
  border-color: rgba(7, 95, 91, 0.2);
}

.wholesale-action--prices {
  border-color: rgba(31, 95, 191, 0.18);
}

.wholesale-action--quick {
  border-color: rgba(242, 106, 33, 0.2);
}

.wholesale-action--cart {
  border-color: rgba(255, 107, 0, 0.24);
  background: #fff8ef;
}

.wholesale-action--cart.is-active {
  border-color: rgba(255, 107, 0, 0.46);
  background: linear-gradient(135deg, #fff6e8, #fff);
  box-shadow: 0 14px 28px rgba(224, 98, 0, 0.13);
}

.wholesale-action--cart.is-active .wholesale-action__title b {
  background: #ff6b00;
  color: #fff;
}

.promo-tile {
  position: relative;
  display: grid;
  align-content: end;
  width: 100%;
  min-width: 0;
  min-height: 150px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  padding: 20px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(25, 42, 70, 0.12);
}

.promo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.16),
    rgba(15, 23, 42, 0.46)
  );
}

.promo-tile span,
.promo-tile strong,
.promo-tile small {
  position: relative;
  z-index: 1;
}

.promo-tile span {
  width: max-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #172033;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.promo-tile strong {
  max-width: 520px;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.promo-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.promo-tile em {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-style: normal;
}

.promo-tile em b {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1;
}

.promo-tile--main {
  min-height: 252px;
  background:
    linear-gradient(135deg, rgba(10, 83, 79, 0.92), rgba(255, 107, 0, 0.72)),
    url("assets/category-school.png") center / cover;
}

body.design-b2b .promo-tile {
  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.14);
}

body.design-b2b .promo-tile--main {
  min-height: 282px;
  background:
    linear-gradient(135deg, rgba(6, 76, 73, 0.94), rgba(31, 95, 191, 0.66)),
    url("assets/hero-assortment.png") center / cover;
}

body.design-b2b .promo-tile--main strong {
  max-width: 620px;
  font-size: clamp(28px, 3.2vw, 42px);
}

body.design-b2b .promo-tile em b {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
}

.promo-column {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.promo-column .promo-tile {
  min-height: 120px;
  padding: 16px;
}

.promo-column .promo-tile strong {
  font-size: 20px;
}

.promo-tile--books {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.86), rgba(11, 127, 122, 0.66)),
    url("assets/category-books.png") center / cover;
}

body.design-b2b .promo-tile--books {
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.9), rgba(31, 95, 191, 0.64)),
    url("assets/category-books.png") center / cover;
}

.promo-tile--order {
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.9), rgba(255, 107, 0, 0.68)),
    url("assets/category-stationery.png") center / cover;
}

body.design-b2b .promo-tile--order {
  background:
    linear-gradient(135deg, rgba(6, 76, 73, 0.9), rgba(242, 106, 33, 0.66)),
    url("assets/category-stationery.png") center / cover;
}

.procurement-flow {
  position: relative;
  padding: 30px 0 48px;
  border-top: 1px solid rgba(217, 227, 234, 0.72);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72),
      rgba(245, 247, 251, 0.98)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(23, 32, 51, 0.035) 0 1px,
      transparent 1px 80px
    );
}

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

.procurement-flow__head h2 {
  max-width: 650px;
}

.procurement-flow__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.78fr) minmax(
      250px,
      0.78fr
    );
  gap: 14px;
  align-items: stretch;
}

.procurement-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.procurement-steps li {
  position: relative;
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.07);
}

.procurement-steps li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), rgba(242, 106, 33, 0.82));
}

.procurement-steps span {
  display: inline-flex;
  width: max-content;
  min-width: 38px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf8f6;
  color: var(--primary-dark);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.procurement-steps strong {
  font-size: 18px;
  line-height: 1.16;
}

.procurement-steps small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
}

.procurement-board {
  display: flex;
  min-height: 274px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.09);
}

.procurement-board__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.procurement-board__top > span {
  color: #344155;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price-snapshot {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.price-snapshot button {
  display: grid;
  grid-template-columns: minmax(86px, 0.72fr) minmax(0, 1fr) auto;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  border: 1px solid #e4edf3;
  border-radius: var(--radius);
  background: #f8fbfd;
  color: var(--text);
  padding: 10px 11px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.price-snapshot button:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 127, 122, 0.25);
  background: #edf8f6;
}

.price-snapshot b {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-snapshot span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-snapshot em {
  border-radius: 999px;
  background: #fff3e8;
  color: #9a3412;
  padding: 5px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.procurement-board--quick {
  border-color: #172033;
  background: linear-gradient(145deg, #172033, #0d5a58 72%), #172033;
  color: #fff;
}

.procurement-board--quick .procurement-board__top > span,
.procurement-board--quick .link-btn {
  color: #fff;
}

.quick-paste-preview {
  display: grid;
  gap: 9px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
}

.quick-paste-preview code {
  display: block;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.storefront-section {
  background: #fff;
  padding: 44px 0 52px;
}

.storefront-grid {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.deal-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #d7ebe8;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), #fff),
    url("assets/hero-assortment.png") center / cover;
  color: #172033;
  padding: 18px;
}

.deal-panel div {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.deal-panel span {
  border-radius: 999px;
  background: #def7f3;
  color: var(--primary-dark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.deal-panel strong {
  font-size: 22px;
  line-height: 1.12;
}

.deal-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.deal-panel__links {
  display: grid;
  gap: 7px;
}

.deal-panel__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(11, 127, 122, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #344155;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
}

.deal-panel__links a::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  transform: rotate(45deg);
}

.deal-panel__links a:hover {
  border-color: rgba(255, 107, 0, 0.3);
  color: #9a3412;
}

.storefront-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.storefront-card {
  display: grid;
  grid-template-rows: 148px minmax(0, 1fr);
  min-height: 250px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(25, 42, 70, 0.05);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.storefront-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 127, 122, 0.26);
  box-shadow: 0 14px 30px rgba(25, 42, 70, 0.1);
}

.storefront-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 148px;
  border: 0;
  background: #f8fbff;
  overflow: hidden;
  padding: 0;
}

.storefront-card__media img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.storefront-card:hover .storefront-card__media img {
  transform: scale(1.03);
}

.storefront-card__media > span {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.storefront-card__body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.storefront-card__body > strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  min-height: 0;
  line-height: 1.25;
}

.storefront-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.storefront-card__actions .btn {
  min-width: 0;
  width: 100%;
  padding-inline: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.section {
  padding: 72px 0;
}

.catalog-section,
.product-card {
  scroll-margin-top: 150px;
}

.section--categories,
.quick-order,
.contacts-section {
  background: var(--surface);
}

body.design-b2b .section--categories {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.86),
      rgba(247, 251, 249, 0.78)
    ),
    linear-gradient(90deg, transparent, rgba(7, 95, 91, 0.08), transparent)
      center 42px / 100% 1px no-repeat,
    repeating-linear-gradient(
      90deg,
      rgba(7, 95, 91, 0.035) 0 1px,
      transparent 1px 112px
    );
}

body.design-b2b .catalog-section {
  padding-top: 42px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(246, 250, 249, 0.9) 54%,
      rgba(255, 249, 242, 0.86)
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 70px,
      rgba(7, 95, 91, 0.035) 70px 71px,
      transparent 71px 112px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 180px,
      rgba(23, 32, 51, 0.03) 180px 181px,
      transparent 181px 360px
    );
}

body.design-b2b .product-rail-section {
  background:
    linear-gradient(
      180deg,
      rgba(255, 249, 242, 0.84),
      rgba(255, 255, 255, 0.9)
    ),
    linear-gradient(90deg, transparent, rgba(242, 106, 33, 0.08), transparent)
      center top / 100% 1px no-repeat;
}

body.design-b2b .contacts-section {
  background: linear-gradient(
    180deg,
    rgba(246, 251, 249, 0.84),
    rgba(255, 255, 255, 0.9)
  );
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.42);
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  grid-row: 1 / 5;
}

.category-card b {
  color: #172033;
  font-size: 15px;
  line-height: 1;
}

.category-card span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #344155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.category-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.category-card em {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f6fb;
  color: var(--primary-dark);
  padding: 4px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.benefit-item {
  border-left: 4px solid var(--orange);
  background: #fffaf5;
  padding: 22px;
}

.benefit-item svg {
  margin-bottom: 14px;
  color: var(--orange);
}

.benefit-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-head--catalog {
  align-items: center;
}

.view-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.view-switch__btn {
  display: grid;
  width: 44px;
  height: 40px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.view-switch__btn.is-active {
  background: var(--orange);
  color: #fff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  overflow-anchor: none;
}

.filters {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) repeat(4, minmax(130px, 1fr));
  align-items: end;
  gap: 8px 10px;
  overflow-anchor: none;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 10px;
  box-shadow:
    inset 2px 0 0 #0f766e,
    0 8px 20px rgba(25, 42, 70, 0.06);
  transition: box-shadow 0.2s ease;
}

.filters:hover {
  box-shadow:
    inset 2px 0 0 #0f766e,
    0 12px 28px rgba(25, 42, 70, 0.09);
}

.filters__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}

.filters__top h3 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.filters__book-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  align-items: stretch;
  gap: 6px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      rgba(240, 253, 250, 0.82),
      rgba(255, 255, 255, 0.92)
    ),
    #ffffff;
  padding: 7px;
}

.filters__book-group[hidden] {
  display: none;
}

.filters__book-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  padding: 0 2px 1px;
}

.filters__book-head strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.filters__book-head span {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.field span,
.field > label {
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 6px 10px;
  font-size: 13px;
  outline-color: rgba(15, 118, 110, 0.32);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.field--select-enhanced select[data-filter-select-native] {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.filter-select {
  position: relative;
  min-width: 0;
}

.field--select-enhanced.is-filter-select-open {
  position: relative;
  z-index: 140;
}

.filter-select__button {
  display: grid;
  width: 100%;
  min-height: 31px;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8e5f1;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #f8fbff), #fff;
  color: #172033;
  padding: 5px 7px 5px 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.filter-select__button:hover {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, #ffffff, #f3faf9), #fff;
}

.filter-select__button:focus-visible,
.filter-select.is-open .filter-select__button {
  border-color: #0f766e;
  box-shadow:
    0 0 0 3px rgba(15, 118, 110, 0.12),
    0 10px 22px rgba(25, 42, 70, 0.08);
  outline: none;
}

.filter-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-select__chevron {
  position: relative;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 7px;
  background: #eef6f5;
}

.filter-select__chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #0f766e;
  border-bottom: 2px solid #0f766e;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.filter-select.is-open .filter-select__chevron::before {
  transform: translateY(2px) rotate(225deg);
}

.filter-select__menu {
  position: absolute;
  z-index: 160;
  top: calc(100% + 5px);
  left: 0;
  width: max(100%, 230px);
  max-width: min(300px, calc(100vw - 32px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 22px 44px rgba(25, 42, 70, 0.16),
    0 2px 8px rgba(25, 42, 70, 0.08);
}

.filter-select.is-open .filter-select__menu {
  display: block;
}

.filters.filters--refined.is-filter-select-open {
  position: relative;
  z-index: 150;
}

.catalog-command-center.is-filter-select-open {
  overflow: visible;
}

.catalog-command-center .filters.filters--refined.is-filter-select-open {
  z-index: 170;
}

.filter-select__list {
  display: grid;
  max-height: min(270px, 48vh);
  overflow-y: auto;
  padding: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.34) transparent;
}

.filter-select__option {
  position: relative;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2f3b4b;
  padding: 8px 32px 8px 10px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}

.filter-select__option:hover {
  background: #f0f7f7;
  color: #0f766e;
}

.filter-select__option.is-selected {
  background: #eaf7f5;
  color: #075f5b;
}

.filter-select__option.is-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #0f766e;
  border-bottom: 2px solid #0f766e;
  transform: translateY(-60%) rotate(-45deg);
}

.field textarea {
  resize: vertical;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 44px;
}

.password-input__toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #728096;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.password-input__icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.password-input__slash {
  display: block;
  stroke-width: 2.1;
}

.password-input__toggle.is-password-visible .password-input__slash {
  display: none;
}

.password-input__toggle:hover,
.password-input__toggle:focus-visible {
  background: rgba(23, 32, 51, 0.06);
  color: #344155;
}

.password-input__toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
  outline: none;
}

.password-input:focus-within .password-input__toggle {
  color: #516071;
}

.catalog-panel {
  min-width: 0;
  overflow-anchor: none;
}

.catalog-panel.is-search-scroll-locked {
  transition: none;
}

.catalog-toolbar {
  position: sticky;
  top: 92px;
  z-index: 5;
  display: flex;
  overflow-anchor: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid #e8ebf0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 8px 10px;
  box-shadow: 0 4px 12px rgba(25, 42, 70, 0.06);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease;
}

.catalog-toolbar:hover {
  box-shadow: 0 6px 16px rgba(25, 42, 70, 0.09);
}

.catalog-toolbar__summary {
  display: grid;
  gap: 1px;
}

.catalog-toolbar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.catalog-toolbar__summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.catalog-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.catalog-page-size:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.catalog-page-size select {
  min-width: 58px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  outline: 0;
}

.catalog-page-size:focus-within {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.filter-open-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-open-btn:hover {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}

.filter-open-btn b {
  display: none;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.filter-open-btn.has-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.filter-open-btn.has-active b {
  display: grid;
}

.filters__top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.filters__close,
.filters__actions,
.filters-backdrop {
  display: none;
}

.active-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  overflow-anchor: none;
  margin: 0 0 12px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 8px;
  box-shadow: 0 8px 20px rgba(25, 42, 70, 0.05);
}

.active-filter-bar.is-hidden {
  display: none;
}

.catalog-window {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  overflow-anchor: none;
  margin-top: 16px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.catalog-window__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 260px;
}

.catalog-window span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.catalog-page-size--bottom {
  flex: 0 0 auto;
}

.catalog-window.is-hidden {
  display: none;
}

.active-filter-chip,
.active-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.active-filter-chip {
  max-width: min(100%, 330px);
  border: 1px solid #d7e4f2;
  background: #fff;
  color: #2f3b4d;
  padding: 0 6px 0 11px;
  box-shadow: 0 2px 8px rgba(25, 42, 70, 0.04);
}

.active-filter-chip:hover {
  border-color: rgba(255, 107, 0, 0.42);
  background: #fff4e8;
}

.active-filter-chip__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-filter-chip__icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #f2f6fb;
  color: #718096;
}

.active-filter-chip:hover .active-filter-chip__icon {
  background: rgba(255, 107, 0, 0.12);
  color: #9a3412;
}

.active-filter-chip svg {
  width: 13px;
  height: 13px;
  color: #718096;
}

.active-filter-reset {
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: #f0fdfa;
  color: #0f766e;
  padding: 0 12px;
}

.active-filter-reset:hover {
  border-color: rgba(15, 118, 110, 0.34);
  background: #ccfbf1;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e8ebf0;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    all 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.1s ease;
  user-select: none;
}

.quick-chip::before {
  content: attr(data-icon);
  font-size: 14px;
  line-height: 1;
}

.quick-chip:hover {
  transform: translateY(-1px);
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}

.quick-chip.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.quick-chip.is-active:hover {
  background: #0d6e6b;
}

.quick-chips--books {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
}

.quick-chip--book {
  border-color: #c4b5fd;
  background: #ffffff;
  color: #5c4b6d;
  position: relative;
  overflow: hidden;
}

.quick-chip--book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(196, 181, 253, 0.1) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-chip--book:hover::before {
  opacity: 1;
}

.quick-chip--book:hover {
  border-color: #8b5cf6;
  background: #f5f3ff;
  color: #6d28d9;
  transform: translateY(-1px);
}

.quick-chip--book.is-active {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.quick-chip--book[data-book-type="all"] {
  border-color: #db2777;
  font-weight: 700;
}

.quick-chip--book[data-book-type="all"]:hover {
  border-color: #be185d;
  background: #fdf2f8;
  color: #db2777;
}

.quick-chip--book[data-book-type="all"].is-active {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  color: #ffffff;
}

.catalog-popular {
  display: grid;
  gap: 12px;
  overflow-anchor: none;
  margin: 0 0 14px;
  border: 1px solid #dfe8f5;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(25, 42, 70, 0.05);
}

.catalog-popular.is-hidden {
  height: 0;
  margin-bottom: 14px;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  padding-block: 0;
  pointer-events: none;
}

.catalog-popular__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.catalog-popular__head div {
  display: grid;
  gap: 2px;
}

.catalog-popular__head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-popular__head h3 {
  font-size: 22px;
}

.catalog-popular__head .link-btn {
  color: var(--primary);
  white-space: nowrap;
}

.catalog-popular__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.catalog-themes {
  margin-top: 12px;
}

.catalog-themes .catalog-popular__head {
  align-items: center;
  margin-bottom: 2px;
}

.catalog-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.catalog-theme-card {
  --theme-accent: #0f766e;
  --theme-surface: #f0fdfa;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 10px;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid #d8e4ec;
  border-left: 4px solid var(--theme-accent);
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.catalog-theme-card:hover,
.catalog-theme-card:focus-visible {
  border-color: var(--theme-accent);
  box-shadow: 0 8px 20px rgba(25, 42, 70, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.catalog-theme-card.is-active {
  background: var(--theme-surface);
  box-shadow: inset 0 0 0 1px var(--theme-accent);
}

.catalog-theme-card--books {
  --theme-accent: #0f766e;
  --theme-surface: #ecfdf5;
}

.catalog-theme-card--school {
  --theme-accent: #2563eb;
  --theme-surface: #eff6ff;
}

.catalog-theme-card--stationery {
  --theme-accent: #c2410c;
  --theme-surface: #fff7ed;
}

.catalog-theme-card--holiday {
  --theme-accent: #b4235d;
  --theme-surface: #fdf2f8;
}

.catalog-theme-card--creative {
  --theme-accent: #6d28d9;
  --theme-surface: #f5f3ff;
}

.catalog-theme-card--kids {
  --theme-accent: #0e7490;
  --theme-surface: #ecfeff;
}

.catalog-theme-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.catalog-theme-card__title-group {
  display: grid;
  gap: 4px;
}

.catalog-theme-card__title {
  color: #172033;
  font-size: 15px;
  line-height: 1.25;
}

.catalog-theme-card__subtitle {
  display: -webkit-box;
  overflow: hidden;
  color: #5b697a;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-theme-card__count {
  color: var(--theme-accent);
  font-size: 12px;
  font-weight: 800;
}

.catalog-theme-card__previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  gap: 4px;
}

.catalog-theme-card__preview {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2eaf0;
  border-radius: 5px;
  background: #f8fafc;
  place-items: center;
}

.catalog-theme-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.16s ease;
}

.catalog-theme-card:hover .catalog-theme-card__preview img {
  transform: scale(1.04);
}

.catalog-theme-card__preview--placeholder {
  background: #f1f5f9;
}

/* One-line thematic navigation: compact directions, not a second card gallery. */
.catalog-themes .catalog-theme-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.catalog-theme-chip {
  --theme-accent: #0f766e;
  --theme-surface: #ecfdf5;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #ffffff;
  color: #26354a;
  padding: 0 12px;
  box-shadow: 0 1px 2px rgba(24, 39, 64, 0.04);
  cursor: pointer;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  scroll-snap-align: start;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.catalog-theme-chip:hover,
.catalog-theme-chip:focus-visible {
  border-color: var(--theme-accent);
  box-shadow: 0 3px 10px rgba(24, 39, 64, 0.1);
  outline: none;
}

.catalog-theme-chip.is-active {
  border-color: var(--theme-accent);
  background: var(--theme-surface);
  box-shadow: inset 0 0 0 1px var(--theme-accent);
}

.catalog-theme-chip--books {
  --theme-accent: #0f766e;
  --theme-surface: #ecfdf5;
}

.catalog-theme-chip--school {
  --theme-accent: #2563eb;
  --theme-surface: #eff6ff;
}

.catalog-theme-chip--stationery {
  --theme-accent: #c2410c;
  --theme-surface: #fff7ed;
}

.catalog-theme-chip--holiday {
  --theme-accent: #b4235d;
  --theme-surface: #fdf2f8;
}

.catalog-theme-chip--creative {
  --theme-accent: #6d28d9;
  --theme-surface: #f5f3ff;
}

.catalog-theme-chip--kids {
  --theme-accent: #0e7490;
  --theme-surface: #ecfeff;
}

.catalog-theme-chip__marker {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--theme-accent);
}

.catalog-theme-chip__title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.catalog-theme-chip__count {
  border-left: 1px solid rgba(38, 53, 74, 0.14);
  color: var(--theme-accent);
  padding-left: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 560px) {
  .catalog-themes .catalog-theme-grid {
    gap: 7px;
    margin-right: -2px;
  }

  .catalog-theme-chip {
    min-height: 36px;
    gap: 7px;
    padding: 0 11px;
  }
}

.catalog-popular-card {
  display: grid;
  grid-template-rows: 118px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2ebf3;
  border-radius: var(--radius);
  background: #fff;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.catalog-popular-card:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 127, 122, 0.24);
  box-shadow: 0 12px 24px rgba(25, 42, 70, 0.09);
}

.catalog-popular-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: 118px;
  overflow: hidden;
  border: 0;
  background: #f8fbff;
  padding: 0;
}

.catalog-popular-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-popular-card__media > span {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #172033;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.catalog-popular-card__body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}

.catalog-popular-card__body > strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 38px;
  font-size: 14px;
  line-height: 1.28;
}

.catalog-popular-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.catalog-popular-card__actions .btn {
  min-width: 0;
  width: 100%;
  padding-inline: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.catalog-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 280px;
  align-content: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #f8fbff);
  padding: 28px;
}

.catalog-empty strong {
  font-size: 24px;
}

.catalog-empty span {
  max-width: 460px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  overflow-anchor: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(25, 42, 70, 0.05);
}

.table-wrap.is-virtualized {
  max-height: min(74vh, var(--catalog-table-virtual-viewport, 640px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.product-table {
  width: 100%;
  min-width: 860px;
  overflow-anchor: none;
  border-collapse: collapse;
}

.product-table th,
.product-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.product-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff7ed;
  color: #344155;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-table tr:last-child td {
  border-bottom: 0;
}

.catalog-virtual-row-spacer td {
  height: auto;
  border-bottom: 0;
  padding: 0;
}

.catalog-virtual-row-spacer div {
  width: 1px;
}

.product-title {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.product-thumb {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #f2f6fb;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title strong,
.product-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.product-title span,
.product-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.product-title__book-meta {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #667085;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__match {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4f91;
  font-size: 12px;
  font-weight: 900;
}

.product-card__match {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  overflow: hidden;
  padding: 3px 8px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock {
  display: inline-flex;
  min-width: 112px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.stock--ok {
  background: #dcfce7;
  color: #166534;
}

.stock--low {
  background: #fef3c7;
  color: #92400e;
}

.stock--order {
  background: #dbeafe;
  color: #1d4ed8;
}

.stock--none {
  background: #fee2e2;
  color: #991b1b;
}

.price {
  font-weight: 800;
  white-space: nowrap;
}

.locked-price {
  color: var(--muted);
  font-size: 13px;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 34px 54px 34px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-control button,
.qty-control input {
  border: 0;
  background: var(--surface);
  text-align: center;
}

.qty-control button {
  color: var(--primary);
  font-weight: 900;
}

.qty-control input {
  width: 54px;
  border-inline: 1px solid var(--line);
}

.product-grid {
  --catalog-card-min-width: 220px;
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, var(--catalog-card-min-width)), 1fr)
  );
  align-items: stretch;
  gap: 14px 12px;
  overflow-anchor: none;
  overflow: visible;
}

.product-grid.is-virtualized {
  display: block;
}

.catalog-virtual {
  position: relative;
  width: 100%;
  height: min(74vh, var(--catalog-virtual-viewport, 720px));
  min-height: min(560px, calc(100vh - 168px));
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.catalog-virtual__spacer {
  position: relative;
  min-height: 100%;
}

.catalog-virtual__items {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-auto-rows: var(--catalog-virtual-card-height, 498px);
  gap: var(--catalog-virtual-gap, 10px);
  will-change: transform;
}

.catalog-virtual__cell {
  min-width: 0;
}

.catalog-virtual__cell > .product-card {
  height: 100%;
}

.product-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(25, 42, 70, 0.05);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.product-card:hover,
.product-card:focus-within {
  z-index: 20;
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.42);
  box-shadow: 0 18px 34px rgba(25, 42, 70, 0.13);
}

.product-card.is-muted {
  opacity: 0.74;
}

.favorite-card-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  box-shadow: 0 8px 18px rgba(25, 42, 70, 0.14);
}

.favorite-card-btn.is-active {
  background: #fff1f7;
  color: var(--pink);
}

.favorite-card-btn.is-active svg {
  fill: currentColor;
}

.product-card__media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1.3;
  min-height: 248px;
  max-height: 328px;
  place-items: center;
  border: 0;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.95),
      rgba(248, 251, 255, 0.68)
    ),
    linear-gradient(135deg, #f8fbff, #eef6ff);
  overflow: hidden;
  padding: 6px;
}

.product-card__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.product-card__media:hover img,
.product-card__media:focus-visible img {
  transform: scale(1.025);
}

.product-card__photo-count {
  display: none !important;
}

.product-card__hover-panel {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .product-card {
    overflow: visible;
  }

  .product-card:hover,
  .product-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(25, 42, 70, 0.18);
  }

  .product-card:has(.product-card__media:hover) {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(25, 42, 70, 0.18);
  }

  .product-card__hover-panel {
    position: absolute;
    top: calc(100% - 1px);
    right: -1px;
    left: -1px;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    border: 1px solid rgba(11, 129, 123, 0.18);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(239, 249, 247, 0.98)
      ),
      #f3fbf9;
    box-shadow: 0 16px 26px rgba(24, 39, 52, 0.1);
    padding: 7px 8px 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.16s ease,
      transform 0.16s ease;
  }

  .product-card:hover .product-card__hover-panel,
  .product-card:focus-within .product-card__hover-panel {
    opacity: 1;
    transform: translateY(0);
  }

  .product-card:has(.product-card__media:hover) .product-card__hover-panel {
    opacity: 1;
    transform: translateY(0);
  }

  .product-card__hover-panel span {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
  }

  .product-card__hover-panel .product-card__hover-total {
    border: 1px solid rgba(11, 129, 123, 0.14);
    background: rgba(255, 255, 255, 0.72);
  }

  .product-card__hover-panel small {
    color: #53706c;
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
  }

  .product-card__hover-panel .product-card__hover-total small {
    color: #0b817b;
  }

  .product-card__hover-panel b {
    overflow: hidden;
    color: #132f2e;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-card__hover-panel .product-card__hover-total b {
    color: #122124;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card__media img {
    transition: none;
  }

  .product-card__media:hover img,
  .product-card__media:focus-visible img {
    transform: none;
  }
}

.product-card__content {
  display: grid;
  grid-template-rows: 34px 42px 18px 22px 38px;
  min-height: 0;
  height: 100%;
  gap: 2px;
  padding: 5px 6px 6px;
}

.market-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 14px rgba(25, 42, 70, 0.12);
  color: #172033;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.market-badge--new {
  background: linear-gradient(135deg, #ff6b00, #ff2f62);
  box-shadow: 0 8px 18px rgba(255, 71, 55, 0.28);
  color: #fff;
  padding: 5px 9px;
  font-size: 12px;
  text-transform: uppercase;
}

.discount-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.rating {
  color: #f59e0b;
  font-weight: 900;
}

.product-card__topline,
.product-card__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.product-card__topline {
  min-height: 24px;
  overflow: hidden;
}

.product-card__topline .stock {
  min-width: 0;
}

.product-card__topline > span:not(.stock),
.product-card__line span {
  border-radius: 999px;
  background: #f2f6fb;
  color: #526071;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
}

.product-card__title {
  display: grid;
  grid-template-rows: 40px 0;
  gap: 0;
  min-height: 44px;
  overflow: hidden;
}

.product-card__title strong {
  display: -webkit-box;
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  color: #111827;
  font-size: 14.5px;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__title .product-card__match:empty {
  display: none;
}

.product-card__specs small {
  display: none;
  color: #718096;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-card__specs b {
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-card__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.product-card__specs span {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 44px;
  border: 1px solid #edf2f8;
  border-radius: 8px;
  background: #fff;
  padding: 5px 6px;
}

.product-card__purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  align-self: center;
  min-height: 34px;
  height: 34px;
  margin-top: 0;
  border: 1px solid #d5e2ec;
  border-radius: 8px;
  background: #eef6fb;
  padding: 0 5px;
}

.product-card .price {
  color: #111827;
  font-size: 19px;
  line-height: 0.98;
}

.market-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.product-card .market-price {
  display: grid;
  grid-template-rows: minmax(20px, 1fr);
  min-width: 0;
  align-self: stretch;
}

.market-price__label,
.market-price__unit {
  display: flex;
  height: 100%;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
}

.market-price__label {
  text-transform: uppercase;
}

.market-price__value {
  display: flex;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.market-price s {
  color: #9aa5b5;
  font-size: 12px;
  font-weight: 800;
}

.product-card__book-facts {
  display: grid;
  min-height: 18px;
  min-width: 0;
  align-items: center;
  gap: 3px;
}

.product-card__book-facts--empty {
  visibility: hidden;
}

.product-card__book-fact,
.product-card__author,
.product-card__year {
  display: inline-flex;
  min-width: 0;
  min-height: 20px;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  background: #f4f7fb;
  padding: 3px 5px;
  color: #526071;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.product-card__book-fact small,
.product-card__author small,
.product-card__year small {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.product-card__book-fact b,
.product-card__author b,
.product-card__year b {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__book-fact--compact {
  min-height: 16px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #667085;
  font-size: 12.5px;
  font-weight: 700;
}

.product-card__book-fact--compact b {
  color: inherit;
}

.product-card__delivery {
  display: inline-flex;
  min-width: 0;
  min-height: 22px;
  height: 22px;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  border-radius: 8px;
  background: #f8fbff;
  padding: 3px 4px;
  color: #526071;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.product-card__delivery small {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.product-card__delivery span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__delivery b {
  min-width: 0;
  flex: 1 1 auto;
  color: #0f766e;
  font-size: 10.8px;
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.price,
.market-price__value,
.product-card__delivery b,
.quick-example code,
.quick-paste-preview code,
.quick-results b,
.cart-row__codes span,
.cart-row__price strong,
.cart-row__sum strong {
  font-variant-numeric: tabular-nums;
}

.product-card__delivery b,
.quick-example code,
.quick-paste-preview code,
.cart-row__codes span {
  font-family: var(--font-mono);
}

.product-card .btn {
  width: 100%;
}

.product-card .qty-control {
  width: 100%;
  grid-template-columns: 42px 1fr 42px;
}

.product-card .qty-control input {
  width: 100%;
}

.product-card__order {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  align-self: stretch;
  height: 38px;
  margin-top: 0;
}

.product-card__order .btn {
  min-height: 36px;
}

.card-buy-control {
  display: grid;
  min-height: 36px;
  align-items: stretch;
  min-width: 0;
}

.card-buy-control .btn,
.card-buy-control .card-buy-stepper {
  width: 100%;
}

.card-buy-button {
  min-height: 32px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff7a00, #ff4f00);
  box-shadow: 0 8px 18px rgba(255, 107, 0, 0.22);
}

.card-buy-stepper {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  min-height: 36px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff7a00, #ff4f00);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 107, 0, 0.22);
}

.card-buy-stepper button {
  display: grid;
  height: 38px;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.card-buy-stepper button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.card-buy-stepper span {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 0;
  color: #fff;
  line-height: 1;
}

.card-buy-stepper strong {
  font-size: 16px;
  font-weight: 900;
}

.card-buy-stepper small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
}

/* ========== OPTIMISTIC UPDATES ==========
/* Индикация оптимистичных обновлений UI */

.card-buy-control.is-updating,
.card-buy-stepper.is-updating {
  position: relative;
  pointer-events: none;
}

.card-buy-control.is-updating::after,
.card-buy-stepper.is-updating::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: inherit;
  animation: updating-pulse 1.5s ease-in-out infinite;
}

@keyframes updating-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Кнопка в процессе обновления */
.btn.is-updating {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-updating::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Toast для optimistic updates */
.toast.optimistic {
  border-left: 4px solid var(--yellow);
}

.toast.optimistic .toast-progress {
  background: var(--yellow);
}

/* Error state для карточки после неудачного optimistic update */
.product-card.has-error {
  border-color: var(--red);
  animation: error-shake 0.5s ease-in-out;
}

@keyframes error-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* Индикатор optimistic update в header */
.header-action.is-updating .badge {
  animation: badge-pulse 1s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Глобальное состояние загрузки */
body.app-loading .header-action[data-mobile-cart-count]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: inherit;
  animation: global-loading 1.5s ease-in-out infinite;
}

@keyframes global-loading {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
}

/* Успешное подтверждение optimistic update */
.card-buy-control.update-success {
  animation: success-flash 0.6s ease-out;
}

@keyframes success-flash {
  0% {
    background: linear-gradient(90deg, #ff7a00, #ff4f00);
  }
  50% {
    background: linear-gradient(90deg, #16a34a, #22c55e);
  }
  100% {
    background: linear-gradient(90deg, #ff7a00, #ff4f00);
  }
}

.product-card__actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8px;
}

.product-card__actions .btn--secondary {
  background: #f8fbff;
}

.product-card__actions .btn--primary {
  min-height: 42px;
}

.product-card__details {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344155;
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
  text-align: left;
}

.product-card__details:hover {
  border-color: rgba(11, 127, 122, 0.26);
  color: var(--primary);
}

.product-rail-section {
  background: #fff;
  padding-top: 54px;
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.rail-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 360px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(25, 42, 70, 0.06);
}

.rail-card__media {
  position: relative;
  display: grid;
  min-height: 138px;
  place-items: center;
  border: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0;
}

.rail-card__media img {
  width: 100%;
  height: 100%;
  min-height: 138px;
  object-fit: cover;
}

.rail-card__media .rail-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.rail-card__media strong {
  font-size: 38px;
  font-weight: 900;
}

.rail-card__body {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px 0;
}

.rail-card__body strong {
  line-height: 1.25;
}

.rail-card__meta {
  color: var(--muted);
  font-size: 12px;
}

.rail-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rail-card__actions {
  display: grid;
  gap: 8px;
}

.rail-card__actions .btn {
  width: 100%;
}

.product-modal .product-modal__body {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  width: min(100%, 1040px);
  align-items: start;
  gap: 18px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 18px;
}

.product-modal__gallery {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.product-modal__gallery-view {
  display: grid;
  gap: 8px;
}

.product-modal__media {
  position: relative;
  display: grid;
  align-self: start;
  aspect-ratio: 1;
  min-height: 0;
  place-items: center;
  border: 1px solid #e0ebf6;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  overflow: hidden;
}

.product-modal__image-wrap {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.product-modal__image-wrap img,
.product-modal__media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-modal__zoom-hint {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.72);
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.product-modal__loupe {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  width: min(44%, 168px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.96);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.product-modal__loupe img {
  position: absolute;
  left: 0;
  top: 0;
  width: 260%;
  height: 260%;
  object-fit: cover;
  transform: translate(
    var(--loupe-offset-x, -30.77%),
    var(--loupe-offset-y, -30.77%)
  );
}

.loupe-x-0 {
  --loupe-offset-x: 0%;
}

.loupe-x-1 {
  --loupe-offset-x: -6.15%;
}

.loupe-x-2 {
  --loupe-offset-x: -12.31%;
}

.loupe-x-3 {
  --loupe-offset-x: -18.46%;
}

.loupe-x-4 {
  --loupe-offset-x: -24.62%;
}

.loupe-x-5 {
  --loupe-offset-x: -30.77%;
}

.loupe-x-6 {
  --loupe-offset-x: -36.92%;
}

.loupe-x-7 {
  --loupe-offset-x: -43.08%;
}

.loupe-x-8 {
  --loupe-offset-x: -49.23%;
}

.loupe-x-9 {
  --loupe-offset-x: -55.38%;
}

.loupe-x-10 {
  --loupe-offset-x: -61.54%;
}

.loupe-y-0 {
  --loupe-offset-y: 0%;
}

.loupe-y-1 {
  --loupe-offset-y: -6.15%;
}

.loupe-y-2 {
  --loupe-offset-y: -12.31%;
}

.loupe-y-3 {
  --loupe-offset-y: -18.46%;
}

.loupe-y-4 {
  --loupe-offset-y: -24.62%;
}

.loupe-y-5 {
  --loupe-offset-y: -30.77%;
}

.loupe-y-6 {
  --loupe-offset-y: -36.92%;
}

.loupe-y-7 {
  --loupe-offset-y: -43.08%;
}

.loupe-y-8 {
  --loupe-offset-y: -49.23%;
}

.loupe-y-9 {
  --loupe-offset-y: -55.38%;
}

.loupe-y-10 {
  --loupe-offset-y: -61.54%;
}

.product-modal__loupe::after {
  content: "увеличение";
  position: absolute;
  right: 7px;
  bottom: 7px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.72);
  color: #fff;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 900;
}

.product-modal__media.is-zooming .product-modal__loupe {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #172033;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 10px 20px rgba(23, 32, 51, 0.14);
}

.product-gallery-nav--prev {
  left: 10px;
}

.product-gallery-nav--next {
  right: 10px;
}

.product-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-modal__thumb {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.35;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f8fbff;
  padding: 0;
}

.product-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal__thumb span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.product-modal__thumb.is-active {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.14);
}

.product-modal__gallery-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-image-viewer[hidden] {
  display: none !important;
}

.product-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  background: rgba(8, 13, 24, 0.92);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.product-image-viewer__bar {
  display: flex;
  width: min(100%, 1280px);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  justify-self: center;
  color: #fff;
}

.product-image-viewer__bar div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-image-viewer__bar span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-image-viewer__bar strong {
  overflow: hidden;
  max-width: min(70vw, 920px);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-viewer__counter {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.product-image-viewer__close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.product-image-viewer__close:hover,
.product-image-viewer__close:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.product-image-viewer__stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-out;
}

.product-image-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: clamp(42px, 5vw, 58px);
  height: clamp(42px, 5vw, 58px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.product-image-viewer__nav:hover,
.product-image-viewer__nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.product-image-viewer__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.product-image-viewer__nav--prev {
  left: clamp(10px, 3vw, 30px);
}

.product-image-viewer__nav--next {
  right: clamp(10px, 3vw, 30px);
}

.product-image-viewer__stage img {
  width: min(100%, 1280px);
  height: 100%;
  max-height: calc(100dvh - 118px);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  cursor: default;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.product-modal__header {
  display: grid;
  gap: 8px;
}

.product-modal__info h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.12;
}

.product-modal__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
}

.product-modal__info {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.product-modal__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.product-modal__meta span {
  display: grid;
  gap: 1px;
  min-width: 0;
  border: 1px solid #e3edf8;
  border-radius: 8px;
  background: #f8fbff;
  padding: 7px 8px;
}

.product-modal__meta small,
.product-modal__price-label {
  color: #718096;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-modal__meta b {
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-modal__buybox {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.2fr);
  gap: 10px 12px;
  align-items: center;
  border: 1px solid #ffd7ad;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf5, #fff4ea);
  padding: 12px;
}

.product-modal__price {
  display: grid;
  gap: 4px;
}

.product-modal__price div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.product-modal__price .price {
  color: #111827;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
}

.product-modal__price s {
  color: #9aa5b5;
  font-size: 15px;
  font-weight: 800;
}

.product-modal__price small,
.product-modal__note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-modal__status {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.product-modal__status div {
  display: grid;
  gap: 2px;
}

.product-modal__status small {
  color: var(--muted);
  font-size: 11px;
}

.product-modal__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.product-modal__spec {
  display: grid;
  gap: 3px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #f8fbff;
  padding: 9px 10px;
}

.product-modal__spec--wide {
  grid-column: 1 / -1;
}

.product-modal__spec span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-modal__spec strong {
  font-size: 13px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

/* Empty/placeholder spec rows (value missing → "—") are muted so the fixed
   layout reads as a stable grid, not a list of gaps. */
.product-modal__spec--empty strong {
  color: var(--muted, #94a3b8);
  font-weight: 500;
}

/* Clickable characteristic values → jump to the catalog filtered by that value. */
.product-modal__spec-link {
  color: inherit;
  text-decoration: none;
}
.product-modal__spec-link strong {
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.18);
  text-underline-offset: 2px;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}
.product-modal__spec-link:hover strong {
  color: #075f5b;
  text-decoration-color: currentColor;
}

.product-modal__controls {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.product-modal__controls .qty-control {
  width: 100%;
  height: 44px;
  grid-template-columns: 42px 1fr 42px;
}

.product-modal__controls .qty-control input {
  width: 100%;
}

.product-modal__controls .btn {
  width: 100%;
  min-height: 44px;
}

.product-modal__note {
  grid-column: 1 / -1;
  margin: 0;
}

.product-modal__related {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.product-modal__related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.product-modal__related-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-modal__related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.modal-related-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.modal-related-card__media {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
  padding: 0;
}

.modal-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-related-card__media span {
  position: absolute;
  top: 7px;
  left: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #172033;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.modal-related-card__body {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.modal-related-card__body strong {
  line-height: 1.25;
}

.modal-related-card__body small {
  color: var(--muted);
  font-size: 12px;
}

.modal-related-card__bottom {
  display: grid;
  gap: 7px;
}

.modal-related-card__bottom span {
  color: #111827;
  font-weight: 900;
}

.modal-related-card .btn {
  width: 100%;
}

.is-hidden {
  display: none !important;
}

.quick-order__grid,
.request-grid,
.account-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 34px;
}

.request-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
}

.quick-order p,
.quick-order-modal p,
.account-section p,
.contacts-section p {
  color: var(--muted);
}

.quick-example {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-example span,
.quick-example code {
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 6px 8px;
  font-size: 13px;
}

.quick-form,
.request-summary,
.contact-form,
.modal__body,
.order-history {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.quick-results {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.quick-results b {
  color: var(--text);
}

.quick-results__empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  color: #64748b;
  font-weight: 800;
}

.quick-results__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.quick-results__summary strong {
  margin-right: auto;
  color: #111827;
}

.quick-results__summary span {
  border-radius: 999px;
  background: #fff;
  padding: 5px 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.quick-result-list {
  display: grid;
  gap: 8px;
}

.quick-result-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 128px 126px;
  gap: 10px;
  align-items: center;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.quick-result-row--ok {
  border-color: rgba(22, 163, 74, 0.28);
  background: linear-gradient(180deg, #f0fdf4, #fff);
}

.quick-result-row--warn {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(180deg, #fffbeb, #fff);
}

.quick-result-row--miss {
  border-color: rgba(220, 38, 38, 0.24);
  background: linear-gradient(180deg, #fef2f2, #fff);
}

.quick-result-row__status {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 8px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 900;
}

.quick-result-row--ok .quick-result-row__status {
  background: #dcfce7;
  color: #166534;
}

.quick-result-row--warn .quick-result-row__status {
  background: #fef3c7;
  color: #92400e;
}

.quick-result-row--miss .quick-result-row__status {
  background: #fee2e2;
  color: #991b1b;
}

.quick-result-row__main,
.quick-result-row__qty,
.quick-result-row__sum {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quick-result-row__main strong,
.quick-result-row__qty strong,
.quick-result-row__sum strong {
  color: #111827;
  font-weight: 900;
}

.quick-result-row__main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-result-row__main span,
.quick-result-row__qty span,
.quick-result-row__sum span {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-result-row__sum {
  text-align: right;
}

.quick-results__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e7edf5;
  padding-top: 10px;
}

.quick-results__actions span {
  color: #111827;
  font-weight: 900;
}

.request-list-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(25, 42, 70, 0.05);
}

.request-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e7edf5;
  padding-bottom: 12px;
}

.request-list-head > div:first-child {
  display: grid;
  gap: 3px;
}

.request-list-head strong {
  color: #111827;
  font-size: 18px;
}

.request-list-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.request-list-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.request-list {
  display: grid;
  gap: 12px;
}

.request-head {
  align-items: center;
  margin-bottom: 18px;
}

.request-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 0.7fr)) minmax(220px, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.request-overview__item,
.request-overview__status {
  display: grid;
  align-content: center;
  min-height: 78px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 14px;
}

.request-overview__item span,
.request-overview__status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-overview__item strong {
  color: #111827;
  font-size: 24px;
  line-height: 1.1;
}

.request-overview__item--total {
  border-color: rgba(255, 107, 0, 0.28);
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.request-overview__item--total strong {
  color: #9a3412;
}

.request-overview__status {
  gap: 10px;
}

.favorites-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  align-items: start;
  gap: 24px;
}

.favorites-list {
  display: grid;
  gap: 12px;
}

.empty-state {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  padding: 28px;
}

.empty-state--cart {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 210px;
  align-content: center;
  background: linear-gradient(135deg, #fff, #f8fbff);
}

.empty-state--cart strong {
  color: var(--text);
  font-size: 22px;
}

.empty-state--cart span {
  max-width: 440px;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state--favorites {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 260px;
  align-content: center;
  background: linear-gradient(135deg, #fff, #f8fbff);
}

.empty-state--favorites strong {
  color: var(--text);
  font-size: 22px;
}

.favorite-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto 156px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(25, 42, 70, 0.05);
}

.favorite-row__media {
  position: relative;
  display: block;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 10px;
  background: #f8fbff;
  overflow: hidden;
  padding: 0;
}

.favorite-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-row__media span {
  position: absolute;
  top: 7px;
  left: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #172033;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.favorite-row__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.favorite-row__body strong {
  line-height: 1.25;
}

.favorite-row__body small,
.favorite-row__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.favorite-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.favorite-row__price {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.favorite-row__price s {
  color: #9aa5b4;
  font-size: 12px;
}

.favorite-row__actions {
  display: grid;
  gap: 8px;
}

.favorite-row__remove {
  justify-self: center;
  color: var(--red);
}

.favorites-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 12px 28px rgba(25, 42, 70, 0.08);
}

.favorites-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.favorites-aside dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.favorites-aside dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.favorites-aside dt {
  color: var(--muted);
}

.favorites-aside dd {
  margin: 0;
  font-weight: 900;
}

.cart-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 88px 128px 108px 38px;
  align-items: center;
  gap: 10px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  padding: 10px;
}

.cart-row__media {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 10px;
  background: #f8fbff;
  overflow: hidden;
  padding: 0;
}

.cart-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-row__media span {
  position: absolute;
  top: 7px;
  left: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #172033;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.cart-row__info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cart-row__title {
  display: grid;
  gap: 2px;
}

.cart-row__title strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-row__title span,
.cart-row__codes,
.cart-row__meta,
.cart-row__price span,
.cart-row__sum span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cart-row__codes,
.cart-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cart-row__codes span {
  border-radius: 999px;
  background: #f2f6fb;
  color: #526071;
  padding: 4px 7px;
}

.cart-row__price,
.cart-row__sum {
  display: grid;
  gap: 2px;
}

.cart-row__price strong {
  color: #111827;
  font-size: 16px;
  white-space: nowrap;
}

.cart-row__price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.cart-row__sum strong {
  font-size: 17px;
  white-space: nowrap;
}

.cart-row__sum small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.cart-row__meta > span:not(.stock) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cart-row__qty {
  display: grid;
  gap: 4px;
}

.cart-row__qty > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cart-row__qty .qty-control {
  width: 100%;
  grid-template-columns: 36px 1fr 36px;
}

.cart-row__qty .qty-control input {
  width: 100%;
}

.cart-row__sum {
  text-align: right;
}

.cart-row__price {
  text-align: right;
}

.cart-row__price span {
  text-align: right;
}

.cart-row__sum span {
  text-align: right;
}

.remove-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--red);
}

.request-summary {
  position: sticky;
  top: 96px;
  box-shadow: 0 12px 28px rgba(25, 42, 70, 0.08);
}

.request-summary h3 {
  margin-bottom: 6px;
}

.request-summary__lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.checkout-status__step {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.checkout-status__step.is-done {
  border-color: rgba(15, 118, 110, 0.22);
  background: #ecfdf5;
  color: var(--primary);
}

.checkout-status__step.is-active {
  border-color: rgba(255, 107, 0, 0.3);
  background: #fff7ed;
  color: #9a3412;
}

.checkout-status__step.is-blocked {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

.request-summary dl {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
}

.request-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.request-summary dt {
  color: var(--muted);
}

.request-summary dd {
  margin: 0;
  font-weight: 800;
}

.request-summary__total {
  border-bottom-color: rgba(255, 107, 0, 0.28) !important;
}

.request-summary__total dd {
  color: #111827;
  font-size: 24px;
}

.checkout-progress {
  height: 9px;
  margin: 2px 0 12px;
  border-radius: 999px;
  background: #eef3f8;
  overflow: hidden;
}

.checkout-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--primary));
  transition: width 0.18s ease;
}

.progress-fill--0 {
  width: 0%;
}

.progress-fill--5 {
  width: 5%;
}

.progress-fill--10 {
  width: 10%;
}

.progress-fill--15 {
  width: 15%;
}

.progress-fill--20 {
  width: 20%;
}

.progress-fill--25 {
  width: 25%;
}

.progress-fill--30 {
  width: 30%;
}

.progress-fill--35 {
  width: 35%;
}

.progress-fill--40 {
  width: 40%;
}

.progress-fill--45 {
  width: 45%;
}

.progress-fill--50 {
  width: 50%;
}

.progress-fill--55 {
  width: 55%;
}

.progress-fill--60 {
  width: 60%;
}

.progress-fill--65 {
  width: 65%;
}

.progress-fill--70 {
  width: 70%;
}

.progress-fill--75 {
  width: 75%;
}

.progress-fill--80 {
  width: 80%;
}

.progress-fill--85 {
  width: 85%;
}

.progress-fill--90 {
  width: 90%;
}

.progress-fill--95 {
  width: 95%;
}

.progress-fill--100 {
  width: 100%;
}

.minimum-box {
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: #fff7ed;
  color: #9a3412;
  padding: 12px;
  font-weight: 800;
}

.minimum-box.is-ok {
  background: #dcfce7;
  color: #166534;
}

.checkout-readiness {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.checkout-readiness__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
}

.checkout-readiness__item::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 0 0 5px #f8fafc;
}

.checkout-readiness__item.is-ok {
  border-color: rgba(22, 163, 74, 0.2);
  background: #f0fdf4;
}

.checkout-readiness__item.is-ok::before {
  background: #16a34a;
  box-shadow: inset 0 0 0 5px #dcfce7;
}

.checkout-readiness__item.is-warning {
  border-color: rgba(255, 107, 0, 0.26);
  background: #fff7ed;
}

.checkout-readiness__item.is-warning::before {
  background: var(--orange);
  box-shadow: inset 0 0 0 5px #ffedd5;
}

.checkout-readiness__item strong {
  display: block;
  color: #111827;
  font-size: 13px;
}

.checkout-readiness__item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-section {
  display: grid;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 12px;
}

.checkout-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.checkout-section__head strong {
  color: #111827;
  font-size: 15px;
}

.checkout-section__head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-section .field textarea {
  min-height: 86px;
}

.form-note,
.section-note {
  color: var(--muted);
  font-size: 13px;
}

.account-layout {
  display: grid;
  gap: 18px;
  min-height: min(620px, calc(92dvh - 52px));
  align-content: start;
}

.account-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 48px;
}

.account-hero h2 {
  margin-bottom: 8px;
}

.account-hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.account-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: fit-content;
}

.account-dashboard {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.account-dashboard.is-guest {
  grid-template-columns: minmax(0, 1fr);
}

.account-login-card {
  display: grid;
  width: min(100%, 520px);
  justify-self: center;
  align-self: center;
  align-items: stretch;
  gap: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 251, 255, 0.98)
    ),
    var(--surface);
  box-shadow: 0 24px 60px rgba(25, 42, 70, 0.1);
  padding: clamp(18px, 3vw, 26px);
}

.account-login-card--login {
  grid-template-columns: 1fr;
}

.account-login-card__fields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.account-login-card strong {
  color: #0f172a;
  font-size: 18px;
}

.account-login-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-login-card__fields {
  grid-template-columns: 1fr;
}

.account-login-card__field {
  margin: 0;
}

.account-login-card__field span,
.account-login-card__field > label {
  color: #253044;
  font-size: 13px;
  font-weight: 900;
}

.account-login-card__field input {
  min-height: 48px;
  border-color: #d8e2ef;
  border-radius: 12px;
  background: #fff;
  padding: 11px 13px;
  font-size: 15px;
  font-weight: 700;
}

.account-login-card__field input::placeholder {
  color: #94a3b8;
  font-weight: 700;
}

.account-login-card__field input:focus {
  border-color: rgba(15, 118, 110, 0.52);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
  outline: none;
}

.account-login-card .password-input input {
  padding-right: 50px;
}

.account-login-card .password-input__toggle {
  right: 7px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.account-login-card__actions {
  display: grid !important;
  gap: 9px;
  min-width: 0;
}

.account-login-card__actions .btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  padding-inline: 16px;
  font-size: 14px;
  font-weight: 900;
}

.account-login-card__actions .btn--primary {
  box-shadow: 0 14px 26px rgba(255, 107, 0, 0.24);
}

.account-login-card__actions .btn--secondary {
  border-color: #dbe5f2;
  background: #fff;
  color: #253044;
}

.account-login-card__link {
  justify-self: center;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #0f766e;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.2;
  padding: 4px 8px;
  text-align: center;
}

.account-login-card__link:hover,
.account-login-card__link:focus-visible {
  color: #0b5f59;
  outline: none;
  text-decoration: underline;
}

.account-profile,
.account-panel,
.account-stats div,
.account-summary-bar div,
.account-task-card,
.account-section {
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 42, 70, 0.05);
}

.account-profile {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.account-profile__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.account-profile__top div,
.account-status div {
  display: grid;
  gap: 3px;
}

.account-profile__top strong {
  color: #111827;
  font-size: 18px;
}

.account-profile__top span,
.account-status p,
.account-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-status {
  display: flex;
  gap: 10px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #065f46;
  padding: 12px;
}

.account-status div {
  min-width: 0;
}

.account-status p {
  margin: 0;
  color: #047857;
  overflow-wrap: anywhere;
}

.account-profile__details {
  display: grid;
  gap: 9px;
  margin: 0;
}

.account-profile__details div {
  display: grid;
  grid-template-columns: minmax(86px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid #e7edf5;
  padding-bottom: 8px;
}

.account-profile__details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-profile__details dt {
  color: var(--muted);
}

.account-profile__details dd {
  margin: 0;
  color: #111827;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.account-main {
  display: grid;
  gap: 14px;
  padding: 0;
}

.account-stats,
.account-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.account-stats div,
.account-summary-bar div {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 78px;
  align-content: center;
  padding: 12px;
}

.account-stats span,
.account-summary-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.account-stats strong,
.account-summary-bar strong {
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.account-panels,
.account-workbench {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-panel,
.account-task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
}

.account-panel div,
.account-task-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-panel strong,
.account-task-card strong {
  color: #111827;
}

.account-panel--request,
.account-task-card--request {
  border-color: rgba(255, 107, 0, 0.28);
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.account-task-card span,
.account-section__head span,
.account-file-list span,
.account-manager-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-section {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.account-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e7edf5;
  padding-bottom: 12px;
}

.account-section__head h3 {
  margin: 0 0 4px;
}

.account-access-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(255, 107, 0, 0.24);
  border-radius: 12px;
  background: #fffaf4;
  padding: 12px;
}

.account-access-card__badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 16px;
  font-weight: 900;
}

.account-access-card__content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.account-access-card__content strong {
  color: #111827;
  font-size: 16px;
}

.account-access-card__content span,
.account-access-card__content small,
.account-access-card__actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-access-card__content small {
  color: #8a4b16;
}

.account-access-card__actions {
  display: grid;
  gap: 7px;
  justify-items: start;
  margin-top: 4px;
}

.account-access-card__actions .btn {
  max-width: 100%;
  min-height: 40px;
  padding: 0 14px;
  text-align: center;
  white-space: normal;
}

.account-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 10px;
}

.account-file-list {
  display: grid;
  gap: 8px;
}

.account-file-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e7edf5;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  padding: 10px 12px;
  text-align: left;
}

.account-file-list strong {
  min-width: 0;
}

.account-manager-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.account-manager-card__avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: #e6f4f1;
  color: var(--primary-dark) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.status-card {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.status-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--orange);
}

.history-head,
.history-row,
.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-head {
  margin-bottom: 14px;
}

.history-head span {
  border-radius: 999px;
  background: var(--surface-2);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
}

.history-row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.history-row:last-child {
  padding-bottom: 0;
}

.history-row div,
.price-card div {
  display: grid;
  gap: 3px;
}

.history-row span,
.price-card span {
  color: var(--muted);
  font-size: 13px;
}

.history-status {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.history-status--work {
  background: #fff7ed;
  color: #9a3412;
}

.history-status--done {
  background: #ecfdf5;
  color: #047857;
}

.price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 18px;
}

.price-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: #344155;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 900;
}

.price-tab.is-active {
  border-color: rgba(255, 107, 0, 0.32);
  background: #fff0e3;
  color: #9a3412;
}

.price-panel {
  display: grid;
  gap: 14px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.supplier-price-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #eff6ff 62%, #ffffff);
  overflow: hidden;
  padding: 18px;
}

.supplier-price-head::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--orange), var(--primary));
}

.supplier-price-head strong {
  display: block;
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
}

.supplier-price-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.supplier-price-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.supplier-price-head__actions span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #9a3412;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.supplier-price-search {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 8px 18px rgba(25, 42, 70, 0.04);
}

.supplier-price-search span {
  color: #344155;
  font-size: 13px;
  font-weight: 900;
}

.supplier-price-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  outline: 0;
  padding: 12px;
}

.supplier-price-search input:focus {
  border-color: rgba(255, 107, 0, 0.54);
  background: #fff;
}

.supplier-price-tools {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
}

.supplier-price-count {
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 107, 0, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7ed, #fff);
  padding: 14px;
}

.supplier-price-count strong {
  color: #9a3412;
  font-size: 26px;
  line-height: 1;
}

.supplier-price-count span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.supplier-price-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 10px;
}

.supplier-price-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: #344155;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.supplier-price-filters button:hover,
.supplier-price-filters button.is-active {
  border-color: rgba(255, 107, 0, 0.42);
  background: #fff4e8;
  color: #9a3412;
}

.supplier-price-list {
  display: grid;
  gap: 14px;
}

.supplier-price-group {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(25, 42, 70, 0.06);
}

.supplier-price-group::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

.supplier-price-group[data-supplier-group-section="books"]::before {
  background: #2563eb;
}

.supplier-price-group[data-supplier-group-section="stationery"]::before {
  background: #0f766e;
}

.supplier-price-group[data-supplier-group-section="school"]::before {
  background: #f97316;
}

.supplier-price-group[data-supplier-group-section="craft"]::before {
  background: #db2777;
}

.supplier-price-group[data-supplier-group-section="toys"]::before {
  background: #7c3aed;
}

.supplier-price-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff, #fff);
  padding: 14px 16px 14px 18px;
}

.supplier-price-group__head div {
  display: grid;
  gap: 2px;
}

.supplier-price-group__head strong {
  color: #111827;
  font-size: 17px;
}

.supplier-price-group__head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.supplier-price-group__head em {
  border-radius: 999px;
  background: #eef6ff;
  color: #344155;
  padding: 7px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.supplier-price-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px 112px 76px 116px;
  gap: 12px;
  border-bottom: 1px solid #e7edf5;
  background: #f8fafc;
  padding: 9px 16px 9px 18px;
}

.supplier-price-table-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.supplier-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px 112px 76px 116px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 11px 16px 11px 18px;
  transition: background 0.16s ease;
}

.supplier-price-row:hover {
  background: #fffaf5;
}

.supplier-price-row:last-child {
  border-bottom: 0;
}

.supplier-price-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.supplier-price-row__name strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-price-row__name span,
.supplier-price-row__meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.supplier-price-row__meta strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}

.supplier-price-row small {
  justify-self: start;
  border-radius: 999px;
  background: #eef6ff;
  color: #344155;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.supplier-price-row .btn {
  justify-self: end;
  min-width: 108px;
}

.supplier-price-empty {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 24px;
}

.supplier-price-empty span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.steps li:last-child {
  border-bottom: 0;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.steps p {
  margin: 7px 0 0;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.site-footer {
  background:
    linear-gradient(
      135deg,
      rgba(15, 32, 49, 0.98),
      rgba(6, 76, 73, 0.96) 62%,
      rgba(53, 59, 75, 0.96)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.055) 0 1px,
      transparent 1px 96px
    );
  color: #e7edf4;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer p,
.site-footer small {
  color: #aab5c5;
}

.site-footer a:not(.logo),
.site-footer button {
  display: block;
  border: 0;
  background: transparent;
  margin-top: 8px;
  color: #d5dde8;
  padding: 0;
  text-align: left;
}

.logo--footer .logo__mark {
  border-color: rgba(255, 255, 255, 0.18);
  background: #c5baaa;
  box-shadow: none;
}

.modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  padding: 14px;
  box-shadow: none;
  box-sizing: border-box;
}

.modal[open] {
  display: grid;
  place-items: center;
}

.modal::backdrop {
  background: rgba(23, 32, 51, 0.52);
}

.modal__body {
  position: relative;
  width: min(100%, 680px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  box-shadow: var(--shadow);
}

.modal__body h2 {
  margin-bottom: 18px;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 24px;
  line-height: 1;
}

.panel-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
}

.panel-modal__body {
  width: min(100%, 1180px);
  max-height: min(92vh, 960px);
  overflow: auto;
  padding: 26px;
}

.request-modal .request-summary {
  position: static;
}

.request-modal .section-head,
.account-modal .section-head,
.favorites-modal .section-head,
.prices-modal .section-head {
  padding-right: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 12px;
}

.interest-grid legend {
  color: #344155;
  font-size: 13px;
  font-weight: 900;
  padding: 0 4px;
}

.interest-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dbe6ef;
  border-radius: 999px;
  background: var(--surface);
  color: #344155;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.interest-grid input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.success-modal {
  width: 100vw;
  max-width: none;
}

.success-modal .success-modal__body {
  width: min(100%, 520px);
}

.account-modal .account-login-card--login {
  width: min(100%, 520px);
}

.account-modal.is-login-only::backdrop {
  background: rgba(23, 32, 51, 0.56);
  backdrop-filter: blur(5px);
}

.account-modal.is-login-only {
  padding: 16px;
}

.account-modal.is-login-only .panel-modal__body.account-layout {
  width: min(100%, 560px);
  min-height: 0;
  max-height: calc(100dvh - 32px);
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.account-modal.is-login-only .account-login-card--login {
  width: min(100%, 520px);
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(25, 42, 70, 0.22);
}

.account-modal.is-login-only .modal__close {
  top: 12px;
  right: 12px;
  z-index: 2;
}

.account-modal .account-login-card--login .account-login-card__fields,
.account-modal .account-login-card--login .account-login-card__actions {
  grid-template-columns: 1fr;
}

.success-modal__body {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.success-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.success-modal__body p {
  margin: 0;
  color: var(--muted);
}

.success-summary {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.success-summary div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.success-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: none;
  max-width: min(360px, calc(100% - 40px));
  border-radius: var(--radius);
  background: #172033;
  color: #fff;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.toast.is-visible {
  display: block;
}

@media (max-width: 1120px) {
  .header-grid {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .main-nav {
    display: none;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters__book-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters__book-head {
    grid-column: 1 / -1;
  }

  .filters__top {
    grid-column: 1 / -1;
  }

  .product-grid {
    --catalog-card-min-width: 210px;
  }

  .market-showcase__grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body.design-b2b .market-showcase__grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .purchase-side {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .purchase-center__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .procurement-flow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .procurement-steps {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .procurement-board {
    min-height: 248px;
  }

  .storefront-grid {
    grid-template-columns: 1fr;
  }

  .promo-column {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-grid {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 0;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
  }

  .quickbar__inner {
    display: flex;
    min-height: 46px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    padding-block: 6px;
    scrollbar-width: none;
  }

  .quickbar__inner::-webkit-scrollbar {
    display: none;
  }

  .quickbar__group {
    flex: 0 0 auto;
    max-width: min(78vw, 620px);
  }

  .quickbar__group--brands {
    min-width: min(280px, 72vw);
    overflow: visible;
  }

  .quickbar__group--categories {
    min-width: min(240px, 64vw);
    width: auto;
    max-width: min(78vw, 620px);
    overflow: visible;
  }

  .quickbar-category-menu,
  .quickbar-brand-menu {
    position: fixed;
    top: 132px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(420px, calc(100vh - 156px));
  }

  .quickbar-category-menu {
    max-width: calc(100vw - 24px);
    transform: translateY(-6px);
  }

  .quickbar__group--categories:is(.is-open, :hover, :focus-within)
    .quickbar-category-menu {
    transform: translateY(0);
  }

  .header-actions {
    position: absolute;
    top: 10px;
    right: 0;
    grid-column: auto;
    grid-row: auto;
    width: 96px;
    justify-self: end;
    justify-content: end;
  }

  .plain-btn,
  .header-action--account,
  .favorite-link,
  .request-link span {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero,
  .hero__content {
    min-height: auto;
  }

  .hero__content {
    padding: 36px 0 42px;
  }

  .hero__shade {
    background: rgba(246, 248, 251, 0.92);
  }

  .category-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-price-row {
    grid-template-columns: minmax(0, 1fr) 130px auto;
  }

  .supplier-price-tools {
    grid-template-columns: 1fr;
  }

  .supplier-price-head {
    grid-template-columns: 1fr;
  }

  .supplier-price-head__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-layout,
  .quick-order__grid,
  .request-grid,
  .account-grid,
  .account-dashboard,
  .favorites-layout,
  .contacts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .account-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .account-hero__actions {
    justify-content: flex-start;
  }

  .account-login-card {
    align-items: stretch;
  }

  .account-login-card--login,
  .account-login-card__fields {
    grid-template-columns: 1fr;
  }

  .account-login-card__actions {
    grid-template-columns: 1fr;
  }

  .account-login-card__link {
    grid-column: 1 / -1;
  }

  .account-stats,
  .account-summary-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-workbench,
  .account-bottom-grid {
    grid-template-columns: 1fr;
  }

  .quick-result-row {
    grid-template-columns: minmax(0, 1fr) 132px;
  }

  .quick-result-row__status {
    grid-column: 1 / -1;
  }

  .quick-result-row__sum {
    text-align: left;
  }

  .filters,
  .request-summary,
  .favorites-aside {
    position: static;
  }

  .filter-open-btn {
    display: inline-flex;
  }

  .filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 58;
    background: rgba(15, 23, 42, 0.42);
  }

  .filters-backdrop.is-visible {
    display: block;
  }

  .filters {
    position: fixed;
    top: calc(var(--mobile-filter-panel-top) + env(safe-area-inset-top));
    right: var(--mobile-filter-panel-gap);
    bottom: calc(var(--mobile-filter-panel-gap) + env(safe-area-inset-bottom));
    z-index: 60;
    align-content: start;
    grid-template-columns: 1fr;
    width: min(390px, calc(100% - (var(--mobile-filter-panel-gap) * 2)));
    max-height: calc(
      100dvh - var(--mobile-filter-panel-top) - var(--mobile-filter-panel-gap) -
        env(safe-area-inset-top) - env(safe-area-inset-bottom)
    );
    overflow-y: auto;
    border-radius: 14px;
    overscroll-behavior: contain;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.98);
    transform-origin: top right;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease;
  }

  .filters__book-group {
    grid-template-columns: 1fr;
  }

  .filters.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .filters__top {
    position: sticky;
    top: -14px;
    z-index: 2;
    margin: -14px -14px 0;
    border-bottom: 1px solid #e7edf5;
    background: #fff;
    padding: 14px;
  }

  .filters__close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: #344155;
  }

  .filters__actions {
    display: grid;
    position: sticky;
    bottom: -14px;
    margin: 4px -14px -14px;
    border-top: 1px solid #e7edf5;
    background: #fff;
    padding: 14px;
  }

  .section {
    padding: 54px 0;
  }

  .quick-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .active-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .active-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .active-filter-chip,
  .active-filter-reset {
    flex: 0 0 auto;
  }

  .catalog-window {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .catalog-window__pager {
    flex-direction: column;
    min-width: 0;
  }

  .catalog-page-size--bottom {
    width: 100%;
  }

  .quick-chips::-webkit-scrollbar {
    display: none;
  }

  .quick-chip {
    flex: 0 0 auto;
  }

  .quick-results__summary,
  .quick-results__actions {
    display: grid;
  }

  .quick-results__summary strong {
    margin-right: 0;
  }

  .quick-result-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .quick-result-row__main strong,
  .quick-result-row__main span,
  .quick-result-row__qty span,
  .quick-result-row__sum span {
    white-space: normal;
  }

  .product-rail {
    grid-auto-columns: minmax(220px, 74vw);
  }

  .market-showcase {
    margin-top: 0;
    padding: 16px 0 8px;
    background: var(--surface);
  }

  body.design-b2b .market-showcase {
    margin-top: 0;
    padding: 16px 0 8px;
  }

  .market-showcase__grid {
    grid-template-columns: 1fr;
  }

  body.design-b2b .market-showcase__grid {
    grid-template-columns: 1fr;
  }

  .purchase-center__top {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-center__top .btn {
    width: 100%;
  }

  .purchase-center__actions,
  .purchase-side {
    grid-template-columns: 1fr;
  }

  .wholesale-panel {
    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.97),
        rgba(246, 251, 250, 0.94)
      ),
      url("assets/hero-assortment.png") right -160px top -40px / 420px auto
        no-repeat;
  }

  .wholesale-panel__search {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .wholesale-panel__headline h2 {
    max-width: 100%;
  }

  .wholesale-panel__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-popular__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .showcase-menu > span,
  .showcase-menu strong {
    grid-column: 1 / -1;
  }

  .showcase-menu a {
    min-width: 0;
  }

  .promo-column {
    grid-template-columns: 1fr;
  }

  .promo-tile,
  .promo-tile--main {
    min-height: 190px;
  }

  .promo-tile strong {
    font-size: 24px;
  }

  .hero-ops {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .procurement-flow {
    padding: 28px 0 38px;
  }

  .procurement-flow__head {
    align-items: start;
    flex-direction: column;
  }

  .procurement-flow__grid,
  .procurement-steps {
    grid-template-columns: 1fr;
  }

  .procurement-board {
    min-height: 0;
  }

  .quick-paste-preview {
    margin-top: 18px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 232px;
  }

  body.design-b2b {
    background:
      linear-gradient(
        180deg,
        rgba(244, 249, 247, 0.96) 0%,
        rgba(239, 246, 248, 0.94) 52%,
        rgba(255, 247, 238, 0.9) 100%
      ),
      linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.14))
        calc(100% + 18px) 178px / 118px 68px no-repeat,
      linear-gradient(rgba(242, 106, 33, 0.12), rgba(242, 106, 33, 0.06))
        calc(100% - 72px) 298px / 92px 54px no-repeat,
      linear-gradient(90deg, transparent, rgba(7, 95, 91, 0.1), transparent)
        right 256px / 360px 2px no-repeat,
      url("assets/hero-assortment.png") calc(100% + 210px) 82px / 520px auto
        no-repeat,
      repeating-linear-gradient(
        180deg,
        transparent 0 118px,
        rgba(7, 95, 91, 0.04) 118px 120px,
        transparent 120px 178px
      ),
      repeating-linear-gradient(
        0deg,
        rgba(23, 32, 51, 0.03) 0 1px,
        transparent 1px 42px
      ),
      repeating-linear-gradient(
        90deg,
        rgba(7, 95, 91, 0.04) 0 1px,
        transparent 1px 86px
      ),
      linear-gradient(135deg, #eef5f3 0%, #f8fbff 44%, #fff6ed 100%);
    background-attachment: scroll;
  }

  body {
    padding-bottom: 80px;
  }

  .container {
    width: min(100% - 22px, var(--container));
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    border-top: 1px solid #dfe8f5;
    background: rgba(255, 255, 255, 0.98);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 30px rgba(25, 42, 70, 0.13);
  }

  body.has-open-modal .mobile-tabbar,
  body:has(dialog.modal[open]) .mobile-tabbar,
  body:has(#searchSuggest:not(.is-hidden)) .mobile-tabbar {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-tabbar__item {
    display: grid;
    min-height: 58px;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #526071;
    padding: 6px 2px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
  }

  .mobile-tabbar__item:hover,
  .mobile-tabbar__item:focus-visible {
    background: #eef6ff;
    color: var(--primary);
  }

  .mobile-tabbar__item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-tabbar__item--request {
    background: #fff4e8;
    color: #9a3412;
  }

  .mobile-tabbar__badge {
    top: 2px;
    right: calc(50% - 25px);
    display: grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
  }

  .catalog-section {
    scroll-margin-top: 230px;
  }

  .product-card {
    scroll-margin-top: 300px;
  }

  .product-card__media {
    aspect-ratio: 1 / 1.26;
    min-height: clamp(190px, 58vw, 230px);
    max-height: 252px;
    padding: 6px;
  }

  .quickbar__inner {
    display: grid;
    grid-template-areas:
      "categories tools"
      "brands brands";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 0;
    padding: 6px 0;
  }

  .quickbar__group {
    max-width: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .quickbar__group::-webkit-scrollbar {
    display: none;
  }

  .quickbar__group--categories {
    grid-area: categories;
    overflow: visible;
  }

  .quickbar__group--brands {
    grid-area: brands;
    overflow: visible;
  }

  .quickbar__group--tools {
    grid-area: tools;
    justify-content: flex-end;
  }

  .quickbar__group--brands,
  .quickbar__group--tools {
    border-left: 1px solid rgba(223, 232, 245, 0.86);
    gap: 5px;
    padding: 4px;
  }

  .quickbar-category-menu,
  .quickbar-brand-menu {
    top: 152px;
    max-height: min(380px, calc(100vh - 172px));
  }

  .quickbar__label {
    min-height: 25px;
    padding-inline: 7px;
    font-size: 9px;
  }

  .quickbar__group--tools .quickbar__label {
    display: none;
  }

  .quickbar__inner a,
  .quickbar__inner button {
    min-height: 27px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .quickbar__group--tools button {
    min-width: 76px;
  }

  .logo__text small {
    display: none;
  }

  .logo__text strong {
    font-size: 17px;
  }

  .logo__mark {
    width: 44px;
    height: 44px;
  }

  .site-header .logo {
    gap: 9px;
    max-width: calc(100vw - 132px);
    padding: 5px 9px 5px 6px;
  }

  .site-header .logo__mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .site-header .logo__text {
    min-width: 0;
  }

  .site-header .logo__text strong {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .logo__text small {
    display: none;
  }

  .request-link {
    position: relative;
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .icon-btn {
    min-width: 54px;
  }

  .icon-btn span {
    display: none;
  }

  .request-link b {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .menu-toggle {
    width: 42px;
  }

  h1 {
    max-width: 100%;
    font-size: 32px;
  }

  .request-overview {
    grid-template-columns: 1fr;
  }

  .request-overview__status {
    grid-column: auto;
  }

  .hero__lead {
    max-width: 100%;
    font-size: 17px;
  }

  .product-modal .product-modal__body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .product-modal__gallery {
    order: 1;
  }

  .product-modal__gallery-view {
    gap: 8px;
  }

  .product-modal__media {
    height: 220px;
    min-height: 220px;
  }

  .product-modal__loupe,
  .product-modal__zoom-hint {
    display: none;
  }

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

  .product-modal__info {
    order: 2;
    gap: 10px;
  }

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

  .product-modal__related {
    order: 3;
  }

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

  .product-modal__buybox {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .product-modal__status,
  .product-modal__controls {
    grid-template-columns: 1fr;
  }

  .product-modal__related-grid {
    grid-template-columns: 1fr;
  }

  .product-modal__related-head {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-related-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .modal-related-card__media {
    width: 72px;
    height: 72px;
  }

  .product-image-viewer {
    gap: 8px;
    padding: 10px;
  }

  .product-image-viewer__bar {
    gap: 10px;
  }

  .product-image-viewer__bar strong {
    max-width: min(62vw, 520px);
    font-size: 15px;
  }

  .product-image-viewer__close {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .product-image-viewer__nav {
    width: 40px;
    height: 40px;
    background: rgba(8, 13, 24, 0.42);
    font-size: 32px;
  }

  .product-image-viewer__nav--prev {
    left: 8px;
  }

  .product-image-viewer__nav--next {
    right: 8px;
  }

  .product-image-viewer__stage img {
    max-height: calc(100dvh - 96px);
    border-radius: 8px;
  }

  .hero-ops {
    grid-template-columns: 1fr;
  }

  .hero-ops span {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
  }

  .purchase-center {
    padding: 14px;
  }

  .purchase-center__top {
    gap: 10px;
  }

  .purchase-center__top h2 {
    font-size: 26px;
  }

  .purchase-center__top p:not(.eyebrow) {
    font-size: 14px;
  }

  .purchase-action {
    grid-template-columns: 42px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    column-gap: 10px;
    min-height: 0;
    padding: 12px;
  }

  .purchase-action__index {
    grid-row: span 2;
  }

  .purchase-action strong,
  .purchase-action small {
    grid-column: 2;
  }

  .purchase-action em {
    display: none;
  }

  .purchase-center__status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 6px;
  }

  .purchase-center__status span {
    align-content: start;
    border-right: 0;
    border-bottom: 0;
    padding: 6px;
  }

  .purchase-center__status span:last-child {
    border-bottom: 0;
  }

  .purchase-center__status b {
    font-size: 13px;
  }

  .purchase-center__status small {
    font-size: 10px;
  }

  .wholesale-panel {
    gap: 10px;
    padding: 12px;
    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98),
        rgba(246, 251, 250, 0.96)
      ),
      url("assets/hero-assortment.png") right -210px top -30px / 360px auto
        no-repeat;
  }

  .wholesale-panel__headline h2 {
    font-size: 24px;
  }

  .wholesale-search {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
  }

  .wholesale-search input {
    min-height: 42px;
    padding: 0 8px;
    font-size: 15px;
  }

  .wholesale-search .btn {
    width: 100%;
  }

  .wholesale-panel__actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .wholesale-action {
    padding: 10px;
  }

  .search-suggest {
    left: 0;
    right: 0;
    max-height: calc(100dvh - 158px - env(safe-area-inset-bottom));
    gap: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
  }

  .search-suggest__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .search-suggest__chips::-webkit-scrollbar {
    display: none;
  }

  .search-suggest__chips button {
    flex: 0 0 auto;
  }

  .search-suggest__item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .search-suggest__thumb {
    width: 38px;
    height: 38px;
  }

  .search-suggest__actions {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .search-suggest__item em {
    font-size: 13px;
  }

  .search-suggest__open,
  .search-suggest__add {
    min-width: 0;
  }

  .search-suggest__price-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .search-suggest__price-item em,
  .search-suggest__price-item mark {
    justify-self: start;
  }

  .toast {
    right: 11px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 11px;
    max-width: none;
  }

  .btn {
    width: 100%;
  }

  .section-head,
  .catalog-toolbar,
  .request-head,
  .history-row,
  .price-card {
    align-items: stretch;
    flex-direction: column;
  }

  .account-hero {
    padding-right: 42px;
  }

  .account-stats,
  .account-summary-bar,
  .account-panels,
  .account-workbench,
  .account-bottom-grid {
    grid-template-columns: 1fr;
  }

  .account-panel,
  .account-task-card,
  .history-row {
    align-items: stretch;
  }

  .account-panel,
  .account-task-card {
    flex-direction: column;
  }

  .account-section__head,
  .account-file-list button,
  .account-manager-card {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .account-access-card {
    grid-template-columns: 1fr;
  }

  .account-access-card__badge {
    width: 32px;
    height: 32px;
  }

  .account-profile__details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .account-profile__details dd {
    text-align: left;
  }

  .history-status {
    align-self: flex-start;
  }

  .request-head__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .request-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-overview__status {
    grid-column: 1 / -1;
  }

  .catalog-toolbar__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .catalog-page-size {
    justify-content: space-between;
    width: 100%;
  }

  .filter-open-btn {
    width: 100%;
  }

  .category-grid,
  .benefit-grid,
  .storefront-products,
  .catalog-popular__grid,
  .price-grid,
  .form-grid,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .catalog-popular {
    padding: 12px;
  }

  .catalog-popular__head {
    align-items: start;
    flex-direction: column;
  }

  .catalog-popular__head .link-btn {
    white-space: normal;
    text-align: left;
  }

  .catalog-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-theme-card {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .catalog-popular-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 142px;
  }

  .catalog-popular-card__media,
  .catalog-popular-card__media img {
    height: 100%;
    min-height: 142px;
  }

  .catalog-popular-card__actions {
    grid-template-columns: 1fr;
  }

  .price-snapshot button {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .price-snapshot em {
    justify-self: start;
  }

  .supplier-price-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .supplier-price-table-head {
    display: none;
  }

  .supplier-price-row small,
  .supplier-price-row .btn {
    justify-self: stretch;
  }

  .supplier-price-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .supplier-price-filters::-webkit-scrollbar {
    display: none;
  }

  .supplier-price-filters button {
    flex: 0 0 auto;
  }

  .supplier-price-group__head {
    align-items: start;
    flex-direction: column;
  }

  .supplier-price-group__head em {
    align-self: start;
  }

  .supplier-price-row .btn {
    width: 100%;
  }

  .storefront-card__actions {
    grid-template-columns: 1fr;
  }

  .storefront-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 150px;
  }

  .storefront-card__media,
  .storefront-card__media img {
    min-height: 150px;
  }

  .storefront-section {
    padding: 36px 0;
  }

  .storefront-grid {
    display: grid;
    gap: 10px;
  }

  .deal-panel {
    min-height: 0;
  }

  .storefront-products {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .storefront-products::-webkit-scrollbar {
    display: none;
  }

  .storefront-card {
    flex: 0 0 min(318px, 86vw);
    scroll-snap-align: start;
  }

  .cart-row {
    grid-template-columns: 56px minmax(0, 1fr) 38px;
    align-items: start;
    gap: 10px;
  }

  .favorite-row {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .cart-row__media {
    width: 56px;
    height: 56px;
  }

  .favorite-row__media {
    width: 72px;
    height: 72px;
  }

  .cart-row__info {
    grid-column: 2;
  }

  .favorite-row__body {
    grid-column: 2;
  }

  .cart-row__qty,
  .cart-row__price,
  .cart-row__sum,
  .favorite-row__price,
  .favorite-row__actions {
    grid-column: 1 / -1;
  }

  .request-list-panel {
    padding: 12px;
  }

  .request-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .request-list-head__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-row__price,
  .cart-row__sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }

  .cart-row__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .cart-row__qty .qty-control {
    max-width: 132px;
  }

  .favorite-row__price {
    justify-items: start;
  }

  .favorite-row__actions {
    grid-template-columns: 1fr;
  }

  .cart-row__sum span {
    text-align: left;
  }

  .cart-row__price span {
    text-align: left;
  }

  .cart-row__price small,
  .cart-row__sum small {
    white-space: normal;
  }

  .remove-btn {
    grid-column: 3;
    grid-row: 1;
    width: 38px;
    height: 38px;
  }

  .request-summary__total dd {
    font-size: 22px;
  }

  .checkout-status,
  .checkout-fields,
  .success-summary {
    grid-template-columns: 1fr;
  }

  .checkout-section__head {
    align-items: start;
    flex-direction: column;
  }

  .checkout-section__head span {
    text-align: left;
  }

  .quick-form,
  .request-summary,
  .contact-form,
  .modal__body,
  .order-history {
    padding: 16px;
  }
}

/* ========== TOAST NOTIFICATION SYSTEM ========== */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  pointer-events: none;
}

.toast-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
  max-width: 380px;
  width: 100%;
}

.toast-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(25, 42, 70, 0.25);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.3s ease-out;
  position: relative;
  border-left: 4px solid var(--primary);
  max-width: 100%;
}

.toast-item.is-removing {
  animation: toastSlideOut 0.25s ease-in forwards;
}

.toast-item--success {
  border-left-color: var(--green);
}

.toast-item--error {
  border-left-color: var(--red);
}

.toast-item--warning {
  border-left-color: var(--orange);
}

.toast-item--info {
  border-left-color: var(--blue);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 4px 0;
  color: var(--text);
}

.toast-message {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  color: var(--muted);
  word-wrap: break-word;
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
  border-radius: 4px;
}

.toast-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  animation: toastProgress linear forwards;
  animation-duration: 4s;
}

.toast-progress--long {
  animation-duration: 6s;
}

.toast-item--success .toast-progress {
  background: linear-gradient(90deg, var(--green), #0d8f3c);
}

.toast-item--error .toast-progress {
  background: linear-gradient(90deg, var(--red), #b91c1c);
}

.toast-item--warning .toast-progress {
  background: linear-gradient(90deg, var(--orange), #e65100);
}

.toast-item--info .toast-progress {
  background: linear-gradient(90deg, var(--blue), #1d4ed8);
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Mobile styles for toast */
@media (max-width: 768px) {
  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast-container {
    max-width: 100%;
  }

  .toast-item {
    padding: 14px 16px;
  }
}

/* ========== SKELETON SCREENS ========== */
/* Индикаторы загрузки для улучшения UX */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Skeleton для карточек товаров */
.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.skeleton-card__image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: calc(var(--radius) - 2px);
}

.skeleton-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-card__title {
  height: 20px;
  width: 80%;
  border-radius: 4px;
}

.skeleton-card__meta {
  height: 16px;
  width: 60%;
  border-radius: 4px;
}

.skeleton-card__price {
  height: 24px;
  width: 40%;
  border-radius: 4px;
  margin-top: auto;
}

/* Skeleton для таблицы */
.skeleton-table {
  width: 100%;
  border-collapse: collapse;
}

.skeleton-table-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 3fr) 120px 100px 80px;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.skeleton-table-cell {
  height: 16px;
  border-radius: 4px;
}

.skeleton-table-cell--wide {
  width: 80%;
}

.skeleton-table-cell--medium {
  width: 80px;
}

.skeleton-table-cell--small {
  width: 60px;
}

.skeleton-table-cell--tiny {
  width: 40px;
}

/* Skeleton для фильтров */
.skeleton-filter {
  height: 40px;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

/* Skeleton для поиска */
.skeleton-search {
  height: 48px;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* Контейнер для skeleton элементов */
.skeleton-container {
  display: grid;
  gap: 16px;
}

/* Grid для карточек */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px 0;
}

/* Состояния загрузки */
.is-loading .skeleton {
  display: block;
}

.is-loading .real-content {
  display: none;
}

.loaded .skeleton {
  display: none;
}

.loaded .real-content {
  display: block;
}

/* Пульсирующий эффект для важных элементов */
.skeleton-pulse {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Skeleton для модальных окон */
.skeleton-modal {
  padding: 24px;
  max-width: 500px;
}

.skeleton-modal__header {
  height: 32px;
  width: 70%;
  margin-bottom: 24px;
  border-radius: 4px;
}

.skeleton-modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-modal__line {
  height: 16px;
  border-radius: 4px;
}

.skeleton-modal__line--long {
  width: 100%;
}

.skeleton-modal__line--short {
  width: 60%;
}

/* Skeleton для формы */
.skeleton-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-form-label {
  height: 16px;
  width: 30%;
  border-radius: 4px;
}

.skeleton-form-input {
  height: 44px;
  width: 100%;
  border-radius: var(--radius);
}

.skeleton-form-input--tall {
  height: 80px;
}

/* Skeleton для product-card */
.product-card--skeleton {
  pointer-events: none;
  user-select: none;
}

.product-card--skeleton .product-card__media,
.product-card--skeleton .product-card__content {
  visibility: hidden;
}

.product-card--skeleton .skeleton-product-image {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) - 2px);
}

.product-card--skeleton .skeleton-product-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: var(--surface);
  border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
}

.skeleton-product-image {
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-product-title {
  height: 18px;
  width: 70%;
  margin-bottom: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-product-meta {
  height: 14px;
  width: 50%;
  margin-bottom: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-product-price {
  height: 20px;
  width: 40%;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

/* Skeleton для rail-card (compact product cards) */
.rail-card--skeleton {
  pointer-events: none;
  user-select: none;
}

.rail-card--skeleton .rail-card__media,
.rail-card--skeleton .rail-card__body {
  visibility: hidden;
}

.rail-card--skeleton .skeleton-rail-image {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.rail-card--skeleton .skeleton-rail-content {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
}

.skeleton-rail-title {
  height: 16px;
  width: 80%;
  margin-bottom: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-rail-price {
  height: 18px;
  width: 30%;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

/* Skeleton для catalog-popular-card */
.catalog-popular-card--skeleton {
  pointer-events: none;
  user-select: none;
}

.catalog-popular-card--skeleton .catalog-popular-card__media,
.catalog-popular-card--skeleton .catalog-popular-card__body {
  visibility: hidden;
}

.catalog-popular-card--skeleton .skeleton-popular-image {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.catalog-popular-card--skeleton .skeleton-popular-content {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Единый цвет функциональных кнопок */
:root {
  --action-color: var(--primary);
  --action-color-dark: var(--primary-dark);
  --action-color-soft: #e8f4f3;
  --action-color-softer: #f2faf8;
  --action-color-border: rgba(7, 95, 91, 0.28);
  --action-color-border-strong: rgba(7, 95, 91, 0.42);
  --action-color-shadow: 0 10px 22px rgba(7, 95, 91, 0.18);
}

.btn--primary,
.icon-btn,
.card-buy-button,
.card-buy-stepper,
.account-login-card__actions .btn--primary {
  border-color: var(--action-color) !important;
  background: var(--action-color) !important;
  color: #fff !important;
  box-shadow: var(--action-color-shadow) !important;
}

.btn--primary:hover,
.icon-btn:hover,
.card-buy-button:hover,
.account-login-card__actions .btn--primary:hover {
  border-color: var(--action-color-dark) !important;
  background: var(--action-color-dark) !important;
  color: #fff !important;
}

.btn--secondary,
.btn--ghost,
.account-login-card__actions .btn--secondary,
.product-card__actions .btn--secondary,
.product-card__details {
  border-color: var(--action-color-border) !important;
  background: var(--action-color-softer) !important;
  color: var(--action-color-dark) !important;
}

.btn--secondary:hover,
.btn--ghost:hover,
.account-login-card__actions .btn--secondary:hover,
.product-card__actions .btn--secondary:hover,
.product-card__details:hover {
  border-color: var(--action-color-border-strong) !important;
  background: var(--action-color-soft) !important;
  color: var(--action-color-dark) !important;
}

:where(
  .header-action,
  .header-action--request,
  .quickbar__inner button,
  .quickbar-brand-toggle,
  .filter-open-btn,
  .filter-select__button,
  .search-suggest__open,
  .search-suggest__add,
  .search-suggest__apply,
  .supplier-price-filters button,
  .price-tab,
  .active-filter-reset
) {
  border-color: var(--action-color-border) !important;
  background: var(--action-color-softer) !important;
  color: var(--action-color-dark) !important;
}

:where(
  .header-action:hover,
  .header-action--request:hover,
  .quickbar__inner button:hover,
  .quickbar-brand-toggle:hover,
  .filter-open-btn:hover,
  .filter-select__button:hover,
  .filter-select.is-open .filter-select__button,
  .search-suggest__open:hover,
  .search-suggest__add:hover,
  .search-suggest__apply:hover,
  .supplier-price-filters button:hover,
  .supplier-price-filters button.is-active,
  .price-tab:hover,
  .price-tab.is-active,
  .active-filter-reset:hover
) {
  border-color: var(--action-color-border-strong) !important;
  background: var(--action-color-soft) !important;
  color: var(--action-color-dark) !important;
}

.request-link b,
.favorite-link b {
  background: var(--action-color);
}

.favorite-link:hover {
  border-color: var(--action-color-border-strong);
  background: var(--action-color-soft);
  color: var(--action-color-dark);
}

.quickbar__label--brands,
.quickbar__label--tools {
  background: var(--action-color-soft);
  color: var(--action-color-dark);
}

.quickbar-brand-menu a,
.quickbar__group--brands a {
  border-color: var(--action-color-border);
  background: var(--action-color-softer);
  color: var(--action-color-dark);
}

.quickbar-brand-menu a:hover,
.quickbar__group--brands a:hover {
  border-color: var(--action-color-border-strong);
  background: var(--action-color-soft);
  color: var(--action-color-dark);
}

.quick-chip,
.quick-chip--book,
.quick-chip--book[data-book-type="all"] {
  border-color: var(--action-color-border) !important;
  background: #fff !important;
  color: var(--action-color-dark) !important;
}

.quick-chip:hover,
.quick-chip--book:hover,
.quick-chip--book[data-book-type="all"]:hover {
  border-color: var(--action-color-border-strong) !important;
  background: var(--action-color-soft) !important;
  color: var(--action-color-dark) !important;
  box-shadow: 0 2px 8px rgba(7, 95, 91, 0.14) !important;
}

.quick-chip.is-active,
.quick-chip--book.is-active,
.quick-chip--book[data-book-type="all"].is-active {
  border-color: var(--action-color) !important;
  background: var(--action-color) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(7, 95, 91, 0.2) !important;
}

.quick-chip--book::before {
  background: linear-gradient(
    135deg,
    rgba(7, 95, 91, 0.1) 0%,
    rgba(7, 95, 91, 0.04) 100%
  );
}

@keyframes success-flash {
  0%,
  100% {
    background: var(--action-color);
  }
  50% {
    background: var(--green);
  }
}

.card-buy-stepper button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.card-buy-stepper button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Цветная шапка сайта */
.site-header .plain-btn,
.site-header .link-btn {
  color: #eefdf9;
}

.site-header .plain-btn:hover,
.site-header .link-btn:hover {
  color: #ffffff;
}

.site-header .header-action {
  border-color: rgba(255, 255, 255, 0.26) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f8fffd !important;
  box-shadow: 0 10px 24px rgba(2, 38, 39, 0.16);
}

.site-header .header-action:hover {
  border-color: rgba(255, 255, 255, 0.44) !important;
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.site-header .header-action--request {
  border-color: rgba(255, 212, 59, 0.76) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 212, 59, 0.96),
    rgba(255, 154, 60, 0.92)
  ) !important;
  color: #17302d !important;
}

.site-header .header-action--request:hover {
  border-color: rgba(255, 226, 90, 0.94) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 226, 90, 1),
    rgba(255, 174, 76, 0.96)
  ) !important;
  color: #102522 !important;
}

.site-header .request-link b {
  background: #17302d;
  color: #ffffff;
}

.site-header .favorite-link b {
  background: #ffd43b;
  color: #17302d;
}

.quickbar {
  border-top-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(3, 40, 42, 0.28);
  background:
    linear-gradient(135deg, rgba(6, 73, 72, 0.96), rgba(8, 82, 101, 0.94)),
    #064948;
  box-shadow: 0 12px 28px rgba(3, 40, 42, 0.14);
}

.quickbar__group {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.quickbar__label {
  background: rgba(255, 255, 255, 0.12);
  color: #d8fff4;
}

.quickbar__label--brands {
  background: rgba(255, 212, 59, 0.16);
  color: #fff1a6;
}

.quickbar__label--tools {
  background: rgba(255, 255, 255, 0.12);
  color: #d8fff4;
}

.quickbar__group--brands,
.quickbar__group--tools {
  border-left-color: rgba(255, 255, 255, 0.18);
}

.quickbar .quickbar__inner > a,
.quickbar .quickbar__inner > button,
.quickbar .quickbar-category-toggle,
.quickbar .quickbar-brand-toggle,
.quickbar .quickbar__group--tools > button {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.11) !important;
  color: #f8fffd !important;
}

.quickbar .quickbar__inner > a:hover,
.quickbar .quickbar__inner > button:hover,
.quickbar .quickbar-category-toggle:hover,
.quickbar .quickbar-brand-toggle:hover,
.quickbar .quickbar__group--tools > button:hover {
  border-color: rgba(255, 255, 255, 0.34) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.quickbar .quickbar-brand-toggle {
  border-color: rgba(255, 212, 59, 0.34) !important;
  background: rgba(255, 212, 59, 0.14) !important;
  color: #fff4b8 !important;
}

.quickbar .quickbar-brand-toggle:hover {
  border-color: rgba(255, 226, 90, 0.5) !important;
  background: rgba(255, 212, 59, 0.22) !important;
  color: #ffffff !important;
}

/* Обновленная цветовая система сайта */
:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #edf5f4;
  --surface-3: #fff8ea;
  --text: #14232f;
  --muted: #657282;
  --line: #d8e4e2;
  --primary: #0d6f68;
  --primary-dark: #084c49;
  --primary-soft: #e6f4f1;
  --blue: #276f9e;
  --blue-soft: #e8f3f8;
  --orange: #f2a51f;
  --orange-dark: #8a4b00;
  --yellow: #ffd166;
  --pink: #d94682;
  --red: #d94841;
  --green: #15866f;
  --shadow: 0 18px 42px rgba(19, 37, 45, 0.12);
  --action-color: var(--primary);
  --action-color-dark: var(--primary-dark);
  --action-color-soft: #dff0ed;
  --action-color-softer: #f1faf7;
  --action-color-border: rgba(13, 111, 104, 0.28);
  --action-color-border-strong: rgba(13, 111, 104, 0.44);
  --action-color-shadow: 0 10px 22px rgba(13, 111, 104, 0.2);
}

body.design-b2b {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #edf5f4;
  --primary: #0d6f68;
  --primary-dark: #084c49;
  --blue: #276f9e;
  --orange: #f2a51f;
  --line: #d8e4e2;
  --shadow: 0 18px 42px rgba(19, 37, 45, 0.12);
  background:
    linear-gradient(
      180deg,
      rgba(244, 247, 246, 0.98) 0%,
      rgba(238, 246, 245, 0.94) 48%,
      rgba(255, 248, 234, 0.9) 100%
    ),
    radial-gradient(circle at 9% 9%, rgba(39, 111, 158, 0.1), transparent 31%),
    radial-gradient(
      circle at 88% 16%,
      rgba(242, 165, 31, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 78% 76%,
      rgba(13, 111, 104, 0.11),
      transparent 34%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(20, 35, 47, 0.035) 0 1px,
      transparent 1px 42px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(13, 111, 104, 0.035) 0 1px,
      transparent 1px 92px
    ),
    linear-gradient(135deg, #f4f7f6 0%, #eef6f5 42%, #fff8ea 100%);
  background-attachment: scroll, fixed, fixed, fixed, fixed, fixed, scroll;
}

.site-header {
  border-bottom-color: rgba(7, 43, 49, 0.3);
  background:
    linear-gradient(
      135deg,
      rgba(8, 76, 73, 0.98),
      rgba(13, 96, 112, 0.98) 54%,
      rgba(20, 57, 68, 0.98)
    ),
    #084c49;
  box-shadow: 0 16px 38px rgba(7, 43, 49, 0.26);
}

.quickbar {
  border-top-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(7, 43, 49, 0.3);
  background:
    linear-gradient(135deg, rgba(8, 76, 73, 0.96), rgba(17, 81, 97, 0.94)),
    #084c49;
}

.site-header .logo {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.site-header .logo__text small,
.quickbar__label,
.quickbar__label--tools {
  color: #d7fff5;
}

.header-search,
.search-suggest,
.quickbar-category-menu,
.quickbar-brand-menu,
.filter-select__menu {
  border-color: rgba(216, 228, 226, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(19, 37, 45, 0.16);
}

.header-search:focus-within,
.field input:focus,
.field select:focus,
.filter-select__button:focus-visible,
.filter-select.is-open .filter-select__button,
.catalog-page-size:focus-within {
  border-color: rgba(242, 165, 31, 0.72);
  box-shadow:
    0 0 0 3px rgba(242, 165, 31, 0.16),
    0 12px 28px rgba(19, 37, 45, 0.12);
}

.catalog-section,
.section--categories,
.product-rail-section,
.contacts-section,
.catalog-panel,
.filters,
.catalog-toolbar,
.active-filter-bar,
.catalog-window,
.catalog-empty,
.modal__body,
.panel-modal__body,
.product-card,
.catalog-popular-card,
.rail-card,
.supplier-price-card,
.account-login-card,
.account-dashboard-card,
.price-snapshot {
  border-color: var(--line);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(249, 252, 251, 0.96)
    ),
    var(--surface);
}

.filters,
.catalog-toolbar,
.active-filter-bar,
.catalog-window {
  box-shadow: 0 10px 26px rgba(19, 37, 45, 0.07);
}

.filters {
  box-shadow:
    inset 3px 0 0 var(--primary),
    0 10px 26px rgba(19, 37, 45, 0.07);
}

.filters:hover {
  box-shadow:
    inset 3px 0 0 var(--primary),
    0 14px 32px rgba(19, 37, 45, 0.1);
}

.filters__book-group {
  border-color: rgba(13, 111, 104, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(230, 244, 241, 0.88),
      rgba(255, 255, 255, 0.96)
    ),
    #ffffff;
}

.field input,
.field select,
.field textarea,
.filter-select__button,
.catalog-page-size,
.filter-open-btn,
.active-filter-chip,
.quick-chip {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.filter-select__button:hover,
.filter-open-btn:hover,
.quick-chip:hover,
.active-filter-reset:hover {
  border-color: var(--action-color-border-strong) !important;
  background: var(--action-color-soft) !important;
  color: var(--primary-dark) !important;
}

.filter-select__chevron,
.active-filter-chip__icon,
.product-card__topline > span:not(.stock),
.product-card__line span,
.product-card__match {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.quick-chip.is-active,
.quick-chip--book.is-active,
.quick-chip--book[data-book-type="all"].is-active,
.filter-open-btn.has-active,
.view-switch__btn.is-active,
.price-tab.is-active,
.supplier-price-filters button.is-active {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #ffffff !important;
}

.btn--primary,
.icon-btn,
.card-buy-button,
.card-buy-stepper,
.account-login-card__actions .btn--primary {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: var(--action-color-shadow) !important;
}

.btn--primary:hover,
.icon-btn:hover,
.card-buy-button:hover,
.account-login-card__actions .btn--primary:hover {
  border-color: var(--primary-dark) !important;
  background: var(--primary-dark) !important;
}

.product-card:hover,
.product-card:focus-within {
  border-color: rgba(242, 165, 31, 0.58);
  box-shadow: 0 20px 42px rgba(19, 37, 45, 0.14);
}

.product-card__media {
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.96),
      rgba(243, 248, 247, 0.72)
    ),
    linear-gradient(135deg, #f8fbfa, #e8f3f8);
}

.product-card__purchase {
  border-color: rgba(242, 165, 31, 0.42);
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 234, 0.96),
      rgba(255, 241, 207, 0.94)
    ),
    #fff8ea;
}

.product-card .price,
.price {
  color: #16232a;
}

.market-badge--new {
  background: linear-gradient(135deg, #f2a51f, #d94841);
  box-shadow: 0 8px 18px rgba(217, 72, 65, 0.22);
}

.discount-badge {
  background: var(--red);
}

.favorite-card-btn.is-active {
  background: #fff0f6;
  color: var(--pink);
}

.stock--ok {
  background: #dff7ef;
  color: #0b5f4c;
}

.stock--low {
  background: #fff2c7;
  color: #825004;
}

.stock--order {
  background: var(--blue-soft);
  color: #1f5d84;
}

.stock--none {
  background: #fde8e4;
  color: #9b2f2a;
}

.quickbar .quickbar-brand-toggle,
.quickbar__label--brands {
  border-color: rgba(255, 209, 102, 0.36) !important;
  background: rgba(255, 209, 102, 0.16) !important;
  color: #fff2b8 !important;
}

.site-header .header-action--request {
  border-color: rgba(255, 209, 102, 0.78) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.98),
    rgba(242, 165, 31, 0.96)
  ) !important;
  color: #17302d !important;
}

.site-header .header-action--request:hover {
  border-color: rgba(255, 225, 132, 0.94) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 225, 132, 1),
    rgba(244, 178, 51, 0.98)
  ) !important;
}

.site-header .favorite-link b,
.site-header .request-link b {
  background: #17302d;
  color: #ffffff;
}

/* Мягкая и более приятная визуальная тема */
:root {
  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-2: #eef7f6;
  --surface-3: #fff7e6;
  --text: #182734;
  --muted: #667586;
  --line: #dae6ea;
  --primary: #0b817b;
  --primary-dark: #075f69;
  --primary-soft: #e8f6f3;
  --blue: #2f77a3;
  --blue-soft: #eaf4fa;
  --orange: #f4a23a;
  --orange-dark: #84500c;
  --yellow: #ffd879;
  --pink: #d9467e;
  --red: #d94b43;
  --green: #19846f;
  --shadow: 0 16px 36px rgba(24, 39, 52, 0.1);
  --action-color: var(--primary);
  --action-color-dark: var(--primary-dark);
  --action-color-soft: #e5f4f1;
  --action-color-softer: #f4fbf9;
  --action-color-border: rgba(11, 129, 123, 0.24);
  --action-color-border-strong: rgba(11, 129, 123, 0.4);
  --action-color-shadow: 0 10px 22px rgba(11, 129, 123, 0.16);
}

body.design-b2b {
  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-2: #eef7f6;
  --primary: #0b817b;
  --primary-dark: #075f69;
  --blue: #2f77a3;
  --orange: #f4a23a;
  --line: #dae6ea;
  background:
    radial-gradient(circle at 10% 8%, rgba(11, 129, 123, 0.1), transparent 30%),
    radial-gradient(
      circle at 88% 10%,
      rgba(244, 162, 58, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 82%,
      rgba(47, 119, 163, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, #f7fafb 0%, #f2f8f7 46%, #fbfaf6 100%);
  background-attachment: fixed, fixed, fixed, scroll;
}

.site-header {
  border-bottom-color: rgba(6, 74, 78, 0.2);
  background:
    linear-gradient(
      135deg,
      rgba(9, 127, 119, 0.98),
      rgba(14, 117, 147, 0.96) 58%,
      rgba(12, 88, 102, 0.98)
    ),
    #0b817b;
  box-shadow: 0 12px 28px rgba(6, 74, 78, 0.18);
}

.site-header .logo {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 24px rgba(5, 53, 58, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.site-header .logo:hover,
.site-header .logo:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 14px 30px rgba(5, 53, 58, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.site-header .logo__text small {
  color: #e0fff8;
}

.header-search {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(5, 53, 58, 0.12);
}

.header-search:focus-within {
  border-color: rgba(255, 216, 121, 0.84);
  box-shadow:
    0 0 0 3px rgba(255, 216, 121, 0.16),
    0 14px 28px rgba(5, 53, 58, 0.14);
}

.site-header .header-action {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #f7fffd !important;
  box-shadow: 0 8px 18px rgba(5, 53, 58, 0.12);
}

.site-header .header-action:hover {
  border-color: rgba(255, 255, 255, 0.46) !important;
  background: rgba(255, 255, 255, 0.23) !important;
}

.site-header .header-action--request {
  border-color: rgba(255, 216, 121, 0.74) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 216, 121, 0.98),
    rgba(244, 162, 58, 0.94)
  ) !important;
  color: #17302d !important;
}

.quickbar {
  border-top-color: rgba(255, 255, 255, 0.62);
  border-bottom-color: rgba(218, 230, 234, 0.92);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94),
      rgba(244, 251, 249, 0.92)
    ),
    #ffffff;
  box-shadow: 0 10px 24px rgba(24, 39, 52, 0.08);
  backdrop-filter: blur(14px);
}

.quickbar__group {
  border-color: rgba(218, 230, 234, 0.9);
  background: rgba(255, 255, 255, 0.76);
}

.quickbar__label,
.quickbar__label--tools {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.quickbar__label--brands {
  border-color: rgba(244, 162, 58, 0.22) !important;
  background: #fff5dc !important;
  color: #815113 !important;
}

.quickbar__group--brands,
.quickbar__group--tools {
  border-left-color: rgba(218, 230, 234, 0.9);
}

.quickbar .quickbar__inner a,
.quickbar .quickbar__inner button,
.quickbar .quickbar-category-toggle,
.quickbar .quickbar-brand-toggle,
.quickbar .quickbar__group--tools > button {
  border-color: rgba(218, 230, 234, 0.9) !important;
  background: #f5faf9 !important;
  color: #244050 !important;
  box-shadow: none !important;
}

.quickbar .quickbar__inner a:hover,
.quickbar .quickbar__inner button:hover,
.quickbar .quickbar-category-toggle:hover,
.quickbar .quickbar-brand-toggle:hover,
.quickbar .quickbar__group--tools > button:hover {
  border-color: rgba(11, 129, 123, 0.32) !important;
  background: #e8f6f3 !important;
  color: var(--primary-dark) !important;
}

.quickbar .quickbar-brand-toggle {
  border-color: rgba(244, 162, 58, 0.28) !important;
  background: #fff7e8 !important;
  color: #80510f !important;
}

.quickbar-category-menu,
.quickbar-brand-menu,
.search-suggest,
.filter-select__menu {
  border-color: rgba(218, 230, 234, 0.98);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 22px 54px rgba(24, 39, 52, 0.14);
}

.catalog-section {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.76),
      rgba(247, 250, 251, 0.72)
    ),
    transparent;
}

.filters,
.catalog-toolbar,
.active-filter-bar,
.catalog-window,
.catalog-empty {
  border-color: rgba(218, 230, 234, 0.96);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99),
      rgba(249, 252, 251, 0.96)
    ),
    #ffffff;
  box-shadow: 0 10px 24px rgba(24, 39, 52, 0.06);
}

.filters {
  box-shadow:
    inset 3px 0 0 rgba(11, 129, 123, 0.82),
    0 10px 24px rgba(24, 39, 52, 0.06);
}

.filters:hover {
  box-shadow:
    inset 3px 0 0 rgba(11, 129, 123, 0.92),
    0 14px 28px rgba(24, 39, 52, 0.08);
}

.filters__book-group {
  border-color: rgba(11, 129, 123, 0.14);
  background: #f6fbfa;
}

.field input,
.field select,
.field textarea,
.filter-select__button,
.catalog-page-size,
.filter-open-btn,
.active-filter-chip,
.quick-chip,
.quick-chip--book,
.quick-chip--book[data-book-type="all"] {
  border-color: rgba(218, 230, 234, 0.96) !important;
  background: #ffffff !important;
  color: #244050 !important;
}

.filter-select__button:hover,
.filter-open-btn:hover,
.quick-chip:hover,
.quick-chip--book:hover,
.active-filter-chip:hover,
.active-filter-reset:hover {
  border-color: rgba(11, 129, 123, 0.32) !important;
  background: #eaf7f5 !important;
  color: var(--primary-dark) !important;
}

.quick-chip.is-active,
.quick-chip--book.is-active,
.quick-chip--book[data-book-type="all"].is-active,
.filter-open-btn.has-active,
.view-switch__btn.is-active,
.price-tab.is-active,
.supplier-price-filters button.is-active {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(11, 129, 123, 0.16) !important;
}

.btn--primary,
.icon-btn,
.card-buy-button,
.card-buy-stepper,
.account-login-card__actions .btn--primary {
  border-color: var(--primary) !important;
  background: linear-gradient(135deg, #0b817b, #0d7891) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(11, 129, 123, 0.17) !important;
}

.btn--primary:hover,
.icon-btn:hover,
.card-buy-button:hover,
.account-login-card__actions .btn--primary:hover {
  border-color: var(--primary-dark) !important;
  background: linear-gradient(135deg, #08716c, #0a667a) !important;
}

.btn--secondary,
.btn--ghost,
.product-card__details,
.account-login-card__actions .btn--secondary {
  border-color: rgba(218, 230, 234, 0.96) !important;
  background: #ffffff !important;
  color: var(--primary-dark) !important;
}

.product-card,
.catalog-popular-card,
.rail-card,
.supplier-price-card,
.account-login-card,
.account-dashboard-card,
.modal__body,
.panel-modal__body {
  border-color: rgba(218, 230, 234, 0.98);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(24, 39, 52, 0.055);
}

.product-card:hover,
.product-card:focus-within {
  border-color: rgba(244, 162, 58, 0.42);
  box-shadow: 0 18px 38px rgba(24, 39, 52, 0.12);
}

.product-card__media {
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.96),
      rgba(246, 250, 251, 0.8)
    ),
    linear-gradient(135deg, #fbfcfd, #edf6f6);
}

.product-card__purchase {
  border-color: rgba(244, 162, 58, 0.28);
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 240, 0.98),
      rgba(255, 246, 224, 0.92)
    ),
    #fff8ea;
}

.product-card .price,
.price {
  color: #17242f;
}

.market-badge--new {
  background: linear-gradient(135deg, #ff8a5b, #e84d6f);
  box-shadow: 0 8px 18px rgba(232, 77, 111, 0.2);
}

.favorite-card-btn {
  background: rgba(255, 255, 255, 0.94);
  color: #6b7b8c;
  box-shadow: 0 8px 18px rgba(24, 39, 52, 0.1);
}

.favorite-card-btn.is-active {
  background: #fff0f5;
  color: var(--pink);
}

.stock--ok {
  background: #e2f7ee;
  color: #11624f;
}

.stock--low {
  background: #fff3d4;
  color: #80510f;
}

.stock--order {
  background: #e9f4fa;
  color: #286181;
}

.stock--none {
  background: #fdeceb;
  color: #9a342f;
}

/* Улучшенные touch targets для мобильных */
@media (hover: none) and (pointer: coarse) {
  .skeleton-card {
    /* Увеличенные touch targets */
    padding: 20px;
  }

  .skeleton-card__image {
    /* Более крупные изображения для мобильных */
    aspect-ratio: 4/3;
  }
}

/* ========== PROCUREMENT CATALOG REFINEMENTS ========== */

.product-table {
  min-width: 1080px;
}

.product-table th:first-child,
.product-table__code {
  width: 180px;
}

.product-table th:nth-child(3),
.product-table__price,
.product-table__sum {
  width: 132px;
}

.product-table th:nth-child(4),
.product-table__qty {
  width: 150px;
}

.product-table th:last-child,
.product-table__action {
  width: 150px;
}

.procurement-row {
  background: #ffffff;
}

.procurement-row:hover {
  background: #f7fbfa;
}

.product-code {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-code strong {
  overflow: hidden;
  color: #18313b;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-code small {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table__price .price,
.product-table-sum strong {
  font-size: 16px;
  font-weight: 900;
}

.product-table-sum {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-table-sum small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-table__qty .qty-control,
.product-table__action .card-buy-control {
  width: 100%;
}

.product-table__action .card-buy-stepper {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
}

.product-table__action .card-buy-stepper button {
  height: 36px;
}

.product-card {
  isolation: isolate;
}

body.design-b2b .product-card {
  border-color: rgba(215, 226, 231, 0.96);
  box-shadow: 0 8px 20px rgba(24, 39, 52, 0.06);
}

body.design-b2b .product-card:hover,
body.design-b2b .product-card:focus-within {
  border-color: rgba(11, 129, 123, 0.34);
  box-shadow: 0 18px 36px rgba(24, 39, 52, 0.13);
}

.product-card__content {
  grid-template-rows: 36px minmax(42px, auto) 18px 24px 38px;
  gap: 4px;
  padding: 7px;
}

body.design-b2b .product-card__content {
  grid-template-rows: 32px minmax(44px, auto) 18px 22px 36px;
  gap: 3px;
  padding: 6px 7px 7px;
}

body.design-b2b .product-card__title {
  grid-template-rows: 42px 0;
  min-height: 42px;
}

.product-card__title strong,
body.design-b2b .product-card__title strong {
  font-size: 14px;
  line-height: 1.28;
}

body.design-b2b .product-card__title strong {
  min-height: 42px;
  max-height: 42px;
  color: #14232f;
  font-weight: 900;
}

.product-card__purchase {
  border-color: rgba(244, 162, 58, 0.36);
  background: #fff7e8;
}

body.design-b2b .product-card__purchase {
  min-height: 30px;
  height: 30px;
  border-color: rgba(244, 162, 58, 0.3);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.98),
      rgba(255, 245, 224, 0.94)
    ),
    #fff8ea;
  padding: 0 5px;
}

body.design-b2b .product-card .price {
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

body.design-b2b .market-price__value {
  gap: 4px;
}

body.design-b2b .market-price s {
  font-size: 11px;
}

body.design-b2b .product-card__book-facts {
  min-height: 18px;
}

body.design-b2b .product-card__book-fact--compact {
  color: #536173;
  font-size: 11.5px;
  font-weight: 800;
}

.product-card__delivery {
  border: 1px solid rgba(218, 230, 234, 0.82);
  background: #f8fbfb;
}

body.design-b2b .product-card__delivery {
  min-height: 21px;
  height: 21px;
  gap: 4px;
  border-color: rgba(218, 230, 234, 0.72);
  border-radius: 7px;
  background: #f8fbfb;
  padding: 2px 5px;
}

body.design-b2b .product-card__delivery small {
  font-size: 9px;
}

body.design-b2b .product-card__delivery b {
  color: #0b746e;
  font-size: 10.5px;
  font-weight: 900;
}

body.design-b2b .product-card__order {
  height: 36px;
  gap: 4px;
}

body.design-b2b .card-buy-button {
  min-height: 34px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.market-badge--new {
  font-size: 11px;
  letter-spacing: 0;
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 188px;
  }

  body.design-b2b {
    background: linear-gradient(180deg, #f7fafb 0%, #f2f8f7 50%, #fbfaf6 100%);
  }

  body.design-b2b .catalog-section {
    padding-top: 28px;
  }

  .catalog-section {
    scroll-margin-top: 188px;
  }

  .section-head--catalog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .section-head--catalog h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
  }

  .section-head--catalog .view-switch {
    justify-self: end;
  }

  .catalog-layout {
    gap: 10px;
  }

  .filters:not(.is-open) {
    display: none;
  }

  .filters.is-open {
    display: grid;
  }

  .catalog-toolbar {
    position: static;
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
  }

  .catalog-toolbar__summary {
    gap: 2px;
  }

  .catalog-toolbar__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .catalog-toolbar__actions .btn {
    grid-column: auto;
  }

  .catalog-page-size,
  .filter-open-btn {
    min-height: 40px;
  }

  .quick-chips {
    margin-bottom: 8px;
  }

  .product-grid {
    gap: 10px 8px;
  }

  .product-card__media {
    min-height: clamp(168px, 53vw, 216px);
  }

  .product-card__content {
    grid-template-rows: 34px minmax(42px, auto) 18px 24px 38px;
    padding: 6px;
  }

  .product-card__title strong {
    font-size: 13.5px;
  }

  .product-card .price {
    font-size: 17px;
  }

  .product-card__delivery small {
    display: none;
  }

  .table-wrap {
    border-radius: 10px;
  }

  .product-table {
    min-width: 920px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 152px;
  }

  body {
    padding-bottom: 76px;
  }

  .container {
    width: min(100% - 20px, var(--container));
  }

  .header-grid {
    min-height: 104px;
    gap: 7px;
    padding: 6px 0 7px;
  }

  .site-header .logo {
    max-width: calc(100vw - 112px);
    gap: 7px;
    border-radius: 12px;
    padding: 4px 8px 4px 5px;
  }

  .site-header .logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .site-header .logo__text strong {
    font-size: 16px;
  }

  .header-actions {
    top: 7px;
    width: 86px;
    gap: 6px;
  }

  .request-link,
  .menu-toggle {
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 10px;
  }

  .request-link b {
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .header-search {
    height: 46px;
    border-radius: 9px;
  }

  .search-field {
    padding: 5px 12px;
  }

  .header-search input {
    font-size: 15px;
  }

  .icon-btn {
    min-width: 44px;
    border-radius: 0 8px 8px 0;
  }

  .quickbar__inner {
    display: flex;
    min-height: 48px;
    gap: 6px;
    padding: 5px 0;
    overflow-x: auto;
    overflow-y: visible;
  }

  .quickbar__group {
    flex: 0 0 auto;
    max-width: none;
    border-radius: 10px;
  }

  .quickbar__group--categories {
    min-width: min(184px, 50vw);
    width: min(184px, 50vw);
  }

  .quickbar__group--brands {
    min-width: min(162px, 44vw);
    width: min(162px, 44vw);
  }

  .quickbar__group--tools {
    min-width: 74px;
  }

  .quickbar__group--brands,
  .quickbar__group--tools {
    border-left: 0;
    padding: 3px;
  }

  .quickbar__label {
    display: none;
  }

  .quickbar__inner a,
  .quickbar__inner button {
    width: 100%;
    min-height: 36px;
    justify-content: center;
    padding: 7px 8px;
    font-size: 12px;
  }

  .quickbar-category-toggle__text,
  .quickbar-brand-toggle__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quickbar-category-menu,
  .quickbar-brand-menu {
    top: 110px;
    max-height: min(380px, calc(100dvh - 126px));
  }

  body.design-b2b .quickbar-brand-menu {
    position: fixed !important;
    top: 104px !important;
    right: 10px;
    left: 10px !important;
    height: min(620px, calc(100dvh - 238px)) !important;
    width: auto;
    max-height: none;
    border-radius: 14px;
    padding: 10px;
  }

  body.design-b2b .quickbar-brand-list {
    grid-template-columns: 1fr;
    max-height: none;
  }

  body.design-b2b .catalog-section {
    padding-top: 14px;
  }

  .catalog-section {
    scroll-margin-top: 152px;
  }

  .section-head--catalog {
    gap: 8px;
    margin-bottom: 8px;
  }

  .section-head--catalog h2 {
    font-size: 23px;
    line-height: 1.08;
  }

  .view-switch__btn {
    width: 38px;
    height: 34px;
  }

  .catalog-layout {
    gap: 8px;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    border-radius: 10px;
    padding: 8px;
  }

  .catalog-toolbar__summary {
    min-width: 0;
  }

  .catalog-toolbar__summary strong {
    font-size: 16px;
    line-height: 1.1;
  }

  .catalog-toolbar__summary span {
    overflow: hidden;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-toolbar__actions {
    display: grid;
    grid-template-columns: 42px 62px 42px;
    align-items: center;
    gap: 6px;
  }

  .catalog-sort-control {
    position: relative;
    width: 42px;
    min-height: 38px;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    padding: 0;
  }

  .catalog-sort-control span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .catalog-sort-control select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    opacity: 0;
    cursor: pointer;
  }

  .catalog-page-size {
    width: 62px;
    min-height: 38px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
  }

  .catalog-page-size span {
    display: none;
  }

  .catalog-page-size select {
    width: 100%;
    min-height: 36px;
    border: 0;
    padding: 0 5px;
    font-size: 13px;
    text-align: center;
  }

  .filter-open-btn {
    position: relative;
    width: 42px;
    min-height: 38px;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .filter-open-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .filter-open-btn b {
    top: -6px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
  }

  .catalog-toolbar__actions .btn {
    display: none;
  }

  .quick-chips {
    gap: 6px;
    margin: 0 0 6px;
    padding-bottom: 1px;
  }

  .quick-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .quick-chip[data-icon]::before {
    margin-right: 5px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-card {
    border-radius: 7px;
  }

  .product-card__media {
    min-height: clamp(142px, 46vw, 178px);
    max-height: 190px;
  }

  .product-card__content {
    grid-template-rows: 30px minmax(38px, auto) 0 20px 36px;
    gap: 3px;
    padding: 5px;
  }

  body.design-b2b .product-card__content {
    grid-template-rows: 30px minmax(40px, auto) 0 18px 34px;
    padding: 5px 6px 6px;
  }

  .product-card__topline {
    min-height: 22px;
  }

  .product-card__topline > span:not(.stock),
  .product-card__line span {
    padding: 3px 6px;
    font-size: 10px;
  }

  .product-card__title strong {
    font-size: 13px;
    line-height: 1.22;
  }

  body.design-b2b .product-card__title {
    grid-template-rows: 40px 0;
    min-height: 40px;
  }

  body.design-b2b .product-card__title strong {
    min-height: 40px;
    max-height: 40px;
    font-size: 12.8px;
    line-height: 1.24;
  }

  .product-card__delivery {
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .product-card__delivery b {
    display: none;
  }

  .product-card .price {
    font-size: 16px;
  }

  body.design-b2b .product-card__purchase {
    min-height: 30px;
    height: 30px;
    padding: 0 5px;
  }

  body.design-b2b .product-card .price {
    font-size: 15px;
  }

  body.design-b2b .product-card__order {
    height: 34px;
  }

  body.design-b2b .card-buy-button {
    min-height: 32px;
  }
}
body.design-b2b .product-modal .product-modal__body {
  width: min(100%, 1060px);
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 14px;
  border-radius: 12px;
  padding: 14px;
}

body.design-b2b .product-modal__gallery {
  gap: 8px;
}

body.design-b2b .product-modal__media {
  aspect-ratio: 1 / 1.08;
  border-color: rgba(11, 129, 123, 0.16);
  background: #f8fbfb;
}

body.design-b2b .product-modal__gallery-note {
  display: none;
}

body.design-b2b .product-modal__header {
  gap: 7px;
}

body.design-b2b .product-modal__info {
  gap: 10px;
}

body.design-b2b .product-modal__info h2 {
  font-size: clamp(22px, 2vw, 27px);
  letter-spacing: 0;
}

body.design-b2b .product-modal__meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

body.design-b2b .product-modal__meta span {
  min-height: 44px;
  border-color: rgba(218, 230, 234, 0.92);
  background: #f8fbfb;
  padding: 6px 7px;
}

body.design-b2b .product-modal__meta small,
body.design-b2b .product-modal__price-label {
  color: #667586;
  font-size: 9.5px;
  line-height: 1;
}

body.design-b2b .product-modal__meta b {
  overflow: hidden;
  color: #17242f;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.design-b2b .product-modal__buybox {
  grid-template-columns: minmax(150px, 0.72fr) minmax(220px, 1.28fr);
  gap: 9px 10px;
  border-color: rgba(11, 129, 123, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 240, 0.98),
      rgba(255, 247, 229, 0.96)
    ),
    #fff8ea;
  padding: 10px;
}

body.design-b2b .product-modal__price {
  align-self: stretch;
  align-content: center;
  border: 1px solid rgba(255, 214, 170, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 9px;
}

body.design-b2b .product-modal__price .price {
  font-size: clamp(25px, 2.5vw, 32px);
}

body.design-b2b .product-modal__price small,
body.design-b2b .product-modal__note {
  font-size: 11px;
}

body.design-b2b .product-modal__status {
  min-height: 64px;
  border-color: rgba(218, 230, 234, 0.92);
  padding: 8px;
}

body.design-b2b .product-modal__status small {
  font-size: 10.5px;
}

body.design-b2b .product-modal__controls {
  grid-template-columns: 132px minmax(0, 1fr);
}

body.design-b2b .product-modal__controls .qty-control,
body.design-b2b .product-modal__controls .btn {
  min-height: 40px;
  height: 40px;
}

body.design-b2b .product-modal__specs {
  gap: 6px;
}

body.design-b2b .product-modal__spec {
  padding: 8px 9px;
}

body.design-b2b .product-modal__spec span {
  font-size: 10px;
}

body.design-b2b .product-modal__spec strong {
  font-size: 12px;
}

body.design-b2b .quick-order-modal .panel-modal__body {
  width: min(100%, 1080px);
  border-radius: 12px;
  padding: 20px;
}

body.design-b2b .quick-order__grid {
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
}

body.design-b2b .quick-form {
  border-color: rgba(218, 230, 234, 0.92);
  border-radius: 10px;
  padding: 14px;
}

body.design-b2b .quick-form textarea {
  min-height: 142px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
}

body.design-b2b .quick-example {
  gap: 6px;
  margin-top: 12px;
}

body.design-b2b .quick-example span,
body.design-b2b .quick-example code {
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 12px;
}

body.design-b2b .quick-results {
  gap: 8px;
}

body.design-b2b .quick-results__summary {
  border-color: rgba(218, 230, 234, 0.92);
  border-radius: 10px;
  background: #f8fbfb;
  padding: 8px;
}

body.design-b2b .quick-results__summary span {
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 11px;
}

body.design-b2b .quick-result-list {
  gap: 6px;
}

body.design-b2b .quick-result-row {
  grid-template-columns: 86px minmax(0, 1fr) 112px 112px;
  gap: 8px;
  border-radius: 10px;
  padding: 8px;
}

body.design-b2b .quick-result-row__status {
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 11px;
}

body.design-b2b .quick-result-row__main strong {
  font-size: 13px;
}

body.design-b2b .quick-result-row__codes,
body.design-b2b .quick-result-row__qty span,
body.design-b2b .quick-result-row__sum span {
  color: #667586;
  font-size: 10.5px;
}

body.design-b2b .quick-result-row__qty strong,
body.design-b2b .quick-result-row__sum strong {
  font-size: 12px;
}

body.design-b2b .quick-results__actions {
  border-top-color: rgba(218, 230, 234, 0.92);
}

@media (max-width: 760px) {
  body.design-b2b .product-modal .product-modal__body {
    width: 100%;
    max-height: calc(100dvh - 16px);
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    border-radius: 10px;
    padding: 10px;
  }

  body.design-b2b .product-modal__media {
    height: 150px;
    min-height: 150px;
  }

  body.design-b2b .product-modal__thumbs {
    display: none;
  }

  body.design-b2b .product-modal__info h2 {
    font-size: 19px;
    line-height: 1.16;
  }

  body.design-b2b .product-modal__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.design-b2b .product-modal__buybox {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  body.design-b2b .product-modal__price .price {
    font-size: 24px;
  }

  body.design-b2b .product-modal__status {
    min-height: 0;
    grid-template-columns: 86px minmax(0, 1fr);
  }

  body.design-b2b .product-modal__controls {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  body.design-b2b .product-modal__controls .qty-control,
  body.design-b2b .product-modal__controls .btn {
    min-height: 38px;
    height: 38px;
  }

  body.design-b2b .product-modal__specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.design-b2b .product-modal__spec {
    padding: 7px;
  }

  body.design-b2b .product-modal__related-grid {
    gap: 7px;
  }

  body.design-b2b .quick-order-modal .panel-modal__body {
    max-height: calc(100dvh - 16px);
    border-radius: 10px;
    padding: 12px;
  }

  body.design-b2b .quick-order__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.design-b2b .quick-form {
    padding: 10px;
  }

  body.design-b2b .quick-form textarea {
    min-height: 120px;
  }

  body.design-b2b .quick-results__summary,
  body.design-b2b .quick-results__actions {
    display: grid;
    gap: 6px;
  }

  body.design-b2b .quick-result-row {
    grid-template-areas:
      "main status"
      "qty sum";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  body.design-b2b .quick-result-row__status {
    grid-area: status;
    justify-self: end;
    white-space: nowrap;
  }

  body.design-b2b .quick-result-row__main {
    grid-area: main;
  }

  body.design-b2b .quick-result-row__qty {
    grid-area: qty;
  }

  body.design-b2b .quick-result-row__sum {
    grid-area: sum;
    justify-self: end;
    text-align: right;
  }

  body.design-b2b .quick-result-row__main strong,
  body.design-b2b .quick-result-row__codes,
  body.design-b2b .quick-result-row__qty span,
  body.design-b2b .quick-result-row__sum span {
    white-space: normal;
  }

  body.design-b2b .quick-result-row__main strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.design-b2b .quick-results__actions .btn {
    width: 100%;
  }
}
