:root {
  --bg: #f3f6f9;
  --bg-elevated: #ffffff;
  --bg-panel: #ffffff;
  --cyan: #00acd7;
  --cyan-dark: #0099c7;
  --cyan-soft: #33c6ef;
  --text: #1b2228;
  --text-muted: #66717c;
  --line: rgba(15, 30, 40, 0.14);
  --danger: #e53935;
  --radius: 10px;
  --page-pad: clamp(20px, 4vw, 72px);
  --header-sticky-height: 130px;
  --catalog-toolbar-height: 0px;
  --sticky-offset: var(--header-sticky-height);
  --font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sticky-offset) + 8px);
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

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

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

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

.container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--page-pad);
  box-sizing: border-box;
}

/* Header */
.brand-banner {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 4px;
  background: #00acd7;
  color: #fff;
  text-align: center;
  padding: 20px var(--page-pad) 16px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 118px;
}

.brand-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
}

.brand-stars {
  position: relative;
  height: 88px;
  width: 100%;
  justify-self: stretch;
  align-self: center;
}

.brand-stars--left,
.brand-stars--right {
  margin: 0;
  justify-self: stretch;
}

.brand-stars__item {
  position: absolute;
  color: #fff;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: twinkle 2.8s ease-in-out infinite;
  will-change: opacity;
  transform: translateZ(0);
}

.brand-stars__item--lg { font-size: clamp(1.35rem, 2.4vw, 2rem); }
.brand-stars__item--md { font-size: clamp(1rem, 1.7vw, 1.4rem); animation-delay: 0.45s; }
.brand-stars__item--sm { font-size: clamp(0.8rem, 1.2vw, 1.05rem); animation-delay: 0.9s; opacity: 0.95; }
.brand-stars__item--xs { font-size: clamp(0.65rem, 1vw, 0.85rem); animation-delay: 1.35s; opacity: 0.85; }
.brand-stars__item--tiny { font-size: clamp(0.5rem, 0.85vw, 0.7rem); animation-delay: 1.8s; opacity: 0.75; }

/* Левое поле — звёзды на всю ширину колонки */
.brand-stars--left .brand-stars__item:nth-child(1)  { left: 4%;  top: 8%;  }
.brand-stars--left .brand-stars__item:nth-child(2)  { left: 22%; top: 42%; }
.brand-stars--left .brand-stars__item:nth-child(3)  { left: 38%; top: 12%; }
.brand-stars--left .brand-stars__item:nth-child(4)  { left: 52%; top: 58%; }
.brand-stars--left .brand-stars__item:nth-child(5)  { left: 68%; top: 22%; }
.brand-stars--left .brand-stars__item:nth-child(6)  { left: 82%; top: 48%; }
.brand-stars--left .brand-stars__item:nth-child(7)  { left: 12%; top: 72%; }
.brand-stars--left .brand-stars__item:nth-child(8)  { left: 30%; top: 28%; }
.brand-stars--left .brand-stars__item:nth-child(9)  { left: 46%; top: 78%; }
.brand-stars--left .brand-stars__item:nth-child(10) { left: 62%; top: 6%;  }
.brand-stars--left .brand-stars__item:nth-child(11) { left: 76%; top: 70%; }
.brand-stars--left .brand-stars__item:nth-child(12) { left: 90%; top: 32%; }

/* Правое поле — зеркально */
.brand-stars--right .brand-stars__item:nth-child(1)  { right: 4%;  top: 8%;  }
.brand-stars--right .brand-stars__item:nth-child(2)  { right: 22%; top: 42%; }
.brand-stars--right .brand-stars__item:nth-child(3)  { right: 38%; top: 12%; }
.brand-stars--right .brand-stars__item:nth-child(4)  { right: 52%; top: 58%; }
.brand-stars--right .brand-stars__item:nth-child(5)  { right: 68%; top: 22%; }
.brand-stars--right .brand-stars__item:nth-child(6)  { right: 82%; top: 48%; }
.brand-stars--right .brand-stars__item:nth-child(7)  { right: 12%; top: 72%; }
.brand-stars--right .brand-stars__item:nth-child(8)  { right: 30%; top: 28%; }
.brand-stars--right .brand-stars__item:nth-child(9)  { right: 46%; top: 78%; }
.brand-stars--right .brand-stars__item:nth-child(10) { right: 62%; top: 6%;  }
.brand-stars--right .brand-stars__item:nth-child(11) { right: 76%; top: 70%; }
.brand-stars--right .brand-stars__item:nth-child(12) { right: 90%; top: 32%; }

.brand-banner__title {
  margin: 0;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}

.brand-banner__tagline {
  margin: 6px 0 0;
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  font-weight: 700;
  opacity: 0.98;
  display: block;
}

/* City selector */
.city-selector {
  position: relative;
  z-index: 30;
}

.city-selector.is-open {
  z-index: 60;
}

.city-selector__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(280px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  padding: 10px;
  color: var(--text);
  z-index: 70;
}

.city-selector__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  box-shadow: none;
}

