@charset "UTF-8";
:root {
  --font-display: "Unbounded", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-ui: "Manrope", system-ui, sans-serif;
  --accent-bright: #35d996;
  --accent-wash: rgba(15, 122, 90, 0.18);
  --accent: #0f7a5a;
  --text-bright: #f7f9f6;
  --text-faint: #80877e;
  --text-mute: #7e857c;
  --text-dim: #9aa197;
  --text: #f2f4f1;
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --card-alt: #181c18;
  --card: #141714;
  --panel-2: #0e100e;
  --panel: #101310;
  --warn-wash: rgba(224, 113, 58, 0.12);
  --warn: #e0713a;
  --danger: #e05656;
  --bg: #0b0c0b;
}

* {
  box-sizing: border-box;
}

/* Nothing a supplier typed (a URL as a characteristic, a long article in a
   description) may push the page sideways on a phone: clip, not hidden, so
   sticky headers and sidebars keep working. */
html {
  background: #0b0c0b;
  overflow-x: clip;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0b0c0b;
  font-family: "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #35d996;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

a:hover {
  color: #5ce9b0;
}

.placeholder-photo {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 3px, transparent 3px 14px);
  display: grid;
  place-items: center;
  color: #80877e;
  font: 500 10.5px "JetBrains Mono", monospace;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* The photo's <picture> takes no box of its own: the <img> sizes as it did. */
picture:has(> .photo-img) {
  display: contents;
}

/* A frame holding a photo is white like the photo's own padding (Product
   image variants), so a card a little wider or narrower than the variant's
   shape shows no dark edges; the striped placeholder stays for no photo. */
:is(.product-card__photo, .product-row__photo, .cart-item__photo, .cart-modal__item-photo, .search-result__product-photo, .xsell-card__photo, .compare-product__photo, .product-page__main-photo):has(> .photo-img, > picture > .photo-img) {
  background: #fff;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 26px;
  background: #0f7a5a;
  color: #fff;
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  letter-spacing: 0.02em;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar__group {
  display: flex;
  gap: 22px;
}
.topbar__phone {
  font-family: "JetBrains Mono", monospace;
}
.topbar__opt {
  color: #fff;
  opacity: 0.8;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 26px;
  background: #101310;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.site-header__logo {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.site-header__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #0f7a5a;
  display: grid;
  place-items: center;
  font: 800 12px "JetBrains Mono", monospace;
  color: #fff;
}
.site-header__name {
  font: 800 15px/1 "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.01em;
}
.site-header__name em {
  color: #35d996;
  font-style: normal;
}
.site-header__breadcrumb-row {
  /* Slim strip under the main bar on category/product/search pages — the
  catalog button + search box now stay put on every page, so this is an
  addition below them rather than a replacement for them. */
  padding: 10px 26px;
  background: #0e100e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__breadcrumb {
  font: 500 11.5px "JetBrains Mono", monospace;
  color: #80877e;
  overflow-wrap: anywhere;
}
.site-header__breadcrumb a.breadcrumb-home {
  display: inline-flex;
  align-items: center;
  color: #80877e;
  vertical-align: -2px;
}
.site-header__breadcrumb a.breadcrumb-home:hover {
  color: #f2f4f1;
}
.site-header__breadcrumb a.breadcrumb-home svg {
  display: block;
}
.site-header-host {
  /* Sticky so the cart badge (and its just-added count) stays visible after
  adding a product from anywhere down a long catalog/product list —
  without this, "+" clicks give no feedback once the header has scrolled
  out of view. */
  /* Only the controllers' element: the phone's info line, its first child,
  scrolls away above the wrap (shared/_header). */
  display: contents;
}
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #101310;
}

/* Pieces of the phone header that the desktop one doesn't show. */
.mobile-infobar, .mobile-search-btn, .search-back, .header-actions__icon, .site-header__tagline {
  display: none;
}

.search-start[hidden] {
  display: none;
}
.search-start__label {
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.search-start__label + .search-start__chips {
  margin-top: 10px;
}
.search-start__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.search-start__chip {
  padding: 8px 12px;
  border-radius: 20px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  text-decoration: none;
}
.search-start__recent {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.search-start__item {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 13.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  text-decoration: none;
}

.catalog-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #0f7a5a;
  border-radius: 10px;
  font: 700 12.5px "Manrope", system-ui, sans-serif;
  color: #fff;
  border: 0;
  cursor: pointer;
}
.catalog-btn[aria-expanded=true] {
  background: #35d996;
  color: #0b0c0b;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hamburger span {
  width: 13px;
  height: 2px;
  background: #fff;
  display: block;
}

.catalog-btn[aria-expanded=true] .hamburger span {
  background: #0b0c0b;
}

/* Catalog mega-menu: full-width panel anchored under the header */
.catalog-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 90;
  background: #101310;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  max-height: 72vh;
  overflow-y: auto;
}
.catalog-menu[hidden] {
  display: none;
}
.catalog-menu__classic {
  /* The desktop's menu (shared/_catalog_menu): plain columns. Everything
  hangs off one 40px text line — the section's 30px plaque plus its gap —
  so a subcategory's name starts where the section's does, its smaller
  plaque centred under the section's. A title takes two lines' height even
  when it needs one, so a long name («Одежда, обувь и аксессуары») doesn't
  push its list below the neighbouring columns'. Plaques are --card-alt with
  a border: the mockup's --card would vanish on the menu's own --panel. */
  padding: 28px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px 22px;
}
.catalog-menu__group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font: 700 13.5px/1.3 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  margin-bottom: 12px;
}
.catalog-menu__group-title:hover {
  color: #35d996;
}
.catalog-menu__group-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
  color: #35d996;
}
.catalog-menu__group-icon svg {
  width: 17px;
  height: 17px;
}
.catalog-menu__group-title:hover .catalog-menu__group-icon {
  background: #0f7a5a;
  border-color: #0f7a5a;
  color: #fff;
}
.catalog-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.catalog-menu__list a {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-left: 3px;
  font: 500 12.5px/16px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.catalog-menu__item-name {
  padding-top: 4px;
}
.catalog-menu__item-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
  color: #35d996;
}
.catalog-menu__item-icon svg {
  width: 14px;
  height: 14px;
}
.catalog-menu__list a:hover {
  color: #35d996;
}
.catalog-menu__list a:hover .catalog-menu__item-icon {
  background: #0f7a5a;
  border-color: #0f7a5a;
  color: #fff;
}
.catalog-menu__more {
  display: inline-block;
  margin: 10px 0 0 40px;
  font: 700 11.5px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.catalog-menu__phone {
  /* The phone's menu: an accordion of the sections (shared/_catalog_menu). */
  display: none;
}
.catalog-menu__phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.catalog-menu__phone-title {
  font: 800 19px "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.02em;
}
.catalog-menu__phone-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #181c18;
  color: #9aa197;
  font-size: 14px;
  cursor: pointer;
}
.catalog-acc {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.catalog-acc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.catalog-acc__head::-webkit-details-marker {
  display: none;
}

a.catalog-acc__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-acc__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
  color: #35d996;
}
.catalog-acc__icon svg {
  width: 19px;
  height: 19px;
}
.catalog-acc[open] .catalog-acc__icon {
  background: #0f7a5a;
  border-color: #0f7a5a;
  color: #fff;
}
.catalog-acc__name {
  flex: 1;
  min-width: 0;
  font: 600 14px/1.3 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.catalog-acc[open] .catalog-acc__name {
  font-weight: 700;
  color: #f7f9f6;
}
.catalog-acc__count {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
}
.catalog-acc__chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: #7e857c;
  transition: transform 0.2s ease;
}
.catalog-acc[open] .catalog-acc__chevron {
  transform: rotate(180deg);
  color: #35d996;
}
.catalog-acc__body {
  display: flex;
  flex-direction: column;
  padding: 0 16px 12px 64px;
}
.catalog-acc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font: 500 13.5px/1.3 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  text-decoration: none;
}
.catalog-acc__link + .catalog-acc__link {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.catalog-acc__link-icon {
  flex: none;
  display: grid;
  color: #7e857c;
}
.catalog-acc__link-icon svg {
  width: 16px;
  height: 16px;
}
.catalog-acc__link--all {
  justify-content: space-between;
  font-weight: 700;
  color: #35d996;
}
.catalog-acc__link--all span {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
}

@media (max-width: 560px) {
  .catalog-menu__classic {
    display: none;
  }
  .catalog-menu__phone {
    display: block;
    padding-bottom: 40px;
  }
}
/* Wraps the search <form> + its live dropdown so the dropdown can anchor
   (position: absolute) to the box regardless of where it sits in the
   header — see search_controller.js. */
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-sizing: border-box;
}
.search-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 13px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.search-form input::placeholder {
  color: #7e857c;
}
.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 95;
  background: #101310;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  max-height: 75vh;
  overflow-y: auto;
  padding: 10px;
}
.search-panel[hidden] {
  display: none;
}
.search-results__empty {
  padding: 20px 10px;
  text-align: center;
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.search-results__group + .search-results__group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.search-results__group-label {
  display: block;
  padding: 0 6px 8px;
  font: 700 10.5px "Manrope", system-ui, sans-serif;
  color: #80877e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.search-results__link {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.search-results__link:hover {
  background: #181c18;
  color: #35d996;
}
.search-results__footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.search-results__footer a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font: 700 12px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.search-results__footer a:hover {
  background: #181c18;
}
.search-result__product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-radius: 8px;
}
.search-result__product:hover {
  background: #181c18;
}
.search-result__product-photo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #181c18;
  display: block;
}
.search-result__product-info {
  flex: 1;
  min-width: 0;
}
.search-result__product-name {
  font: 600 12.5px/1.35 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result__product-meta {
  /* A long article keeps its own width and paints past the suggestion. */
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 2px;
  min-width: 0;
}
.search-result__product-price {
  flex: none;
  font: 700 12px "JetBrains Mono", monospace;
  color: #35d996;
}
.search-result__product-sku {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 11px "JetBrains Mono", monospace;
  color: #9aa197;
}
.search-result__add {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #0f7a5a;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font: 700 16px "Manrope", system-ui, sans-serif;
  line-height: 1;
  cursor: pointer;
}
.search-result__add:hover {
  background: #35d996;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.header-city {
  /* The visitor's city before the search on a desktop (on a phone it is the
  line above the bar); a click opens the city dialog. */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  max-width: 170px;
  padding: 8px 6px;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.header-city span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px dashed currentColor;
}
.header-city svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: #35d996;
}
.header-city:hover {
  color: #f2f4f1;
}

/* A grid item's 100% is its own track, sized to its content — so the
   width is capped by the viewport itself, not by max-width: 100%. */
.city-picker .modal-card {
  width: min(520px, 100vw - 40px);
  box-sizing: border-box;
}

/* The chat's button sits above the header's layer: out of the way while
   the city is being chosen. */
html.has-city-picker .support-chat {
  display: none;
}