.city-selector__toggle:focus-visible {
  outline: 3px solid rgba(0, 172, 215, 0.55);
  outline-offset: 2px;
}

.city-selector__toggle:hover,
.city-selector.is-open .city-selector__toggle {
  background: #f3f8fb;
  color: #111;
  border-color: #111;
}

.city-selector__arrow {
  font-size: 0.75rem;
  color: #111;
  transition: transform 0.2s ease;
}

.city-selector.is-open .city-selector__arrow {
  transform: rotate(180deg);
}

.city-selector__search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

.city-selector__search input:focus {
  border-color: var(--cyan);
}

.city-selector__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}

.city-selector__item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-selector__item-name {
  font-weight: 600;
}

.city-selector__item-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.city-selector__hint {
  margin: 10px 0 0;
  padding: 0 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.city-selector__hint-city {
  white-space: nowrap;
}

.city-selector__item:hover,
.city-selector__item.is-active {
  background: rgba(0, 172, 215, 0.12);
  color: var(--text);
}

.city-selector__empty {
  margin: 8px 0 0;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  width: 100%;
  box-shadow: 0 2px 12px rgba(15, 30, 40, 0.08);
}

.product-card__buy {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.product-card__unavailable {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #b71c1c;
  font-weight: 600;
}

.product-card__actions {
  margin-top: auto;
}

.product-buy-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.product-buy-row__cart {
  width: auto !important;
  min-width: 140px;
  flex: 0 0 auto;
}

.product-buy-row .qty {
  flex: 0 0 auto;
}

.topbar {
  position: relative;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: #1b2228;
}

.topbar:has(.city-selector.is-open) {
  z-index: 50;
}

.topbar a {
  color: #1b2228;
}

.topbar a:hover,
.sort-bar a:hover,
.sidebar a:hover {
  color: var(--cyan);
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  min-height: 64px;
  padding-block: 12px;
  font-size: 0.95rem;
}

.topbar__left,
.topbar__right,
.topbar__center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar__left {
  justify-content: flex-start;
}

.topbar__center {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.topbar__right {
  justify-content: flex-end;
}

.account-bar {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.account-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 8px;
  min-height: 48px;
}

.account-bar__contact {
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.account-bar__slogan {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1b2228;
}

.account-bar__phone {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1b2228;
}

.account-bar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.topbar__slogan {
  font-weight: 700;
  color: #1b2228;
  line-height: 1.25;
}

.topbar__phone {
  font-weight: 600;
  color: #1b2228;
}

.pill-link,
.pill-link--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}

.pill-link:focus-visible,
.pill-link--button:focus-visible,
.auth-link:focus-visible,
.filter-chip:focus-visible,
.pagination a:focus-visible {
  outline: 3px solid rgba(0, 172, 215, 0.55);
  outline-offset: 2px;
}

.pill-link:hover,
.pill-link--button:hover {
  border-color: #111;
  color: #111;
  background: #f3f8fb;
}

.pill-link--max__short {
  display: none;
}

.nav-back-wrap {
  margin: 0 0 14px;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.nav-back:hover {
  background: #f3f8fb;
  color: #111;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  box-shadow: none;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #111;
}

.cart-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  line-height: 1;
  color: #111;
}

.cart-link__svg {
  display: block;
  flex-shrink: 0;
}

.link-accent {
  color: var(--cyan);
}

.search-row {
  position: relative;
  z-index: 10;
  background: var(--cyan);
  padding: 14px 0;
}

.search-row__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  min-height: 48px;
  box-shadow: none;
  position: relative;
  gap: 4px;
}

.search-form__icon {
  color: #333;
  flex: 0 0 auto;
}

.search-form input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  color: #111;
  background: transparent;
  padding: 8px;
}

.search-form input:focus-visible {
  outline: none;
}

.search-form:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.search-form__submit {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #0f6f86;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.search-form__submit:hover {
  background: #0c5c70;
}

.search-form__submit:focus-visible {
  outline: 3px solid rgba(15, 111, 134, 0.45);
  outline-offset: 2px;
}

.search-form input::placeholder {
  color: #8a939b;
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 30, 40, 0.18);
  max-height: min(360px, 55vh);
  overflow: auto;
  z-index: 1200;
  padding: 6px;
}

.search-suggest[hidden] {
  display: none !important;
}

.search-suggest__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #1b2228;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.search-suggest__item:hover,
.search-suggest__item.is-active {
  background: rgba(0, 172, 215, 0.12);
}

.search-suggest__name {
  font-weight: 700;
  line-height: 1.3;
}

.search-suggest__meta {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.search-suggest__label {
  padding: 8px 12px 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-suggest__item--history .search-suggest__meta {
  font-weight: 500;
}

.search-suggest__empty {
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.favorites-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1b2228;
  font-weight: 700;
  white-space: nowrap;
}

.favorites-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  line-height: 1;
}

.favorites-link svg,
.favorites-link__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #1b2228;
  stroke-width: 2;
  display: block;
}

.search-row__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-row__cart {
  display: none;
}

.favorites-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1b2228;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

/* Layout */
.page {
  width: 100%;
  padding: 16px 0 48px;
  min-height: 50vh;
}

.layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
  width: 100%;
}

.layout.is-loading {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.sidebar {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 0;
  position: sticky;
  top: calc(var(--sticky-offset) + 12px);
  max-height: calc(100vh - var(--sticky-offset) - 24px);
  overflow: auto;
  z-index: 1;
}

.sidebar__title {
  margin: 0;
  padding: 8px 16px 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.sidebar a {
  display: block;
  padding: 10px 16px;
  color: #44505a;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar a.is-active,
.sidebar a:hover {
  background: rgba(0, 183, 232, 0.1);
  border-left-color: var(--cyan);
  color: #0f1720;
}

.menu-toggle {
  display: none;
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
}

.catalog-toolbar {
  position: sticky;
  top: calc(var(--header-sticky-height) - 2px);
  z-index: 40;
  background: var(--bg);
  padding: 8px 0 6px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  height: 6px;
  background: var(--bg);
  pointer-events: none;
}

.catalog-toolbar .sort-bar {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  align-items: center;
  row-gap: 6px;
}

.sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sort-bar a {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.2;
  min-height: 0;
}

.sort-bar a.is-active {
  color: var(--cyan);
  font-weight: 700;
}

.sort-bar__filter {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sort-bar__filter.is-active {
  color: var(--cyan) !important;
  font-weight: 700;
  background: transparent;
}

.sort-bar__reset {
  margin-left: auto;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: underline;
  white-space: nowrap;
}

.city-static {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 600;
}

.form-hint {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.address-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.address-list__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.address-list__text {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.address-list__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.address-list__btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.address-list__btn--danger:hover {
  color: var(--danger);
}

.form-group--checkbox {
  margin-top: 4px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.auth-hint {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 172, 215, 0.35);
  border-radius: 12px;
  background: #e8f7fb;
  color: #1b2228;
}

.auth-hint p {
  margin: 0;
}

.auth-hint p + p {
  margin-top: 8px;
}

.delivery-toggle {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.delivery-toggle legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.delivery-toggle__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.delivery-toggle__option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
}

.delivery-toggle__option:has(input:checked) {
  background: #e8f7fb;
  border-color: var(--cyan);
  color: #0a5f73;
}

.delivery-toggle__option input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.delivery-toggle__option:has(input:checked) input {
  border-color: var(--cyan);
}

.delivery-toggle__option input::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
}

.delivery-toggle__option input:checked::after {
  opacity: 1;
}

.delivery-toggle__option span {
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.filter-bar {
  margin: 0 0 20px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
}

.filter-bar__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 28px;
}

.filter-bar__reset {
  font-weight: 700;
  color: var(--cyan);
  text-decoration: underline;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.filter-bar__reset.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.filter-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  line-height: 1.2;
  box-sizing: border-box;
}

.filter-chip:hover {
  background: #f3f8fb;
}

.filter-chip.is-active {
  background: #e8f7fb;
  border-color: var(--cyan);
  color: #0a5f73;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.pagination a:hover {
  background: #f3f8fb;
}

.category-block {
  margin-bottom: 40px;
  padding-bottom: 8px;
  animation: fadeUp 0.45s ease both;
  scroll-margin-top: calc(var(--sticky-offset) + 8px);
}

.category-block + .category-block {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.category-block__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
}

.category-block__line {
  height: 2px;
  background: var(--line);
  margin-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
  width: 100%;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(15, 30, 40, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 183, 232, 0.55);
  box-shadow: 0 10px 24px rgba(15, 30, 40, 0.1);
}

.product-card__media {
  position: relative;
  display: block;
}

.product-card__image {
  aspect-ratio: 1;
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text-muted);
  font-weight: 600;
}

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

.product-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.product-card__title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.product-card__title-row .product-card__name {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.product-card__fav,
.product-card__media > .fav-heart {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: 3;
  margin: 0;
  padding: 0;
  line-height: 0;
  flex: 0 0 auto;
  align-self: flex-start;
}

.product-card__title-row .fav-heart {
  width: 32px;
  height: 32px;
}

.product-card__title-row .fav-heart svg {
  width: 16px;
  height: 16px;
}

.badge-promo-img {
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
  margin-left: 0;
}

.badge-promo-img--detail {
  width: 80px;
  height: 80px;
  margin-left: 0;
}

.fav-heart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(15, 30, 40, 0.18);
  color: #8b949c;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.fav-heart svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  opacity: 0.35;
}

.fav-heart:hover {
  transform: scale(1.06);
  color: #c62828;
  background: #fff;
}

.fav-heart:hover svg {
  opacity: 1;
}

.fav-heart.is-active {
  color: #c62828;
}

.fav-heart.is-active svg {
  opacity: 1;
}

.product-detail__image .product-card__fav,
.product-detail__image > .fav-heart,
.product-detail__media .product-card__fav,
.product-detail__media > .fav-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.product-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.5em;
}

.product-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 3.2em;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.product-card__meta--status {
  flex-wrap: nowrap;
  overflow: visible;
}

.product-card__meta--status .status-pill {
  flex: 0 0 auto;
}

.product-card__meta--price {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-height: 0;
  margin-top: 0;
}

.product-card__rating {
  margin-left: auto;
}

.price-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
  padding-top: 4px;
}

.price {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.15;
  min-height: 1.15em;
}

.price-old {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.2;
  min-height: 1.2em;
}

.price-old:not(:empty) {
  text-decoration: line-through;
}

.badge-promo {
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.rating {
  color: #ffc107;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.rating__count {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.product-reviews {
  margin-top: 8px;
}

.review-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(15, 30, 40, 0.04);
}

.review-form__title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 1.05rem;
}

.review-form__submit {
  width: auto;
  min-width: 180px;
}

.review-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.review-form__delete {
  background: transparent;
  color: var(--danger, #d64545);
  border: 1px solid currentColor;
  font-weight: 600;
}

.review-form__delete:hover {
  background: rgba(214, 69, 69, 0.08);
}

.review-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.review-form textarea:focus {
  outline: 3px solid rgba(0, 172, 215, 0.35);
  border-color: var(--cyan);
}

.star-rating {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.star-rating__legend {
  margin-bottom: 8px;
  font-weight: 700;
}

.star-rating__stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-rating__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating__label {
  cursor: pointer;
  font-size: 1.85rem;
  line-height: 1;
  color: #d5dde3;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating__label:hover,
.star-rating__label:hover ~ .star-rating__label,
.star-rating__input:checked ~ .star-rating__label,
.star-rating__input:focus-visible ~ .star-rating__label {
  color: #ffc107;
}

.star-rating__label:hover {
  transform: scale(1.08);
}

.star-rating__input:focus-visible + .star-rating__label {
  outline: 3px solid rgba(0, 172, 215, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.review-login-hint,
.review-empty {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.review-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.review-card__author {
  font-weight: 700;
  color: #1b2228;
}

.review-card__stars {
  display: inline-flex;
  gap: 1px;
  letter-spacing: 0;
}

.review-card__star {
  color: #d5dde3;
  font-size: 1rem;
  line-height: 1;
}

.review-card__star.is-on {
  color: #ffc107;
}

.review-card__date {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.review-card__delete-form {
  margin: 0;
}

.review-card__delete {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-card__delete:hover {
  color: var(--danger, #d64545);
}

.review-card__text {
  margin: 0;
  white-space: pre-line;
  line-height: 1.45;
  color: #1b2228;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty button {
  width: 44px;
  height: 44px;
  border: 0;
  background: #eef3f7;
  color: #1b2228;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
}

.qty button:focus-visible,
.qty input:focus-visible {
  outline: 3px solid rgba(0, 172, 215, 0.55);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

.qty input {
  width: 52px;
  height: 44px;
  border: 0;
  text-align: center;
  background: #fff;
  color: #1b2228;
  font-size: 1rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--cyan);
  color: #041018;
  width: 100%;
}

.btn-primary:hover {
  background: var(--cyan-soft);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-fav {
  border: 2px solid #111;
  color: #111;
  background: #fff;
}

.btn-fav.is-active {
  border-color: #c62828;
  color: #c62828;
  background: #fff5f5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: none;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3f7;
  color: #111;
  border: 1px solid var(--line);
  white-space: nowrap;
  word-break: keep-all;
}

.status-pill--in-stock {
  background: #c8e6c9;
  color: #111;
  border-color: #a5d6a7;
}

.status-pill--in-transit {
  background: #ffe082;
  color: #111;
  border-color: #ffd54f;
}

.status-pill--out-of-stock {
  background: #ffcdd2;
  color: #111;
  border-color: #ef9a9a;
}

.status-pill--on-order {
  background: #b3e5fc;
  color: #111;
  border-color: #81d4fa;
}

.qty.is-disabled,
.qty.is-disabled button,
.qty.is-disabled input {
  opacity: 0.55;
  cursor: not-allowed;
}

.qty button:disabled,
.qty input:disabled {
  cursor: not-allowed;
  color: #7a8690;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(15, 30, 40, 0.04);
}

.product-detail__media {
  position: relative;
}

.product-detail__image,
.product-gallery__main {
  position: relative;
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-detail__image--empty {
  color: var(--text-muted);
}

.product-gallery__main {
  width: 100%;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

.product-detail__image img,
.product-gallery__main img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.product-gallery__thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f7;
  cursor: pointer;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  border-color: var(--cyan);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 28, 0.82);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 900px);
  display: grid;
  place-items: center;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: min(82vh, 820px);
  object-fit: contain;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #123;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-lightbox__close {
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 2;
}

.gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.gallery-lightbox__nav--prev {
  left: 8px;
}

.gallery-lightbox__nav--next {
  right: 8px;
}

.gallery-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 12px;
  }

  .gallery-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .gallery-lightbox__nav--prev {
    left: 0;
  }

  .gallery-lightbox__nav--next {
    right: 0;
  }

  .gallery-lightbox__close {
    top: -4px;
    right: 0;
  }

  .product-gallery__main img {
    min-height: 240px;
  }
}

.section-title {
  margin: 28px 0 14px;
  font-size: 1.4rem;
}

.messages {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.messages li {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(0, 183, 232, 0.15);
  border: 1px solid rgba(0, 183, 232, 0.35);
}

.messages .error,
.messages .errorlist {
  background: rgba(229, 57, 53, 0.15);
  border-color: rgba(229, 57, 53, 0.4);
}

/* Forms / cart */
.form-card,
.cart-table-wrap,
.content-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2366717c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.custom-select {
  position: relative;
}

.custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.custom-select__trigger:focus-visible {
  outline: 1px solid var(--cyan);
  border-color: var(--cyan);
}

.custom-select.is-open .custom-select__trigger {
  border-color: var(--cyan);
}

.custom-select__chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.custom-select.is-open .custom-select__chevron {
  transform: rotate(180deg);
}

.custom-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 30, 40, 0.12);
  max-height: 240px;
  overflow: auto;
}

.custom-select__option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.custom-select__option:hover,
.custom-select__option.is-active {
  background: var(--cyan);
  color: #fff;
}

.form-input:focus {
  outline: 1px solid var(--cyan);
  border-color: var(--cyan);
}

.form-input.is-invalid {
  border-color: var(--danger);
}

.field-error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.field-error[hidden] {
  display: none !important;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field .form-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #66717c;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0;
}

.password-toggle:hover {
  color: var(--cyan);
  background: rgba(0, 172, 215, 0.08);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
}


.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

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

.cart-table th:nth-child(1),
.cart-table td:nth-child(1) {
  width: auto;
}

.cart-table th:nth-child(2),
.cart-table td:nth-child(2) {
  width: 120px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cart-table th:nth-child(3),
.cart-table td:nth-child(3) {
  width: 160px;
}

.cart-table th:nth-child(4),
.cart-table td:nth-child(4) {
  width: 140px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cart-table th:nth-child(5),
.cart-table td:nth-child(5) {
  width: 110px;
  text-align: right;
}

.cart-total {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-height: 1.5em;
}

.cart-qty-form {
  display: inline-flex;
  align-items: center;
}

.cart-qty-form .qty {
  background: #fff;
}

.cart-qty-input {
  width: 52px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.contacts-logo {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: 12px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts-list li {
  margin-bottom: 12px;
}

.contacts-list strong {
  color: var(--cyan);
}

/* Footer — в стиле сайта */
.site-footer {
  width: 100%;
  margin-top: 48px;
  background: linear-gradient(180deg, #eaf7fb 0%, #ffffff 42%);
  color: var(--text);
  border-top: none;
}

.site-footer__banner {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg, #0099c7 0%, #00acd7 50%, #33c6ef 100%);
  color: #fff;
  padding: 16px var(--page-pad);
  overflow: hidden;
  position: relative;
  min-height: 64px;
}

.site-footer__banner-title {
  margin: 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  padding-inline: 12px;
}

.site-footer__stars {
  position: relative;
  height: 48px;
  width: 100%;
  justify-self: stretch;
}

.site-footer__stars--left,
.site-footer__stars--right {
  margin: 0;
  justify-self: stretch;
}

.site-footer__star {
  position: absolute;
  color: #fff;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: twinkle 2.8s ease-in-out infinite;
  will-change: opacity;
  transform: translateZ(0);
}

.site-footer__star--lg { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.site-footer__star--md { font-size: clamp(0.9rem, 1.4vw, 1.15rem); animation-delay: 0.45s; }
.site-footer__star--sm { font-size: clamp(0.75rem, 1.1vw, 0.95rem); animation-delay: 0.9s; opacity: 0.95; }
.site-footer__star--xs { font-size: clamp(0.6rem, 0.95vw, 0.8rem); animation-delay: 1.35s; opacity: 0.85; }
.site-footer__star--tiny { font-size: clamp(0.48rem, 0.8vw, 0.65rem); animation-delay: 1.8s; opacity: 0.75; }

.site-footer__stars--left .site-footer__star:nth-child(1)  { left: 4%;  top: 10%; }
.site-footer__stars--left .site-footer__star:nth-child(2)  { left: 22%; top: 48%; }
.site-footer__stars--left .site-footer__star:nth-child(3)  { left: 38%; top: 8%;  }
.site-footer__stars--left .site-footer__star:nth-child(4)  { left: 52%; top: 58%; }
.site-footer__stars--left .site-footer__star:nth-child(5)  { left: 68%; top: 18%; }
.site-footer__stars--left .site-footer__star:nth-child(6)  { left: 82%; top: 52%; }
.site-footer__stars--left .site-footer__star:nth-child(7)  { left: 12%; top: 70%; }
.site-footer__stars--left .site-footer__star:nth-child(8)  { left: 30%; top: 28%; }
.site-footer__stars--left .site-footer__star:nth-child(9)  { left: 46%; top: 78%; }
.site-footer__stars--left .site-footer__star:nth-child(10) { left: 62%; top: 4%;  }
.site-footer__stars--left .site-footer__star:nth-child(11) { left: 76%; top: 68%; }
.site-footer__stars--left .site-footer__star:nth-child(12) { left: 90%; top: 30%; }

.site-footer__stars--right .site-footer__star:nth-child(1)  { right: 4%;  top: 10%; }
.site-footer__stars--right .site-footer__star:nth-child(2)  { right: 22%; top: 48%; }
.site-footer__stars--right .site-footer__star:nth-child(3)  { right: 38%; top: 8%;  }
.site-footer__stars--right .site-footer__star:nth-child(4)  { right: 52%; top: 58%; }
.site-footer__stars--right .site-footer__star:nth-child(5)  { right: 68%; top: 18%; }
.site-footer__stars--right .site-footer__star:nth-child(6)  { right: 82%; top: 52%; }
.site-footer__stars--right .site-footer__star:nth-child(7)  { right: 12%; top: 70%; }
.site-footer__stars--right .site-footer__star:nth-child(8)  { right: 30%; top: 28%; }
.site-footer__stars--right .site-footer__star:nth-child(9)  { right: 46%; top: 78%; }
.site-footer__stars--right .site-footer__star:nth-child(10) { right: 62%; top: 4%;  }
.site-footer__stars--right .site-footer__star:nth-child(11) { right: 76%; top: 68%; }
.site-footer__stars--right .site-footer__star:nth-child(12) { right: 90%; top: 30%; }

.site-footer__inner {
  padding-top: 28px;
  padding-bottom: 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.site-footer__col {
  min-width: 0;
}

.site-footer__heading {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0a5f73;
}

.site-footer__company {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1b2228;
}

.site-footer__text,
.site-footer__meta {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: #334048;
}

.site-footer__meta {
  color: var(--text-muted);
  font-weight: 600;
}

.site-footer__link {
  color: #0a5f73;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__link:hover {
  color: var(--cyan-dark);
}

.site-footer__link--max {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid #0a5f73;
  border-radius: 999px;
  text-decoration: none;
  background: #fff;
}

.site-footer__link--max:hover {
  background: #e8f7fb;
}

.site-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer__nav .site-footer__link {
  text-decoration: none;
  font-size: 1.02rem;
}

.site-footer__nav .site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__slogan {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 172, 215, 0.28);
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
  font-style: italic;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #10262e;
  border: 1px solid var(--cyan);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.error-page h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin: 0;
  color: var(--cyan);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: none;
  }

  .sidebar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    position: static;
    max-height: none;
    overflow: visible;
    top: auto;
    width: 100%;
    margin: 0 0 8px;
    padding: 4px 0 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .sidebar.is-open {
    display: flex;
  }

  .sidebar__title {
    display: none;
  }

  .sidebar a {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
  }

  .sidebar a.is-active,
  .sidebar a:hover {
    color: #0a5f73;
    background: transparent;
  }

  .catalog-toolbar {
    margin-bottom: 8px;
  }

  .catalog-toolbar .sort-bar,
  .sort-bar {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 0;
    font-size: 0.82rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas: "media content actions";
    gap: 8px 8px;
    padding: 8px;
    align-items: center;
  }

  .product-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(15, 30, 40, 0.04);
  }

  .product-card__media {
    grid-area: media;
    align-self: start;
  }

  .product-card__content {
    grid-area: content;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
  }

  .product-card__actions {
    grid-area: actions;
    align-self: center;
    margin-top: 0;
  }

  .product-card__image {
    width: 72px;
    height: 72px;
    aspect-ratio: auto;
    font-size: 0.75rem;
  }

  .product-card__title-row {
    gap: 4px;
    align-items: flex-start;
  }

  .product-card__title-row .product-card__name {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 2px;
  }

  .product-card__title-row .product-card__fav {
    flex: 0 0 28px;
    width: 28px;
    position: static;
  }

  .product-card__title-row .fav-heart {
    width: 28px;
    height: 28px;
    box-shadow: 0 1px 4px rgba(15, 30, 40, 0.15);
  }

  .product-card__title-row .fav-heart svg {
    width: 15px;
    height: 15px;
  }

  .product-card__name {
    font-size: 0.92rem;
    margin: 0;
    min-height: 0;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-card__desc {
    font-size: 0.74rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 0;
    margin: 0;
  }

  .product-card__meta--price {
    margin-top: 2px;
    min-height: 0;
    gap: 4px 6px;
  }

  .product-card__meta--status {
    display: none;
  }

  .product-card__rating {
    margin-left: 0;
    font-size: 0.85rem;
  }

  .price {
    font-size: 0.95rem;
  }

  .badge-promo-img {
    width: 36px;
    height: 36px;
  }

  .product-card__buy {
    margin: 0;
  }

  .product-card__actions .qty {
    border-radius: 8px;
  }

  .product-card__actions .qty button {
    width: 30px;
    height: 36px;
    font-size: 1rem;
  }

  .product-card__actions .qty input {
    width: 32px;
    height: 36px;
    font-size: 0.9rem;
  }

  .category-block {
    margin-bottom: 22px;
  }

  .category-block__title {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .category-block__line {
    margin-bottom: 12px;
  }

  .product-detail,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  /* Компактная липкая шапка на мобиле */
  :root {
    --header-sticky-height: 100px;
  }

  .header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(15, 30, 40, 0.12);
  }

  .brand-banner {
    display: block;
    position: relative;
    min-height: 0;
    padding: 18px 10px 18px;
    grid-template-columns: none;
    overflow: visible;
  }

  .brand-banner__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 4px 8px;
  }

  .brand-banner__title {
    width: 100%;
    margin: 0;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(1.55rem, 7.8vw, 2.35rem);
    letter-spacing: 0.04em;
    line-height: 1.12;
  }

  .brand-banner__tagline {
    width: 100%;
    margin: 10px 0 0;
    text-align: center;
    font-size: clamp(0.88rem, 3.6vw, 1.05rem);
    line-height: 1.35;
    font-weight: 700;
    white-space: normal;
    overflow: visible;
  }

  /* Mobile: both star fields over the whole banner */
  .brand-stars {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 1;
    pointer-events: none;
  }

  .brand-stars--left,
  .brand-stars--right {
    display: block !important;
  }

  .brand-stars--left .brand-stars__item,
  .brand-stars--right .brand-stars__item {
    position: absolute !important;
    opacity: 1;
    display: block !important;
  }

  /* Dense stars close around the letters */
  .brand-stars--left .brand-stars__item:nth-child(1)  { left: 2%;  top: 8px; }
  .brand-stars--left .brand-stars__item:nth-child(2)  { left: 14%; top: 2px; }
  .brand-stars--left .brand-stars__item:nth-child(3)  { left: 28%; top: 12px; }
  .brand-stars--left .brand-stars__item:nth-child(4)  { left: 42%; top: 3px; }
  .brand-stars--left .brand-stars__item:nth-child(5)  { left: 8%;  top: 28%; }
  .brand-stars--left .brand-stars__item:nth-child(6)  { left: 3%;  top: 46%; }
  .brand-stars--left .brand-stars__item:nth-child(7)  { left: 12%; top: 62%; }
  .brand-stars--left .brand-stars__item:nth-child(8)  { left: 5%;  top: 78%; }
  .brand-stars--left .brand-stars__item:nth-child(9)  { left: 20%; top: 82%; }
  .brand-stars--left .brand-stars__item:nth-child(10) { left: 36%; top: 86%; }
  .brand-stars--left .brand-stars__item:nth-child(11) { left: 18%; top: 38%; }
  .brand-stars--left .brand-stars__item:nth-child(12) { left: 30%; top: 70%; }

  .brand-stars--right .brand-stars__item:nth-child(1)  { left: auto; right: 2%;  top: 10px; }
  .brand-stars--right .brand-stars__item:nth-child(2)  { left: auto; right: 14%; top: 3px; }
  .brand-stars--right .brand-stars__item:nth-child(3)  { left: auto; right: 28%; top: 14px; }
  .brand-stars--right .brand-stars__item:nth-child(4)  { left: auto; right: 42%; top: 4px; }
  .brand-stars--right .brand-stars__item:nth-child(5)  { left: auto; right: 8%;  top: 30%; }
  .brand-stars--right .brand-stars__item:nth-child(6)  { left: auto; right: 3%;  top: 48%; }
  .brand-stars--right .brand-stars__item:nth-child(7)  { left: auto; right: 12%; top: 64%; }
  .brand-stars--right .brand-stars__item:nth-child(8)  { left: auto; right: 5%;  top: 78%; }
  .brand-stars--right .brand-stars__item:nth-child(9)  { left: auto; right: 20%; top: 84%; }
  .brand-stars--right .brand-stars__item:nth-child(10) { left: auto; right: 36%; top: 87%; }
  .brand-stars--right .brand-stars__item:nth-child(11) { left: auto; right: 18%; top: 40%; }
  .brand-stars--right .brand-stars__item:nth-child(12) { left: auto; right: 30%; top: 72%; }

  .brand-stars--left .brand-stars__item--lg,
  .brand-stars--right .brand-stars__item--lg { font-size: 1.15rem; }
  .brand-stars--left .brand-stars__item--md,
  .brand-stars--right .brand-stars__item--md { font-size: 0.95rem; }
  .brand-stars--left .brand-stars__item--sm,
  .brand-stars--right .brand-stars__item--sm { font-size: 0.8rem; }
  .brand-stars--left .brand-stars__item--xs,
  .brand-stars--right .brand-stars__item--xs { font-size: 0.68rem; }
  .brand-stars--left .brand-stars__item--tiny,
  .brand-stars--right .brand-stars__item--tiny { font-size: 0.58rem; }

  .search-row {
    padding: 8px 0;
  }

  .topbar__inner {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 4px;
    min-height: 0;
    padding-block: 6px;
  }

  .topbar__left {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    min-width: 0;
  }

  .topbar__center,
  .topbar__slogan,
  .topbar__phone {
    display: none;
  }

  .topbar__right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin-left: 4px;
  }

  .topbar__cart {
    display: none;
  }

  .topbar__right .pill-link,
  .topbar__right .pill-link--button,
  .topbar__right .auth-link {
    padding: 3px 6px;
    font-size: 0.68rem;
    min-height: 26px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .account-bar {
    display: block;
  }

  .account-bar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 10px;
  }

  .account-bar__contact {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .account-bar__slogan {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .account-bar__phone {
    margin-top: 2px;
    font-size: 1rem;
    white-space: nowrap;
  }

  .account-bar__actions {
    display: none;
  }

  .city-selector {
    flex-shrink: 0;
  }

  .city-selector__toggle,
  .topbar__left .pill-link,
  .topbar__left .pill-link--button {
    padding: 3px 6px;
    font-size: 0.68rem;
    font-weight: 600;
    min-height: 26px;
    border-width: 1.5px;
    line-height: 1.15;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .city-selector__toggle {
    gap: 4px;
  }

  .city-selector__toggle [data-city-label] {
    white-space: nowrap;
  }

  .city-selector__arrow {
    font-size: 0.55rem;
    flex-shrink: 0;
  }

  .pill-link--max {
    display: inline-flex;
    white-space: nowrap;
  }

  .pill-link--max__full {
    display: none;
  }

  .pill-link--max__short {
    display: inline;
  }

  .pill-link--gis {
    display: inline-flex;
    white-space: nowrap;
  }

  .account-bar__inner .pill-link,
  .account-bar__inner .pill-link--button,
  .account-bar__inner .auth-link {
    padding: 5px 10px;
    font-size: 0.78rem;
    min-height: 36px;
  }

  .cart-link {
    font-size: 0.82rem;
    gap: 4px;
  }

  .cart-link__icon {
    width: 32px;
    height: 32px;
    background: #fff;
  }

  .search-row__inner {
    gap: 8px;
    align-items: center;
  }

  .search-row__actions {
    gap: 6px;
  }

  .search-row__cart {
    display: inline-flex;
  }

  .search-form {
    min-height: 40px;
    padding: 2px 4px 2px 10px;
    flex: 1;
  }

  .search-form__submit {
    display: none;
  }

  .favorites-link {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1b2228;
    min-width: 0;
  }

  .favorites-link__text {
    display: none;
  }

  .favorites-link__icon {
    width: 32px;
    height: 32px;
    background: #fff;
  }

  .favorites-link__icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .favorites-count {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 16px;
    --header-sticky-height: 92px;
  }

  .brand-banner {
    min-height: 0;
    padding: 16px 8px 16px;
  }

  .brand-banner__content {
    padding: 2px 6px;
  }

  .brand-banner__title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    letter-spacing: 0.03em;
  }

  .brand-banner__tagline {
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
    white-space: normal;
  }

  .topbar__inner {
    padding-block: 6px;
    gap: 3px;
  }

  .topbar__phone {
    font-size: 0.85rem;
  }

  .city-selector__toggle,
  .topbar__left .pill-link,
  .topbar__left .pill-link--button,
  .topbar__right .pill-link,
  .topbar__right .pill-link--button,
  .topbar__right .auth-link {
    padding: 2px 5px;
    font-size: 0.65rem;
    min-height: 24px;
  }

  .pill-link--max {
    padding: 2px 5px;
    font-size: 0.65rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer__banner {
    grid-template-columns: minmax(56px, 0.7fr) 1fr minmax(56px, 0.7fr);
    min-height: 52px;
    padding-block: 10px;
  }

  .site-footer__stars {
    height: 36px;
    width: 100%;
  }

  .site-footer__star:nth-child(n+8) {
    display: none;
  }

  .search-row {
    padding: 6px 0;
  }

  .search-row__inner {
    flex-direction: row;
    align-items: center;
  }

  .favorites-link {
    flex-direction: row;
    gap: 4px;
    font-size: 0.78rem;
    min-width: 0;
    color: #1b2228;
  }

  .favorites-link__icon {
    width: 30px;
    height: 30px;
  }

  .favorites-link__icon svg {
    width: 15px;
    height: 15px;
  }

  .search-row__cart .cart-link__icon {
    width: 30px;
    height: 30px;
  }

  .search-row__cart-total {
    font-size: 0.78rem;
  }

  .favorites-count {
    display: none;
  }

  .cart-table {
    table-layout: auto;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: grid;
    gap: 6px;
    padding: 12px 0;
  }

  .cart-table td {
    border: 0;
    padding: 0;
    width: auto !important;
    text-align: left !important;
  }

  .cart-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
  }
}