.city-picker__lede {
  margin: 8px 0 14px;
  font: 500 12.5px/1.55 "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.city-picker__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e100e;
  color: #f2f4f1;
  font: 600 14px "Manrope", system-ui, sans-serif;
}
.city-picker__input:focus {
  outline: none;
  border-color: #0f7a5a;
}
.city-picker__options {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.city-picker__options:empty {
  display: none;
}
.city-picker__option {
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.city-picker__option:hover, .city-picker__option:focus-visible {
  background: rgba(15, 122, 90, 0.18);
  color: #35d996;
  outline: none;
}
.city-picker__big {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.city-picker__chip {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e100e;
  cursor: pointer;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.city-picker__chip:hover {
  border-color: #0f7a5a;
  color: #35d996;
}

.header-actions__link {
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  text-align: center;
}
.header-actions__divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.14);
}
.header-actions__auth {
  /* The guest Войти/Регистрация pair needs its own data-controller="auth-
  modal" wrapper (to scope the modal to both triggers) — a plain <div>
  there breaks out of .header-actions' own flex/gap, so the two buttons
  rendered with zero space between them, touching edge to edge. */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* «ЛК» — the cabinet's menu as a header dropdown (shared/_header). The
   panel's ::before bridges the gap under the trigger, so the pointer can
   travel down to it without leaving the element and closing a menu that
   hover opened. */
.account-menu {
  position: relative;
}
.account-menu__trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f4f1;
  font: 700 12.5px "Manrope", system-ui, sans-serif;
  cursor: pointer;
}
.account-menu__trigger svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.account-menu__trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 0 0 1px;
  border: solid #7e857c;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.account-menu__trigger:hover, .account-menu__trigger[aria-expanded=true] {
  border-color: #35d996;
}
.account-menu__trigger[aria-expanded=true]::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.account-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 96;
  width: 290px;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 14px;
  background: #101310;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}
.account-menu__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.account-menu__panel[hidden] {
  display: none;
}
.account-menu__who {
  padding: 8px 10px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}
.account-menu__name {
  font: 700 13px/1.3 "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu__email {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu__nav {
  display: flex;
  flex-direction: column;
}
.account-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  text-decoration: none;
}
.account-menu__link:hover {
  background: #181c18;
  color: #f7f9f6;
}
.account-menu__link--soon {
  color: #7e857c;
}
.account-menu__link--admin {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 9px 9px;
  color: #35d996;
}
.account-menu__soon {
  font: 600 9.5px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #80877e;
}
.account-menu__panel form {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.account-menu__logout {
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  background: none;
  border: 0;
  text-align: left;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  cursor: pointer;
}
.account-menu__logout:hover {
  background: #181c18;
  color: #e0713a;
}

.header-actions__cart {
  display: flex;
  align-items: center;
}

.cart-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
}
.cart-badge__label {
  font: 600 11px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.cart-badge__icon {
  display: none;
  width: 19px;
  height: 19px;
  color: #f2f4f1;
}
.cart-badge__count {
  font: 700 11px "JetBrains Mono", monospace;
  color: #0b0c0b;
  background: #35d996;
  border-radius: 20px;
  padding: 2px 7px;
}

/* Pops the header cart count and a button's own "already in cart" badge
   whenever a cart_items#create turbo_stream response replaces them — the
   .pop modifier is only added on that response, not on a normal page
   render, so it plays once per actual add rather than on every visit. */
@keyframes cart-pop {
  0% {
    transform: scale(0.55);
    opacity: 0.3;
  }
  60% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
.cart-badge__count--pop, .cart-qty-badge--pop {
  animation: cart-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-qty-wrap {
  /* Small count badge on an add-to-cart button showing how many of that
  product are already in the cart — see shared/_cart_qty_badge. */
  position: relative;
  display: inline-flex;
}
.cart-qty-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 10.5px "JetBrains Mono", monospace;
  color: #0b0c0b;
  background: #35d996;
  border-radius: 20px;
  border: 2px solid #0b0c0b;
}
.cart-qty-badge[hidden] {
  display: none;
}

/* Header cart preview offcanvas — slides in from the right, content loaded
   fresh into #cart_modal_panel on each open (cart_modal_controller.js) */
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  transition: background-color 0.25s ease;
}
.offcanvas-backdrop[hidden] {
  display: none;
}
.offcanvas-backdrop.is-open {
  background: rgba(0, 0, 0, 0.6);
}
.offcanvas-panel {
  width: 420px;
  max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #101310;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  padding: 24px;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.offcanvas-backdrop.is-open .offcanvas-panel {
  transform: translateX(0);
}
.offcanvas-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.offcanvas-panel__title {
  font: 800 22px/1.15 "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.025em;
  margin: 0;
}
.offcanvas-panel__close {
  font: 600 18px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  background: none;
  border: 0;
  cursor: pointer;
}
.offcanvas-panel > turbo-frame {
  /* The panel fills the screen's height: lines scroll, the foot stays down. */
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 10px;
}

.cart-modal {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.cart-modal__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 2px 12px 0;
}
.cart-modal__foot {
  flex: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  padding-bottom: env(safe-area-inset-bottom);
}
.cart-modal__promo {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.cart-modal__promo input[type=text] {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f4f1;
  font: 600 13px "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.cart-modal__promo input[type=text]:focus {
  outline: 0;
  border-color: #35d996;
}
.cart-modal__promo .btn {
  height: 40px;
  box-sizing: border-box;
  margin: 0;
}
.cart-modal__promo--applied {
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px dashed #35d996;
  border-radius: 10px;
  background: rgba(15, 122, 90, 0.18);
}
.cart-modal__promo-name {
  font: 700 12.5px "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
}
.cart-modal__promo-code {
  font: 500 11px "JetBrains Mono", monospace;
  color: #9aa197;
  margin-top: 2px;
}
.cart-modal__promo-remove {
  background: none;
  border: 0;
  cursor: pointer;
  color: #9aa197;
  font: 600 12px "Manrope", system-ui, sans-serif;
}
.cart-modal__promo-error {
  margin-top: 6px;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #e0713a;
}
.cart-modal__summary-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.cart-modal__discount {
  font: 700 12.5px "JetBrains Mono", monospace;
  color: #35d996;
}
.cart-modal__foot .cart-modal__summary {
  border-top: 0;
  padding-top: 0;
  margin-top: 12px;
}

/* While the cart panel is open the chat button stands just left of it; on
   a phone, where the panel takes the whole width, it steps aside. */
.support-chat {
  transition: right 0.25s ease;
}

html.has-cart-panel .support-chat {
  right: calc(min(420px, 100vw) + 24px);
  z-index: 101;
}

@media (max-width: 560px) {
  html.has-cart-panel .support-chat {
    display: none;
  }
}
/* The total's column is as wide as the largest sum, not as the current one:
   sized to its text, a quantity going from 1 to 2 (8840 → 17 680) squeezed
   the name onto another line and the whole panel jumped. */
.cart-modal__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 10ch auto;
  gap: 12px;
  align-items: center;
}
.cart-modal__remove-form {
  margin: 0;
}
.cart-modal__remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  color: #80877e;
}
.cart-modal__remove:hover {
  color: #e0713a;
  border-color: rgba(255, 255, 255, 0.14);
  background: #181c18;
}
.cart-modal__item > div:nth-child(2) {
  min-width: 0;
}
.cart-modal__item-photo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #181c18;
  overflow: hidden;
  font-size: 8px;
  display: block;
}
.cart-modal__item-name {
  /* A one-word name painted out of the panel and widened the phone. */
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 600 12.5px/1.35 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.cart-modal__item-qty {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cart-modal__item-qty > span {
  white-space: nowrap;
}
.cart-modal__item-stepper .qty-stepper button {
  padding: 4px 8px;
}
.cart-modal__item-stepper .qty-stepper input {
  width: 42px;
  padding: 4px 0;
}
.cart-modal__item--sold-out .cart-modal__item-photo, .cart-modal__item--sold-out .cart-modal__item-name, .cart-modal__item--sold-out .cart-modal__item-qty, .cart-modal__item--sold-out .cart-modal__item-total {
  opacity: 0.4;
}
.cart-modal__item--sold-out .cart-modal__item-photo {
  filter: grayscale(1);
}
.cart-modal__item-total {
  font: 700 13px "JetBrains Mono", monospace;
  color: #f2f4f1;
  white-space: nowrap;
  text-align: right;
}
.cart-modal__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.cart-modal__summary-value {
  font: 800 16px "JetBrains Mono", monospace;
  color: #f7f9f6;
}
.cart-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
}
.cart-modal__empty {
  text-align: center;
  color: #9aa197;
  padding: 20px 0;
  font: 500 13px "Manrope", system-ui, sans-serif;
}

/* Checkout steps */
.steps {
  display: flex;
  align-items: center;
  gap: 18px;
}

.step {
  display: flex;
  align-items: center;
  gap: 7px;
}
.step__num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 9px "Manrope", system-ui, sans-serif;
  background: #181c18;
  color: #9aa197;
}
.step--done .step__num, .step--active .step__num {
  background: #0f7a5a;
  color: #fff;
}
.step__label {
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.step--active .step__label {
  font-weight: 700;
  color: #f2f4f1;
}
.step__divider {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.step__divider--done {
  background: #35d996;
}

/* On a phone the checkout bar keeps the mark and the steps on one line:
   the name and the labels of the steps not current go (the numbers say
   enough), and the steps take the room the name had. */
@media (max-width: 560px) {
  .site-header--checkout {
    gap: 10px;
  }
  .site-header--checkout .site-header__name {
    display: none;
  }
  .site-header--checkout > div[style*="flex:1"] {
    display: none;
  }
  .site-header--checkout .steps {
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }
  .site-header--checkout .step:not(.step--active) .step__label {
    display: none;
  }
  .site-header--checkout .step__divider {
    width: 16px;
    flex: none;
  }
  .site-header--checkout .step__num {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
}
/* Hero slider — admin-managed HomeSlide records (see Admin::HomeSlidesController),
   home_slider_controller.js drives the prev/next/dots/tiles/autoplay. */
.hero-slider {
  padding: 18px 26px 0;
  background: #0b0c0b;
}
.hero-slider__card {
  /* A fixed height: a slide with a photo used to grow the card to the
  photo's own height, and the page jumped on every turn of the slider.
  300px cut the arrows off against the card's bottom edge and cropped
  the top of a landscape picture (the Black Friday art is 1200×680).
  380 fits the badges, a two-line headline, the line under it, the
  button and the arrows, and shows that picture whole. */
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: #0e100e;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-slide {
  display: contents;
}
.hero-slide[hidden] {
  display: none;
}
.hero-slide__text {
  /* min-height: 0 lets the column shrink to the card instead of pushing
  the arrows and dots out of its bottom edge. */
  position: relative;
  padding: 22px 28px 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.hero-slide__text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 11px);
}
.hero-slide__badges {
  /* min-height on badges/headline/lede reserves space for the tallest
  possible slide (badges present, 2-line headline, 2-line description) so
  switching slides never shifts the headline/actions/controls position —
  a slide missing one of these just leaves blank space instead of
  everything below it jumping up. */
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-height: 27px;
}
.hero-slide__badge {
  padding: 6px 11px;
  border-radius: 20px;
  background: #35d996;
  font: 800 10.5px "JetBrains Mono", monospace;
  color: #0b0c0b;
  letter-spacing: 0.06em;
}
.hero-slide__validity {
  padding: 6px 11px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 700 10.5px "JetBrains Mono", monospace;
  color: #f2f4f1;
  letter-spacing: 0.04em;
}
.hero-slide__headline {
  /* A block, not a flex box: as flex items the headline's text and its
  accent span became side-by-side columns, and on a phone the accent
  («на 8 %») was squeezed into a strip past the card's right edge. Slides
  are typed in the admin, so a long word is let to break rather than
  overflow. */
  position: relative;
  font: 800 clamp(26px, 2.4vw, 34px)/1.08 "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.03em;
  margin: 12px 0 0;
  overflow-wrap: break-word;
  hyphens: manual;
}
.hero-slide__accent {
  color: #35d996;
}
.hero-slide__lede {
  position: relative;
  font: 500 14px/1.45 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  max-width: 460px;
  margin-top: 8px;
}
.hero-slide__actions {
  position: relative;
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hero-slide__controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
}
.hero-slide__arrow {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font: 700 16px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  cursor: pointer;
}
.hero-slide__dots {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-slide__dot {
  /* 16x4 to the eye, 24x24 to a finger: the padding is the tap area, the
  background stays on the content box — and the padding is also the gap,
  so no two dots' 24px circles overlap (axe target-size). */
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  padding: 10px 4px;
  background-clip: content-box;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.15s ease;
}
.hero-slide__dot--active {
  width: 42px;
}
.hero-slide__dot-fill {
  width: 0;
  height: 4px;
  background: #35d996;
}
.hero-slide__dot--active .hero-slide__dot-fill {
  animation: hero-dot-fill 6s linear;
}

@keyframes hero-dot-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.hero-slide__counter {
  font: 700 12px "JetBrains Mono", monospace;
  color: #f2f4f1;
}
.hero-slide__counter span {
  color: #f2f4f1;
}
.hero-slide__photo {
  position: relative;
  background: #181c18;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 0;
}
.hero-slide__photo:empty {
  /* A slide with neither a photo nor a product: its text takes the whole
  card instead of leaving an empty half. */
  display: none;
}
.hero-slide__text:has(+ .hero-slide__photo:empty), .hero-slide__text--solo {
  grid-column: 1/-1;
}
.hero-slide__photo > .photo-img, .hero-slide__photo > picture > .photo-img {
  /* Out of the flow, so the picture fills the cell and never sizes it.
  contain, not cover: a supplier banner is a designed picture with words
  at the edges, and cover sliced them off the card. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero-slide__overlay-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 12, 11, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-slide__overlay-card .photo-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex: none;
  object-fit: cover;
}
.hero-slide__overlay-name {
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.hero-slide__overlay-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
}
.hero-slide__overlay-price span {
  font: 700 15px "JetBrains Mono", monospace;
  color: #35d996;
}
.hero-slide__overlay-old {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
  text-decoration: line-through;
}
.hero-slide__overlay-add {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0f7a5a;
  border: 0;
  display: grid;
  place-items: center;
  font: 700 18px "Manrope", system-ui, sans-serif;
  color: #fff;
  cursor: pointer;
  flex: none;
}
.hero-slider__tiles {
  /* As many columns as there are slides fit — five promos no longer leave
  one alone on a second row. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.hero-tile {
  padding: 13px 14px;
  border-radius: 11px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  cursor: pointer;
}
.hero-tile--active {
  border-color: #35d996;
}
.hero-tile__kicker {
  font: 700 10px "JetBrains Mono", monospace;
  color: #80877e;
  letter-spacing: 0.05em;
}
.hero-tile--active .hero-tile__kicker {
  color: #35d996;
}
.hero-tile__title {
  font: 700 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  margin-top: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 11px;
  font: 700 13.5px "Manrope", system-ui, sans-serif;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn--primary {
  background: #0f7a5a;
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f2f4f1;
}
.btn--block {
  width: 100%;
}
.btn--sm {
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 12px;
}
.btn--lg {
  padding: 17px 22px;
  border-radius: 12px;
  font-size: 15px;
}

/* Sections */
.section {
  padding: 30px 26px;
  background: #0b0c0b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.section__title {
  font: 800 22px/1 "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.02em;
}
.section__more {
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #35d996;
}

/* Wholesale landing (static_pages/wholesale). A text page, so the column
   stays readable on a wide screen; the dark background is still full width. */
.wholesale__inner {
  max-width: 960px;
}
.wholesale__kicker {
  margin: 0;
  font: 700 11px "Manrope", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #35d996;
}
.wholesale__title {
  margin: 10px 0 0;
  font: 800 34px/1.15 "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.03em;
}
.wholesale__lead {
  max-width: 640px;
  margin: 14px 0 0;
  font: 500 16px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.wholesale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.wholesale__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.wholesale__steps li {
  padding: 16px 16px 18px;
  border-radius: 14px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.wholesale__steps span {
  display: block;
  font: 700 12px "JetBrains Mono", monospace;
  color: #35d996;
}
.wholesale__steps strong {
  display: block;
  margin: 8px 0 6px;
  font: 700 15px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.wholesale__steps li {
  font: 500 13px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.wholesale__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.wholesale__grid article {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #101310;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.wholesale__grid h2 {
  margin: 0;
  font: 700 16px "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
}
.wholesale__grid p {
  margin: 8px 0 0;
  font: 500 13.5px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.wholesale__grid a {
  color: #35d996;
}
.wholesale__faq-title {
  margin: 32px 0 0;
  font: 800 22px "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.02em;
}
.wholesale__faq {
  margin-top: 12px;
}
.wholesale__faq section {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.wholesale__faq h3 {
  margin: 0;
  font: 700 15px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.wholesale__faq p {
  margin: 6px 0 0;
  font: 500 14px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.wholesale__note {
  margin: 8px 0 0;
  font: 500 13.5px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.wholesale__note a {
  color: #35d996;
}

@media (max-width: 720px) {
  .wholesale__title {
    font-size: 26px;
  }
  .wholesale__actions .btn {
    flex: 1 1 100%;
  }
  .wholesale__steps, .wholesale__grid {
    grid-template-columns: 1fr;
  }
}
/* StaticPage body (see static_pages/show, Admin::StaticPagesController) —
   dark-theme overrides for the Rails-generated actiontext.css's light-themed
   .trix-content rules. */
.static-page__body {
  max-width: 760px;
  margin-top: 18px;
  font: 500 15px/1.7 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  overflow-wrap: anywhere;
}
.static-page__body h1, .static-page__body h2, .static-page__body h3 {
  font: 700 20px "Unbounded", sans-serif;
  color: #f7f9f6;
  margin: 24px 0 10px;
}
.static-page__body h1:first-child, .static-page__body h2:first-child, .static-page__body h3:first-child {
  margin-top: 0;
}
.static-page__body p {
  margin: 12px 0;
}

/* The delivery page's Ozon calculator (static_pages/_delivery_calculator). */
.delivery-calc {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: #141714;
}
.delivery-calc__title {
  font: 800 22px/1.15 "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.025em;
  margin: 0;
}
.delivery-calc__lead {
  font: 500 14px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 8px 0 0;
}
.delivery-calc__search {
  margin-top: 16px;
}
.delivery-calc__search input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f4f1;
  font: 500 14px "Manrope", system-ui, sans-serif;
}
.delivery-calc__search input:focus {
  outline: 0;
  border-color: #35d996;
}
.delivery-calc__search .searchable-select__option small {
  display: block;
  font: 500 11.5px "JetBrains Mono", monospace;
  color: #9aa197;
  margin-top: 2px;
}
.delivery-calc__product {
  /* A name or an article with no break widened the phone. */
  font: 500 13px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.delivery-calc__product-link {
  color: #35d996;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.delivery-calc__sku {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.delivery-calc__frame {
  display: block;
  margin-top: 4px;
}
.delivery-calc .ozon-map {
  height: 420px;
}
.delivery-calc .delivery-picker__foot {
  /* The picker's foot sticks to the bottom of its modal; on the page it is
  just the last line — stuck, it rode over the header while scrolling. */
  position: static;
  z-index: auto;
  margin: 14px 0 0;
  padding: 12px 0 0;
  background: none;
}

@media (max-width: 720px) {
  .delivery-calc {
    padding: 16px;
    border-radius: 12px;
  }
  .delivery-calc .ozon-map {
    height: 340px;
  }
}
.static-page__body a {
  color: #35d996;
}
.static-page__body ul, .static-page__body ol {
  margin: 12px 0 12px 1.2em;
}
.static-page__body strong {
  color: #f2f4f1;
}

/* Contacts: the page's text on a card over a map of the store. The map
   is the background on wide screens and a block under the card on narrow
   ones, where a card over it would hide the marker. */
.contacts-page {
  padding: 30px 26px;
  background: #0b0c0b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contacts-page--map {
  position: relative;
  padding: 0;
  min-height: 560px;
  display: flex;
  align-items: flex-start;
}
.contacts-page--map .contacts-page__map {
  position: absolute;
  inset: 0;
  height: auto;
  z-index: 0;
}
.contacts-page--map .contacts-page__card {
  position: relative;
  z-index: 1;
  margin: 34px 26px;
  padding: 26px 28px;
  max-width: 460px;
  background: rgba(11, 12, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}
.contacts-page--map .static-page__body {
  max-width: none;
}
.contacts-page__map--yandex [class*=ground-pane] {
  filter: invert(1) hue-rotate(180deg) brightness(1.1) contrast(0.85) saturate(0.5);
}
.contacts-marker span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #35d996;
  border: 3px solid #0b0c0b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.contacts-route {
  position: relative;
  display: inline-block;
  margin-top: 18px;
}
.contacts-route summary {
  list-style: none;
}
.contacts-route summary::-webkit-details-marker {
  display: none;
}
.contacts-route__menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.contacts-route__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  text-decoration: none;
}
.contacts-route__menu a:hover {
  background: rgba(15, 122, 90, 0.18);
  color: #35d996;
}

@media (max-width: 760px) {
  .contacts-page--map {
    flex-direction: column;
    min-height: 0;
  }
  .contacts-page--map .contacts-page__map {
    position: relative;
    inset: auto;
    height: 320px;
    width: 100%;
    order: 2;
  }
  .contacts-page--map .contacts-page__card {
    margin: 16px;
    max-width: none;
    align-self: stretch;
  }
}
/* Category tiles */
/* Six across, as drawn: eleven sections and «Весь каталог» make two full rows. */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 1000px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
.category-tile {
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.category-tile:hover, .category-tile:focus-visible {
  border-color: rgba(53, 217, 150, 0.45);
  background: #171b17;
  outline: 0;
}
.category-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1d221d;
  color: #35d996;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}
.category-tile__icon svg {
  width: 22px;
  height: 22px;
}
.category-tile:hover .category-tile__icon, .category-tile:focus-visible .category-tile__icon {
  background: #0f7a5a;
  color: #fff;
}
.category-tile--all {
  background: transparent;
  border-style: dashed;
  border-color: rgba(53, 217, 150, 0.35);
  font: inherit;
}
.category-tile--all .category-tile__icon {
  background: rgba(15, 122, 90, 0.18);
}
.category-tile--all .category-tile__name {
  color: #35d996;
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .category-tile {
    padding: 11px;
    gap: 14px;
    border-radius: 11px;
  }
  .category-tile__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .category-tile__icon svg {
    width: 19px;
    height: 19px;
  }
  .category-tile__name {
    /* Three tiles to a row leave ~80px for a name: long Russian words are
    hyphenated where they break («электро-инструмента»), not cut anywhere
    («электроинс / трумента»); break-word only for what can't hyphenate. */
    font-size: 11.5px;
    line-height: 1.25;
    hyphens: auto;
    overflow-wrap: break-word;
  }
  .category-tile__count {
    display: none;
  }
}
.category-tile__name {
  font: 700 13px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.category-tile__count {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
  margin-top: 4px;
}

/* Product card (grid) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.product-card {
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card__photo {
  height: 150px;
  position: relative;
}
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font: 700 10px "JetBrains Mono", monospace;
  color: #0b0c0b;
}
.product-card__badge--hit {
  background: #35d996;
}
.product-card__badge--sale {
  background: #e0713a;
}
.product-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__sku {
  /* A long article painted past the tile; the card only clipped it. */
  font: 500 10.5px "JetBrains Mono", monospace;
  color: #80877e;
  overflow-wrap: anywhere;
}
.product-card__name {
  font: 700 13.5px/1.35 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  overflow-wrap: anywhere;
}
.product-card__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font: 600 11px "Manrope", system-ui, sans-serif;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.stock-dot--ok, .product-card__stock--ok {
  color: #35d996;
}

.stock-dot--ok {
  background: #35d996;
}

.stock-dot--low, .product-card__stock--low {
  color: #e0713a;
}

.stock-dot--low {
  background: #e0713a;
}

.product-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  /* The tile is at least 230px, and «12 450 ₽» plus «от 150 тыс оборота»
     then pushed the cart button out of the card. The label wraps; the
     button stays. */
}
.product-card__footer .price-stack {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 48px);
  grid-template-columns: max-content minmax(0, 1fr);
}
.product-card__footer .price-steps__from {
  white-space: normal;
}
.product-card__footer .cart-qty-wrap {
  flex: none;
}

.price-stack {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  column-gap: 8px;
  row-gap: 3px;
  align-items: baseline;
}
.price-stack__shelf {
  grid-column: 1;
  justify-self: end;
}
.price-stack .price__old {
  margin-top: 0;
}
.price-stack .price-steps {
  grid-column: 1/-1;
  grid-template-columns: subgrid;
  margin-top: 0;
}

.price-steps {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  column-gap: 8px;
  row-gap: 1px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}
.price-steps li {
  display: contents;
}
.price-steps__from {
  font: 500 11px/1.35 "Manrope", system-ui, sans-serif;
  color: #7e857c;
  white-space: nowrap;
  justify-self: start;
}
.price-steps__price {
  font: 700 13px/1.35 "JetBrains Mono", monospace;
  color: #35d996;
  white-space: nowrap;
  justify-self: end;
}

.buy-box .price-steps {
  margin: 2px 0 12px;
}

.price__value {
  font: 700 20px/1 "JetBrains Mono", monospace;
  color: #f2f4f1;
}
.price__old {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
  text-decoration: line-through;
  margin-top: 4px;
}
.price__value--promo {
  color: #35d996;
}
.price__unit {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
  margin-top: 4px;
}

.add-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0f7a5a;
  display: grid;
  place-items: center;
  font: 700 20px "Manrope", system-ui, sans-serif;
  color: #fff;
  border: 0;
  cursor: pointer;
}

/* Promo band */
.promo-band {
  margin: 0 26px 32px;
  padding: 28px;
  border-radius: 14px;
  background: #0f7a5a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.promo-band__title {
  font: 800 26px/1.1 "Unbounded", sans-serif;
  color: #fff;
  letter-spacing: -0.02em;
}
.promo-band__lede {
  font: 500 13.5px/1.6 "Manrope", system-ui, sans-serif;
  color: #fff;
  max-width: 520px;
  margin-top: 9px;
}

/* «Присылать акции» under the sign-up and checkout forms: a quiet line. */
/* Inside a .field too, whose label rule (block, capitals) put the box on a
   line of its own above the words. */
.promo-consent, .field .promo-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  font: 500 11.5px/1.45 "Manrope", system-ui, sans-serif;
  color: #80877e;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.promo-consent a {
  color: #7e857c;
  text-decoration: underline;
}

.promo-consent__box, .field .promo-consent__box {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  accent-color: #0f7a5a;
  flex: none;
}

/* Home: «Подписка на акции» — a dark card lit green from the right, the
   envelope, the pitch, and the address with its button in one pill. */
.promo-subscribe {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 26px 18px;
  padding: 30px 32px;
  border-radius: 18px;
  background: linear-gradient(120deg, #141714 0%, #0f1a15 100%);
  border: 1px solid rgba(53, 217, 150, 0.22);
  display: grid;
  grid-template-columns: auto 1fr minmax(320px, 440px);
  align-items: center;
  gap: 22px 26px;
}
.promo-subscribe__glow {
  position: absolute;
  z-index: -1;
  right: -120px;
  top: -160px;
  width: 520px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(53, 217, 150, 0.28), transparent);
  pointer-events: none;
}
.promo-subscribe__glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(53, 217, 150, 0.07) 0 5deg, transparent 5deg 15deg);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 75%);
}
.promo-subscribe__icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #35d996;
  background: rgba(15, 122, 90, 0.18);
  border: 1px solid rgba(53, 217, 150, 0.35);
  box-shadow: 0 0 28px rgba(53, 217, 150, 0.18);
  transform: rotate(-6deg);
}
.promo-subscribe__icon svg {
  width: 28px;
  height: 28px;
}
.promo-subscribe__eyebrow {
  font: 700 11px "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #35d996;
}
.promo-subscribe__title {
  margin: 6px 0 0;
  font: 800 26px/1.1 "Unbounded", sans-serif;
  letter-spacing: -0.025em;
  color: #f2f4f1;
}
.promo-subscribe__lede {
  margin: 8px 0 0;
  font: 500 13.5px/1.6 "Manrope", system-ui, sans-serif;
  color: #7e857c;
  max-width: 460px;
}
.promo-subscribe__row {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: #0b0c0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.promo-subscribe__row:focus-within {
  border-color: #35d996;
  box-shadow: 0 0 0 4px rgba(53, 217, 150, 0.12);
}
.promo-subscribe__input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  background: none;
  outline: none;
  font: 500 16px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.promo-subscribe__input::placeholder {
  color: #80877e;
}
.promo-subscribe__btn {
  flex: none;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: #35d996;
  color: #06140e;
  font: 800 14px "Manrope", system-ui, sans-serif;
  transition: transform 0.15s, filter 0.15s;
}
.promo-subscribe__btn:hover {
  filter: brightness(1.08);
}
.promo-subscribe__btn:active {
  transform: scale(0.97);
}
.promo-subscribe--telegram {
  background: linear-gradient(120deg, #141714 0%, #0e1922 100%);
  border-color: rgba(64, 169, 255, 0.25);
}
.promo-subscribe--telegram .promo-subscribe__icon {
  color: #4fb3ff;
}
.promo-subscribe__cta {
  justify-self: end;
}
.promo-subscribe__cta .promo-subscribe__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 22px;
  height: 48px;
}
.promo-subscribe__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.promo-subscribe__error {
  margin: 8px 2px 0;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #ff8a7a;
}
.promo-subscribe__legal {
  margin: 9px 2px 0;
  font: 500 11px/1.5 "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.promo-subscribe__legal a {
  color: #7e857c;
  text-decoration: underline;
}
.promo-subscribe__done {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 122, 90, 0.18);
  border: 1px solid rgba(53, 217, 150, 0.35);
  font: 500 13px/1.45 "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.promo-subscribe__done b {
  display: block;
  font: 800 15px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.promo-subscribe__check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #35d996;
  color: #06140e;
  font: 800 17px "Manrope", system-ui, sans-serif;
}

@media (max-width: 900px) {
  .promo-subscribe {
    padding: 22px 18px;
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .promo-subscribe__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    align-self: start;
  }
  .promo-subscribe__icon svg {
    width: 24px;
    height: 24px;
  }
  .promo-subscribe__title {
    font-size: 21px;
  }
  .promo-subscribe__form, .promo-subscribe__done, .promo-subscribe__cta {
    grid-column: 1/-1;
  }
  .promo-subscribe__cta {
    justify-self: stretch;
  }
  .promo-subscribe__cta .promo-subscribe__btn {
    width: 100%;
  }
}
@media (max-width: 420px) {
  .promo-subscribe__row {
    flex-direction: column;
    padding: 6px;
  }
  .promo-subscribe__input {
    height: 46px;
  }
  .promo-subscribe__btn {
    width: 100%;
  }
}
/* Footer */
.site-footer {
  padding: 28px 26px;
  background: #101310;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  /* body is a flex column (min-height: 100vh) specifically so this can pin
  itself to the bottom of the viewport on short/empty pages — margin-top:
  auto on a flex item consumes all remaining free space above it. */
  margin-top: auto;
}
.site-footer h2 {
  font: 700 11px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.site-footer p, .site-footer div {
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.site-footer .site-header__mark {
  /* The rule above greyed the logo's letters on its green square (1.4:1). */
  color: #fff;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 26px;
  background: #101310;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 11.5px "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.site-footer__legal a {
  color: #80877e;
  text-decoration: underline;
}
.site-footer div > a:not(.footer-vk):not(.site-header__logo), .site-footer__legal a {
  /* Tap targets of at least 24px (PageSpeed: the footer's links were 17px
  tall, one under the other). */
  display: inline-block;
  padding: 4px 0;
}
.site-main {
  display: contents;
}

/* Promotion banner */
/* A promotion's own page: the offer as a hero, then its sections as tiles. */
.promo-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 20px 24px 0;
  padding: 36px 40px;
  border-radius: 20px;
  border: 1px solid rgba(53, 217, 150, 0.22);
  background: radial-gradient(120% 140% at 100% 0%, rgba(15, 122, 90, 0.55) 0%, rgba(15, 122, 90, 0.12) 45%, transparent 70%), linear-gradient(135deg, #0f1311 0%, #0b0c0b 100%);
}
.promo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}
.promo-hero > * {
  position: relative;
  z-index: 1;
}
.promo-hero--over {
  filter: saturate(0.25);
}
.promo-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 12px "Manrope", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #35d996;
}
.promo-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d996;
  box-shadow: 0 0 0 4px rgba(53, 217, 150, 0.18);
}
.promo-hero--over .promo-hero__dot {
  background: #7e857c;
  box-shadow: none;
}
.promo-hero__title {
  margin: 14px 0 10px;
  font: 800 clamp(28px, 4.4vw, 52px)/1.04 "Unbounded", sans-serif;
  letter-spacing: -0.035em;
  color: #f7f9f6;
  text-wrap: balance;
}
.promo-hero__lead {
  margin: 0;
  max-width: 520px;
  font: 500 15px/1.55 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.promo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 24px;
}
.promo-hero__code {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 12px;
  border: 1.5px dashed rgba(53, 217, 150, 0.55);
  background: rgba(11, 12, 11, 0.6);
}
.promo-hero__code-label {
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.promo-hero__code-value {
  font: 700 18px "JetBrains Mono", monospace;
  color: #35d996;
  letter-spacing: 0.04em;
}
.promo-hero__copy {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: #0f7a5a;
  color: #fff;
  font: 700 13px "Manrope", system-ui, sans-serif;
  cursor: pointer;
}
.promo-hero__copy:hover {
  background: #12916b;
}
.promo-hero__ends {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font: 500 13.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.promo-hero__ends strong {
  font: 700 15px "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
}
.promo-hero__left {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(224, 164, 88, 0.14);
  color: #e0a458;
  font: 700 12px "Manrope", system-ui, sans-serif;
}
.promo-hero__badge {
  text-align: right;
}
.promo-hero__discount {
  font: 800 clamp(64px, 11vw, 148px)/0.9 "Unbounded", sans-serif;
  letter-spacing: -0.06em;
  color: #35d996;
  text-shadow: 0 0 60px rgba(53, 217, 150, 0.25);
  white-space: nowrap;
}
.promo-hero__discount-note {
  margin-top: 10px;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.promo-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 24px 20px;
}
.promo-cat {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.promo-cat:hover, .promo-cat:focus-visible {
  border-color: rgba(53, 217, 150, 0.45);
  background: #171b17;
  outline: 0;
}
.promo-cat__icon {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1d221d;
  color: #35d996;
  display: grid;
  place-items: center;
}
.promo-cat__icon svg {
  width: 20px;
  height: 20px;
}
.promo-cat__name {
  font: 700 13px/1.25 "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  hyphens: auto;
}
.promo-cat__count {
  font: 600 11.5px "JetBrains Mono", monospace;
  color: #7e857c;
}
.promo-cat--on {
  border-color: #35d996;
  background: rgba(15, 122, 90, 0.16);
}
.promo-cat--on .promo-cat__icon {
  background: #0f7a5a;
  color: #fff;
}

@media (max-width: 760px) {
  .promo-hero {
    grid-template-columns: 1fr;
    margin: 12px 16px 0;
    padding: 24px 20px;
    gap: 18px;
  }
  .promo-hero__badge {
    order: -1;
    text-align: left;
  }
  .promo-hero__discount-note {
    display: none;
  }
  .promo-cats {
    display: flex;
    overflow-x: auto;
    margin: 12px 0 16px;
    padding: 0 16px;
    scrollbar-width: none;
  }
  .promo-cat {
    flex: 0 0 160px;
  }
}
/* Catalog layout */
.catalog {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.catalog.catalog--wide {
  grid-template-columns: 1fr;
}
.catalog--wide .catalog-main {
  border-left: 0;
}
.catalog-listing__title {
  /* A category name with no break widened the phone. */
  font: 800 clamp(22px, 3vw, 32px)/1.2 "Unbounded", sans-serif;
  color: #f7f9f6;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

.catalog-listing__link, .product-page__brand {
  color: #35d996;
  text-decoration: none;
}

.catalog-listing__link:hover, .product-page__brand:hover {
  text-decoration: underline;
}

.catalog-listing__empty {
  color: #9aa197;
  font: 500 14px/1.6 "Manrope", system-ui, sans-serif;
}

.brand-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.brand-index__link {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0e100e;
  color: #f7f9f6;
  font: 700 14px "Manrope", system-ui, sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.brand-index__link:hover {
  border-color: #0f7a5a;
  color: #35d996;
}

/* 170px a column left a phone one brand a row — 147 boxes to scroll. */
@media (max-width: 560px) {
  .brand-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .brand-index__link {
    padding: 12px;
    font-size: 13px;
  }
}
.filters {
  padding: 22px 20px;
  background: #0e100e;
}

.range-field {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
  padding: 9px 10px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font: 600 12px "JetBrains Mono", monospace;
  color: #f2f4f1;
}

/* Beside the list the sidebar stays in view with a scroll of its own: a
   long set of filters no longer leaves the products far above. Its top is
   the sticky header's height (--catalog-sticky-top, filter_sheet_controller). */
@media (min-width: 901px) {
  .filters {
    position: sticky;
    top: var(--catalog-sticky-top, 96px);
    align-self: start;
    max-height: calc(100vh - var(--catalog-sticky-top, 96px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  }
  /* The grid's 1px gap drew the divider on the catalog's own background;
       a sidebar no longer stretched to the bottom would leave that showing. */
  .catalog {
    gap: 0;
    background: #0e100e;
  }
  .catalog-main {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}
.filters__eyebrow {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
}
.filters__title {
  font: 800 19px/1.2 "Unbounded", sans-serif;
  color: #f2f4f1;
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.filters__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}
.filters__label {
  display: block;
  font: 700 11px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Collapsible filter group (see shared/_filter_group, filter_group_controller.js)
   — button.filters__label resets the plain <div> label's look to work as a
   full-width clickable header, chevron shows the expanded/collapsed state. */
button.filters__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-align: left;
}

.filters__chevron {
  flex: none;
  color: #80877e;
  transition: transform 0.15s ease;
}
.filters__chevron::after {
  content: "›";
  font: 700 13px "Manrope", system-ui, sans-serif;
}
.filters__chevron--open {
  transform: rotate(90deg);
}
.filters__group--disabled {
  /* Admin-only placeholder for a filter they've disabled on this category
  (see shared/_disabled_filter_placeholder) — a regular visitor never
  gets this markup at all, so no visibility toggle needed here. */
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.filters__restore {
  flex: none;
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  color: #35d996;
  text-decoration: underline dotted;
}
.filters__checks {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 13px;
}
.filters__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.filters__check input {
  accent-color: #0f7a5a;
  width: 16px;
  height: 16px;
}
.filters__check > span:not(.filters__count) {
  /* A value with no break painted out of the sidebar and the phone sheet. */
  min-width: 0;
  overflow-wrap: anywhere;
}
.filters__count {
  flex: 1;
  text-align: right;
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
}
.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

/* Dual-handle numeric range slider (price, numeric characteristic facets)
   — see range_slider_controller.js. Two overlapping native <input
   type="range"> elements is the standard no-library way to get two
   independent thumbs: pointer-events:none on the track lets clicks pass
   through to whichever input's thumb is under the cursor, re-enabled only
   on the thumb pseudo-element itself. */
.range-slider__bounds {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 600 11px "JetBrains Mono", monospace;
  color: #80877e;
}
.range-slider__bounds span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.range-slider__bounds span:last-child {
  text-align: right;
}
.range-slider {
  position: relative;
  height: 20px;
  margin-top: 26px;
}
.range-slider__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  margin-top: -2px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
}
.range-slider__fill {
  position: absolute;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: #35d996;
  border-radius: 2px;
}
.range-slider__bubble {
  /* Floating current-value label above each thumb — always visible, not
  just while dragging, so the slider's own position is legible without
  having to glance down at the number inputs. */
  position: absolute;
  top: -24px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 6px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 700 10.5px "JetBrains Mono", monospace;
  color: #f2f4f1;
  white-space: nowrap;
  pointer-events: none;
}
.range-slider input[type=range] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}
.range-slider input[type=range]::-webkit-slider-runnable-track {
  appearance: none;
  background: transparent;
}
.range-slider input[type=range]::-moz-range-track {
  background: transparent;
  border: 0;
}
.range-slider input[type=range]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #35d996;
  cursor: pointer;
}
.range-slider input[type=range]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #35d996;
  cursor: pointer;
}

.chip {
  padding: 7px 11px;
  border-radius: 8px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 11.5px "JetBrains Mono", monospace;
  color: #9aa197;
}
.chip--active {
  background: #0f7a5a;
  border-color: #0f7a5a;
  color: #fff;
}

.filters__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.filters__toggle-label {
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}

.toggle {
  display: inline-block;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #181c18;
  position: relative;
  border: 0;
  cursor: pointer;
}
.toggle--on {
  background: #0f7a5a;
}
.toggle__dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #80877e;
}
.toggle--on .toggle__dot {
  left: auto;
  right: 2px;
  background: #fff;
}

/* min-width: 0 overrides the implicit "never shrink below content's
   natural width" grid default — without it, Safari (stricter about this
   than Chrome/Firefox) refuses to wrap a long product name and pushes
   the whole row, and everything after it, off the right edge instead. */
.catalog-main {
  padding: 22px 26px;
  background: #0b0c0b;
  min-width: 0;
}
.catalog-lead {
  /* The same name is repeated in the sentence under the title. */
  margin: 0 0 16px;
  max-width: 68ch;
  font: 500 15px/1.45 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  overflow-wrap: anywhere;
}
.catalog-main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  /* On a phone the count and the filters already fill the row. The
     sort, share and view switch used to stay beside them and run off
     the right edge. A full-width first row lets those wrap whole. */
}
@media (max-width: 900px) {
  .catalog-main__head > div:first-child {
    flex: 1 0 100%;
    justify-content: space-between;
    align-items: center;
  }
}
.catalog-main__count {
  font: 800 21px "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.02em;
}
.catalog-main__sub {
  font: 500 12px "JetBrains Mono", monospace;
  color: #80877e;
}

.active-filters {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.active-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 20px;
  background: rgba(15, 122, 90, 0.18);
  border: 1px solid rgba(53, 217, 150, 0.35);
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.active-filter__clear-all {
  padding: 6px 11px;
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.active-filter__remove {
  font: 700 13px "Manrope", system-ui, sans-serif;
  line-height: 1;
  color: #35d996;
  opacity: 0.7;
}
.active-filter__remove:hover {
  opacity: 1;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.product-row {
  display: grid;
  grid-template-columns: 96px 1fr 228px 224px;
  gap: 18px;
  align-items: center;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px;
}
.product-row > div:nth-child(3) {
  justify-self: end;
}
.product-row > div:nth-child(2) {
  min-width: 0;
}
.product-row__photo {
  height: 80px;
  border-radius: 9px;
  font-size: 9px;
}
.product-row__sku {
  font: 500 10.5px "JetBrains Mono", monospace;
  color: #80877e;
  overflow-wrap: anywhere;
}
.product-row__name {
  /* A supplier's name can be one long token («ANTICOVIDgenerator,»).
     Without a break it paints past the row and widens the page. */
  font: 700 15px/1.3 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.product-row__meta {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.product-row__meta span {
  font: 500 11.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.product-row__buy {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty-stepper {
  flex: none;
  display: flex;
  align-items: center;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
}
.qty-stepper button {
  padding: 9px 10px;
  font: 700 13px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.qty-stepper input {
  width: 40px;
  padding: 9px 0;
  font: 700 13px "JetBrains Mono", monospace;
  color: #f2f4f1;
  text-align: center;
  background: transparent;
  border: 0;
  outline: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-inner-spin-button, .qty-stepper input::-webkit-outer-spin-button {
  /* − and + are the stepper; the browser's own arrows only took room from the number. */
  -webkit-appearance: none;
  margin: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}
.pagination a, .pagination span {
  min-width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font: 600 12px "JetBrains Mono", monospace;
  color: #9aa197;
  background: #181c18;
}
.pagination a.active, .pagination span.active {
  background: #0f7a5a;
  color: #fff;
}
.pagination__gap {
  background: transparent;
  color: #80877e;
}

/* Product page */
.product-page {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  align-items: start;
}
.product-page__gallery {
  background: #0e100e;
  padding: 24px;
  min-width: 0;
}
.product-page__main-photo {
  height: 400px;
  border-radius: 12px;
  font-size: 11px;
  background: #141714;
  overflow: hidden;
  cursor: zoom-in;
}
.product-page__thumbs {
  /* A dozen photos would squeeze each thumb into a sliver; they keep their square and scroll instead. */
  display: flex;
  gap: 9px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.product-page__thumbs::-webkit-scrollbar {
  display: none;
}
.product-page__thumb {
  flex: none;
  width: 74px;
  height: 74px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}
.product-page__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

@media (max-width: 720px) {
  .product-page__thumb {
    width: 60px;
    height: 60px;
  }
}
.product-page__thumb--active {
  border-color: #35d996;
  border-width: 1.5px;
}

/* Product page photo lightbox — see gallery_controller.js */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px;
}
.gallery-lightbox[hidden] {
  display: none;
}
.gallery-lightbox__frame {
  max-width: min(900px, 100%);
  max-height: 100%;
  display: grid;
  place-items: center;
}
.gallery-lightbox__frame img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 8px;
  object-fit: contain;
}
.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 26px;
  font: 600 22px "Manrope", system-ui, sans-serif;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
}
.gallery-lightbox__nav {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #101310;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 700 22px "Manrope", system-ui, sans-serif;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox__nav:hover {
  background: #181c18;
}

.product-page__info {
  background: #0b0c0b;
  padding: 26px;
  min-width: 0;
}
.product-page__sku {
  /* An article with no break in it widened the page the way a long
     name used to. */
  min-width: 0;
  overflow-wrap: anywhere;
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
}
.product-page__title {
  /* Supplier names carry words like «ANTICOVIDgenerator,» that, this wide
  on a phone, pushed the whole page sideways. */
  font: 800 30px/1.15 "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.025em;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.product-page__jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
}
.product-page__jumps a {
  font: 600 14px "Manrope", system-ui, sans-serif;
  color: #35d996;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.product-page__jumps a:hover {
  text-decoration-style: solid;
}
.product-lead {
  /* The name and a characteristic are repeated here, and a word with no
     break widened the phone. */
  margin: 12px 0 0;
  max-width: 62ch;
  font: 500 15px/1.45 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  overflow-wrap: anywhere;
}
.product-page__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font: 500 12px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.product-page__rating strong {
  font: 700 12px "JetBrains Mono", monospace;
  color: #35d996;
}

.buy-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 13px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.buy-box__price-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.buy-box__price {
  font: 700 38px/1 "JetBrains Mono", monospace;
  color: #f7f9f6;
}
.buy-box__old-price {
  font: 500 13px "JetBrains Mono", monospace;
  color: #80877e;
  text-decoration: line-through;
  padding-bottom: 5px;
}
.buy-box__per-unit {
  flex: 1;
  text-align: right;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.buy-box__controls {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.buy-box__invoice {
  margin: 8px 0 0;
  font: 600 12.5px/1.4 "Manrope", system-ui, sans-serif;
}
.buy-box__invoice a {
  color: #f2f4f1;
  text-decoration: none;
}
.buy-box__invoice a:hover {
  color: #35d996;
}
.buy-box__promise {
  margin: 12px 0 0;
  font: 500 12.5px/1.45 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.buy-box__fitment {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.buy-box__fitment li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 12.5px/1.4 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.buy-box__fitment li span:last-child {
  color: #f2f4f1;
  text-align: right;
}
.buy-box__promise turbo-frame {
  display: inline;
}
.buy-box__promise a {
  color: #f2f4f1;
  text-decoration: none;
}
.buy-box__promise a:hover {
  color: #35d996;
}
.buy-box .qty-stepper {
  flex: 1;
  justify-content: space-between;
  background: #0b0c0b;
}
.buy-box__add {
  flex: 1.3;
}
.buy-box__controls .cart-qty-wrap {
  flex: 1.3;
  min-width: 0;
}
.buy-box__controls .cart-qty-wrap .buy-box__add {
  /* The browser keeps a button on one line, and «В корзину · 12 450 ₽»
     then pushes the button out of the card on a narrow phone. */
  flex: none;
  width: 100%;
  min-width: 0;
  padding-inline: 12px;
  white-space: normal;
}

.quick-order-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #0b0c0b;
  border: 1px solid rgba(53, 217, 150, 0.4);
  cursor: pointer;
}
.quick-order-cta__badge {
  font: 800 12px "JetBrains Mono", monospace;
  color: #35d996;
  background: rgba(15, 122, 90, 0.18);
  border-radius: 6px;
  padding: 4px 8px;
}
.quick-order-cta__label {
  font: 700 13px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.quick-order-cta__hint {
  flex: 1;
  text-align: right;
  font: 500 11.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}

.delivery-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.delivery-card {
  padding: 14px;
  border-radius: 11px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.delivery-card--selected {
  border: 1.5px solid #35d996;
}
.delivery-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.delivery-card__title {
  font: 700 13.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.delivery-card__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.delivery-card--selected .delivery-card__radio {
  border: 4px solid #35d996;
  background: #0b0c0b;
}
.delivery-card__desc {
  font: 500 12px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 8px;
}
.delivery-card__price {
  font: 700 13px "JetBrains Mono", monospace;
  color: #35d996;
  margin-top: 9px;
}
.delivery-card__price + .delivery-card__price {
  margin-top: 4px;
}
.delivery-card__price--pending {
  color: #80877e;
}
.delivery-card__where {
  font: 500 11.5px "Manrope", system-ui, sans-serif;
  color: #80877e;
  margin-top: 4px;
}

.product-page__description {
  font: 500 13px/1.7 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.product-page__description p {
  margin: 0 0 12px;
}
.product-page__description p:last-child {
  margin-bottom: 0;
}

.spec-table {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.spec-row__label {
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  flex: none;
  max-width: 50%;
}
.spec-row__value {
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.spec-row__value--mono {
  font-family: "JetBrains Mono", monospace;
}

/* Order status */
.order-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font: 700 11px "Manrope", system-ui, sans-serif;
  white-space: nowrap;
}
.order-status--active {
  background: rgba(15, 122, 90, 0.18);
  color: #35d996;
}
.order-status--cancelled {
  background: rgba(224, 113, 58, 0.12);
  color: #e0713a;
}
.order-status--warn {
  background: rgba(224, 113, 58, 0.12);
  color: #e0713a;
}
.order-status--muted {
  background: rgba(255, 255, 255, 0.08);
  color: #9aa197;
}
.order-progress {
  /* Mockup 2d: a bar of segments on the orders list, a timeline on the order page. */
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.order-progress__seg {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}
.order-progress__seg--on {
  background: #35d996;
}
.order-timeline {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(53, 217, 150, 0.3);
}
.order-timeline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.order-timeline__created {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
}
.order-timeline__step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 13px;
}
.order-timeline__dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  flex: none;
}
.order-timeline__step--done .order-timeline__dot {
  background: #35d996;
}
.order-timeline__step--current .order-timeline__dot {
  width: 13px;
  height: 13px;
  margin: 2px 0 0 -2px;
  border: 4px solid #35d996;
  background: #0b0c0b;
  box-sizing: border-box;
}
.order-timeline__label {
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.order-timeline__step--done .order-timeline__label {
  color: #f2f4f1;
}
.order-timeline__step--current .order-timeline__label {
  font-weight: 700;
  color: #35d996;
}
.order-timeline__meta {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
  margin-top: 2px;
}

.stepper {
  display: flex;
  gap: 0;
  margin-top: 20px;
}
.stepper__step {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font: 700 11.5px "Manrope", system-ui, sans-serif;
  color: #80877e;
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
}
.stepper__step--done {
  color: #35d996;
  border-color: #35d996;
}
.stepper__step--current {
  color: #f7f9f6;
  border-color: #f7f9f6;
}

/* Cart */
.cart-page {
  display: grid;
  grid-template-columns: 1fr 366px;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.cart-page__items {
  background: #0b0c0b;
  padding: 24px 26px;
  min-width: 0;
}
.cart-page__title {
  font: 800 24px "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.025em;
}
.cart-notice {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 11px;
  background: rgba(224, 113, 58, 0.12);
  border: 1px solid rgba(224, 113, 58, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #f0c3aa;
}
.cart-notice__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0713a;
  flex: none;
}
.cart-item {
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 74px 1fr 150px 110px;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  position: relative;
  padding-right: 40px;
}
.cart-item__remove-form {
  /* Removing a line asks first (turbo_confirm on the form). */
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
}
.cart-item__remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  color: #80877e;
}
.cart-item__remove:hover {
  color: #e0713a;
  border-color: rgba(255, 255, 255, 0.14);
  background: #181c18;
}
.cart-item > :nth-child(3) {
  min-width: 0;
}
.cart-item__photo {
  display: block;
  height: 66px;
  border-radius: 9px;
  overflow: hidden;
}
.cart-item > div {
  min-width: 0;
}
.cart-item__sku {
  font: 500 10.5px "JetBrains Mono", monospace;
  color: #80877e;
  overflow-wrap: anywhere;
}
.cart-item__name {
  font: 700 14px/1.35 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.cart-item__note {
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  margin-top: 6px;
}
.cart-item__note--ok {
  color: #35d996;
}
.cart-item__note--warn {
  color: #e0713a;
}
.cart-item--sold-out {
  background: #181c18;
}
.cart-item--sold-out .cart-item__photo, .cart-item--sold-out .cart-item__name, .cart-item--sold-out .cart-item__sku, .cart-item--sold-out .cart-item__total, .cart-item--sold-out .cart-item__unit, .cart-item--sold-out .qty-stepper {
  opacity: 0.4;
}
.cart-item--sold-out .cart-item__photo {
  filter: grayscale(1);
}
.cart-item__total {
  font: 700 17px/1 "JetBrains Mono", monospace;
  color: #f2f4f1;
  text-align: right;
}
.cart-item__unit {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
  margin-top: 4px;
  text-align: right;
}

/* «С этими товарами часто покупают» — the mockup's 1g, at the end of the
   delivery step's column (and under the cart lines). */
.xsell {
  margin-top: 22px;
  padding: 16px;
  border-radius: 13px;
  background: #101310;
  border: 1px solid rgba(53, 217, 150, 0.25);
}
.xsell__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.xsell__title {
  flex: 1;
  margin: 0;
  font: 800 15px "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.02em;
}
.xsell__note {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.xsell__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.xsell-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 11px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  min-width: 0;
}
.xsell-card--added {
  border-color: rgba(53, 217, 150, 0.45);
}
.xsell-card__photo {
  display: block;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
}
.xsell-card__photo .photo-img {
  object-fit: contain;
}
.xsell-card__photo--empty {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 3px, transparent 3px 12px);
}
.xsell-card__name {
  margin-top: 8px;
  min-height: 31px;
  font: 600 11.5px/1.35 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xsell-card__why {
  margin-top: 3px;
  font: 500 10px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xsell-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 9px;
}
.xsell-card__foot form {
  margin: 0;
}
.xsell-card__price {
  flex: 1;
  min-width: 0;
  font: 700 12.5px "JetBrains Mono", monospace;
  color: #f2f4f1;
  white-space: nowrap;
}
.xsell-card__btn {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #0f7a5a;
  background: #0f7a5a;
  font: 700 11px "Manrope", system-ui, sans-serif;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.xsell-card__btn--added {
  background: transparent;
  border-color: rgba(53, 217, 150, 0.45);
  color: #35d996;
}

@media (max-width: 640px) {
  .xsell__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.order-summary {
  background: #101310;
  padding: 24px 22px;
}
.order-summary__title {
  font: 800 17px "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.02em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
}
.summary-row__label {
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.summary-row__value {
  font: 600 12.5px "JetBrains Mono", monospace;
  color: #f2f4f1;
}
.summary-row__value--accent {
  color: #35d996;
}

.order-summary__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 16px 0;
}
.order-summary__total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.order-summary__total-label {
  font: 700 13px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.order-summary__total-value {
  font: 700 28px/1 "JetBrains Mono", monospace;
  color: #f7f9f6;
}
.order-summary__vat {
  font: 500 11.5px "JetBrains Mono", monospace;
  color: #80877e;
  margin-top: 6px;
  text-align: right;
}
.order-summary__promo {
  /* The divider above already gives the gap; the total below has none of its own. */
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 11px;
  background: #141714;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  /* The code field's own width is about twenty characters. At 16px on a
     phone that minimum is wider than the summary, and the page grows. */
  min-width: 0;
}
.order-summary__promo div {
  min-width: 0;
}
.order-summary__promo input[type=text] {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  height: 38px;
  margin: 0;
  padding: 0 10px;
  border-radius: 8px;
  background: #0b0c0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f7f9f6;
  font: 500 12px "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.order-summary__promo input[type=text]::placeholder {
  color: #7e857c;
}
.order-summary__promo input[type=text]:focus {
  outline: 0;
  border-color: #35d996;
}
.order-summary__promo input[type=submit] {
  box-sizing: border-box;
  height: 38px;
  margin: 0;
  padding: 0 13px;
  border-radius: 8px;
  background: #181c18;
  border: 0;
  font: 700 12px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  cursor: pointer;
}

.payment-tabs {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}
.payment-tab {
  flex: 1;
  padding: 11px;
  border-radius: 9px;
  font: 700 11.5px "Manrope", system-ui, sans-serif;
  text-align: center;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #9aa197;
}
.payment-tab--active {
  background: #0f7a5a;
  color: #fff;
  border-color: #0f7a5a;
}

/* Forms */
.field {
  margin-top: 14px;
}
.field label {
  display: block;
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f4f1;
  font: 600 13px "Manrope", system-ui, sans-serif;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: #35d996;
}
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
}
.field-row .field {
  flex: 1 1 140px;
}

/* Modal (quick order) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal-card {
  width: 452px;
  max-width: 100%;
  background: #101310;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.modal-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-card__close {
  font: 600 18px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  background: none;
  border: 0;
  cursor: pointer;
}
.modal-card__badge {
  display: inline-block;
  font: 800 11px "JetBrains Mono", monospace;
  color: #35d996;
  background: rgba(15, 122, 90, 0.18);
  border-radius: 6px;
  padding: 4px 8px;
}
.modal-card__title {
  font: 800 24px/1.15 "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.025em;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .catalog {
    grid-template-columns: 1fr;
  }
  .filters {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .product-page {
    grid-template-columns: 1fr;
  }
  .product-jumps, .product-sections {
    padding-left: 14px;
    padding-right: 14px;
  }
  .cart-page {
    grid-template-columns: 1fr;
  }
  .cart-page > * {
    min-width: 0;
  }
  .product-row {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  /* The narrow slider after the mockup's 1f: the photo on top, the text
       under it, dots at the bottom. All slides share one grid cell and the
       hidden ones keep their place, invisible, so the card is as tall as its
       tallest slide whatever the admin typed and the page doesn't jump as it
       turns. The stripes are the whole slide's, not the text's: a slide
       with no photo shows its product under the text, and the pattern used
       to end above it, leaving a bare band. */
  .hero-slider__card {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .hero-slide, .hero-slide[hidden] {
    display: flex;
    flex-direction: column;
    grid-area: 1/1;
    min-width: 0;
    background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 11px);
  }
  .hero-slide[hidden] {
    visibility: hidden;
  }
  .hero-slide__text {
    flex: 1;
    min-width: 0;
    padding: 18px 18px 16px;
  }
  .hero-slide__text::before {
    display: none;
  }
  .hero-slide__photo {
    order: -1;
    flex: none;
    height: clamp(168px, 40vw, 280px);
  }
  .hero-slide__photo:empty {
    display: none;
  }
  .hero-slide__photo:not(:has(> .photo-img, > picture > .photo-img)) {
    order: 0;
    display: block;
    height: auto;
    background: none;
    padding: 0 16px 16px;
  }
  .hero-slide__photo:not(:has(> .photo-img, > picture > .photo-img)) .hero-slide__overlay-card {
    position: static;
    min-width: 0;
  }
  .hero-slide__badges, .hero-slide__headline, .hero-slide__lede {
    min-height: 0;
  }
  .hero-slide__headline {
    font-size: clamp(22px, 6.4vw, 36px);
    line-height: 1.08;
    margin-top: 14px;
  }
  .hero-slide__lede {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 10px;
    max-width: none;
  }
  .hero-slide__lede {
    /* A shorter slide's spare height goes above its buttons, so they and
    the dots sit at the bottom of every slide alike. */
    margin-bottom: 16px;
  }
  .hero-slide__actions {
    margin-top: auto;
    gap: 8px;
  }
  .hero-slide__actions .btn {
    padding: 14px 16px;
  }
  .hero-slide__actions .btn--primary {
    flex: 1;
  }
  .hero-slide__controls {
    justify-content: center;
    margin-top: 0;
    padding-top: 16px;
    min-width: 0;
    max-width: 100%;
  }
  .hero-slide {
    /* A dozen dots is wider than a phone. The row scrolls inside the
       slide instead of pushing the page past the screen. */
  }
  .hero-slide__dots {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hero-slide__dots::-webkit-scrollbar {
    display: none;
  }
  .hero-slide__dot {
    flex: none;
  }
  .hero-slide__arrow, .hero-slide__counter {
    display: none;
  }
  .hero-slider__tiles {
    grid-template-columns: 1fr 1fr;
  }
}
/* .cart-item__row wraps the qty-stepper + total (see cart_items/_cart_item)
   so the mobile rule below can lay them out as one flex row without
   touching desktop — display:contents unwraps it from the box tree, so its
   two children keep landing in .cart-item's own grid tracks 3/4 exactly as
   if the wrapper weren't there. */
.cart-item__row {
  display: contents;
}

/* Triggers/sheets for one column, hidden until the ≤900px block below turns
   them on — kept out of layout entirely above that width. */
.filters-trigger {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 10px;
  background: #0f7a5a;
  font: 700 11.5px "Manrope", system-ui, sans-serif;
  color: #fff;
  white-space: nowrap;
}
.filters-trigger__badge {
  background: #fff;
  color: #0b0c0b;
  border-radius: 20px;
  padding: 1px 6px;
  font: 700 10px "JetBrains Mono", monospace;
}
.filters__sheet-cta {
  display: none;
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #0f7a5a;
  border: 0;
  font: 800 14px "Manrope", system-ui, sans-serif;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  /* One column: the filters sidebar becomes a bottom sheet (stacked above
     the list, a long set of filters pushed the products off the screen) — same content, toggled by
     filter_sheet_controller.js via the .is-open class (not [hidden], so the
     transform transition below can animate the slide). */
  .filters-trigger {
    display: flex;
  }
  .filters__sheet-cta {
    display: block;
    position: sticky;
    bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -12px 16px -4px #0e100e;
  }
  .filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 94;
    background: rgba(0, 0, 0, 0.6);
  }
  .filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }
  .filters.is-open {
    transform: translateY(0);
  }
}
@media (max-width: 560px) {
  .site-footer {
    grid-template-columns: 1fr;
  }
  .delivery-cards {
    grid-template-columns: 1fr;
  }
  /* The phone slider has dots and a swipe (mockup 1f), not the tiles: two
       tiles didn't fit across and ran under the chat button. */
  .hero-slider {
    padding: 12px 16px 0;
  }
  .hero-slider__tiles {
    display: none;
  }
  /* Fills the screen under the header bar. Sized for the bar alone, as it
       is once the info line has scrolled away; at the very top the panel
       runs 32px below the screen, which the accordion's bottom padding makes
       up for. */
  .catalog-menu {
    height: calc(100dvh - 56px);
    max-height: none;
    overscroll-behavior: contain;
    box-shadow: none;
  }
  /* Product list card on a phone: thumb beside the name and the price,
     the stepper and the cart button on a full-width row under them.
     align-items: start overrides the desktop row's center, so the thumb
     stays at the top of the name instead of floating in the middle. */
  .product-row {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 10px 12px;
    align-items: start;
  }
  .product-row__photo {
    grid-row: 1/3;
    grid-column: 1;
    height: auto;
    align-self: stretch;
  }
  .product-row > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .product-row > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    min-width: 0;
  }
  .product-row {
    /* The stepper and «В корзину» need the whole card. Beside the photo
       the turnover line and the button ran off the right edge. */
  }
  .product-row__buy {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .product-row .price-stack {
    width: 100%;
    max-width: 100%;
    grid-template-columns: max-content minmax(0, 1fr);
  }
  .product-row .price-steps__from {
    white-space: normal;
  }
  /* Cart item card — same thumb-left idea; .cart-item__row (qty stepper +
       total) becomes a real flex row spanning both columns underneath. */
  .cart-item {
    grid-template-columns: 64px 1fr;
    text-align: left;
  }
  .cart-item__total, .cart-item__unit {
    text-align: right;
  }
  .cart-item__photo {
    height: 64px;
  }
  .cart-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1/3;
  }
  /* Order total + CTA pin to the viewport bottom on cart/checkout pages,
       so the button to go on is always under the thumb.
       body.ctrl-carts/ctrl-checkout come from the layout's controller-name
       class (see layouts/application.html.slim). */
  body.ctrl-carts, body.ctrl-checkout {
    padding-bottom: 110px;
  }
  body.ctrl-carts .order-summary__promo, body.ctrl-checkout .order-summary__promo {
    margin-bottom: 0;
  }
  body.ctrl-carts .order-summary__sticky, body.ctrl-checkout .order-summary__sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #101310;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  /* Quick-order ("1 клик") becomes a bottom sheet too, same visual language
     as the filters sheet above. */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    overflow-y: auto;
  }
  .city-picker .modal-card {
    width: 100vw;
    padding: 20px 16px 24px;
  }
  /* Header after the mockup's 4a–4d: an info line, then menu · logo ·
       green magnifier · sign-in · cart as 42px squares; the magnifier turns
       the bar into a full-width search box (.site-header--searching). */
  .mobile-infobar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    box-sizing: border-box;
    padding: 0 16px;
    background: #0e100e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font: 600 11.5px "Manrope", system-ui, sans-serif;
    color: #9aa197;
    /* A long city name yields, so the phone number stays on the screen. */
  }
  .mobile-infobar__city {
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
  }
  .mobile-infobar__city span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-city {
    display: none;
  }
  .mobile-infobar__sep {
    flex: none;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.14);
  }
  .mobile-infobar__note {
    flex: 1 100 auto;
    min-width: 0;
    font-weight: 500;
    color: #7e857c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-infobar__phone {
    flex: none;
    margin-left: auto;
    font: 700 11.5px "JetBrains Mono", monospace;
    color: #f2f4f1;
    white-space: nowrap;
    text-decoration: none;
  }
  .topbar {
    display: none;
  }
  .site-header {
    position: relative;
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .catalog-btn {
    order: -1;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
    border-radius: 12px;
    background: #181c18;
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex: none;
  }
  .site-header__logo {
    flex: 1;
    min-width: 0;
    align-items: center;
  }
  .site-header__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 10.5px;
    flex: none;
  }
  .site-header__name {
    /* The wordmark has to shrink with the bar. Otherwise «СТРОЙМАТЕРИАЛЫ»
       keeps its own width and paints over the search button. */
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
  }
  .site-header__tagline {
    display: block;
    flex-basis: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 500 9.5px "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #80877e;
    margin-top: 3px;
  }
  /* At 320 the tagline is wider than the space between the menu and the
     search button, and «bsc.im» itself needs the room the tagline was taking. */
}
@media (max-width: 560px) and (max-width: 359px) {
  .site-header:not(.site-header--checkout) {
    padding: 10px;
    gap: 6px;
  }
  .site-header:not(.site-header--checkout) .site-header__logo {
    gap: 6px;
  }
  .site-header:not(.site-header--checkout) .site-header__tagline {
    display: none;
  }
}
@media (max-width: 560px) {
  .mobile-search-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    border: 0;
    background: #0f7a5a;
    color: #fff;
    cursor: pointer;
  }
  .mobile-search-btn svg {
    width: 19px;
    height: 19px;
  }
  .search-wrap {
    display: none;
  }
  span.header-actions__link, a.header-actions__link, .header-actions .btn--sm, .header-actions form {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions__divider {
    display: none;
  }
  .header-actions__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #181c18;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f2f4f1;
    cursor: pointer;
    padding: 0;
  }
  .header-actions__icon svg {
    width: 19px;
    height: 19px;
  }
}
@media (max-width: 560px) {
  /* The «ЛК» trigger becomes the profile square; its menu drops as a sheet
       across the whole bar (anchored to .site-header, not to the square), with
       rows tall enough for a finger. */
  .account-menu {
    position: static;
  }
  .account-menu__trigger {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  .account-menu__trigger svg {
    width: 19px;
    height: 19px;
  }
  .account-menu__label, .account-menu__trigger::after {
    display: none;
  }
  .account-menu__panel {
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    padding: 6px 8px 12px;
    border-radius: 0 0 18px 18px;
    border-width: 1px 0;
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .account-menu__panel::before {
    display: none;
  }
  .account-menu__who {
    padding: 12px 12px 12px;
  }
  .account-menu__name {
    font-size: 14px;
  }
  .account-menu__email {
    font-size: 12px;
  }
  .account-menu__link, .account-menu__logout {
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px;
    font-size: 15px;
  }
  .header-actions .account-menu__panel form {
    display: block;
  }
  .header-actions .modal-card form {
    /* The sign-in modal lives in the header too: its login, sign-up and
    reset forms were hidden with the bar's own buttons. */
    display: block;
  }
  .header-actions .offcanvas-panel form {
    /* So does the cart panel: its crosses and promo code were hidden too. */
    display: block;
  }
  .header-actions .offcanvas-panel form.cart-modal__promo {
    display: flex;
  }
  /* On a phone the panel is the whole screen, not a strip with the page showing at its edge. */
  .offcanvas-panel {
    width: 100%;
    border-left: 0;
    padding: 18px 16px;
  }
  .cart-badge {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  .cart-badge__label {
    display: none;
  }
  .cart-badge__icon {
    display: block;
  }
  .cart-badge__count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    border: 2px solid #101310;
    font-size: 10px;
    line-height: 14px;
  }
  .site-header--searching > :not(.search-wrap) {
    display: none;
  }
  .site-header--searching .search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    position: static;
  }
  .site-header--searching {
    padding: 12px 16px;
  }
  .site-header-host:has(.site-header--searching) .mobile-infobar {
    /* While searching the city line goes, so the field sits at the very top. */
    display: none;
  }
  .site-header--searching .search-form {
    flex: 1;
    min-width: 0;
    border-color: #35d996;
    box-shadow: 0 0 0 4px rgba(53, 217, 150, 0.12);
  }
  /* 16px, not the desktop's 13: iOS zooms the page in on focusing a
       smaller input, and the box ran off the right edge of the screen. */
  .search-form input {
    font-size: 16px;
    text-overflow: ellipsis;
  }
  .search-back {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    background: #181c18;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f2f4f1;
    font-size: 18px;
    cursor: pointer;
  }
  .site-header--searching .search-panel, .search-start {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 75vh;
    overflow-y: auto;
  }
  /* A screen of its own (mockup 4b), not a strip over the page. */
  .search-start {
    padding: 16px;
    background: #0b0c0b;
    z-index: 5;
    height: calc(100dvh - 56px);
    max-height: none;
    box-sizing: border-box;
    overscroll-behavior: contain;
  }
}
/* Between the phone and the desktop (a small tablet, a phone on its side):
   the desktop bar wrapped into three rows and, sticky, took a third of the
   screen. Two rows instead — logo · catalog · buttons, then the search
   across — with the city in the phone's line above, which scrolls away;
   «Сравнить» / «Избранное» only once they hold something, and
   «Регистрация» is a tab of the sign-in window. */
@media (min-width: 561px) and (max-width: 900px) {
  .mobile-infobar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    box-sizing: border-box;
    padding: 0 18px;
    background: #0e100e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font: 600 11.5px "Manrope", system-ui, sans-serif;
    color: #9aa197;
  }
  .mobile-infobar__city {
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
  }
  .mobile-infobar__city span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-infobar__sep {
    flex: none;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.14);
  }
  .mobile-infobar__note {
    flex: 1 100 auto;
    min-width: 0;
    font-weight: 500;
    color: #7e857c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-infobar__phone {
    flex: none;
    margin-left: auto;
    font: 700 11.5px "JetBrains Mono", monospace;
    color: #f2f4f1;
    white-space: nowrap;
    text-decoration: none;
  }
  .topbar, .header-city {
    display: none;
  }
  .site-header {
    padding: 10px 18px;
    gap: 10px 14px;
  }
  .header-actions {
    margin-left: auto;
    gap: 12px;
  }
  .header-actions .btn--ghost, .header-actions__divider {
    display: none;
  }
  .shelf-link:not(:has(.shelf-link__count)) {
    display: none;
  }
  .search-wrap {
    order: 10;
    flex: 1 0 100%;
  }
  /* The checkout bar is the same two rows. Left in the line, the steps
     squeezed the search down to a sliver, and a little narrower the steps
     dropped under it. */
  .site-header--checkout .checkout-search {
    order: 10;
    flex: 1 0 100%;
    margin: 0;
    max-width: none;
    min-width: 0;
  }
}
/* The cart line's four columns left its name a word per line up to here
   too: the phone's card, stepper and total under the name. */
@media (min-width: 561px) and (max-width: 760px) {
  .cart-item {
    grid-template-columns: 64px 1fr;
    text-align: left;
  }
  .cart-item__photo {
    height: 64px;
  }
  .cart-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1/3;
  }
}
/* Ozon Доставка on the checkout delivery step (checkout/_ozon_delivery) */
.ozon-delivery {
  margin-top: 14px;
}

.postpay-note {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 11px;
  background: rgba(15, 122, 90, 0.18);
  border: 1px solid rgba(53, 217, 150, 0.3);
  font: 500 12.5px/1.55 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.postpay-note[hidden] {
  display: none;
}
.postpay-note__title {
  font: 700 13px "Manrope", system-ui, sans-serif;
  color: #35d996;
  margin-bottom: 3px;
}

.account__credit {
  margin: 0 8px;
  padding: 12px 13px;
  border-radius: 11px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.account__credit-label {
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.account__credit-value {
  font: 800 18px "JetBrains Mono", monospace;
  color: #f7f9f6;
  margin-top: 4px;
}
.account__credit-bar {
  height: 5px;
  border-radius: 3px;
  background: #181c18;
  margin-top: 8px;
  overflow: hidden;
}
.account__credit-bar span {
  display: block;
  height: 100%;
  background: #35d996;
}
.account__credit-used {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 6px;
}

/* Личный кабинет: a side menu and the page beside it. */
.account {
  /* A flex item of the body. A tracking number with no break widened the phone. */
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  min-height: 60vh;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  max-width: 100%;
}
.account__side {
  padding: 22px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #101310;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.account__who {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
}
.account__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #0f7a5a;
  display: grid;
  place-items: center;
  font: 800 12px "JetBrains Mono", monospace;
  color: #fff;
}
.account__name {
  font: 700 13.5px/1.3 "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account__kind {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 2px;
}
.account__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  text-decoration: none;
}
.account__link:hover {
  background: #141714;
  color: #f2f4f1;
}
.account__link--on {
  background: #181c18;
  color: #f7f9f6;
}
.account__link--soon {
  color: #7e857c;
}
.account__soon {
  font: 600 9.5px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #80877e;
}
.account__logout {
  margin: auto 8px 0;
  padding: 0;
  background: none;
  border: 0;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  cursor: pointer;
  text-align: left;
}
.account__logout:hover {
  color: #e0713a;
}
.account__main {
  padding: 26px 28px 40px;
  min-width: 0;
}
.account__title {
  font: 800 22px "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.account__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.account__title-row .account__title {
  margin: 0 auto 0 0;
}
.account__subtitle {
  font: 800 14px "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.01em;
  margin: 22px 0 12px;
}
.account__lede {
  font: 500 12.5px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  max-width: 640px;
  margin: -6px 0 18px;
}
.account-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 16px;
  overflow-x: auto;
}
.account-tab {
  padding: 0 0 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  text-decoration: none;
  white-space: nowrap;
}
.account-tab--on {
  border-bottom-color: #35d996;
  color: #f2f4f1;
  font-weight: 700;
}
.account-tab__count {
  margin-left: 6px;
  font: 700 11px "JetBrains Mono", monospace;
  color: #35d996;
}
.account-empty {
  padding: 34px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  text-align: center;
  font: 500 12.5px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.order-card {
  padding: 16px 18px;
  border-radius: 13px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 10px;
}
.order-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.order-card__number {
  font: 700 14px "JetBrains Mono", monospace;
  color: #f7f9f6;
  text-decoration: none;
}
.order-card__when {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
}
.order-card__total {
  margin-left: auto;
  font: 700 16px "JetBrains Mono", monospace;
  color: #f7f9f6;
}
.order-card__what {
  font: 500 12.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 8px 0 12px;
}
.order-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.order-card__actions form {
  display: inline-flex;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.account-row__kind {
  font: 700 11px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.account-row__text {
  font: 600 13px/1.45 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.account-row__meta {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #80877e;
  margin-top: 3px;
}
.account-form {
  max-width: 640px;
}

.object-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 76px auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.object-line__pick {
  display: flex;
  align-items: center;
}
.object-line__qty {
  width: 76px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0c0b;
  color: #f2f4f1;
  font: 600 13px "JetBrains Mono", monospace;
}
.object-line__sum {
  margin-top: 4px;
  font: 700 13px "JetBrains Mono", monospace;
  color: #f2f4f1;
}
.object-line__remove {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #80877e;
  cursor: pointer;
}
.object-line__remove-form {
  display: contents;
}

@media (max-width: 720px) {
  .object-line {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "pick body" "qty remove";
  }
  .object-line__pick {
    grid-area: pick;
  }
  .object-line__body {
    grid-area: body;
  }
  .object-line__qty {
    grid-area: qty;
    justify-self: start;
  }
  .object-line__remove {
    grid-area: remove;
    justify-self: end;
  }
  .object-total {
    justify-content: space-between;
  }
}
.object-total {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 4px 2px 0;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.object-total strong {
  font: 700 16px "JetBrains Mono", monospace;
  color: #f2f4f1;
}

.account-form input:disabled {
  opacity: 0.6;
}

@media (max-width: 860px) {
  .account {
    grid-template-columns: 1fr;
  }
  .account__side {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 12px;
    gap: 10px;
  }
  .account__nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .account__link {
    white-space: nowrap;
    padding: 8px 11px;
  }
  .account__logout {
    display: none;
  }
  .account__main {
    padding: 18px 16px 30px;
  }
}
/* «Список / Плитка» in a listing's toolbar. */
.view-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  overflow: hidden;
}
.view-switch__option {
  padding: 8px 13px;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  background: #181c18;
  cursor: pointer;
}
.view-switch__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.view-switch__option--on {
  background: #0f7a5a;
  color: #fff;
}
.view-switch__option:not(.view-switch__option--on):hover {
  color: #f2f4f1;
}

/* Jump links under the title: the sections stay open, a click scrolls to one. */
.product-jumps {
  display: flex;
  gap: 18px;
  position: sticky;
  top: var(--header-sticky-height, 112px);
  z-index: 40;
  margin: 0;
  padding: 10px 26px;
  background: #101310;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.product-jumps::-webkit-scrollbar {
  display: none;
}
.product-jumps a {
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #35d996;
  text-decoration: none;
  white-space: nowrap;
}
.product-jumps a:hover {
  text-decoration: underline;
}
.product-jumps {
  /* The same links sit under the title. On a wide screen the sticky bar
     only repeated them, so it stays for the phone, where the title has
     scrolled away. */
}
@media (min-width: 901px) {
  .product-jumps {
    display: none;
  }
}
.product-sections {
  /* Product page sections: specs, reviews and documents stay open, under the photo. */
  padding: 4px 26px calc(28px + var(--header-sticky-height, 112px) + var(--product-jumps-height, 42px));
  background: #0b0c0b;
}
.product-section {
  margin-top: 28px;
  scroll-margin-top: calc(var(--header-sticky-height, 112px) + var(--product-jumps-height, 42px) + 16px);
}
.product-section__title {
  margin: 0 0 12px;
  font: 700 18px "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.02em;
}
.product-tabs {
  /* Product page tabs. */
  margin-top: 20px;
}
.product-tabs__strip {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  overflow-x: auto;
}
.product-tab {
  padding: 0 0 10px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  cursor: pointer;
  white-space: nowrap;
}
.product-tab:hover {
  color: #f2f4f1;
}
.product-tab--active {
  border-bottom-color: #35d996;
  font-weight: 700;
  color: #f2f4f1;
}
.product-tabs__soon {
  padding: 34px 16px;
  margin-top: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  text-align: center;
  font: 500 12.5px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.product-tabs__soon[hidden] {
  display: none;
}
.product-tabs__soon-title {
  font: 800 15px "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

/* Earlier delivery addresses, above the delivery form. */
.saved-addresses {
  margin-bottom: 18px;
}
.saved-addresses__title {
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.saved-addresses__list {
  /* A customer may have dozens: past two rows the list scrolls, latest first. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  max-height: 148px;
  overflow-y: auto;
  padding-right: 2px;
}
.saved-address {
  display: flex;
  align-items: stretch;
  border-radius: 11px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.saved-address:hover {
  border-color: #0f7a5a;
}
.saved-address--on {
  border-color: #35d996;
  background: rgba(15, 122, 90, 0.18);
}
.saved-address__use {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.saved-address__kind {
  font: 700 11px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.saved-address__text {
  font: 600 12.5px/1.4 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.saved-address form {
  display: flex;
}

a.saved-address__forget {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  cursor: pointer;
}
.checkbox-line input {
  accent-color: #0f7a5a;
  width: 16px;
  height: 16px;
}

.saved-address__forget {
  padding: 0 11px;
  background: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #80877e;
  font: 500 17px "Manrope", system-ui, sans-serif;
  cursor: pointer;
}
.saved-address__forget:hover {
  color: #e0713a;
}

.ozon-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.ozon-tab {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  padding: 13px 14px;
  cursor: pointer;
  border-radius: 11px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #f2f4f1;
}
.ozon-tab:hover {
  border-color: rgba(255, 255, 255, 0.14);
}
.ozon-tab:focus-visible {
  outline: 2px solid #35d996;
  outline-offset: 2px;
}
.ozon-tab--on {
  border: 1.5px solid #35d996;
  padding: 12.5px 13.5px;
}
.ozon-tab__title {
  font: 700 13.5px "Manrope", system-ui, sans-serif;
}
.ozon-tab__hint {
  font: 500 12px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.ozon-pane {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.ozon-search {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}
.ozon-search__field {
  flex: 1;
  min-width: 0;
}
.ozon-search__field input {
  /* One fixed height for the field and the button: .btn's generous padding
  made «Рядом со мной» taller than the input beside it. */
  box-sizing: border-box;
  height: 46px;
  margin: 0;
  width: 100%;
  padding: 0 14px;
  border-radius: 10px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f4f1;
  font: 500 13px "Manrope", system-ui, sans-serif;
}
.ozon-search__field input:focus {
  outline: 0;
  border-color: #35d996;
}
.ozon-search__near {
  box-sizing: border-box;
  height: 46px;
  margin: 0;
  padding: 0 18px;
  border-radius: 10px;
  white-space: nowrap;
}
.ozon-map-wrap {
  position: relative;
  z-index: 0;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* The map in the site's own dark: OpenStreetMap's tiles inverted and
   toned down rather than a second, paid set of dark tiles.
   Leaflet blends tiles with plus-lighter to hide the hairline gaps
   between them; on a dark page that draws a bright grid instead (a dark
   one once inverted). Plain blending and a pixel of overlap do it. */
.ozon-map {
  height: 440px;
  background: #151815;
  z-index: 0;
  font-family: "Manrope", system-ui, sans-serif;
}
.ozon-map .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(0.85) saturate(0.5);
}
.ozon-map--native-dark .leaflet-tile-pane {
  /* Tiles that are dark already (Mapbox) are shown as they are. */
  filter: none;
}
.ozon-map img.leaflet-tile {
  /* Normal blending, not Leaflet's plus-lighter: under the inversion above
  that drew a bright seam along every tile edge. No resizing of the tiles
  here — stretching them by a pixel to hide seams blurred the labels. */
  mix-blend-mode: normal;
}
.ozon-map .leaflet-bar {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.ozon-map .leaflet-bar a, .ozon-map .leaflet-bar a:hover {
  width: 34px;
  height: 34px;
  line-height: 34px;
  background: #0b0c0b;
  color: #f2f4f1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 18px;
}
.ozon-map .leaflet-bar a:last-child {
  border-bottom: 0;
}
.ozon-map .leaflet-bar a:hover {
  background: #181c18;
  color: #35d996;
}
.ozon-map .leaflet-bar a.leaflet-disabled {
  background: #0b0c0b;
  color: #80877e;
}
.ozon-map .leaflet-control-attribution {
  background: rgba(11, 12, 11, 0.72);
  color: #7e857c;
  font-size: 10px;
  border-radius: 6px 0 0 0;
}
.ozon-map .leaflet-control-attribution a {
  color: #9aa197;
}
.ozon-pin {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #2f7bff;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s, background 0.12s;
}
.ozon-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.leaflet-marker-icon:hover .ozon-pin {
  transform: rotate(-45deg) scale(1.18);
}

.ozon-pin--open {
  background: #ffb020;
}
.ozon-pin--on {
  background: #35d996;
}
.ozon-pin--on::after {
  background: #0b0c0b;
}
.ozon-cluster {
  /* A group of points: Ozon's blue, sized by how many (merged on screen by
  ozon_delivery_controller#merge), a white rim to stand off the dark map. */
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-sizing: border-box;
  background: radial-gradient(circle at 35% 30%, #5b97ff, #2f6fe8);
  color: #fff;
  font: 700 12px "JetBrains Mono", monospace;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.22), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s;
}

.leaflet-marker-icon:hover .ozon-cluster {
  transform: scale(1.1);
}

.ozon-point {
  position: absolute;
  z-index: 500;
  top: 10px;
  right: 10px;
  width: min(300px, 100% - 20px);
  padding: 14px;
  border-radius: 11px;
  background: #0b0c0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.ozon-point__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: 0;
  color: #7e857c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.ozon-point__name {
  font: 700 13.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  padding-right: 22px;
}
.ozon-point__address {
  font: 500 12.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 6px;
}
.ozon-point__way {
  font: 500 11.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #7e857c;
  margin-top: 6px;
  max-height: 5.2em;
  overflow-y: auto;
}
.ozon-point__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.ozon-point__facts span {
  font: 600 11px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  background: #181c18;
  border-radius: 6px;
  padding: 4px 7px;
}
.ozon-point__quote {
  font: 700 13px "JetBrains Mono", monospace;
  color: #35d996;
  margin: 11px 0 10px;
}
.ozon-point__refusal {
  font: 600 12.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #e0713a;
  margin-top: 11px;
}
.ozon-point__wait {
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 0;
}
.ozon-hint {
  font: 500 12px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 9px 0 0;
}
.ozon-hint--warn {
  color: #e0713a;
}
.ozon-chosen {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(15, 122, 90, 0.18);
  border: 1px solid rgba(53, 217, 150, 0.35);
}
.ozon-chosen__label {
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ozon-chosen__text {
  font: 600 13px/1.5 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  margin-top: 5px;
}
.ozon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 12px;
}
.ozon-quote {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(15, 122, 90, 0.18);
  font: 700 13px "JetBrains Mono", monospace;
  color: #35d996;
}
.ozon-quote--warn {
  background: rgba(224, 113, 58, 0.12);
  color: #e0713a;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
}

@media (max-width: 640px) {
  .ozon-search {
    flex-direction: column;
  }
  .ozon-map {
    height: 340px;
  }
  .ozon-point {
    top: auto;
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: auto;
  }
  body.ctrl-checkout .ozon-point {
    scroll-margin-bottom: calc(200px + env(safe-area-inset-bottom));
  }
  .ozon-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* The product page's Ozon card opens the checkout's picker in a modal
   (product_delivery_quotes/picker): wide enough for the map on a desktop,
   the whole screen on a phone, with «Выбрать» kept in reach at the foot. */
.delivery-card-picker {
  display: contents;
}
.delivery-card--action {
  cursor: pointer;
  transition: border-color 0.12s;
}
.delivery-card--action:hover {
  border-color: #0f7a5a;
}
.delivery-card--action:focus-visible {
  outline: 2px solid #35d996;
  outline-offset: 2px;
}
.delivery-card__change {
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.delivery-card__price--warn {
  color: #e0713a;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
}

html.has-sheet {
  overflow: hidden;
}

.delivery-picker {
  z-index: 1000;
}

.modal-card.delivery-picker__card {
  width: 820px;
  max-height: calc(100vh - 40px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.delivery-picker__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.delivery-picker__title {
  font: 800 22px/1.15 "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.025em;
  margin: 10px 0 0;
}
.delivery-picker__product {
  font: 500 12.5px/1.4 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 6px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.delivery-picker__card > turbo-frame {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 24px 0;
}
.delivery-picker__wait {
  font: 500 13px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  padding: 120px 0;
  text-align: center;
  margin: 0;
}
.delivery-picker .ozon-map {
  height: 380px;
}
.delivery-picker__error {
  font: 600 12.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #e0713a;
  margin: 12px 0 0;
}
.delivery-picker__error:empty {
  display: none;
}
.delivery-picker__foot {
  position: sticky;
  bottom: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px -24px 0;
  padding: 14px 24px;
  background: #101310;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.delivery-picker__note {
  font: 500 11.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #80877e;
  margin: 0;
}
.delivery-picker__foot .btn {
  flex: none;
  min-width: 140px;
}

@media (max-width: 640px) {
  .delivery-picker.modal-backdrop {
    padding: 0;
    align-items: stretch;
  }
  .modal-card.delivery-picker__card {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: 0;
  }
  .delivery-picker__head {
    padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  }
  .delivery-picker__title {
    font-size: 18px;
    margin-top: 8px;
  }
  .delivery-picker__card > turbo-frame {
    padding: 14px 16px 0;
  }
  .delivery-picker .ozon-map {
    height: 46vh;
    min-height: 280px;
  }
  .delivery-picker__foot {
    margin: 14px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .delivery-picker__foot .btn {
    width: 100%;
  }
}
/* Link to the VK community (admin → Интеграции → VK для бизнеса). */
.footer-vk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  text-decoration: none;
}
.footer-vk:hover {
  border-color: #35d996;
  color: #35d996;
}

/* Cabinet → «Интеграция» (account/integrations/show). */
.account-card {
  max-width: 760px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 12px;
}
.account-card p {
  font: 500 12.5px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 0 0 12px;
}
.account-card__title {
  font: 700 15px "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
  margin: 0 0 8px;
}
.account-card__hint {
  font-size: 11.5px !important;
  color: #80877e !important;
}

.integration-url {
  padding: 10px 12px;
  border-radius: 9px;
  background: #0b0c0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0 0 8px;
  overflow-x: auto;
}
.integration-url code {
  font: 500 12px "JetBrains Mono", monospace;
  color: #35d996;
  white-space: nowrap;
}

.api-docs {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}
.api-docs h1 {
  font: 800 28px "Unbounded", sans-serif;
  color: #f7f9f6;
  margin: 0 0 10px;
}
.api-docs h2 {
  font: 700 18px "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
  margin: 30px 0 10px;
}
.api-docs h3 {
  font: 700 14px "JetBrains Mono", monospace;
  color: #35d996;
  margin: 22px 0 8px;
}
.api-docs p, .api-docs li {
  font: 500 13.5px/1.7 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.api-docs pre {
  padding: 12px 14px;
  border-radius: 10px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow-x: auto;
  font: 500 12px/1.6 "JetBrains Mono", monospace;
  color: #f2f4f1;
}
.api-docs code {
  font: 500 12.5px "JetBrains Mono", monospace;
  color: #35d996;
}
.api-docs table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.api-docs td, .api-docs th {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font: 500 12.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  vertical-align: top;
}
.api-docs th {
  color: #f2f4f1;
  font-weight: 700;
}

.order-status--source {
  margin-left: 6px;
  background: rgba(53, 140, 217, 0.14);
  color: #8cc4f5;
}

/* Support chat — mockup 5a (desktop window above the button) and 5b
   (full screen on a phone, the button in the bottom corner). */
.support-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 85;
  font-family: "Manrope", system-ui, sans-serif;
}
.support-chat [hidden] {
  display: none !important;
}
.support-chat__fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0f7a5a;
  box-shadow: 0 10px 30px rgba(15, 122, 90, 0.45), 0 0 0 1px rgba(53, 217, 150, 0.35) inset;
}
.support-chat__fab:hover {
  background: #128d68;
}
.support-chat__fab-close {
  display: none;
}
.support-chat--open .support-chat__fab {
  background: #1a1f1a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #f2f4f1;
}
.support-chat--open .support-chat__fab-open {
  display: none;
}
.support-chat--open .support-chat__fab-close {
  display: block;
}
.support-chat__badge::after {
  content: attr(data-count);
}
.support-chat__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  background: #e0713a;
  border: 2px solid #0b0c0b;
  display: grid;
  place-items: center;
  font: 800 10px "JetBrains Mono", monospace;
  color: #fff;
}
.support-chat__tip {
  position: absolute;
  right: 70px;
  bottom: 10px;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 12px 12px 4px 12px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.support-chat__window {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 384px;
  height: min(600px, 100vh - 120px);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0b0c0b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.support-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #101310;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.support-chat__head-chat, .support-chat__head-history {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.support-chat__avatar {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #0f7a5a;
  display: grid;
  place-items: center;
  font: 800 10.5px "JetBrains Mono", monospace;
  color: #fff;
}
.support-chat__online {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #35d996;
  border: 2px solid #101310;
}
.support-chat__who {
  flex: 1;
  min-width: 0;
}
.support-chat__name {
  font: 700 13.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.support-chat__head-history .support-chat__name {
  flex: 1;
}
.support-chat__agent {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #35d996;
  margin-top: 2px;
}
.support-chat__icon-btn {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  color: #9aa197;
  cursor: pointer;
}
.support-chat__icon-btn:hover {
  background: #1a1f1a;
  color: #f2f4f1;
}
.support-chat__count {
  position: absolute;
  top: 4px;
  right: 3px;
  font: 700 9px "JetBrains Mono", monospace;
  color: #0b0c0b;
  background: #9aa197;
  border-radius: 6px;
  padding: 0 4px;
}
.support-chat__view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.support-chat__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-chat__scroll > div[data-support-chat-target=messages] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-chat__date {
  align-self: center;
  font: 600 10.5px "JetBrains Mono", monospace;
  color: #80877e;
  padding: 3px 9px;
  border-radius: 6px;
  background: #141714;
}
.support-chat__msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.support-chat__msg--store {
  align-items: flex-start;
}
.support-chat__msg--customer {
  align-items: flex-end;
}
.support-chat__bubble {
  max-width: 82%;
  padding: 9px 12px;
  font: 500 12.5px/1.5 "Manrope", system-ui, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.support-chat__msg--store .support-chat__bubble {
  border-radius: 4px 14px 14px 14px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f2f4f1;
}
.support-chat__msg--customer .support-chat__bubble {
  border-radius: 14px 4px 14px 14px;
  background: #0f7a5a;
  border: 1px solid #0f7a5a;
  color: #fff;
}
.support-chat__msg--customer .support-chat__bubble a {
  color: #fff;
  text-decoration: underline;
}
.support-chat__meta {
  font: 500 10px "JetBrains Mono", monospace;
  color: #5c635a;
  padding: 0 4px;
}
.support-chat__cart-link {
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  padding: 7px 13px;
  border-radius: 9px;
  background: #0f7a5a;
  font: 700 12px "Manrope", system-ui, sans-serif;
  color: #fff;
  text-decoration: none;
}
.support-chat__cart-link:hover {
  background: #35d996;
  color: #0b0c0b;
}
.support-chat__typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 4px 14px 14px 14px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  animation: support-typing-in 0.25s ease-out;
}
.support-chat__typing[hidden] {
  display: none;
}
.support-chat__draft {
  margin-top: 10px;
}
.support-chat__typing--compact {
  margin-top: 6px;
  padding: 7px 11px;
}
.support-chat__typing--compact .support-chat__typing-label {
  display: none;
}
.support-chat__typing-dots {
  display: inline-flex;
  gap: 4px;
}
.support-chat__typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35d996;
  animation: support-typing-dot 1.2s infinite ease-in-out;
}
.support-chat__typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.support-chat__typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.support-chat__typing-label {
  background: linear-gradient(90deg, #7e857c 40%, #f2f4f1 50%, #7e857c 60%) 0 0/300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: support-typing-gleam 2.4s linear infinite;
}

@keyframes support-typing-dot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@keyframes support-typing-gleam {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
@keyframes support-typing-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
/* Reduced motion: the dots only fade, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .support-chat__typing {
    animation: none;
  }
  .support-chat__typing-dots i {
    animation-name: support-typing-fade;
  }
  .support-chat__typing-label {
    animation: none;
    color: #7e857c;
    background: none;
  }
}
@keyframes support-typing-fade {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
.support-chat__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.support-chat__quick-btn {
  padding: 7px 11px;
  border-radius: 20px;
  border: 1px solid rgba(53, 217, 150, 0.35);
  background: none;
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  color: #35d996;
  cursor: pointer;
}
.support-chat__quick-btn:hover {
  background: rgba(15, 122, 90, 0.18);
}
.support-chat__closed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #101310;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.support-chat__closed span {
  flex: 1;
  font: 500 11.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.support-chat__new {
  padding: 8px 12px;
  border-radius: 9px;
  border: 0;
  background: #0f7a5a;
  font: 700 11.5px "Manrope", system-ui, sans-serif;
  color: #fff;
  cursor: pointer;
}
.support-chat__compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: #101310;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.support-chat__input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b0c0b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  font: 500 13px/1.4 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.support-chat__input:focus {
  border-color: rgba(53, 217, 150, 0.45);
}
.support-chat__send {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: #232823;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
}
.support-chat__send--ready {
  background: #0f7a5a;
}
.support-chat__history {
  overflow-y: auto;
  padding: 12px;
  gap: 8px;
}
.support-chat__new-dashed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  border-radius: 11px;
  border: 1px dashed rgba(53, 217, 150, 0.4);
  background: none;
  font: 700 12px "Manrope", system-ui, sans-serif;
  color: #35d996;
  cursor: pointer;
}
.support-chat__new-dashed:hover {
  background: rgba(15, 122, 90, 0.12);
}
.support-chat__history > div[data-support-chat-target=sessions] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-chat__session {
  text-align: left;
  width: 100%;
  padding: 12px;
  border-radius: 11px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: inherit;
}
.support-chat__session:hover {
  background: #181c18;
}
.support-chat__session--current {
  border-color: rgba(53, 217, 150, 0.45);
}
.support-chat__session-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-chat__session-title {
  flex: 1;
  min-width: 0;
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-chat__status {
  font: 700 9.5px "Manrope", system-ui, sans-serif;
  border-radius: 4px;
  padding: 2px 6px;
}
.support-chat__status--open {
  color: #35d996;
  background: rgba(15, 122, 90, 0.18);
}
.support-chat__status--manager {
  color: #e0713a;
  background: rgba(224, 113, 58, 0.12);
}
.support-chat__status--closed {
  color: #7e857c;
  background: rgba(255, 255, 255, 0.06);
}
.support-chat__session-last {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-chat__session-meta {
  font: 500 10px "JetBrains Mono", monospace;
  color: #5c635a;
  margin-top: 6px;
}
.support-chat__note {
  font: 500 10.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #5c635a;
  text-align: center;
  padding: 6px 10px;
}

@media (max-width: 560px) {
  .support-chat {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  /* Above the order total pinned to the bottom of the cart and checkout. */
  body.ctrl-carts .support-chat, body.ctrl-checkout .support-chat {
    bottom: calc(126px + env(safe-area-inset-bottom));
  }
  .support-chat__fab {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .support-chat__tip {
    display: none !important;
  }
  .support-chat--open {
    /* The whole widget is one stacking context: raised above the sticky
    header while the chat covers the screen. */
    z-index: 120;
  }
  .support-chat__window {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    border: 0;
  }
  .support-chat--open .support-chat__fab {
    display: none;
  }
  .support-chat__input {
    font-size: 16px;
  }
}
/* «Избранное» и «Сравнение»: header counters, the toggles on cards, rows
   and the product page, and the two pages. */
.shelf-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.shelf-link:hover {
  color: #f2f4f1;
}
.shelf-link__count {
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 20px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 700 10px "JetBrains Mono", monospace;
  color: #35d996;
  text-align: center;
}
.shelf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #7e857c;
  cursor: pointer;
  font: 600 11.5px "Manrope", system-ui, sans-serif;
}
.shelf-toggle svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.15s, fill 0.15s;
}
.shelf-toggle:hover {
  color: #f2f4f1;
}
.shelf-toggle:focus-visible {
  outline: 2px solid #35d996;
  outline-offset: 2px;
  border-radius: 8px;
}
.shelf-toggle[aria-pressed=true] {
  color: #35d996;
}
.shelf-toggle--favorites[aria-pressed=true] svg {
  fill: currentColor;
}
.shelf-toggle:active svg {
  transform: scale(0.85);
}
.shelf-toggle--icon {
  width: 32px;
  height: 32px;
  justify-content: center;
  border-radius: 50%;
  background: rgba(11, 12, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

.product-card {
  position: relative;
}
.product-card__shelves {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-row__shelves {
  display: flex;
  gap: 16px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.buy-box__shelves {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.buy-box__shelves .shelf-toggle {
  font-size: 12.5px;
}

.shelf-page__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shelf-page__count {
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.shelf-page__hint {
  margin: 0 0 14px;
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.shelf-empty {
  padding: 34px 26px;
  border-radius: 14px;
  background: #141714;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  text-align: center;
}
.shelf-empty__title {
  font: 700 17px "Unbounded", sans-serif;
  color: #f7f9f6;
}
.shelf-empty p {
  margin: 10px 0 18px;
  font: 500 13px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}

.compare-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.compare-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  text-decoration: none;
}
.compare-tab:hover {
  color: #f2f4f1;
}
.compare-tab--on {
  border-color: #35d996;
  color: #f7f9f6;
}
.compare-tab__count {
  font: 700 10.5px "JetBrains Mono", monospace;
  color: #35d996;
}
.compare-diff {
  margin-left: auto;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.compare-scroll {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: #141714;
}
.compare-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font: 500 12.5px/1.45 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.compare-table th, .compare-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: top;
}
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th {
  background: #181c18;
}

/* The characteristic names stay in view while the products scroll past. */
.compare-table th[scope=row], .compare-table__corner {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 190px;
  min-width: 150px;
  background: #141714;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}
.compare-table td {
  min-width: 200px;
  max-width: 260px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.compare-table__empty {
  color: #80877e;
}
.compare-product {
  position: relative;
  min-width: 200px;
  max-width: 260px;
  font-weight: 500;
}
.compare-product form {
  margin: 0;
}
.compare-product__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0c0b;
  color: #9aa197;
  font: 600 15px/1 "Manrope", system-ui, sans-serif;
  cursor: pointer;
}
.compare-product__remove:hover {
  color: #e0713a;
  border-color: #e0713a;
}
.compare-product__photo {
  display: block;
  height: 120px;
  margin-bottom: 10px;
  border-radius: 9px;
  overflow: hidden;
  font-size: 10px;
}
.compare-product__sku {
  font: 500 10.5px "JetBrains Mono", monospace;
  color: #80877e;
}
.compare-product__name {
  display: block;
  margin: 4px 0 8px;
  font: 700 13px/1.35 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  text-decoration: none;
}
.compare-product__price {
  margin-bottom: 10px;
  font: 700 17px "JetBrains Mono", monospace;
  color: #f7f9f6;
}
.compare-product__out {
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #e0713a;
}

@media (max-width: 640px) {
  .compare-diff {
    margin-left: 0;
  }
  .compare-table th[scope=row], .compare-table__corner {
    width: 110px;
    min-width: 110px;
  }
  .compare-table td, .compare-product {
    min-width: 160px;
  }
}
/* Ratings and reviews. The stars are one string of ★ filled by a gradient
   up to --rating (a percentage), so 4,3 shows as four and a third stars. */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.rating__stars {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}
.rating__stars::before {
  content: "★★★★★";
  background: linear-gradient(90deg, #f2b84b var(--rating), #3a413a var(--rating));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rating__value {
  font: 700 12px "JetBrains Mono", monospace;
  color: #f2f4f1;
}
.rating__count {
  color: #9aa197;
}

a.rating__count {
  color: #35d996;
}

.rating--page {
  margin: 6px 0 4px;
}

.product-card .rating {
  margin-top: 6px;
}

.reviews {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reviews--modal {
  margin-top: 16px;
}
.reviews__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.reviews__all {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.reviews__all:hover {
  text-decoration: underline;
}

.modal-card--reviews, .modal-card--review-form {
  width: min(640px, 100%);
  max-height: min(80vh, 760px);
  overflow-y: auto;
}
.modal-card--review-form .review-form {
  margin-top: 12px;
  padding: 0;
  border: 0;
}

.reviews__summary {
  display: flex;
  align-items: center;
  gap: 14px;
}
.reviews__score {
  font: 800 30px "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.02em;
}
.reviews__hint {
  font: 500 12px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 4px;
}

.review {
  padding: 14px 16px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.review__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.review__author {
  /* A name with no break widened the phone. */
  min-width: 0;
  overflow-wrap: anywhere;
  font: 700 13px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.review__date {
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
}
.review__source {
  font: 700 10px "Manrope", system-ui, sans-serif;
  color: #8cc4f5;
  background: rgba(53, 140, 217, 0.14);
  border-radius: 4px;
  padding: 2px 6px;
}
.review__body {
  margin: 8px 0 0;
  font: 500 13px/1.6 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.review__reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 2px solid #35d996;
  background: rgba(15, 122, 90, 0.18);
  border-radius: 0 8px 8px 0;
}
.review__reply-who {
  font: 700 11px "Manrope", system-ui, sans-serif;
  color: #35d996;
  margin-bottom: 4px;
}
.review__reply p {
  margin: 0;
  font: 500 12.5px/1.55 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.review-form {
  margin-top: 6px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}
.review-form__title {
  font: 800 15px "Unbounded", sans-serif;
  color: #f2f4f1;
  letter-spacing: -0.02em;
}
.review-form__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  font: 500 11.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}

/* Star picker: radios laid out 5→1 and drawn in reverse, so hovering or
   checking a star lights it and every star before it with sibling
   selectors alone. */
.star-input {
  border: 0;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.star-input legend {
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.star-input label {
  font-size: 26px;
  line-height: 1;
  color: #3a413a;
  cursor: pointer;
  padding: 0 2px;
}
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label {
  color: #f2b84b;
}
.star-input input:focus-visible + label {
  outline: 2px solid #35d996;
  border-radius: 4px;
}

/* The listing's sort (mockup: a dark chip «Сначала дешёвые ▾»): the
   browser's own arrow and light dropdown replaced by the site's. */
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  cursor: pointer;
  padding: 8px 32px 8px 13px;
  line-height: normal;
  border-radius: 9px;
  background-color: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa197' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort-select:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.sort-select:focus-visible {
  outline: 0;
  border-color: #35d996;
}
.sort-select option {
  background: #181c18;
  color: #f2f4f1;
}

/* Bonus programme — the payment step's «Списать бонусы» (mockup 8a) */
.bonus-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(53, 217, 150, 0.45);
}
.bonus-box__row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.bonus-box__badge {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(53, 217, 150, 0.14);
  display: grid;
  place-items: center;
  font: 800 13px "Unbounded", sans-serif;
  color: #35d996;
}
.bonus-box__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bonus-box__title {
  font: 700 12.5px "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
}
.bonus-box__meta {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 2px;
}
.bonus-box__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bonus-box .toggle {
  flex: none;
}
.bonus-box .toggle--off {
  opacity: 0.4;
  cursor: not-allowed;
}
.bonus-box__note {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #e0713a;
  margin-top: 8px;
}
.bonus-box__note[hidden] {
  display: none;
}
.bonus-box__earn {
  font: 500 11px/1.55 "Manrope", system-ui, sans-serif;
  color: #80877e;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}
.bonus-box__earn--alone {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.bonus-box__earn b {
  color: #35d996;
}

.summary-row[hidden] {
  display: none;
}

/* The cabinet's «Бонусы» */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-bottom: 18px;
}
.bonus-card {
  padding: 14px 15px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.bonus-card--main {
  border-color: rgba(53, 217, 150, 0.45);
}
.bonus-card__label {
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bonus-card__value {
  font: 800 22px "JetBrains Mono", monospace;
  color: #f7f9f6;
  margin-top: 6px;
}
.bonus-card--main .bonus-card__value {
  color: #35d996;
}
.bonus-card__meta {
  font: 500 11px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 4px;
}
.bonus-history {
  max-width: 760px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.bonus-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}
.bonus-history__row:first-child {
  border-top: 0;
}
.bonus-history__what {
  font: 600 12.5px/1.4 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.bonus-history__when {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #80877e;
  margin-top: 2px;
}
.bonus-history__amount {
  flex: none;
  font: 700 13px "JetBrains Mono", monospace;
  color: #f7f9f6;
  text-align: right;
}
.bonus-history__amount--plus {
  color: #35d996;
}
.bonus-history__amount--muted {
  color: #80877e;
}
.bonus-rules {
  max-width: 760px;
  margin: 0;
  padding-left: 18px;
  font: 500 12.5px/1.75 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.bonus-rules b {
  color: #f2f4f1;
}

.account__bonus {
  margin: 10px 8px 0;
  padding: 10px 13px;
  border-radius: 11px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}
.account__bonus-label {
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.account__bonus-value {
  font: 800 15px "JetBrains Mono", monospace;
  color: #35d996;
}

.review__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.review__photo {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #181c18;
}
.review__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-form__photos {
  font: 500 12px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.review-form__photos::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #181c18;
  color: #f2f4f1;
  font: 600 12px "Manrope", system-ui, sans-serif;
  cursor: pointer;
}

/* Support chat attachments */
.support-chat__attach {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #9aa197;
  cursor: pointer;
}
.support-chat__attach:hover {
  color: #35d996;
  background: #181c18;
}
.support-chat__files {
  display: flex;
  gap: 8px;
  padding: 8px 12px 0;
  background: #101310;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}
.support-chat__files[hidden] {
  display: none;
}
.support-chat__file {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  overflow: hidden;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
}
.support-chat__file img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.support-chat__file span {
  padding: 4px;
  font: 600 9px/1.2 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  word-break: break-all;
  text-align: center;
}
.support-chat__file-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font: 700 12px/18px "Manrope", system-ui, sans-serif;
  padding: 0;
  cursor: pointer;
}
.support-chat__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.support-chat__bubble > .support-chat__attachments:first-child {
  margin-top: 0;
}
.support-chat__attachment-photo {
  display: block;
  width: 120px;
  max-width: 100%;
  border-radius: 9px;
  overflow: hidden;
}
.support-chat__attachment-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.support-chat__attachment-file {
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: inherit;
  text-decoration: underline;
}

/* Bonuses in the «ЛК» dropdown and the cabinet's filter */
.account-menu__bonus {
  display: block;
  margin: 0 0 6px;
  padding: 10px;
  border-radius: 10px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
}
.account-menu__bonus:hover {
  border-color: rgba(53, 217, 150, 0.45);
}
.account-menu__bonus-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.account-menu__bonus-label {
  font: 600 10.5px "Manrope", system-ui, sans-serif;
  color: #7e857c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.account-menu__bonus-value {
  font: 800 15px "JetBrains Mono", monospace;
  color: #35d996;
}
.account-menu__bonus-note {
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 2px;
}
.account-menu__bonus-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.account-menu__bonus-row--pending {
  opacity: 0.6;
}
.account-menu__bonus-what {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu__bonus-amount {
  flex: none;
  font: 700 11px "JetBrains Mono", monospace;
  color: #f2f4f1;
}
.account-menu__bonus-amount--plus {
  color: #35d996;
}
.account-menu__bonus-more {
  margin-top: 7px;
  font: 600 11px "Manrope", system-ui, sans-serif;
  color: #35d996;
}

.bonus-card__value--plus {
  color: #35d996;
}
.bonus-filter {
  display: flex;
  gap: 6px;
  margin: -4px 0 12px;
}
.bonus-filter__tab {
  padding: 6px 12px;
  border-radius: 8px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  text-decoration: none;
}
.bonus-filter__tab--on {
  background: #0f7a5a;
  border-color: #0f7a5a;
  color: #fff;
}

/* Search: Claude's guess when nothing was found */
.ai-search {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(53, 217, 150, 0.35);
  max-width: 860px;
}
.ai-search__badge {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(53, 217, 150, 0.14);
  display: grid;
  place-items: center;
  font: 800 11px "Unbounded", sans-serif;
  color: #35d996;
}
.ai-search--loading .ai-search__badge {
  animation: ai-search-pulse 1.2s ease-in-out infinite;
}

@keyframes ai-search-pulse {
  50% {
    opacity: 0.35;
  }
}
.ai-search__title {
  font: 700 13.5px/1.45 "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
}
.ai-search__hint {
  font: 500 11.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #80877e;
  margin-top: 6px;
}
.ai-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ai-search__chip {
  padding: 6px 11px;
  border-radius: 8px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  text-decoration: none;
}
.ai-search__chip:hover {
  border-color: #35d996;
  color: #35d996;
}
.ai-search__chip--section::before {
  content: "Раздел · ";
  color: #80877e;
  font-weight: 500;
}

.search-switched {
  margin: 0 0 12px;
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}

.file-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.file-previews[hidden] {
  display: none;
}
.file-previews__item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #181c18;
}
.file-previews__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.file-previews__remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font: 700 13px/20px "Manrope", system-ui, sans-serif;
  cursor: pointer;
}

.api-docs__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 8px;
}
.api-docs__tab {
  padding: 7px 13px;
  border-radius: 8px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
  cursor: pointer;
}
.api-docs__tab--on {
  background: #0f7a5a;
  border-color: #0f7a5a;
  color: #fff;
}
.api-docs__code[hidden] {
  display: none;
}

/* Suggestion lists (DaData at checkout and in the profile, the delivery
   calculator's product picker) — the same as the admin's. */
.searchable-select {
  position: relative;
}
.searchable-select__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 4px;
  list-style: none;
  margin: 0;
}
.searchable-select__list[hidden] {
  display: none;
}
.searchable-select__option {
  /* A name or an article with no break painted out of the list. */
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border-radius: 6px;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  cursor: pointer;
}
.searchable-select__option:hover, .searchable-select__option.is-active {
  background: rgba(15, 122, 90, 0.18);
  color: #35d996;
}
.searchable-select__option[hidden] {
  display: none;
}
.searchable-select__option--all {
  color: #9aa197;
}
.searchable-select--filter {
  flex: 0 1 240px;
  min-width: 170px;
}
.searchable-select--filter input[type=text] {
  width: 100%;
  padding-right: 28px;
  text-overflow: ellipsis;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #9aa197 50%), linear-gradient(135deg, #9aa197 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.searchable-select--filter input[type=text]:focus {
  cursor: text;
}
.searchable-select--filter .searchable-select__list {
  min-width: 320px;
  max-height: 360px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.searchable-select__add {
  padding: 8px 10px;
  border-radius: 6px;
  font: 700 12px "Manrope", system-ui, sans-serif;
  color: #35d996;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: 4px;
}

/* 404 / 410 */
.error-page {
  /* A flex item of the body. The search field's default size is twenty
     characters, and that minimum widened a phone; 100% keeps it in the viewport. */
  min-width: 0;
  max-width: min(760px, 100%);
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 48px;
  text-align: center;
}
.error-page__code {
  font: 800 72px/1 "Unbounded", sans-serif;
  color: #35d996;
  letter-spacing: -0.04em;
}
.error-page__title {
  font: 800 26px/1.2 "Unbounded", sans-serif;
  color: #f7f9f6;
  margin: 14px 0 0;
  letter-spacing: -0.02em;
}
.error-page__text {
  font: 500 14px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 12px auto 0;
  max-width: 520px;
}
.error-page__search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 22px auto 0;
}
.error-page__search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f4f1;
  font: 500 14px "Manrope", system-ui, sans-serif;
}
.error-page__sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.error-page__section {
  padding: 8px 13px;
  border-radius: 9px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font: 600 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.error-page__section:hover {
  border-color: #35d996;
  color: #35d996;
}
.error-page__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* «Поделиться» and the shared cart */
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #181c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  cursor: pointer;
  white-space: nowrap;
}
.share-button:hover {
  border-color: #35d996;
  color: #35d996;
}

.shared-cart {
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.shared-cart__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.shared-cart__row:first-child {
  border-top: 0;
}
.shared-cart__photo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.shared-cart__name {
  /* A supplier's name is one long token and widened the shared cart. */
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 600 13px/1.4 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.shared-cart__meta {
  overflow-wrap: anywhere;
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
  margin-top: 3px;
}
.shared-cart__sum {
  flex: none;
  font: 700 13px "JetBrains Mono", monospace;
  color: #f7f9f6;
}
.shared-cart__total {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.shared-cart__total b {
  font: 800 16px "JetBrains Mono", monospace;
  color: #f7f9f6;
}

/* Delivery step: rough prices by each way, and the carriers' pins */
.delivery-estimates {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 12px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.delivery-estimates__title {
  font: 800 13px "Unbounded", sans-serif;
  color: #f7f9f6;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.delivery-estimates__wait {
  font: 500 12px "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.delivery-estimates__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.delivery-estimates__row:first-of-type {
  border-top: 0;
}
.delivery-estimates__row--off {
  color: #80877e;
}
.delivery-estimates__price {
  flex: none;
  text-align: right;
  font: 700 12.5px "JetBrains Mono", monospace;
  color: #35d996;
}
.delivery-estimates__row--off .delivery-estimates__price {
  color: #80877e;
  font-weight: 500;
}
.delivery-estimates__price small {
  display: block;
  font: 500 10.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.delivery-estimates__note {
  margin-top: 8px;
  font: 500 10.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #80877e;
}

.carrier-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  border: 2px solid #fff;
  box-sizing: border-box;
}
.carrier-pin span {
  transform: rotate(45deg);
  font: 900 9px/1 "Manrope", system-ui, sans-serif;
  color: #fff;
  letter-spacing: -0.02em;
}
.carrier-pin--ozon {
  background: #005bff;
}
.carrier-pin--cdek {
  background: #1ab248;
}
.carrier-pin--bsc {
  background: #0f7a5a;
}
.carrier-pin--open {
  outline: 3px solid rgba(255, 255, 255, 0.55);
}
.carrier-pin--on {
  outline: 3px solid #35d996;
}

.product-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.product-docs__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none;
}
.product-docs__item:hover {
  border-color: #35d996;
}
.product-docs__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 46px;
  border-radius: 7px;
  background: rgba(15, 122, 90, 0.18);
  color: #35d996;
  font: 800 10px "JetBrains Mono", monospace;
}
.product-docs__title {
  display: block;
  font: 600 13px/1.35 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  overflow-wrap: anywhere;
}
.product-docs__meta {
  display: block;
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
  margin-top: 3px;
}

.ozon-cluster--cdek {
  background: radial-gradient(circle at 35% 30%, #4fd27a, #149a3c);
  box-shadow: 0 0 0 4px rgba(26, 178, 72, 0.22), 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* The live dropdown's AI guess (search/ai_suggest) */
.search-results__ai-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 10px 14px;
  font: 500 12px "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.search-results__ai-spark {
  /* While Claude is asked: a twinkling star, the line lit by a passing
  gleam and three dots that bounce in turn — still for whoever asked the
  system for less motion. */
  color: #35d996;
  font-size: 13px;
  animation: ai-spark 1.6s ease-in-out infinite;
}
.search-results__ai-text {
  background: linear-gradient(90deg, #80877e 0%, #80877e 40%, #35d996 50%, #80877e 60%, #80877e 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ai-gleam 2.2s linear infinite;
}
.search-results__ai-dots {
  display: inline-flex;
  gap: 3px;
}
.search-results__ai-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #35d996;
  animation: ai-dot 1.2s ease-in-out infinite;
}
.search-results__ai-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.search-results__ai-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ai-spark {
  0%, 100% {
    transform: scale(0.85) rotate(0);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15) rotate(90deg);
    opacity: 1;
  }
}
@keyframes ai-gleam {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -150% 0;
  }
}
@keyframes ai-dot {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .search-results__ai-spark, .search-results__ai-text, .search-results__ai-dots span {
    animation: none;
  }
  .search-results__ai-text {
    color: #80877e;
    background: none;
  }
}
.search-results__group--ai .search-results__group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
}
.search-results__group--ai .ai-search__badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 9px;
}
.search-results__group--ai .ai-search__chips {
  margin: 4px 10px 8px;
}
.search-results__ai-hint {
  padding: 6px 10px 2px;
  font: 500 11px "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.search-results__switched {
  padding: 8px 10px;
  font: 500 12px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}

/* The delivery step's question before an addition (xsell_guard_controller.js) */
.xsell-guard__text {
  font: 500 14px/1.5 "Manrope", system-ui, sans-serif;
  color: #7e857c;
  margin: 12px 0 20px;
}
.xsell-guard__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* The delivery step's column (carts/_order_summary, step: :delivery): the
   estimates and the cart's lines scroll; the totals and «К оплате» stay at
   the bottom of the screen. */
.order-summary--delivery {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.order-summary--delivery .order-summary__lines {
  flex: 1 1 auto;
  min-height: 80px;
  overflow-y: auto;
  margin: 0 -22px 16px;
  padding: 0 22px;
}
.order-summary--delivery > turbo-frame#delivery_estimates {
  flex: none;
}
.order-summary__lines-title {
  font: 700 11px "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #80877e;
  margin: 4px 0 8px;
}

.summary-line {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.summary-line--sold-out .summary-line__photo, .summary-line--sold-out .summary-line__name {
  opacity: 0.45;
}
.summary-line--sold-out .summary-line__qty {
  color: #e0713a;
}
.summary-line__photo {
  grid-row: 1/3;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.summary-line__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.summary-line__name {
  font: 500 12px/1.35 "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.summary-line__qty {
  font: 500 11.5px "JetBrains Mono", monospace;
  color: #9aa197;
  margin-top: 2px;
}
.summary-line__old {
  color: #80877e;
  margin-left: 6px;
  white-space: nowrap;
}

.order-summary__pay {
  margin-top: 16px;
  font-size: 16px;
  padding: 16px;
}
.order-summary__pay:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.order-summary__pay-hint {
  font: 500 11.5px "Manrope", system-ui, sans-serif;
  color: #80877e;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .order-summary--delivery {
    position: static;
    height: auto;
    overflow: visible;
  }
  .order-summary--delivery .order-summary__lines {
    max-height: 260px;
  }
}
.cart-page > turbo-frame#order_summary {
  display: block;
  background: #101310;
}

/* The chat's button stands left of the delivery step's column, off «К оплате». */
@media (min-width: 901px) {
  body.ctrl-checkout .support-chat {
    right: 390px;
  }
}
/* The checkout header's search (shared/_checkout_steps) */
.checkout-search {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 28px;
  min-width: 0;
}

@media (max-width: 560px) {
  .site-header--checkout {
    position: relative;
  }
  .site-header--checkout .site-header__logo {
    /* Mark · steps · magnifier: the steps size to their content (pushed by
    the mark's auto margin), so they never run under the magnifier. */
    margin-right: auto;
  }
  .site-header--checkout .steps {
    flex: 0 1 auto;
    justify-content: flex-start;
    overflow: hidden;
  }
  .checkout-search {
    flex: none;
    order: 3;
    margin: 0;
    max-width: none;
  }
  /* The bottom bar holds the total, «К оплате» and its hint: the page
       ends above it, and the chat's button stands over it. */
  body.ctrl-checkout {
    padding-bottom: calc(190px + env(safe-area-inset-bottom));
  }
  body.ctrl-checkout .support-chat {
    bottom: calc(176px + env(safe-area-inset-bottom));
  }
  body.ctrl-checkout .order-summary__pay {
    margin-top: 10px;
    padding: 14px;
  }
  body.ctrl-checkout .order-summary__pay-hint {
    margin-top: 6px;
  }
  .checkout-search.site-header--searching {
    position: absolute;
    inset: 0;
    z-index: 20;
    margin: 0;
    padding: 0 16px;
    background: #0b0c0b;
  }
}
.filters__apply {
  margin-top: 12px;
}

.ozon-tab[hidden] {
  display: none;
}

.delivery-calc__frame[hidden] {
  display: none;
}
.delivery-calc__tabs {
  margin: 14px 0 4px;
}

@media (max-width: 400px) {
  .site-header--checkout .step__divider {
    width: 8px;
  }
}
/* «Часто покупают» on a phone: the note under the title, the cards a row
   to swipe, so the delivery choice is on the first screen. */
@media (max-width: 560px) {
  .xsell__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .xsell__grid {
    /* The row runs to the block's edges, but snaps to the title's line:
    without scroll-padding the first card snapped to the border. */
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    gap: 10px;
    margin: 13px -16px 0;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }
  .xsell__grid::-webkit-scrollbar {
    display: none;
  }
  .xsell__grid > .xsell-card {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
}
/* Telegram sign-in (OmniAuth's request phase, config/initializers/omniauth_telegram_page.rb):
   a page of its own, outside the layout, around Telegram's widget. */
.tg-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.tg-login__card {
  width: 100%;
  max-width: 420px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 28px 26px;
  box-sizing: border-box;
  text-align: center;
}
.tg-login__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 22px;
}
.tg-login__title {
  font: 800 22px/1.2 "Unbounded", sans-serif;
  color: #f7f9f6;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.tg-login__lede {
  font: 500 14px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 0 0 22px;
}
.tg-login__widget {
  min-height: 48px;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.tg-login__hint {
  font: 500 12px/1.5 "Manrope", system-ui, sans-serif;
  color: #80877e;
  margin: 0 0 18px;
}
.tg-login__back {
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #35d996;
  text-decoration: none;
}
.tg-login__back:hover {
  text-decoration: underline;
}

/* The store's own courier on the delivery step (CheckoutSettings). */
.own-delivery {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #0f7a5a;
  background: rgba(15, 122, 90, 0.18);
}
.own-delivery__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.own-delivery__title {
  font: 700 14px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.own-delivery__price {
  font: 700 15px "JetBrains Mono", monospace;
  color: #35d996;
  white-space: nowrap;
}
.own-delivery__note {
  margin: 6px 0 12px;
  font: 600 12.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #e0713a;
}
.own-delivery__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.own-delivery__form input[type=text] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e100e;
  color: #f2f4f1;
  font: 600 13.5px "Manrope", system-ui, sans-serif;
}

.order-summary__minimum {
  margin: 18px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(224, 113, 58, 0.12);
  color: #e0713a;
  font: 600 12.5px/1.5 "Manrope", system-ui, sans-serif;
}

/* The order's page while the bank's payment page is being asked for
   (payment_start_controller.js): a card with a passing shine and a bar. */
.payment-start {
  text-align: left;
}
.payment-start__card {
  position: relative;
  display: block;
  width: 92px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f7a5a 0%, #0a5a42 100%);
  box-shadow: 0 8px 24px rgba(15, 122, 90, 0.35);
  animation: payment-start-float 2.4s ease-in-out infinite;
}
.payment-start__chip {
  position: absolute;
  left: 12px;
  top: 20px;
  width: 18px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
}
.payment-start__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: payment-start-shine 1.6s ease-in-out infinite;
}
.payment-start__title {
  font: 800 24px/1.15 "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.025em;
  margin-top: 18px;
}
.payment-start__text {
  font: 500 12.5px/1.65 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 12px;
}
.payment-start__bar {
  height: 4px;
  border-radius: 2px;
  background: #181c18;
  overflow: hidden;
  margin-top: 16px;
}
.payment-start__bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: #35d996;
  animation: payment-start-bar 1.3s ease-in-out infinite;
}
.payment-start--failed .payment-start__card, .payment-start--failed .payment-start__shine, .payment-start--failed .payment-start__bar span {
  animation: none;
}
.payment-start--failed .payment-start__bar {
  display: none;
}
.payment-start--failed .payment-start__text {
  color: #e0713a;
}

@keyframes payment-start-float {
  50% {
    transform: translateY(-4px) rotate(-2deg);
  }
}
@keyframes payment-start-shine {
  to {
    transform: translateX(100%);
  }
}
@keyframes payment-start-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .payment-start__card, .payment-start__shine, .payment-start__bar span {
    animation-duration: 4s;
  }
}
/* «Сообщить о поступлении» in a listing (shared/_stock_notify_button) and its dialog. */
.add-btn--notify {
  background: #181c18;
  color: #9aa197;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.add-btn--notify:hover {
  color: #35d996;
  border-color: #35d996;
}

.stock-notify__name {
  /* A one-word name painted out of the dialog. */
  min-width: 0;
  overflow-wrap: anywhere;
  font: 600 13px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 8px;
}
.stock-notify__error {
  margin-top: 8px;
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #e0713a;
}
.stock-notify__done {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(15, 122, 90, 0.18);
  color: #35d996;
  font: 600 13px/1.5 "Manrope", system-ui, sans-serif;
}

/* «История» on a product's page, for staff (products/_history). */
.product-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-history__origin {
  font: 600 12.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  padding: 10px 12px;
  border-radius: 9px;
  background: #181c18;
}
.product-history__empty {
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.product-history__item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.product-history__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}
.product-history__when {
  font: 600 11.5px "JetBrains Mono", monospace;
  color: #80877e;
}
.product-history__who {
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.product-history__what {
  font: 700 12.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.product-history__change {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font: 500 12px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.product-history__field {
  color: #7e857c;
  min-width: 120px;
}
.product-history__was {
  text-decoration: line-through;
  color: #80877e;
}
.product-history__now {
  color: #f2f4f1;
}

/* «Отслеживание» on a customer's order page (orders/_tracking): the
   carrier's route, then the steps it reported. */
.order-tracking {
  margin: 18px 0;
  padding: 16px 18px 18px;
  border-radius: 13px;
  background: #101310;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.order-tracking__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.order-tracking__title {
  margin: 0;
  font: 800 16px "Unbounded", sans-serif;
  color: #f7f9f6;
  letter-spacing: -0.02em;
}
.order-tracking__carrier {
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #7e857c;
}
.order-tracking__eta {
  margin: 8px 0 0;
  font: 600 13px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
}
.order-tracking__number {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #181c18;
  text-decoration: none;
  font: 700 13px "JetBrains Mono", monospace;
  color: #f2f4f1;
  min-width: 0;
}
.order-tracking__code {
  /* A tracking number is one token and widened the phone. */
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-tracking__open {
  font: 600 12px "Manrope", system-ui, sans-serif;
  color: #35d996;
}
.order-tracking__route {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  position: relative;
}
.order-tracking__route::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.order-tracking__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}
.order-tracking__stage-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #101310;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
  z-index: 1;
}
.order-tracking__stage--done .order-tracking__stage-dot {
  background: #35d996;
  border-color: #35d996;
}
.order-tracking__stage--current .order-tracking__stage-dot {
  background: #0b0c0b;
  border: 4px solid #35d996;
  box-shadow: 0 0 0 4px rgba(15, 122, 90, 0.18);
}
.order-tracking__stage-label {
  font: 600 12px/1.3 "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.order-tracking__stage--done .order-tracking__stage-label {
  color: #f2f4f1;
}
.order-tracking__stage--current .order-tracking__stage-label {
  color: #35d996;
  font-weight: 700;
}
.order-tracking__stage-at {
  min-height: 14px;
  font: 500 11px "JetBrains Mono", monospace;
  color: #80877e;
}
.order-tracking__stage--current .order-tracking__stage-at {
  color: #35d996;
}
.order-tracking__log {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.order-tracking__day {
  margin: 12px 0 0;
  font: 700 11px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  color: #80877e;
}
.order-tracking__event {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.order-tracking__event-time {
  font: 600 12px "JetBrains Mono", monospace;
  color: #7e857c;
  padding-top: 1px;
}
.order-tracking__event-title {
  /* A carrier's line with no break widened the phone. */
  min-width: 0;
  overflow-wrap: anywhere;
  font: 600 13px/1.4 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.order-tracking__event--now .order-tracking__event-title {
  color: #f2f4f1;
}
.order-tracking__event-place {
  min-width: 0;
  overflow-wrap: anywhere;
  margin-top: 1px;
  font: 500 12px "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.order-tracking__empty {
  margin: 12px 0 0;
  font: 500 12.5px "Manrope", system-ui, sans-serif;
  color: #80877e;
}

@media (max-width: 640px) {
  .order-tracking {
    padding: 14px;
  }
  .order-tracking__stage-label {
    font-size: 11px;
  }
  .order-tracking__route::before {
    left: 10%;
    right: 10%;
  }
}
/* The customer's message drawn at once, before the server has it. */
.support-chat__msg--pending {
  opacity: 0.6;
}

/* Google's floating reCAPTCHA badge sat over the chat button on phones;
   hidden, with shared/_recaptcha_note on the protected forms as Google asks. */
.grecaptcha-badge {
  visibility: hidden !important;
}

.recaptcha-note {
  margin: 8px 0 0;
  font: 500 10.5px/1.5 "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

/* «+» the cart refused (cart_add_controller.js), and the search's bell. */
.cart-add--refused {
  background: rgba(224, 113, 58, 0.12) !important;
  color: #e0713a !important;
  font-size: 11px !important;
  width: auto !important;
  padding: 0 10px !important;
  white-space: nowrap;
}

.search-result__add--notify {
  background: #181c18;
  color: #9aa197;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}

.support-chat__recaptcha .recaptcha-note {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 10px;
}

/* Tap targets at least 24px high (axe target-size, PageSpeed on a phone).
   The padding grows the area a finger can hit, the same negative margin
   gives the room back, so nothing around them moves. */
.mobile-infobar__city, .mobile-infobar__phone, .shelf-toggle--text, .product-page__brand,
.site-header__breadcrumb a, .product-card__name, .filters__label {
  padding-block: 5px;
  margin-block: -5px;
}

.mobile-infobar__city, .product-page__brand, .site-header__breadcrumb a {
  display: inline-block;
}

/* The dashed underline drawn by the text, not the box — the box is now
   taller than the word. */
.mobile-infobar__city {
  border-bottom: 0;
  text-decoration: underline dashed;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.site-footer div > a:not(.footer-vk):not(.site-header__logo), .site-footer__legal a {
  padding: 5px 0;
}

/* A brand's sections above its goods (brands/show). */
.brand-sections {
  margin-top: 18px;
}
.brand-sections .category-grid {
  margin-top: 10px;
}

/* «Подпишитесь на Telegram — N бонусов» (telegram_subscriptions/show) */
.tg-bonus {
  max-width: 720px;
  margin: 0 auto;
}
.tg-bonus__hero {
  padding: 28px;
  border-radius: 16px;
  background: radial-gradient(600px 300px at 100% 100%, rgba(15, 122, 90, 0.45), transparent 60%), #101310;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.tg-bonus__amount {
  font: 800 44px/1 "Unbounded", sans-serif;
  color: #35d996;
  letter-spacing: -0.03em;
}
.tg-bonus__title {
  font: 800 26px/1.15 "Unbounded", sans-serif;
  color: #f7f9f6;
  margin: 14px 0 0;
  letter-spacing: -0.02em;
}
.tg-bonus__lead {
  font: 500 14px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 10px 0 0;
}
.tg-bonus__steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}
.tg-bonus__steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 60px;
  border-radius: 14px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.tg-bonus__steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 122, 90, 0.18);
  color: #35d996;
  font: 800 13px "JetBrains Mono", monospace;
}
.tg-bonus__step-title {
  font: 700 15px "Manrope", system-ui, sans-serif;
  color: #f7f9f6;
  margin-bottom: 10px;
}
.tg-bonus__hint {
  font: 500 13px/1.6 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin: 0 0 12px;
}
.tg-bonus__note {
  font: 500 12px/1.6 "Manrope", system-ui, sans-serif;
  color: #80877e;
  margin: 14px 0 0;
}
.tg-bonus__done {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(15, 122, 90, 0.18);
  color: #35d996;
  font: 600 14px "Manrope", system-ui, sans-serif;
}

/* «Как добраться до пункта выдачи» (orders/_pickup_route) */
.pickup-route {
  margin: 18px 0;
  padding: 18px;
  border-radius: 14px;
  background: #101310;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.pickup-route__title {
  font: 800 17px "Unbounded", sans-serif;
  color: #f7f9f6;
  margin: 0;
}
.pickup-route__name {
  font: 700 13.5px "Manrope", system-ui, sans-serif;
  color: #f2f4f1;
  margin-top: 8px;
}
.pickup-route__address {
  font: 500 13px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
  margin-top: 2px;
}
.pickup-route__map {
  display: block;
  width: 100%;
  height: 260px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6);
}
.pickup-route__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pickup-route__hint {
  font: 500 12px "Manrope", system-ui, sans-serif;
  color: #80877e;
  margin: 10px 0 0;
}

/* Chrome paints a field it filled itself (a saved e-mail and password)
   light blue, whatever the page's colours: a white box in the dark sign-in
   window. An inset shadow is the one thing it lets a page paint over it. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: #f2f4f1;
  -webkit-box-shadow: 0 0 0 1000px #181c18 inset;
  caret-color: #f2f4f1;
  transition: background-color 9999s ease-out 0s;
}

/* A model's modifications on its product page (products/_variants). */
.variants {
  margin: 14px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.variants__title {
  margin: 0;
  font: 700 12px "Manrope", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa197;
}
.variants__current {
  /* The chosen value sits in the heading, and a word with no break widened the phone. */
  color: #f2f4f1;
  text-transform: none;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.variants__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variants__option {
  min-width: 96px;
  padding: 9px 13px;
  border-radius: 10px;
  background: #141714;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f4f1;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.variants__option:hover {
  border-color: #35d996;
  color: #f2f4f1;
}
.variants__option--on {
  border: 2px solid #35d996;
  background: rgba(15, 122, 90, 0.18);
}
.variants__option--out {
  opacity: 0.6;
}
.variants__option--more {
  justify-content: center;
  color: #35d996;
  border-style: dashed;
}
.variants__all {
  margin-top: 4px;
}
.variants__all summary {
  cursor: pointer;
  font: 700 12px "Manrope", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa197;
}
.variants__table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font: 500 13px/1.4 "Manrope", system-ui, sans-serif;
}
.variants__table th {
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  color: #7e857c;
}
.variants__table td {
  padding: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.variants__table a {
  color: #f2f4f1;
  text-decoration: none;
  font-weight: 700;
}
.variants__table a:hover {
  color: #35d996;
}
.variants__row--on {
  background: rgba(15, 122, 90, 0.18);
}
.variants__mono {
  font-family: "JetBrains Mono", monospace;
  color: #9aa197;
}
.variants__price {
  text-align: right;
}
.variants__stock {
  color: #35d996;
}
.variants__stock--out {
  color: #e0a458;
}

@media (max-width: 640px) {
  .variants__table th:nth-child(2), .variants__table td:nth-child(2) {
    display: none;
  }
}
.variants__value {
  /* A one-word size widened the phone past the button. */
  font: 700 13.5px "JetBrains Mono", monospace;
  overflow-wrap: anywhere;
}
.variants__meta {
  font: 600 11.5px "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.variants__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.variants__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  box-sizing: border-box;
  background: var(--swatch, #141714);
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #f2f4f1;
}
.variants__swatch:hover {
  border-color: #f2f4f1;
}
.variants__swatch--on {
  outline: 2px solid #35d996;
  outline-offset: 3px;
}
.variants__swatch--out {
  opacity: 0.4;
}
.variants__swatch--clear {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 5px), linear-gradient(#9aa3ad, #d5dbe2);
}
.variants__swatch--split {
  background: linear-gradient(135deg, #1c1c1c 50%, #f4f4f4 50%);
}
.variants__swatch--named {
  width: auto;
  min-width: 28px;
  padding: 0 8px;
  border-radius: 14px;
}
.variants__swatch-name {
  font: 700 9px "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  color: #f2f4f1;
}

.cookie-bar {
  position: fixed;
  z-index: 88;
  left: 16px;
  bottom: 16px;
  width: min(440px, 100vw - 32px);
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: #101310;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.cookie-bar__text {
  margin: 0;
  font: 500 13px/1.5 "Manrope", system-ui, sans-serif;
  color: #9aa197;
}
.cookie-bar__text a {
  color: #35d996;
}
.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cookie-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.support-chat__legal {
  margin: 0;
  padding: 0 14px 10px;
  font: 500 10px/1.45 "Manrope", system-ui, sans-serif;
  color: #80877e;
}
.support-chat__legal a {
  color: #7e857c;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-bar {
    right: 16px;
    width: auto;
    bottom: 92px;
  }
}
/* iOS zooms the page when a focused field is under 16px, and the zoomed
   page then sits past the screen. The search box already uses 16. */
@media (max-width: 900px) {
  .field input,
  .field textarea,
  .field select,
  .qty-stepper input,
  .delivery-search__field input,
  .support-chat__input,
  .object-line__qty,
  .range-field,
  .delivery-calc__search input,
  .city-picker__input,
  .sort-select,
  .error-page__search input,
  .order-summary__promo input[type=text],
  .cart-modal__promo input[type=text],
  .ozon-search__field input,
  .own-delivery__form input[type=text],
  .search-form input {
    font-size: 16px;
  }
}
