:root {
  /* ===== Палитра «Полночь» ===== */
  --blue: #5b7cfa;
  --blue-hover: #4563d9;
  --purple: #9b6dff;
  --yellow: #f0d45a;
  --bg-color: #eef0f6;
  --description: #4a5166;
  --menu-color: #141824;
  --header-gradient-start: #060812;
  --surface: #ffffff;
  --danger: #dc3545;
  --success: #28a745;
  --border-muted: #d2dae8;
  --blue-soft-bg: color-mix(in srgb, var(--blue) 8%, white);
  --blue-muted-bg: color-mix(in srgb, var(--blue) 14%, white);
  --blue-strong-bg: color-mix(in srgb, var(--blue) 22%, white);
  --blue-border-soft: color-mix(in srgb, var(--blue) 32%, white);
  --blue-focus-ring: color-mix(in srgb, var(--blue) 15%, transparent);
  --blue-shadow: color-mix(in srgb, var(--blue) 15%, transparent);
  --blue-scroll: color-mix(in srgb, var(--blue) 35%, transparent);
  --blue-scroll-hover: color-mix(in srgb, var(--blue) 45%, transparent);
  --scrollbar-size: 5px;
  --header-sticky-offset: 62px;

  /* Высота нижней мобильной навигации (offset + border + pad + btn) */
  --bottom-nav-offset: 4px;
  --bottom-nav-pad: 4px;
  --bottom-nav-btn-min-height: 32px;
  --bottom-nav-clearance: calc(
    var(--bottom-nav-offset) + 2px + (var(--bottom-nav-pad) * 2) + var(--bottom-nav-btn-min-height)
  );

  --btn-transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;

  /* Единый стиль кнопок: прозрачный/полупрозрачный фон + обводка */
  --btn-radius: 8px;
  --btn-pad-y: 8px;
  --btn-pad-x: 14px;
  --btn-font-size: 13px;
  --btn-font-weight: 600;
  --btn-min-height: 40px;
  --btn-border-width: 1px;

  --btn-bg: transparent;
  --btn-bg-hover: color-mix(in srgb, var(--blue) 10%, white);
  --btn-border: color-mix(in srgb, var(--blue) 35%, white);
  --btn-border-hover: var(--blue);
  --btn-color: var(--blue);
  --btn-color-hover: var(--blue-hover);

  --btn-soft-bg: rgba(15, 23, 42, 0.03);
  --btn-soft-bg-hover: rgba(15, 23, 42, 0.06);
  --btn-soft-border: var(--border-muted);
  --btn-soft-color: var(--menu-color);

  --btn-danger-bg: transparent;
  --btn-danger-bg-hover: color-mix(in srgb, var(--danger) 10%, white);
  --btn-danger-border: color-mix(in srgb, var(--danger) 40%, white);
  --btn-danger-color: var(--danger);
  --btn-danger-color-hover: color-mix(in srgb, var(--danger) 85%, black);

  --btn-success-bg: transparent;
  --btn-success-bg-hover: color-mix(in srgb, var(--success) 12%, white);
  --btn-success-border: color-mix(in srgb, var(--success) 40%, white);
  --btn-success-color: var(--success);
  --btn-success-color-hover: color-mix(in srgb, var(--success) 85%, black);

  --btn-glass-bg: rgba(255, 255, 255, 0.12);
  --btn-glass-bg-hover: rgba(255, 255, 255, 0.22);
  --btn-glass-border: rgba(255, 255, 255, 0.22);
  --btn-glass-border-hover: rgba(255, 255, 255, 0.4);
  --btn-glass-color: #fff;

  /* Поля ввода / селекты / радио – в одном масштабе с кнопками */
  --control-radius: var(--btn-radius);
  --control-pad-y: 10px;
  --control-pad-x: 12px;
  --control-font-size: 14px;
  --control-label-size: 13px;
  --control-min-height: var(--btn-min-height);
  --control-border-width: 1px;
  --control-border-color: var(--border-muted);
}

@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/montserrat-v25-cyrillic_latin-regular.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/static/fonts/montserrat-v25-cyrillic_latin-regular.woff') format('woff');
  /* Modern Browsers */
}

/* montserrat-600 - cyrillic_latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('/static/fonts/montserrat-v25-cyrillic_latin-600.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/static/fonts/montserrat-v25-cyrillic_latin-600.woff') format('woff');
}

/* montserrat-700 - cyrillic_latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('/static/fonts/montserrat-v25-cyrillic_latin-700.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/static/fonts/montserrat-v25-cyrillic_latin-700.woff') format('woff');
}

/* montserrat-800 - cyrillic_latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('/static/fonts/montserrat-v25-cyrillic_latin-800.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/static/fonts/montserrat-v25-cyrillic_latin-800.woff') format('woff');
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  height: 100%;
}

p {
  margin: 0;
}

h2 {
  margin: 0;
}

a {
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
}

br {
  margin-bottom: 0;
  line-height: 300%;
}

/* ========== Утилитные классы ========== */
.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.flex-gap-10 {
  display: flex;
  gap: 10px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .flex-gap-10 {
    flex-direction: column;
    gap: 12px;
  }
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mr-10 {
  margin-right: 10px;
}

.ml-10 {
  margin-left: 10px;
}

.text-small {
  color: #666;
  font-size: 12px;
}

.text-error {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

.readonly-input {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.btn-green:not(.header-btn):not(.my-orders-btn) {
  background: var(--btn-success-bg);
  color: var(--btn-success-color);
  border: var(--btn-border-width) solid var(--btn-success-border);
}

.btn-green:not(.header-btn):not(.my-orders-btn):hover {
  background: var(--btn-success-bg-hover);
  border-color: var(--btn-success-color);
  color: var(--btn-success-color-hover);
}

.btn-gray {
  background: var(--btn-soft-bg);
  color: var(--btn-soft-color);
  border: var(--btn-border-width) solid var(--btn-soft-border);
  border-radius: var(--btn-radius);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  box-shadow: none;
  box-sizing: border-box;
  transition: var(--btn-transition);
}

.btn-gray:hover {
  background: var(--btn-soft-bg-hover);
  border-color: #c5cad3;
}

.error-box {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  color: #721c24;
}

.error-box ul {
  margin: 0;
  padding-left: 20px;
}

.text-muted {
  color: #666;
  font-style: italic;
}

.address-main {
  font-weight: bold;
  margin-bottom: 5px;
}

.address-detail {
  margin-bottom: 5px;
  color: #666;
}

.address-comment {
  margin-bottom: 5px;
  color: #666;
  font-style: italic;
}

.address-empty {
  color: #666;
  text-align: center;
  padding: 20px;
}

.form-inline {
  display: inline;
}

.list-disc {
  margin-left: 20px;
  list-style: disc;
}

.list-item-detail {
  margin-top: 5px;
  color: #555;
}

.center-block {
  text-align: center;
  margin-top: 20px;
}

.btn-inline {
  display: inline-block;
  text-decoration: none;
}

.form-title {
  margin-bottom: 15px;
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

.form-section {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

#change-password-form,
#add-address-form,
#delivery-address-form {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

#delivery-address-form {
  margin-top: 8px !important;
}

.ym-advanced-informer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 20;
  border-radius: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1100;
  flex: 0 0 auto;
  width: 100%;
  background: rgb(2, 0, 36);
  background: linear-gradient(90deg, var(--header-gradient-start) 0%, var(--blue) 0%, var(--purple) 100%);
  border-bottom: 1.4px solid rgba(0, 0, 0, .5);
  border-radius: 0;
  margin-bottom: 0;
  color: white;
  padding: 0 16px 0 10px;
}

/* Улучшенные стили для header */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 100 !important;
}

.header__logo {
  flex-shrink: 0;
}

.header__text {
  position: absolute;
  left: 50%;
  transform-origin: center;
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}

.header__text:hover, .header__text:focus {
  outline: none;
  transform: translateX(-50%) scale(1.07) !important;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  order: 2;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  z-index: 3;
  order: 1;
}

.header__nav-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 10px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.header__nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.88;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 8px;
  text-shadow: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.header__nav-link:hover,
.header__nav-link:focus {
  color: #fff;
  opacity: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.header__nav-link.is-active {
  color: #fff;
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

/* На страницах с меню разделов убираем абсолютный слоган – иначе он перекрывает ссылки */
.header__inner:has(.header__nav) {
  gap: 10px 12px;
}

.header__inner:has(.header__nav) .header__text {
  position: static;
  transform: none;
  transform-origin: left center;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 20px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 0;
  transition: transform 0.3s ease;
}

.header__inner:has(.header__nav) .header__text:hover,
.header__inner:has(.header__nav) .header__text:focus {
  outline: none;
  transform: scale(1.04) !important;
}

.header__inner:has(.header__nav) .header__nav {
  margin-left: auto;
}

/* Бургер магазина – планшет и мобильные */
.header__burger.header__shop-burger {
  display: none;
  flex-shrink: 0;
  margin-left: 0;
  position: relative;
  z-index: 21;
  border: none;
  outline: none;
  background-color: transparent;
  background-size: 22px 22px;
  padding: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  order: 3;
}

.header__burger.header__shop-burger.burger-active {
  background-image: url('/static/img/X-white.svg');
}

.info-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 16px;
  box-sizing: border-box;
}

.info-page__content {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  line-height: 1.6;
  color: #333;
  font-size: 16px;
}

.info-page__content p {
  margin: 0 0 1em;
}

.info-page__content p:last-child {
  margin-bottom: 0;
}

.info-page__subtitle {
  margin: 28px 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--menu-color);
}

.info-page__link {
  color: var(--blue-hover);
  font-weight: 600;
  text-decoration: underline;
}

.info-page__link:hover {
  color: var(--blue);
}

.contact-card {
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #222;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 6px 16px;
  align-items: baseline;
}

.contact-row dt {
  margin: 0;
  color: #6b7280;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.contact-row dd {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  color: inherit;
  word-break: break-word;
}

.contact-row__link {
  color: inherit;
  font: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-row__link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.info-page__lead {
  font-size: 17px;
  color: #444;
  margin-bottom: 8px;
}

.info-page__note {
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px solid #e8edf5;
  font-size: 15px;
  color: #555;
}

.info-method {
  padding: 16px 0;
  border-bottom: 1px solid #eef2f7;
}

.info-method:last-of-type {
  border-bottom: none;
}

.info-method__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.info-method__text {
  margin: 0 0 8px !important;
  color: #444;
}

.info-method__meta {
  margin: 0 !important;
  font-size: 14px;
  color: #6b7280;
}

.info-method__list {
  margin: 0;
  padding-left: 1.2em;
  color: #444;
}

.info-method__list li {
  margin-bottom: 6px;
}

.info-method__list li:last-child {
  margin-bottom: 0;
}

.info-page__lead--tight {
  margin-bottom: 16px;
}

.info-page__subtitle--sm {
  margin: 22px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.delivery-cards {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
}

.delivery-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 24, 36, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.delivery-card:hover {
  border-color: var(--blue-border-soft);
  box-shadow: 0 4px 14px var(--blue-shadow);
  transform: translateY(-1px);
}

.delivery-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef2f7;
}

.delivery-card__body {
  min-width: 0;
  flex: 1;
}

.delivery-card__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.delivery-card__text {
  margin: 0 0 8px !important;
  font-size: 14px;
  line-height: 1.45;
  color: #444;
}

.delivery-card__meta {
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
}

.delivery-carriers {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.delivery-carrier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #eef2f7;
}

.delivery-carrier__logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e8edf5;
}

.delivery-carrier__logo--bare {
  background: transparent;
  border: none;
  border-radius: 0;
}

.delivery-carrier__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.delivery-carrier__note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.35;
}

.pay-provider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #e6ebf5;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f4ff 0%, #f3f7ff 55%, #fff 100%);
}

.pay-provider--legal {
  background: linear-gradient(135deg, #f3f7ff 0%, #f7fafc 55%, #fff 100%);
  margin-bottom: 4px;
}

.pay-provider--legal .pay-provider__logo {
  width: 56px;
  height: 56px;
  padding: 0;
}

.pay-provider__logo {
  flex-shrink: 0;
  width: 140px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eef2f7;
  padding: 4px 8px;
  box-sizing: border-box;
}

.pay-provider__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.pay-provider__text {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 8px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 24, 36, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pay-method:hover {
  border-color: var(--blue-border-soft);
  box-shadow: 0 4px 14px var(--blue-shadow);
  transform: translateY(-1px);
}

.pay-method__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.pay-method__icon--cards {
  width: 56px;
  height: 56px;
}

.pay-method__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
}

@media (max-width: 768px) {
  .info-page {
    padding: 0 12px 4px;
  }

  .body > .info-page {
    margin-bottom: 8px;
  }

  .info-page__content {
    padding: 20px 18px;
    font-size: 15px;
  }

  .info-page__subtitle {
    font-size: 18px;
    margin-top: 22px;
  }

  .info-page__lead {
    font-size: 15px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .pay-provider {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pay-methods {
    grid-template-columns: 1fr;
  }

  .delivery-card {
    flex-direction: column;
  }
}

@media (min-width: 720px) {
  .pay-methods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Единые минималистичные кнопки шапки */
.header-btn,
.my-orders-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--btn-glass-bg);
  color: var(--btn-glass-color);
  padding: 5px 10px;
  min-height: 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: var(--btn-font-weight);
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: var(--btn-transition);
  box-shadow: none;
  border: var(--btn-border-width) solid var(--btn-glass-border);
  box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

.header-btn:hover,
.header-btn:focus,
.my-orders-btn:hover,
.my-orders-btn:focus {
  background: var(--btn-glass-bg-hover);
  border-color: var(--btn-glass-border-hover);
  color: var(--btn-glass-color);
  outline: none;
  transform: none;
  box-shadow: none;
}

.header-btn--primary,
.my-orders-btn.btn-green {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  font-weight: var(--btn-font-weight);
}

.header-btn--primary:hover,
.header-btn--primary:focus,
.my-orders-btn.btn-green:hover,
.my-orders-btn.btn-green:focus {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.back-to-shop-btn {
  background: var(--btn-bg);
  color: var(--btn-color);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  border-radius: var(--btn-radius);
  text-decoration: none;
  font-weight: var(--btn-font-weight);
  font-size: var(--btn-font-size);
  transition: var(--btn-transition);
  box-shadow: none;
  border: var(--btn-border-width) solid var(--btn-border);
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.back-to-shop-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
  transform: none;
  box-shadow: none;
}

.cart-toggle,
.header-btn--cart {
  background: var(--btn-glass-bg);
  color: var(--btn-glass-color);
  padding: 5px 10px;
  min-height: 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: var(--btn-font-weight);
  font-size: 12px;
  transition: var(--btn-transition);
  box-shadow: none;
  border: var(--btn-border-width) solid var(--btn-glass-border);
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

.cart-toggle:hover,
.header-btn--cart:hover {
  background: var(--btn-glass-bg-hover);
  border-color: var(--btn-glass-border-hover);
  color: var(--btn-glass-color);
  transform: none;
  box-shadow: none;
}

.cart-icon {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-icon .ui-icon {
  width: 15px;
  height: 15px;
}

.ui-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.ui-icon--sm {
  width: 14px;
  height: 14px;
}

.cart-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.cart-btn__icon .ui-icon {
  width: 16px;
  height: 16px;
}

.cart-btn .ui-icon,
.cart-close .ui-icon,
.close-btn .ui-icon,
.quantity-btn .ui-icon,
.remove-btn .ui-icon,
.locked-brand-chip__clear .ui-icon {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0;
  flex-shrink: 0;
  pointer-events: none;
}

.cart-controls .cart-btn .ui-icon,
.cart-btn--remove .ui-icon,
.cart-btn--checkout .ui-icon,
.cart-btn--remove-item .ui-icon {
  width: 18px;
  height: 18px;
}

.quantity-btn,
.order-item__quantity-controls .remove-btn {
  line-height: 0;
}

.cart-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.open-filters-btn__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.open-filters-btn .ui-icon {
  width: 18px;
  height: 18px;
}

.open-filters-btn--icon {
  width: var(--catalog-toolbar-control-height, 44px);
  min-width: var(--catalog-toolbar-control-height, 44px);
  max-width: var(--catalog-toolbar-control-height, 44px);
  height: var(--catalog-toolbar-control-height, 44px);
  min-height: var(--catalog-toolbar-control-height, 44px);
  max-height: var(--catalog-toolbar-control-height, 44px);
  padding: 0 !important;
  flex: 0 0 var(--catalog-toolbar-control-height, 44px);
  box-sizing: border-box;
  align-self: center;
}

.open-filters-btn--icon .open-filters-btn__inner {
  gap: 0;
}

.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;
}

.sticky-filters-wrapper {
  --catalog-toolbar-control-height: 44px;
}

.mobile-buttons-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Единая высота всех контролов тулбара */
.mobile-buttons-bar .catalog-toggle,
.mobile-buttons-bar .catalog-toolbar-search .catalog-toolbar-input,
.mobile-buttons-bar .brand-field-shell,
.mobile-buttons-bar .catalog-toolbar-apply,
.mobile-buttons-bar .open-filters-btn--icon {
  height: var(--catalog-toolbar-control-height, 44px) !important;
  min-height: var(--catalog-toolbar-control-height, 44px) !important;
  max-height: var(--catalog-toolbar-control-height, 44px) !important;
  box-sizing: border-box;
}

.mobile-buttons-bar .catalog-toggle {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.2;
}

.mobile-buttons-bar .catalog-toolbar-apply,
.mobile-buttons-bar .open-filters-btn--icon {
  padding: 0 !important;
}

.catalog-toolbar-search,
.catalog-toolbar-brand {
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
  height: var(--catalog-toolbar-control-height, 44px);
  overflow: visible;
}

.catalog-toolbar-brand .brand-search-container {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  position: relative;
  overflow: visible;
  z-index: 5;
}

.catalog-toolbar-input {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  box-sizing: border-box;
}

.catalog-toolbar-search .catalog-toolbar-input {
  height: var(--catalog-toolbar-control-height, 44px);
  min-height: var(--catalog-toolbar-control-height, 44px) !important;
  max-height: var(--catalog-toolbar-control-height, 44px);
  padding: 0 12px !important;
  line-height: 1.2;
  border-width: 1px;
  border-radius: 10px;
}

.catalog-toolbar-apply {
  flex: 0 0 var(--catalog-toolbar-control-height, 44px);
  width: var(--catalog-toolbar-control-height, 44px);
  min-width: var(--catalog-toolbar-control-height, 44px);
  max-width: var(--catalog-toolbar-control-height, 44px);
  height: var(--catalog-toolbar-control-height, 44px) !important;
  min-height: var(--catalog-toolbar-control-height, 44px) !important;
  max-height: var(--catalog-toolbar-control-height, 44px) !important;
  padding: 0 !important;
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  align-self: center;
}

.catalog-toolbar-apply__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.catalog-toolbar-apply .ui-icon {
  width: 18px;
  height: 18px;
}

.brand-field-shell {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: var(--catalog-toolbar-control-height, 44px);
  min-height: var(--catalog-toolbar-control-height, 44px);
  max-height: var(--catalog-toolbar-control-height, 44px);
  padding: 0 8px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d2dae8;
  border-radius: 10px;
  transition: border-color 0.2s ease;
  overflow: hidden;
}

.brand-field-shell:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-focus-ring);
}

.brand-field-shell .catalog-toolbar-input,
.brand-field-shell .brand-input,
.brand-field-shell .filter-input {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 0 !important;
  max-width: 100%;
  height: 24px !important;
  min-height: 0 !important;
  max-height: 24px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 4px !important;
  outline: none;
  line-height: 24px;
  font-size: 14px;
}

.brand-field-shell .catalog-toolbar-input:focus,
.brand-field-shell .filter-input:focus {
  border: none !important;
  box-shadow: none !important;
}

.brand-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 70%;
  min-width: 0;
  overflow: hidden;
}

.brand-chips:empty {
  display: none;
}

.locked-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0 6px 0 8px;
  height: 24px;
  max-height: 24px;
  width: max-content;
  max-width: 160px;
  box-sizing: border-box;
  background: var(--blue-soft-bg);
  border: 1px solid var(--blue-border-soft);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  color: color-mix(in srgb, var(--blue) 45%, var(--menu-color));
  min-width: 0;
  flex: 0 0 auto;
  overflow: hidden;
}

.locked-brand-chip--multi {
  max-width: 180px;
}

.locked-brand-chip.d-none,
.locked-brand-chip[hidden] {
  display: none !important;
}

.locked-brand-chip__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  min-width: 0;
}

.locked-brand-chip__clear {
  border: none;
  background: transparent;
  color: #666;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.locked-brand-chip__clear .ui-icon {
  width: 12px;
  height: 12px;
}

.locked-brand-chip__clear:hover {
  color: #dc2626;
}

.catalog-toolbar-brand .brand-suggestions {
  z-index: 12000;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.mobile-buttons-bar .catalog-toggle {
  height: var(--catalog-toolbar-control-height, 44px);
  min-height: var(--catalog-toolbar-control-height, 44px);
  max-height: var(--catalog-toolbar-control-height, 44px);
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 10px;
}

.bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bottom-nav__icon .ui-icon {
  width: 16px;
  height: 16px;
}

.cart-count {
  color: inherit;
  border-radius: 50%;
  min-width: 0;
  height: auto;
  display: inline;
  align-items: center;
  justify-content: center;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* В шапке счетчик – белый бейдж на темной кнопке */
.header-btn--cart .cart-count,
.cart-toggle .cart-count {
  color: #fff;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.header__menu {
  height: 250px;
  padding: 16px 70px 30px 30px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  transition: transform .3s ease-in-out;
  transform: translateX(110%);
  background-color: white;
  box-shadow: 0px 5px 40px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 0 32px;
  overflow-y: scroll;
}

.menu-title {
  color: black;
  font-size: 24px;
  margin: 0;
  margin-bottom: 20px;
  font-weight: 600;
}

body::-webkit-scrollbar,
.header__menu::-webkit-scrollbar {
  width: 0;
}

/* body::-webkit-scrollbar, .header__menu::-webkit-scrollbar {
  width: 10px; 
}

body::-webkit-scrollbar-track, .header__menu::-webkit-scrollbar-track {
  background: (var(--bg-color)); 
  z-index: 10;
}

body::-webkit-scrollbar-thumb, .header__menu::-webkit-scrollbar-thumb {
  background-color: var(--blue); 
  border-radius: 10px; 
} */

/* Тонкие полосы прокрутки везде (кроме скрытых выше) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--blue-scroll) transparent;
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--blue-scroll);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--blue-scroll-hover);
}

body {
  overflow: hidden;
}

body.cart-open {
  overflow: hidden;
}

body.cart-open .body {
  overflow: hidden;
}

.header__menu.is-active {
  transform: translateX(10%);
}

.menu-item:not(:last-child) {
  margin-bottom: 15px;
}

.menu-link {
  font-size: 18px;
  font-weight: 400;
  color: var(--menu-color);
  transition-property: color;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.menu-link:focus {
  color: var(--blue);
  outline: none;
}

.header__burger {
  display: block;
  cursor: pointer;
  width: 50px;
  height: 44px;
  background-image: url('/static/img/burger.svg');
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 20;
  padding: 7px;
  transition-property: transform, background-image;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.header__burger:focus {
  transform: scale(1.2);
}

.header__burger.burger-active {
  background-image: url('/static/img/X.svg');
  transform: rotate(90deg);
}

.header__link {
  transition-property: transform;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.header__link:focus {
  outline: none;
  transform: scale(1.1);
}

.header__logo {
  width: 60px;
  height: 60px;
}

.header__text {
  font-size: 40px;
  line-height: 1;
  font-weight: 400;
  padding-bottom: 5px;
  color: white;
}

.body {
  margin-top: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  /* padding-top не ставим: иначе sticky-фильтры прилипают с большим зазором */
  padding-top: 0;
}

/* Мобильные: скролл документа, иначе нет pull-to-refresh */
@media (max-width: 768px) {
  html,
  body {
    height: auto;
    min-height: 100%;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  body.cart-open {
    overflow: hidden;
    height: 100%;
  }

  .wrapper,
  .content {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }

  body.cart-open .wrapper,
  body.cart-open .content {
    height: 100%;
    overflow: hidden;
  }

  .body {
    overflow: visible;
    flex: 1 1 auto;
    min-height: 0;
  }

  body.cart-open .body {
    overflow: hidden;
  }

  /* Хедер снова «фиксируется»: раньше он был вне scroll-контейнера .body */
  .header {
    position: sticky;
    top: 0;
    z-index: 1100;
  }

  .sticky-filters-wrapper {
    top: calc(var(--header-sticky-offset) + 8px) !important;
  }
}

/* Небольшой зазор после шапки – на контенте, не на scroll-контейнере */
.body > .container,
.body > .post-container,
.body > .checkout-container,
.body > .info-page,
.body > .similar-products {
  padding-top: 16px;
}

.body__title {
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.title-clickable {
  position: relative;
  cursor: pointer;
  color: black;
  transition-property: color;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.title-clickable:active {
  color: var(--blue);
}

.separator {
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, .1);
  margin-bottom: 15px;
  margin-top: 15px;
}

.part {
  margin-bottom: 30px;
}

.body.part {
  margin-bottom: 0;
}

.strong_news_text {
  display: inline !important;
}

.news__post-link {
  text-decoration: none;
  transition-property: color, scale, outline;
  transition-duration: .3s;
  transition-timing-function: ease;
  color: var(--description);
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, .3);
  outline: 1px solid black;
  border-radius: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news__post-link:not(:last-child) {
  margin-right: 20px;
}

.all_news_link svg path {
  transition-property: stroke, stroke-width;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.news__post-link:active {
  outline: 1px solid var(--blue);
  color: var(--blue);
}

.all_news_link:active svg path {
  stroke: var(--blue);
  stroke-width: 28px;
}

.all_news_link {
  margin-left: 20px;
  font-size: 32px;
  text-align: center;
  justify-content: center;
}

.news__post-title {
  margin: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 20px;
  color: black;
  text-align: center;
}

.post__desc {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about__text {
  font-size: 20px;
  text-align: justify;
  color: var(--description);
  text-indent: 20px;
}

.about__text:not(:last-child) {
  margin-bottom: 8px;
}

.hidden-text {
  display: none;
}

.more {
  cursor: pointer;
  border: none;
  display: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 16px;
  background-color: var(--bg-color);
  transition-property: color, text-decoration;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.more:focus,
.back-home__link:focus {
  color: var(--description);
  text-decoration: none;
}

.about__text.is-active,
.more.is-active {
  display: block;
}

.shops__cards-list {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.our_shops {
  flex-wrap: wrap;
  gap: 20px;
}

.banner {
  margin: auto;
  margin-bottom: 20px;
  max-width: 900px;
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hooray, .hooray-right {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 10px;
}

.hooray {
  left: 20px;
}

.hooray-right {
  right: 20px;
}

.banner-header {
  margin-bottom: 10px;
  color: black;
}

.banner-link {
  outline: 1.5px solid white;
  border-radius: 10px;
  padding: 7px;
  /* background-color: white; */
  color: white;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition-property: color background-color outline;
  transition-duration: .4s;
  transition-timing-function: ease-out;
  text-align: center;
}

.banner-link:active {
  background-color: transparent;
  color: black;
  outline: 1.5px solid black;
}

.sticky-filters-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.28);
}

.shops__card {
  background-color: var(--bg-color);
  width: calc(50% - 10px);
  padding: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .3);
  border-radius: 30px;
}

.brands-card {
  padding-bottom: 60px;
}

.all_news__cards-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.all_news__card {
  background-color: var(--bg-color);
  margin-bottom: 20px;
  max-width: 32%;
  padding: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .3);
  border-radius: 30px;
}

.main_post_card {
  margin-bottom: 0;
  flex-basis: 0;
}

.all_news__card:nth-child(3n) {
  margin-right: 0 !important;
}

.shops__card-description {
  font-size: 20px;
  color: var(--description);
  margin-bottom: 15px;
}

.shops__card-content {
  display: flex;
  justify-content: space-between;
  position: relative;
  height: 100%;
}

.shops__card-content-left {
  width: 30%;
}

.shops__card-content-right {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  margin-left: calc(30% + 15px);
  background-position: center center;
  background-size: cover;
  border-radius: 15px;
}

.shops__card-links {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shops__card-link:not(:last-child) {
  margin-bottom: 17px;
}

.market-logo {
  height: 22px;
}

.market-link {
  color: black;
  font-size: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  font-weight: 400;
  cursor: pointer;
  padding: 10px 10px 10px 10px;
  outline: 1.4px solid black;
  border-radius: 15px;
  text-align: center;
}

.market-link,
.market-link-yellow {
  transition-property: outline, color, background-color;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.market-link:focus {
  outline: 1.4px solid var(--blue);
  color: var(--blue);
  background-color: white;
}

.market-link-yellow:focus {
  outline: 1.4px solid var(--yellow);
  color: var(--yellow);
  background-color: white;
}


.swiper-container {
  display: flex;
  justify-content: space-between;
}

.swiper-inner {
  width: calc(50% - 10px);
  position: relative;
}

.swiper {
  height: 300px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .3);
  border-radius: 30px;
}

.swiper-slide {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, .7);
  font-size: 18px;
  font-weight: 400;
}

.swiper-link {
  display: block;
  width: 100%;
  height: 100%;
}

.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  margin-bottom: 10px !important;
  background-color: white !important;
  outline: 1px solid var(--blue);
}

.footer {
  background: rgb(2, 0, 36);
  background: linear-gradient(90deg, var(--header-gradient-start) 0%, var(--blue) 0%, var(--purple) 100%);
  padding-bottom: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
  flex: 0 0 auto;
  margin-top: auto;
}

/* Зазор между контентом страницы и футером внутри .body */
.body > .container {
  margin-bottom: 24px;
}

.body > .info-page {
  margin-bottom: 12px;
}

.body > .post-container {
  /* на витрине отступ дают .shop-grid / .load-more-container */
  margin-bottom: 0;
}

.body > .checkout-container,
.body > .similar-products {
  margin-bottom: 16px;
}

.bald {
  font-weight: 600;
}

.contacts {
  padding: 10px 0px;
  display: flex;
  justify-content: space-between;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 18%;
  flex: 0 1 18%;
}

.contacts-list:first-child {
  width: 56%;
  flex: 1 1 56%;
  align-items: flex-start;
}

.contacts-list:first-child .contact {
  width: 100%;
}

.contacts-list:first-child .contact-name {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-right: 6px;
}

.contacts-list:first-child .contact-link {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.contact {
  display: flex;
}

.contact:not(:last-child) {
  margin-bottom: 10px;
}

.contact-name {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
}

.contact-link {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  margin-left: 5px;
  text-align: justify;
}

.clickable {
  transition-property: color;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.docs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.doc-link {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition-property: color;
  transition-duration: .4s;
  transition-timing-function: ease;
  text-align: center;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
}

.doc-link:focus {
  color: white;
}

.cookie_notification {
  display: none;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 70%;
  max-width: 90%;
  transform: translateX(-50%);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background-color: white;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
  z-index: 1200;
}

.cookie_notification.show {
  display: flex;
}

.cookie_notification p {
  color: var(--description);
  font-size: 14px;
}

.button {
  background: var(--btn-bg);
  color: var(--btn-color);
  border-radius: var(--btn-radius);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  outline: none;
  border: var(--btn-border-width) solid var(--btn-border);
  cursor: pointer;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  box-shadow: none;
  box-sizing: border-box;
  transition: var(--btn-transition);
  font-family: 'Montserrat', sans-serif;
}

.button:hover,
.button:focus {
  background: var(--btn-bg-hover);
  color: var(--btn-color-hover);
  border-color: var(--btn-border-hover);
  outline: none;
}

.cookie_accept {
  margin-left: 10px;
}

.brand {
  display: flex;
  justify-content: space-between;
  margin-top: -40px;
}

.brand__present {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 45%;
  margin-top: 30px;
}

.brand__init {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.brand__logo {
  width: 120px;
  height: 100px;
  border-radius: 15px;
  margin-right: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .2);
}

.brand__name {
  font-weight: 600;
  font-size: 40px;
}

.name-without-logo {
  padding-top: 55px;
}

.brand__promo {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .2);
}

.brand__text {
  margin-left: 40px;
  padding-top: 125px;
  margin-top: 20px;
  width: 55%;
}

.buy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-links {
  display: flex;
}

.market-brand-link:not(:last-child) {
  margin-right: 20px;
}

.back-home {
  text-align: left;
  z-index: 20;
}

.back-home__link {
  color: black;
  font-size: 22px;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition-property: color, text-decoration;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

/* Мобильные: document scroll after wrapper */
@media (max-width: 768px) {
  .wrapper,
  .content {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }

  body.cart-open .wrapper,
  body.cart-open .content {
    height: 100%;
    overflow: hidden;
  }
}


.post-container {
  width: 82%;
  max-width: 100%;
  margin: auto;
  box-sizing: border-box;
  min-width: 0;
}

.post__title {
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 15px;
  text-align: center;
}

.news_post_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post__subtitle {
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  margin-bottom: 10px;
  text-align: center;
}

.post__img {
  height: 100%;
  width: 35%;
  border-radius: 15px;
}

.post__li {
  display: flex;
  position: relative;
  list-style: none;
  text-indent: 25px;
  margin-bottom: 3px !important;
  margin-top: 0px !important;
}

.post_ul {
  margin-top: -6px;
}

.post__li::before {
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-image: url("/static/img/dot.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 8px 8px;
}

.img-main {
  max-height: 400px;
  width: 80%;
}

.img-left {
  float: left;
  margin-right: 10px;
}

.img-right {
  float: right;
  margin-left: 10px;
}

.img-center {
  float: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
}

.tags {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px !important;
}

.tag-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  color: black;
  font-size: 20px;
  transition-property: color, text-decoration;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.tag-link:not(:last-child) {
  margin-right: 15px;
}

.tags__title {
  text-indent: 0;
  margin-bottom: 0 !important;
  margin-right: 15px;
}

.brands-list {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.brand-card {
  display: flex;
  padding: 15px;
  background-color: white;
  border-radius: 15px;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  width: calc(20% - 20px);
  cursor: pointer;
  transition: transform .3s ease-in-out;
  transition-property: scale;
}

.brand-card-img {
  width: 40%;
  height: 0;
  padding-top: 40%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 15px;
}

.brand-card-name {
  text-wrap: wrap;
  word-break: break-all;
  font-size: 1.5vw;
  color: black;
  font-weight: 400;
  transition: transform .3s ease-in-out;
  transition-property: color;
}

.letter-separator {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 5px;
}

.letter-title {
  font-size: 1.7vw;
}

.brands-filter-label {
  display: block;
  position: relative;
  margin-bottom: 5px;
}

.brands-filter-label::after {
  content: '';
  margin-left: 10px;
  position: absolute;
  width: 15px;
  height: 15px;
  left: -5;
  top: 2px;
  background: url('/static/img/filter_icon.svg') center 0 no-repeat;
}

.brands-filter {
  width: 14rem;
  border: 1px solid var(--description);
  border-radius: 10px;
  padding: 7px;
  font-size: 14px;
  margin-bottom: 15px;
  transition: border-color .3s ease-in-out;
}

.brands-filter::placeholder {
  font-size: 14px;
}

.brands-filter:focus {
  outline: 0;
  border-color: var(--blue);
}

.all-brands-menu-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--menu-color);
  transition-property: color;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.all-brands-menu-link:focus {
  color: var(--blue);
}

.back-to-top {
  display: none !important;
}

.catalog-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  width: calc(25% - 15px);
  background-color: white;
  padding: 15px;
  border-radius: 15px;
  transition-property: scale;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.catalog-card:active {
  scale: 103%;
}

.catalog-card:active .catalog-name {
  color: var(--blue);
}

.catalog-brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 8;
}

.catalog-brand:active .catalog-brand_name {
  color: var(--purple);
}

.catalog-brand_name {
  color: var(--description);
  cursor: pointer;
  display: block;
  font-size: 30px;
  overflow-wrap: break-word;
  transition-property: color;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.catalog-brand-photo {
  max-height: 30px;
  border-radius: 5px;
}

.catalog-name {
  text-indent: 0;
  text-align: center;
  word-break: break-all;
  transition-property: color;
  transition-duration: .3s;
  transition-timing-function: ease;
  margin-top: 4px;
}

.catalog-inner {
  display: flex;
  flex-grow: 5;
  flex-direction: column;
  align-items: center;
}

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

@media (max-width: 1250px) {
  .market-link {
    font-size: 12px;
  }

  .shops__cards-list {
    flex-direction: column;
    gap: 8px;
  }

  .shops__card {
    width: 100%;
    padding-bottom: 20px;
  }

  .brands-card {
    padding-bottom: 20px;
  }

  .main_news_link:nth-child(3) {
    display: none;
  }

  .all_news__cards-list {
    flex-direction: column;
    width: 100%;
    ;
  }

  .news__post-link:not(:last-child) {
    margin-right: 0;
  }

  .all_news_link {
    margin-left: 0;
    font-size: 28px;
  }

  .all_news__card {
    max-width: none;
    width: 100%;
  }

  .shops__card:not(:last-child) {
    margin-bottom: 15px;
  }

  .body__title {
    font-size: 28px;
    text-align: center;
    font-weight: 800;
  }

  .swiper-container {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .swiper-inner {
    width: 80%;
  }

  #swiper_1 {
    margin-bottom: 15px;
  }

  .swiper {
    height: 300px;
  }

  .header__text {
    text-align: center;
  }

  .contacts {
    flex-direction: column;
    padding: 15px 0px;
  }

  .contacts-list {
    width: 100%;
    flex: none;
  }

  .contacts-list:first-child {
    width: 100%;
    flex: none;
  }

  .back-to-top {
    bottom: 20px;
  }

  .contacts-list:not(:last-child) {
    margin-bottom: 25px;
  }

  .brand {
    flex-direction: column;
    margin-top: -20px;
    align-items: center;
    justify-content: center;
  }

  .brand__text {
    padding: 0;
    margin-top: 0;
    width: 100%;
    margin-left: 0;
  }

  .brand__present {
    width: 100%;
    margin-bottom: 30px;
    margin-top: 10px;
  }

  .catalog-list {
    gap: 15px;
  }

  .catalog-card {
    width: calc(33% - 10px);
  }

  .header__text {
    font-size: 26px;
  }
}

@media (max-width: 980px) {
  /* Header стили */
  .header__text {
    position: static;
    transform: none;
    font-size: 26px;
  }

  .header__text:hover, .header__text:focus {
    transform: scale(1.07) !important;
  }
  
  /* Catalog стили */
  .catalog-card:active {
    scale: 103%;
  }

  .catalog-list {
    gap: 7px;
  }

  .catalog-card {
    width: calc(50% - 5px);
    padding: 10px;
    border-radius: 10px;
  }

  .catalog-brand_name {
    font-size: 25px;
  }

  .catalog-brand-photo {
    max-height: 25px;
  }

  /* Post/Image стили */
  .img-main {
    width: 100%;
  }

  .post__img {
    width: 80%;
    float: none;
    border-radius: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
  }

  /* Brand стили */
  .brand-links {
    flex-direction: column;
  }

  .market-brand-link:not(:last-child) {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .brands-list {
    gap: 15px;
  }

  .brand-card {
    width: calc(50% - 8px);
  }

  .brand-card-name {
    font-size: 4.5vw;
    color: black;
    font-weight: 400;
    transition: transform .3s ease-in-out;
    transition-property: color;
  }

  .letter-separator {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 5px;
  }

  .letter-title {
    font-size: 6vw;
  }
}

@media (max-width: 750px) {
  .hooray, .hooray-right {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    margin: auto;
  }

  :root {
    --header-sticky-offset: 42px;
  }
  
  .sticky-filters-wrapper {
    top: calc(var(--header-sticky-offset) + 8px) !important;
    padding: 10px;
  }

  .news_post_header {
    flex-direction: column;
    align-items: start;
    margin-bottom: 15px;
  }

  .img-main {
    width: 100%;
  }

  .post__img {
    width: 80%;
    float: none;
    border-radius: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
  }

  .post-container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .post__li::before {
    background-position: 10px 5px;
  }

  .shops__card-content-left {
    width: 50%;
  }

  .market-link {
    font-size: 18px;
  }

  .shops__card-content-right {
    margin-left: calc(50% + 15px);
  }

  .swiper-inner {
    width: 100%;
  }

  .swiper-slide {
    font-size: 14px;
  }

  .header__text {
    font-size: 16px !important;
    font-weight: 800;
  }

  .header__logo {
    height: 40px;
    width: 40px;
  }

  .header__burger {
    height: 20px;
    width: 20px;
  }

  .body {
    margin-top: 0;
    padding-top: 0;
  }

  .body > .container,
  .body > .post-container,
  .body > .checkout-container,
  .body > .info-page {
    padding-top: 16px;
  }

  .body > .similar-products {
    padding-top: 24px;
  }

  .cookie_notification {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    flex-direction: column;
    bottom: 0;
    z-index: 1200;
  }

  .cookie_notification p {
    margin-bottom: 10px;
    text-align: center;
  }

  .button {
    border-radius: var(--btn-radius);
  }

  .header__menu {
    padding-top: 7px;
  }

  .header {
    padding: 0 17px 0 6px;
  }

  .about__text {
    font-size: 16px;
  }

  .tag-link {
    font-size: 16px;
  }

  .back-home__link {
    font-size: 16px;
  }

  .back-to-top {
    bottom: 100px;
    right: 12px;
  }

  .name-without-logo {
    padding-top: 10px;
  }

  .brand__logo {
    width: 96px;
    height: 80px;
    border-radius: 15px;
    margin-right: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .2);
  }

  .brand__name {
    font-size: 34px;
  }

  .docs {
    margin-bottom: 10px;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .docs .doc-link {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .ym-advanced-informer {
    position: static;
    display: block;
    margin: auto;
  }

  .footer {
    padding-bottom: calc(var(--bottom-nav-clearance) + env(safe-area-inset-bottom, 0px));
  }

  /* Футер: подпись и значение на разных строках (как на wisking) */
  .footer .contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .footer .contact-name {
    margin-right: 0;
    margin-bottom: 0;
    white-space: normal;
  }

  .footer .contact-link {
    margin-left: 0;
    text-align: left;
  }

  .footer .contacts-list:first-child .contact-name {
    margin-right: 0;
    white-space: normal;
  }

  .footer .contacts-list {
    align-items: flex-start;
  }

  body {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
  }

  .catalog-brand_name {
    font-size: 24px;
  }
}

@media (hover: hover) {
  .banner-link:hover {
    background-color: transparent;
    color: #3c3c3c;;
    outline: 1.5px solid #3c3c3c;;
  }

  .menu-link:hover {
    color: var(--blue);
    outline: none;
  }

  .header__link:hover {
    outline: none;
    transform: scale(1.1);
  }

  .header__burger:hover {
    transform: scale(1.2);
  }

  .title-clickable:hover {
    color: var(--blue);
  }

  .news__post-link:hover {
    color: var(--blue);
    outline: 1px solid var(--blue);
    scale: 102%;
  }

  .all_news_link:hover svg path {
    stroke: var(--blue);
    stroke-width: 28px;
  }

  .more:hover,
  .back-home__link:hover {
    color: var(--description);
    text-decoration: none;
  }

  .market-link:hover {
    outline: 1.4px solid var(--blue);
    color: var(--blue);
    background-color: white;
  }

  .market-link-yellow:hover {
    outline: 1.4px solid var(--yellow);
    color: var(--yellow);
    background-color: white;
  }


  .clickable:hover,
  .clickable:focus {
    color: white;
  }

  .doc-link:hover,
  .doc-link:focus {
    color: white;
  }

  .button:hover {
    background: var(--btn-bg-hover);
    color: var(--btn-color-hover);
    border-color: var(--btn-border-hover);
    outline: none;
  }

  .tag-link:hover {
    color: var(--purple);
    text-decoration: none;
  }

  .catalog-brand:hover .catalog-brand_name {
    color: var(--purple);
  }

  .brand-card:hover {
    scale: 110%;
  }

  .brand-card:hover .brand-card-name {
    color: var(--blue);
  }

  .all-brands-menu-link:hover {
    color: var(--blue);
  }

  .back-to-top:hover {
    background: var(--purple);
    color: white;
  }

  .catalog-card:hover {
    scale: 103%;
  }
  
  .catalog-card:hover .catalog-name {
    color: var(--blue);
  }
}

/* Shop page styles */
.page-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--menu-color);
  text-align: center;
  margin-top: 0;
  margin-bottom: 16px;
}

/* Карусель основных категорий */
.category-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 8px 0 32px;
  padding: 0 44px;
  /* overflow не ставим здесь – иначе box-shadow стрелок обрезается в полосу */
}

.category-carousel__viewport {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.category-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 14px;
  box-sizing: border-box;
}

.category-carousel__track::-webkit-scrollbar {
  display: none;
}

.category-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 176px;
  height: auto;
  padding: 0;
  background: #fff;
  border-radius: 18px;
  text-decoration: none;
  color: #1c1c1c;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.category-card:hover,
.category-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  outline: none;
  color: #1c1c1c;
}

.category-card__title {
  position: relative;
  z-index: 2;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
}

.category-card__title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card__media {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background: #f2f2f2;
  overflow: hidden;
}

.category-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  transition: transform 0.25s ease;
}

.category-card:hover .category-card__image {
  transform: scale(1.04);
}

.category-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: var(--btn-border-width) solid var(--btn-border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--btn-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--btn-transition);
  padding: 0;
}

.category-carousel__btn:hover:not(:disabled) {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
  box-shadow: 0 4px 16px var(--blue-shadow);
}

.category-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.category-carousel__btn--prev {
  left: 0;
}

.category-carousel__btn--next {
  right: 0;
}

@media (max-width: 768px) {
  .category-carousel {
    margin-bottom: 18px;
    padding: 0 28px;
  }

  .carousel-block__head {
    justify-content: center;
    text-align: center;
    padding: 0 28px;
  }

  .carousel-block__title {
    width: 100%;
    font-size: 18px;
    text-align: center;
  }

  .carousel-block__all {
    display: none;
  }

  .category-carousel__track {
    gap: 10px;
    padding: 4px 2px 8px;
  }

  .category-card {
    width: 118px;
    border-radius: 12px;
  }

  .category-card__title {
    flex-basis: 42px;
    font-size: 11px;
    padding: 4px 6px;
  }

  .category-carousel__btn {
    width: 28px;
    height: 28px;
  }

  .category-carousel__btn svg {
    width: 14px;
    height: 14px;
  }

  .category-carousel-block,
  .brand-carousel-block {
    margin-bottom: 20px;
  }
}

/* Заголовки над каруселями – выровнены по первой карточке, не по стрелке */
.carousel-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  /* 44px как у .category-carousel + 2px padding трека */
  padding: 0 46px;
  box-sizing: border-box;
}

.carousel-block__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--menu-color);
}

.carousel-block__all {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-color, #2f6fed);
  text-decoration: none;
  white-space: nowrap;
}

.carousel-block__all:hover {
  text-decoration: underline;
}

.category-carousel-block {
  margin: 0 0 8px;
  min-width: 0;
}

/* Карусель популярных брендов */
.brand-carousel-block {
  margin: 0 0 36px;
  min-width: 0;
}

.brand-carousel {
  margin: 0;
}

.brand-carousel-card {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: 148px;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: #1c1c1c;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.brand-carousel-card:hover,
.brand-carousel-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  outline: none;
  color: #1c1c1c;
}

.brand-carousel-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 16px;
}

.brand-carousel-card__logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-carousel-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #1c1c1c;
  box-sizing: border-box;
}

/* Широкие логотипы: без боковой обрезки текста / с ровным фоном бренда */
.brand-carousel-card--karcher .brand-carousel-card__media {
  background: #19171c;
}

.brand-carousel-card--karcher .brand-carousel-card__logo {
  object-fit: contain;
  object-position: center;
  padding: 8% 4%;
  box-sizing: border-box;
}

.brand-carousel-card--greenworks .brand-carousel-card__media {
  background: #fff;
}

.brand-carousel-card--greenworks .brand-carousel-card__logo {
  object-fit: contain;
  object-position: center;
  padding: 6% 4%;
  box-sizing: border-box;
}

.brand-carousel-card--gigant .brand-carousel-card__media {
  background: #fff;
}

.brand-carousel-card--gigant .brand-carousel-card__logo {
  object-fit: contain;
  object-position: center;
  padding: 10% 6%;
  box-sizing: border-box;
  transform: none;
}

.brand-carousel-card--all .brand-carousel-card__media--all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, #eef3ff, #f8fafc);
}

.brand-carousel-card__all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 22px;
  color: var(--accent-color, #2f6fed);
}

.brand-carousel-card__all-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #1c1c1c;
}

@media (max-width: 768px) {
  .brand-carousel-card {
    width: 92px;
    border-radius: 10px;
  }

  .brand-carousel-card__media {
    border-radius: 10px;
  }

  .brand-carousel-card__all-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .brand-carousel-card__all-label,
  .brand-carousel-card__fallback {
    font-size: 10px;
    padding: 6px;
  }
}

/* Страница «Все бренды» */
.shop-brands-page {
  padding-bottom: 90px;
}

.shop-brands-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin: -12px 0 28px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 6%, white) 0%, #fff 55%, color-mix(in srgb, var(--purple) 5%, white) 100%);
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 24, 36, 0.04);
  box-sizing: border-box;
}

.shop-brands-page__lead {
  margin: 0;
  color: var(--description);
  font-size: 15px;
  line-height: 1.45;
}

.shop-brands-page__count {
  display: inline-block;
  font-weight: 700;
  color: var(--menu-color);
  font-variant-numeric: tabular-nums;
}

.shop-brands-filter {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
  width: 100%;
}

.shop-brands-search {
  position: relative;
  width: 100%;
}

.shop-brands-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.45;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23141824' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath stroke-linecap='round' d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}

.shop-brands-filter__input.brands-filter {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  line-height: 1.3;
  color: var(--menu-color);
  box-shadow: 0 1px 2px rgba(20, 24, 36, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.shop-brands-filter__input.brands-filter::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.shop-brands-filter__input.brands-filter::placeholder {
  color: #94a3b8;
  font-size: 15px;
}

.shop-brands-filter__input.brands-filter:hover {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--border-muted));
}

.shop-brands-filter__input.brands-filter:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-focus-ring);
}

.shop-brands-empty {
  margin: 24px 0;
  color: #5a6472;
}

.shop-brands-loading {
  text-align: center;
  padding: 40px 16px;
}

/* Единый размер карточек брендов */
.shop-brands-page .shop-brands-list.brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.shop-brands-page .shop-brand-card.brand-card {
  width: auto;
  height: 132px;
  min-height: 132px;
  max-height: 132px;
  margin: 0;
  padding: 12px 10px 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border: 1px solid #e8edf5;
  box-shadow: 0 1px 2px rgba(20, 24, 36, 0.03);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-brands-page .shop-brand-card .brand-card-img {
  width: 100%;
  height: 56px;
  padding: 0;
  flex: 0 0 56px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: transparent;
}

.shop-brands-page .shop-brand-card .brand-card-name {
  width: 100%;
  margin: 0;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--menu-color);
  text-align: center;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-brands-page .shop-brand-card--text {
  justify-content: center;
}

.shop-brands-page .shop-brand-card--text .brand-card-name {
  -webkit-line-clamp: 3;
  font-size: 14px;
}

.shop-brands-page .brand-card-name--long,
.brand-card-name--long {
  font-size: 0.85em;
}

.shop-brands-page .letter-separator {
  margin: 8px 0 12px;
}

.shop-brands-page .letter-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--menu-color);
}

.shop-brands-page .shop-brand-card.brand-card:hover {
  scale: none;
  transform: translateY(-2px);
  border-color: var(--blue-border-soft);
  box-shadow: 0 8px 18px var(--blue-shadow);
}

.shop-brands-page .shop-brand-card.brand-card:hover .brand-card-name {
  color: var(--blue);
}

@media (max-width: 920px) {
  .shop-brands-toolbar {
    padding: 14px 14px;
    margin-bottom: 20px;
  }

  .shop-brands-page .shop-brands-list.brands-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .shop-brands-page .shop-brand-card.brand-card {
    height: 118px;
    min-height: 118px;
    max-height: 118px;
    padding: 10px 8px;
  }

  .shop-brands-page .shop-brand-card .brand-card-img {
    height: 44px;
    flex-basis: 44px;
  }

  .shop-brands-page .shop-brand-card .brand-card-name {
    font-size: 12px;
  }

  .shop-brands-page .letter-title {
    font-size: 18px;
  }
}

@media (min-width: 769px) and (max-width: 920px) {
  .carousel-block__title {
    font-size: 18px;
  }

  .brand-carousel-card {
    width: 124px;
  }
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 24px;
}

.products-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(243, 247, 255, 0.8), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
  color: var(--menu-color);
}

.products-state--active {
  display: flex;
}

.products-state__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid color-mix(in srgb, var(--blue) 20%, transparent);
  border-top-color: var(--blue);
  animation: products-state-spin 0.9s linear infinite;
}

@keyframes products-state-spin {
  to {
    transform: rotate(360deg);
  }
}

.products-state__text {
  font-size: 18px;
  font-weight: 600;
}

/* Уменьшенные карточки на больших экранах */
@media (min-width: 769px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
}

.shop-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.shop-card__hitarea {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.shop-card__image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

/* Уменьшенные изображения на больших экранах */
@media (min-width: 769px) {
  .shop-card__image {
    height: 180px;
  }
}

.shop-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shop-card:hover .shop-card__photo {
  transform: scale(1.05);
}

.shop-card__content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.shop-card__brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.shop-card__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--menu-color);
  line-height: 1.4;
  margin-bottom: 10px;
  margin-top: 5px;
  flex-grow: 1;
  transition: color 0.2s ease;
  /* Ограничение до 3 строк с многоточием */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card__article {
  font-size: 12px;
  color: var(--description);
  margin-bottom: 10px;
}

.shop-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 22px;
}

/* Уменьшенные размеры текста и padding на больших экранах */
@media (min-width: 769px) {
  .shop-card__content {
    padding: 15px;
  }
  
  .shop-card__brand {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .shop-card__name {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .shop-card__article {
    font-size: 11px;
    margin-bottom: 8px;
  }
  
  .shop-card__price {
    font-size: 18px;
    margin-bottom: 18px;
  }
  
  .shop-card {
    border-radius: 12px; /* Немного меньше скругление */
  }
  
  .shop-card__actions {
    gap: 8px;
  }
  
  .shop-card .cart-btn {
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-font-size);
    border-radius: var(--btn-radius);
  }
}

.shop-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.cart-btn {
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  border: var(--btn-border-width) solid var(--btn-border);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: none;
  box-sizing: border-box;
  background: var(--btn-bg);
  color: var(--btn-color);
}

.cart-btn--add {
  background: var(--btn-bg);
  color: var(--btn-color);
  border-color: var(--btn-border);
  height: var(--cart-control-size, 36px);
  min-height: var(--cart-control-size, 36px);
  max-height: var(--cart-control-size, 36px);
  padding: 0 12px;
  line-height: 1;
  box-sizing: border-box;
}

.cart-btn--add:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
  transform: none;
}

.cart-btn--remove {
  background: var(--btn-danger-bg);
  color: var(--btn-danger-color);
  border: var(--btn-border-width) solid var(--btn-danger-border);
  width: var(--cart-control-size, 36px);
  height: var(--cart-control-size, 36px);
  min-width: var(--cart-control-size, 36px);
  min-height: var(--cart-control-size, 36px);
  max-width: var(--cart-control-size, 36px);
  max-height: var(--cart-control-size, 36px);
  padding: 0;
  border-radius: var(--btn-radius);
  flex: 0 0 var(--cart-control-size, 36px);
  box-sizing: border-box;
  line-height: 1;
}

.cart-btn--remove:hover {
  background: var(--btn-danger-bg-hover);
  border-color: var(--btn-danger-color);
  color: var(--btn-danger-color-hover);
}

.cart-btn--checkout {
  margin-left: 0;
  background: var(--btn-success-bg);
  color: var(--btn-success-color);
  border: var(--btn-border-width) solid var(--btn-success-border);
  width: var(--cart-control-size, 36px);
  height: var(--cart-control-size, 36px);
  min-width: var(--cart-control-size, 36px);
  min-height: var(--cart-control-size, 36px);
  max-width: var(--cart-control-size, 36px);
  max-height: var(--cart-control-size, 36px);
  padding: 0;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: var(--btn-transition);
  cursor: pointer;
  box-sizing: border-box;
  flex: 0 0 var(--cart-control-size, 36px);
  line-height: 1;
}

.cart-btn--checkout:hover {
  background: var(--btn-success-bg-hover);
  border-color: var(--btn-success-color);
  color: var(--btn-success-color-hover);
  transform: none;
  box-shadow: none;
}

.cart-btn--remove-all {
  background: var(--btn-soft-bg);
  color: var(--btn-soft-color);
  border: var(--btn-border-width) solid var(--btn-soft-border);
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: var(--btn-radius);
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
}

.cart-btn--remove-all:hover {
  background: var(--btn-soft-bg-hover);
  border-color: #c5cad3;
}

.cart-btn--remove-item {
  background: var(--btn-danger-bg);
  color: var(--btn-danger-color);
  border: var(--btn-border-width) solid var(--btn-danger-border);
  width: var(--cart-control-size, 36px);
  height: var(--cart-control-size, 36px);
  min-width: var(--cart-control-size, 36px);
  min-height: var(--cart-control-size, 36px);
  max-width: var(--cart-control-size, 36px);
  max-height: var(--cart-control-size, 36px);
  padding: 0;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 var(--cart-control-size, 36px);
  line-height: 0;
  position: static;
}

.cart-btn--remove-item:hover {
  background: var(--btn-danger-bg-hover);
  border-color: var(--btn-danger-color);
  color: var(--btn-danger-color-hover);
}

.cart-controls {
  --cart-control-size: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

/* + внутри блока количества – квадрат, как − и » */
.cart-controls .cart-btn--add {
  width: var(--cart-control-size);
  height: var(--cart-control-size);
  min-width: var(--cart-control-size);
  min-height: var(--cart-control-size);
  max-width: var(--cart-control-size);
  max-height: var(--cart-control-size);
  padding: 0;
  flex: 0 0 var(--cart-control-size);
  box-sizing: border-box;
  line-height: 1;
  font-size: 18px;
}

.cart-controls .cart-btn--remove,
.cart-controls .cart-btn--checkout {
  width: var(--cart-control-size);
  height: var(--cart-control-size);
  min-width: var(--cart-control-size);
  min-height: var(--cart-control-size);
  max-width: var(--cart-control-size);
  max-height: var(--cart-control-size);
}

.cart-quantity {
  font-size: 16px;
  font-weight: 600;
  color: var(--menu-color);
  min-width: 20px;
  text-align: center;
}

.cart-quantity-input {
  width: 64px;
  min-width: 64px;
  height: var(--cart-control-size, 36px);
  min-height: var(--cart-control-size, 36px);
  max-height: var(--cart-control-size, 36px);
  border: var(--btn-border-width) solid #d8dce3;
  border-radius: var(--btn-radius);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--menu-color);
  transition: var(--btn-transition);
  background-color: white;
  box-sizing: border-box;
  padding: 0 4px;
  flex: 0 0 64px;
}

.cart-quantity-input:focus {
  outline: none;
  border-color: var(--blue);
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-quantity-input[type=number] {
  -moz-appearance: textfield;
}

/* Filters styles */
.filters-container {
  background-color: white;
  border-radius: 15px;
  padding: 25px;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  align-content: flex-start;
}

/* Обертка для AJAX-обновления: не ломает сетку «по два в ряд» */
#characteristic-filters {
  display: contents;
}

.filter-group {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: 14px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 100%;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f9fbff 0%, #f3f7ff 100%);
  border: 1px solid #dfe6f3;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.filter-group:hover,
.filter-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 12px 26px var(--blue-shadow);
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--menu-color);
  margin-bottom: 0;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 15px;
  min-height: 44px;
  border: 1px solid #d2dae8;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-focus-ring);
}

.filter-input::placeholder {
  color: #999;
}

.filter-group--section-heading {
  flex: 1 1 100%;
  width: 100%;
  padding: 12px 0 0;
  margin-top: 10px;
  border: none;
  border-top: 1px solid #e3e9f3;
  background: transparent;
  box-shadow: none;
  row-gap: 0;
  transform: none;
  pointer-events: none;
  cursor: default;
}

.filter-group--section-heading:hover,
.filter-group--section-heading:focus,
.filter-group--section-heading:focus-within {
  border-color: transparent;
  border-top-color: #e3e9f3;
  box-shadow: none;
  transform: none;
  background: transparent;
}

.filter-group--characteristic {
  flex: 1 1 320px;
}

.filter-group--primary {
  flex: 1 1 100%;
}

.filter-form-actions {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e3e9f3;
}

.filter-form-actions .filter-btn {
  min-width: 140px;
}

.filter-primary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px 20px;
  align-items: end;
}

.filter-primary-field {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
}

.filter-primary-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: stretch;
  align-self: end;
}

.filter-primary-actions .filter-btn {
  min-width: 120px;
  min-height: var(--btn-min-height);
  height: auto;
  padding: var(--btn-pad-y) var(--btn-pad-x);
}

.filter-primary-actions .filter-btn--primary {
  box-shadow: none;
}

.filter-primary-actions .filter-btn--secondary {
  box-shadow: none;
}

.filter-label--section {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--menu-color);
}

.filter-label__units {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  margin-left: 6px;
}

.characteristic-range {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.characteristic-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.characteristic-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--menu-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.characteristic-option:hover {
  background-color: var(--blue-soft-bg);
}

.characteristic-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.characteristic-notice {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Кнопка открытия фильтров (видна только на маленьких экранах) */
.open-filters-btn {
  display: none;
  width: 100%;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: var(--btn-border-width) solid var(--btn-border);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  box-shadow: none;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.open-filters-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
  box-shadow: none;
  transform: none;
}

.open-filters-btn:active {
  transform: none;
}

/* Применены фильтры из модалки – заливка */
.open-filters-btn--active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.open-filters-btn--active:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}

.open-filters-btn--active:active {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}

/* Модальное окно фильтров - на больших экранах просто контейнер */
.filters-modal {
  display: block;
}

.filters-modal-content {
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.filters-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: white;
  border-radius: 0 0 15px 15px;
  scrollbar-gutter: stable both-edges;
  scrollbar-color: var(--blue-scroll) transparent;
}

.filters-modal-body::-webkit-scrollbar {
  width: var(--scrollbar-size);
}

.filters-modal-body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 15px;
  margin: 12px 4px;
}

.filters-modal-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--blue) 30%, transparent);
  border-radius: 15px;
}

.filters-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--blue-scroll-hover);
}

.filters-modal-header {
  display: none; /* Скрыт на больших экранах */
}

/* Контейнер для фильтра по цене */
.price-filter-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.price-input {
  flex: 1;
  min-width: 0;
}

.price-separator {
  color: #666;
  font-weight: 500;
  flex-shrink: 0;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  align-self: flex-end;
  margin-left: auto;
}

.filter-btn {
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  height: auto;
  border: var(--btn-border-width) solid var(--btn-border);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  font-family: 'Montserrat', sans-serif;
  box-shadow: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  background: var(--btn-bg);
  color: var(--btn-color);
}

.filter-btn--primary {
  background: var(--btn-bg);
  color: var(--btn-color);
  border-color: var(--btn-border);
}

.filter-btn--primary:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
  transform: none;
}

.filter-btn--secondary {
  background: var(--btn-soft-bg);
  color: var(--btn-soft-color);
  border-color: var(--btn-soft-border);
}

.filter-btn--secondary:hover {
  background: var(--btn-soft-bg-hover);
  border-color: #c5cad3;
  color: var(--btn-soft-color);
}

/* Cart styles */
.cart-toggle {
  position: relative;
  cursor: pointer;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -400px;
  width: 400px;
  max-width: 100vw;
  height: 100%;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 2100; /* выше header (1100) и sticky-filters */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.cart-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--menu-color);
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  font-size: 0;
  cursor: pointer;
  color: var(--description);
  padding: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: var(--btn-radius);
  transition: var(--btn-transition);
}

.cart-close:hover {
  color: var(--menu-color);
  background: var(--btn-soft-bg);
}

.cart-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.cart-empty {
  text-align: center;
  color: var(--description);
  padding: 40px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-item__info {
  flex: 1;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--menu-color);
  margin-bottom: 5px;
  line-height: 1.3;
}

.cart-item__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-item__name a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.cart-item__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.cart-item__total {
  display: none;
}

.cart-item__controls {
  --cart-control-size: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.cart-item__controls .cart-controls {
  --cart-control-size: 36px;
}

.cart-item__controls .cart-btn,
.cart-item__controls .cart-btn--remove,
.cart-item__controls .cart-btn--add,
.cart-item__controls .cart-btn--checkout,
.cart-item__controls .cart-btn--remove-item {
  width: var(--cart-control-size);
  height: var(--cart-control-size);
  min-width: var(--cart-control-size);
  min-height: var(--cart-control-size);
  max-width: var(--cart-control-size);
  max-height: var(--cart-control-size);
  padding: 0 !important;
  margin: 0;
  font-size: 16px;
  flex: 0 0 var(--cart-control-size);
  box-sizing: border-box;
  align-self: center;
  line-height: 0;
  aspect-ratio: 1 / 1;
  position: static;
}

.cart-item__controls .cart-quantity-input {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  flex: 0 0 64px;
  height: var(--cart-control-size);
  min-height: var(--cart-control-size);
  max-height: var(--cart-control-size);
  font-size: 14px;
  box-sizing: border-box;
  align-self: center;
  padding: 0 4px;
}

.cart-item__quantity {
  font-size: 16px;
  font-weight: 600;
  color: var(--menu-color);
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--menu-color);
}

.cart-total-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
}

.cart-checkout-btn {
  width: 100%;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  background: var(--btn-bg);
  color: var(--btn-color);
  border: var(--btn-border-width) solid var(--btn-border);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  font-family: 'Montserrat', sans-serif;
  box-shadow: none;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.cart-checkout-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
  transform: none;
}

/* Checkout page styles */
.checkout-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 16px;
  box-sizing: border-box;
  min-width: 0;
}

.checkout-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 0;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.order-form-section,
.order-summary-section {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: fit-content;
}

.order-form-section {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-summary-section {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--menu-color);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 10px;
}

.order-form {
  display: flex;
  flex-direction: column;
}

.order-form .form-group:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: var(--control-label-size);
  font-weight: var(--btn-font-weight);
  color: var(--menu-color);
}

.form-input,
.form-textarea {
  padding: var(--control-pad-y) var(--control-pad-x);
  min-height: var(--control-min-height);
  border: var(--control-border-width) solid var(--control-border-color);
  border-radius: var(--control-radius);
  font-size: var(--control-font-size);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
  transition: border-color 0.3s ease;
  background-color: white;
  box-sizing: border-box;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: var(--control-font-size);
  color: var(--menu-color);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-checkbox a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-checkbox a:hover,
.form-checkbox a:focus {
  color: var(--purple, #5b4b8a);
}

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item__image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.order-item__info {
  flex: 1 1 auto;
  min-width: 0;
}

#yandex-tariffs-list {
  margin-bottom: 10px;
}

.delivery-address-section {
  margin-top: 0 !important;
}

.pickup-address-card {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e8edf5;
  background: linear-gradient(135deg, #f7f9fc 0%, #f3f7ff 55%, #fff 100%);
}

.pickup-address-card__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6b7280;
}

.pickup-address-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--menu-color);
}

/* Стили для виджетов доставки (из checkout.html) */

/* Выделение основного поля ввода адреса */
#delivery-address-input:focus,
#new_address:focus {
  outline: none;
  border-color: var(--blue) !important;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25) !important;
  background-color: #ffffff !important;
}

/* Скрываем только переключатели типа доставки, не карту */
#cdek-map input[type="radio"][value="office"],
#cdek-map input[type="radio"][value="door"],
#cdek-map label[for*="office"],
#cdek-map label[for*="door"] {
  display: none !important;
}

/* Обеспечиваем, чтобы выезжающие меню CDEK были ниже хедера */
.cdek-dorbss,
.cdek-uv033b,
[class*="cdek-dorbss"],
[class*="cdek-uv033b"] {
  z-index: 5 !important;
}

.cdek-hlhf5b {
  z-index: 5 !important;
}

#cdek-map .cdek-dorbss,
#cdek-map .cdek-uv033b,
#cdek-map [class*="cdek-dorbss"],
#cdek-map [class*="cdek-uv033b"] {
  z-index: 5 !important;
}

/* Стили для виджета Яндекс ПВЗ (для всех экранов) */
#ydw-widget-section,
#yandex-delivery-widget #ydw-widget-section {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: transparent;
}

#yandex-delivery-widget {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  height: 400px;
  max-height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-sizing: border-box;
}

/* При выборе ПВЗ скрываем поиск (все экраны) */
#yandex-delivery-widget.yandex-pvz-selected .widget__header,
#yandex-delivery-widget.yandex-pvz-selected .widget_filters,
#yandex-delivery-widget.yandex-pvz-selected #ydw-suggest-adr {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Поле поиска: не кремовый #f5f4f2 виджета – белый, как карта/карточка */
#yandex-delivery-widget .widget__input--search,
#yandex-delivery-widget .widget__input--search:not(:focus),
#yandex-delivery-widget .ydw-suggest-inactive,
#yandex-delivery-widget #ydw-suggest-adr {
  background: #fff !important;
  background-color: #fff !important;
}

/* Стили для виджета CDEK ПВЗ */
#cdek-map {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  overflow: hidden;
  z-index: 5 !important;
  width: 100%;
  height: 400px;
  margin-top: 10px;
}

/* Виджет ПВЗ Почты России – тот же размер/рамка, что у CDEK */
#ecom-widget {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  overflow: hidden;
  z-index: 5 !important;
  width: 100%;
  height: 400px;
  margin-top: 10px;
}

#ecom-widget iframe,
#ecom-widget > div {
  width: 100% !important;
  height: 100% !important;
  min-height: 400px;
}

/* Убираем border-radius у заголовка виджета */
.widget__title,
#yandex-delivery-widget .widget__header,
[class*="widget__title"] {
  border-radius: 0 !important;
}

.widget__title {
  padding-top: 5px;
  padding-bottom: 10px;
}

.widget__form {
  padding: 10px;
}

#ydw-suggest-adr {
  margin-top: 5px;
}

/* Анимация спиннера */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Стили для спиннера кнопки подтверждения заказа */
.submit-order-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-order-spinner.d-none {
  display: none !important;
}

.submit-order-spinner .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

.submit-order-spinner-text {
  margin-left: 8px;
}

/* Классы для элементов checkout (из инлайн-стилей) */
#free-delivery-info {
  margin-bottom: 10px;
  padding: 12px 16px;
  background: var(--blue-soft-bg);
  border: 1px solid var(--blue-border-soft);
  border-radius: 8px;
  color: var(--blue-hover);
  font-size: 14px;
  line-height: 1.5;
}

.free-delivery-info-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.free-delivery-info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.free-delivery-info-title {
  display: block;
  margin-bottom: 4px;
}

#delivery-address-label {
  margin-right: 10px;
  margin-bottom: 8px !important;
}

#show-delivery-address-form {
  display: block;
  width: auto;
  margin-bottom: 20px !important;
}

#delivery-address-form .form-group {
  margin-bottom: 0px !important;
}

.delivery-address-input-wrapper {
  position: relative;
}

#delivery-address-input {
  font-size: 16px;
  padding: 12px 15px;
  border: 2px solid #4a90e2;
  border-radius: 6px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
  transition: all 0.3s ease;
}

#delivery-address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#save-address-errors {
  margin-bottom: 10px;
}

.delivery-options-top {
  margin-top: 8px !important;
}

.delivery-price {
  margin-left: 8px;
  color: #666;
  font-size: 0.9em;
}

.loading-spinner {
  display: none;
  margin-left: 8px;
  vertical-align: middle;
}

.loading-spinner.d-inline {
  display: inline;
}

.loading-spinner-inner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.tariffs-list {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.tariffs-list-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.tariffs-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option-last {
  margin-bottom: 0 !important;
}

.delivery-address-section-top {
  margin-top: 10px;
}

#delivery-address-errors {
  margin-bottom: 20px;
}


/* Стили для виджета Яндекс ПВЗ на больших экранах */
@media (min-width: 769px) {
  #yandex-delivery-widget {
    height: 400px !important;
    max-height: 400px !important;
    overflow: hidden !important;
  }

  #yandex-delivery-widget .widget__wrapper,
  #yandex-delivery-widget .ydw-widget,
  #yandex-delivery-widget #ydw-widget-section {
    height: 100% !important;
    max-height: 100% !important;
  }

  #yandex-delivery-widget .widget_map,
  #yandex-delivery-widget .widget__map,
  #yandex-delivery-widget #ydw-map {
    height: 100% !important;
    max-height: 100% !important;
  }

  /* Список ПВЗ занимает всю высоту левой колонки */
  #yandex-delivery-widget .widget__list,
  #yandex-delivery-widget [class*="widget__list"],
  #yandex-delivery-widget .widget_content {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
}

/* Мобильный виджет Яндекс */
@media (max-width: 768px) {
  #yandex-delivery-widget {
    width: 100% !important;
    max-width: 100% !important;
    height: 400px !important;
    max-height: 400px !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
    /* Цвет «воды» Яндекс.Карт – если карта еще не закрыла угол, шва не видно */
    background: #afdbf4 !important;
  }

  #yandex-delivery-widget .ydw-widget,
  #yandex-delivery-widget #ydw-widget-section,
  #yandex-delivery-widget .widget__wrapper,
  #yandex-delivery-widget .widget {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    --color-bg-minor: transparent;
  }

  /* Карта на весь виджет – под поиском тот же фон, что и ниже */
  #yandex-delivery-widget .widget_map,
  #yandex-delivery-widget .widget__map,
  #yandex-delivery-widget #ydw-map {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 100% !important;
    margin: 0 !important;
    border-radius: 8px !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    background: #afdbf4 !important;
  }

  #yandex-delivery-widget .widget__map > ymaps,
  #yandex-delivery-widget .widget__map .ymaps-2-1-79-map,
  #yandex-delivery-widget #ydw-map > ymaps {
    width: 100% !important;
    height: 100% !important;
  }

  /* Убираем брендинг «Я Доставка» */
  #yandex-delivery-widget .widget__title,
  #yandex-delivery-widget .widget__title-text,
  #yandex-delivery-widget .widget__title-text-second,
  #yandex-delivery-widget [class*="widget__title"],
  #yandex-delivery-widget .widget__header img,
  #yandex-delivery-widget .widget__header svg,
  #yandex-delivery-widget .widget__header > a {
    display: none !important;
  }

  /* Поиск поверх карты, без своей подложки и тени (тень давала «шов») */
  #yandex-delivery-widget .widget__header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    z-index: 8 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    pointer-events: none !important;
    overflow: visible !important;
  }

  /* Прозрачная только обертка шапки – не трогаем popup/suggest Яндекса */
  #yandex-delivery-widget .widget__header > div:not(.widget__popup):not(.widget__popup--search),
  #yandex-delivery-widget .widget__header form,
  #yandex-delivery-widget .widget__header .widget__label,
  #yandex-delivery-widget .widget__header .widget__form,
  #yandex-delivery-widget .widget__header .widget__form-item,
  #yandex-delivery-widget .widget__header .widget__lead {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  /* Кликабельны поле адреса и его контейнер */
  #yandex-delivery-widget .widget__header input,
  #yandex-delivery-widget .widget__header textarea,
  #yandex-delivery-widget #ydw-suggest-adr,
  #yandex-delivery-widget .widget__header .widget__label,
  #yandex-delivery-widget .widget__header form,
  #yandex-delivery-widget .widget__header > div {
    pointer-events: auto !important;
  }

  #yandex-delivery-widget #ydw-suggest-adr,
  #yandex-delivery-widget .widget__header input.widget__input--search {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }

  /* Поле ввода белое на карте; подсказки – как у виджета Яндекса (не переопределяем) */
  #yandex-delivery-widget .widget__input--search,
  #yandex-delivery-widget .widget__input--search:not(:focus),
  #yandex-delivery-widget .widget__input--search.active,
  #yandex-delivery-widget .ydw-suggest-inactive,
  #yandex-delivery-widget #ydw-suggest-adr,
  #yandex-delivery-widget .widget__header input.widget__input {
    background: #fff !important;
    background-color: #fff !important;
  }
}

.order-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--menu-color);
  margin-bottom: 5px;
  line-height: 1.3;
}

.order-item__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.order-item__name a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.order-item__article {
  font-size: 12px;
  color: var(--description);
  margin-bottom: 3px;
}

.order-item__quantity {
  font-size: 12px;
  color: var(--description);
}

.order-item__price {
  text-align: right;
  flex: 0 0 auto;
  max-width: 42%;
  min-width: 0;
  box-sizing: border-box;
  padding-left: 4px;
}

.order-item__unit-price {
  font-size: 12px;
  color: var(--description);
  margin-bottom: 3px;
  white-space: nowrap;
}

.order-item__total-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.order-total {
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
  margin-bottom: 30px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.total-line--delivery-method {
  align-items: flex-start;
  gap: 12px;
}

.total-value--delivery-method {
  text-align: right;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  max-width: 62%;
  word-break: break-word;
}

.total-value--delivery-method .delivery-method-service {
  display: block;
  font-weight: 600;
  color: var(--menu-color);
  margin-bottom: 2px;
}

.total-value--delivery-method .delivery-method-address {
  display: block;
  font-weight: 400;
  color: var(--description);
}

.total-line--main {
  font-size: 18px;
  font-weight: 700;
  color: var(--menu-color);
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 10px;
}

.total-label {
  color: var(--description);
}

.total-value {
  font-weight: 600;
  color: var(--menu-color);
}

.total-line--main .total-value {
  color: var(--blue);
  font-size: 20px;
}

.submit-order-btn {
  width: 100%;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  background: var(--btn-bg);
  color: var(--btn-color);
  border: var(--btn-border-width) solid var(--btn-border);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

.submit-order-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
  transform: none;
}

.submit-order-btn:disabled {
  background: var(--btn-soft-bg);
  border-color: var(--btn-soft-border);
  color: #98a2b3;
  cursor: not-allowed;
  transform: none;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 24px;
}

.load-more-btn {
  background: var(--btn-bg);
  color: var(--btn-color);
  border: var(--btn-border-width) solid var(--btn-border);
  padding: 14px 36px;
  min-height: 52px;
  min-width: 220px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--btn-transition);
  font-family: 'Montserrat', sans-serif;
  box-shadow: none;
  box-sizing: border-box;
}

.load-more-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
  transform: none;
  box-shadow: none;
}

.load-more-btn:active {
  transform: none;
}

.load-more-btn:disabled {
  background: var(--btn-bg);
  border-color: #d0d5dd;
  color: #98a2b3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}



.brand-card:active {
  scale: 110%;
}

.tag-link:active {
  color: var(--purple);
  text-decoration: none;
}

.news__post-link:active {
  color: var(--blue);
  outline: 1px solid var(--blue);
  scale: 102%;
}

.all_news_link:active svg path {
  stroke: var(--blue);
  stroke-width: 28px;
}

.back-to-top:active {
  background: var(--purple);
  color: white;
}

/* ===== СТИЛИ ИЗ HTML ФАЙЛОВ ===== */

/* Стили из checkout.html */

.radio-option {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  padding: var(--control-pad-y) var(--control-pad-x);
  min-height: var(--control-min-height);
  border: var(--control-border-width) solid transparent;
  border-radius: var(--control-radius);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  font-size: var(--control-font-size);
  font-weight: 500;
  box-sizing: border-box;
  line-height: 1.35;
}

.radio-option:hover {
  background-color: rgba(3, 123, 252, 0.04);
  border-color: rgba(3, 123, 252, 0.18);
}

.radio-option input[type="radio"] {
  margin-right: 8px;
  transform: none;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Стили полей формы доставки и адреса */
#delivery-address-form input[type="text"],
#delivery-address-form textarea,
#add-address-form input[type="text"],
#add-address-form textarea,
#delivery_address_entrance,
#delivery_address_floor,
#delivery_address_apartment,
#delivery_address_intercom,
#delivery_address_comment,
#delivery-address,
#new_address {
  font-size: var(--control-font-size);
  padding: var(--control-pad-y) var(--control-pad-x);
  min-height: var(--control-min-height);
  border: var(--control-border-width) solid var(--control-border-color);
  border-radius: var(--control-radius);
  width: 100%;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
}

#delivery-address-form label,
#delivery-address-form .form-label,
#add-address-form label,
#add-address-form .form-label {
  font-size: var(--control-label-size);
  margin-bottom: 6px;
  font-weight: var(--btn-font-weight);
  display: block;
  color: #333;
}

#delivery-address-form .form-group,
#add-address-form .form-group {
  margin-bottom: 15px;
}

#delivery-address-form textarea,
#add-address-form textarea {
  min-height: 80px;
  resize: vertical;
}

#show-delivery-address-form,
#save-delivery-address,
#cancel-delivery-address,
#select-delivery-from-map,
#show-add-address-form,
#cancel-add-address,
#select-from-map {
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: var(--btn-transition);
  border: var(--btn-border-width) solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

#show-delivery-address-form {
  margin-top: 10px;
}

#cancel-delivery-address,
#cancel-add-address {
  background: var(--btn-soft-bg);
  color: var(--btn-soft-color);
  border-color: var(--btn-soft-border);
}

#show-delivery-address-form:hover,
#save-delivery-address:hover,
#select-delivery-from-map:hover,
#show-add-address-form:hover,
#select-from-map:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
}

#cancel-delivery-address:hover,
#cancel-add-address:hover {
  background: var(--btn-soft-bg-hover);
  border-color: #c5cad3;
}

.delivery-options .radio-option {
  padding: var(--control-pad-y) var(--control-pad-x);
  cursor: pointer;
  border-radius: var(--control-radius);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  margin-bottom: 8px;
  background: transparent;
  border: var(--control-border-width) solid var(--control-border-color);
  min-height: var(--control-min-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.delivery-options .radio-option:hover {
  background-color: rgba(3, 123, 252, 0.04);
  border-color: rgba(3, 123, 252, 0.28);
}

.delivery-options .radio-option input[type="radio"] {
  transform: none;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.delivery-options .radio-option span {
  font-size: var(--control-font-size);
  font-weight: 500;
  line-height: 1.35;
}

/* Кастомный select для сохраненных адресов */
.custom-select-container {
  position: relative;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

.custom-select-header {
  font-size: var(--control-font-size);
  padding: var(--control-pad-y) var(--control-pad-x);
  border: var(--control-border-width) solid var(--control-border-color);
  border-radius: var(--control-radius);
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease;
  min-height: var(--control-min-height);
  box-sizing: border-box;
  line-height: 1.35;
}

.custom-select-header:hover {
  border-color: var(--blue);
}

.custom-select-header.active {
  border-color: var(--blue);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select-text {
  flex: 1;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
  font-size: var(--control-font-size);
}

.custom-select-arrow {
  margin-left: 10px;
  margin-top: 0;
  transition: transform 0.3s;
  color: #666;
  flex-shrink: 0;
}

.custom-select-header.active .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: var(--control-border-width) solid var(--blue);
  border-top: none;
  border-radius: 0 0 var(--control-radius) var(--control-radius);
  max-height: 260px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-select-dropdown.active {
  display: block;
}

.custom-select-option {
  padding: var(--control-pad-y) var(--control-pad-x);
  min-height: var(--control-min-height);
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
  font-size: var(--control-font-size);
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background-color: var(--blue-soft-bg);
}

.custom-select-option.selected {
  background-color: var(--blue-muted-bg);
  font-weight: 500;
}

.submit-btn {
  background: var(--btn-bg);
  color: var(--btn-color);
  border: var(--btn-border-width) solid var(--btn-border);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

.submit-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
}

.submit-btn:disabled {
  background: var(--btn-soft-bg);
  border-color: var(--btn-soft-border);
  color: #98a2b3;
  cursor: not-allowed;
}

/* Стили для автодополнения брендов */
.brand-search-container {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.brand-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-height: 400px;
  overflow: hidden;
  z-index: 10000;
  display: none;
  margin-top: 4px;
}

.brand-suggestions--virtual {
  display: none;
  flex-direction: column;
}

.brand-suggestions__pinned {
  flex: 0 0 auto;
  max-height: 140px;
  overflow-y: auto;
  border-bottom: 1px solid #eee;
}

.brand-suggestions__pinned:empty {
  display: none;
  border-bottom: none;
}

.brand-suggestions__scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
}

.brand-suggestions__phantom {
  width: 100%;
  pointer-events: none;
}

.brand-suggestions__window {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.brand-suggestions__window .brand-suggestion {
  height: 44px;
  box-sizing: border-box;
}

.brand-suggestions__window .brand-suggestion__label {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}

.brand-suggestion {
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.brand-suggestion:hover {
  background-color: #f5f5f5;
}

.brand-suggestion:last-child {
  border-bottom: none;
}

.brand-suggestion__label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  margin: 0;
  width: 100%;
}

.brand-suggestion__label input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-suggestion__label span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
}

.brand-suggestion--empty {
  color: #999;
  cursor: default;
  padding: 12px 16px;
}

.brand-suggestion--empty:hover {
  background-color: white;
}

/* Выбранные бренды в списке */
.brand-suggestion--selected {
  background-color: var(--blue-muted-bg);
  border-left: 3px solid var(--blue);
}

.brand-suggestion--selected .brand-suggestion__label {
  font-weight: 600;
  color: var(--blue);
}

.brand-suggestion--selected:hover {
  background-color: var(--blue-strong-bg);
}

.brand-suggestions-divider {
  height: 1px;
  background: linear-gradient(to right, #e0e0e0, transparent);
  margin: 8px 0;
  position: relative;
}

.brand-suggestions-divider::after {
  content: 'Доступные бренды';
  position: absolute;
  top: -8px;
  left: 16px;
  background: white;
  padding: 0 8px;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Стили для каталога категорий на главной странице */
.catalog-widget {
  position: relative;
}

.catalog-widget--subcategories {
  position: relative;
}

/* Sticky позиционирование для маленьких экранов - единый контейнер */
@media (max-width: 768px) {
  /* Включаем sticky для всего контейнера на маленьких экранах */
  .sticky-filters-wrapper {
    position: sticky;
    top: calc(var(--header-sticky-offset) + 8px);
    z-index: 200;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    --catalog-toolbar-control-height: 36px;
    /* Важно: не добавляем overflow, чтобы dropdown мог выходить за границы */
  }

  /* Модалка фильтров внутри sticky – поднимаем весь слой над bottom-nav */
  .sticky-filters-wrapper:has(.filters-modal.active) {
    z-index: 10050;
  }

  body:has(.filters-modal.active) .bottom-nav {
    visibility: hidden;
    pointer-events: none;
  }
  
  /* Позиционируем mobile-buttons-bar: на мобильных – столбик */
  .mobile-buttons-bar {
    position: relative; /* Для позиционирования dropdown */
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    width: 100%;
  }
  
  /* Отключаем отдельное sticky для каталога */
  .catalog-widget--sticky {
    position: static;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    overflow: visible;
  }

  /* На мобильных «Все категории» – отдельная страница */
  .mobile-buttons-bar .catalog-widget--sticky {
    display: none !important;
  }

  /* Подкатегории – вторая строка: слева от фильтра и поиска */
  .mobile-buttons-bar .catalog-widget--subcategories {
    position: static;
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    overflow: visible;
    order: 3;
  }

  .catalog-widget--sticky .catalog-toggle,
  .catalog-widget--subcategories .catalog-toggle {
    width: 100%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 8px;
  }

  .catalog-widget--sticky .catalog-toggle__text,
  .catalog-widget--subcategories .catalog-toggle__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Кнопка каталога - растягиваем на всю высоту */
  .catalog-widget--sticky .catalog-toggle,
  .catalog-widget--subcategories .catalog-toggle {
    width: 100%;
    height: var(--catalog-toolbar-control-height, 40px);
    min-height: var(--catalog-toolbar-control-height, 40px);
  }
  
  /* Выпадающий список категорий - на всю ширину, под кнопками */
  .mobile-buttons-bar .catalog-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* Под блоком кнопок + небольшой отступ */
    left: -10px; /* Компенсируем padding родителя */
    right: -10px; /* Компенсируем padding родителя */
    width: calc(100% + 20px); /* Полная ширина с учетом padding */
    max-width: none;
    margin-top: 0;
    border-radius: 12px; /* Скругляем со всех сторон */
  }
  
  /* Подкатегории в выпадающем списке тоже на всю ширину */
  .mobile-buttons-bar .catalog-submenu {
    position: static; /* Обычное позиционирование в потоке */
    width: 100%;
    max-width: none;
    max-height: 30vh !important;
    margin-left: 0;
    margin-top: 4px;
    box-shadow: none;
    border-left: 3px solid var(--blue);
    padding-left: 12px;
  }
  
  /* Отключаем отдельное sticky для кнопки фильтров */
  .open-filters-btn {
    position: static;
    flex: 0 0 var(--catalog-toolbar-control-height, 36px);
    width: var(--catalog-toolbar-control-height, 36px);
    min-width: var(--catalog-toolbar-control-height, 36px);
    max-width: var(--catalog-toolbar-control-height, 36px);
    margin-bottom: 0;
    box-shadow: none;
    height: var(--catalog-toolbar-control-height, 36px);
    min-height: var(--catalog-toolbar-control-height, 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    order: 4;
  }

  /* На мобильных каталог – отдельная страница, не dropdown в тулбаре */
  .mobile-buttons-bar .catalog-widget--sticky {
    display: none !important;
  }

  /* Без подкатегорий (главная / листовые): название → бренд + поиск (+ фильтр) */
  .catalog-toolbar-search {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: var(--catalog-toolbar-control-height, 36px);
    overflow: visible;
    order: 1;
  }

  .catalog-toolbar-brand {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    height: var(--catalog-toolbar-control-height, 36px);
    overflow: visible;
    order: 2;
  }

  .catalog-toolbar-apply {
    flex: 0 0 var(--catalog-toolbar-control-height, 36px);
    width: var(--catalog-toolbar-control-height, 36px);
    min-width: var(--catalog-toolbar-control-height, 36px);
    max-width: var(--catalog-toolbar-control-height, 36px);
    height: var(--catalog-toolbar-control-height, 36px);
    min-height: var(--catalog-toolbar-control-height, 36px);
    order: 3;
  }

  /* С подкатегориями: название + бренд / подкатегории + фильтр + поиск */
  .mobile-buttons-bar:has(.catalog-widget--subcategories) .catalog-toolbar-search {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    max-width: none;
  }

  .mobile-buttons-bar:has(.catalog-widget--subcategories) .catalog-toolbar-brand {
    flex: 1 1 calc(50% - 4px);
  }

  .mobile-buttons-bar:has(.catalog-widget--subcategories) .catalog-toolbar-apply {
    order: 5;
  }

  .catalog-toolbar-search .catalog-toolbar-input {
    font-size: 13px;
    padding: 0 10px !important;
  }

  .brand-field-shell {
    padding: 0 6px;
  }

  .brand-field-shell .catalog-toolbar-input,
  .brand-field-shell .brand-input,
  .brand-field-shell .filter-input {
    font-size: 13px !important;
  }

  .catalog-toolbar-apply .ui-icon,
  .open-filters-btn--icon .ui-icon {
    width: 16px;
    height: 16px;
  }

  .back-to-top {
    bottom: 100px;
    right: 12px;
    z-index: 998;
  }

  .catalog-toolbar-brand .brand-suggestions,
  .brand-search-container .brand-suggestions {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* Список брендов – на всю ширину блока фильтров, как подкатегории */
  .mobile-buttons-bar .catalog-toolbar-brand,
  .mobile-buttons-bar .brand-search-container {
    position: static;
  }

  .mobile-buttons-bar .brand-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: -10px;
    right: -10px;
    width: calc(100% + 20px);
    min-width: 0;
    max-width: none;
    margin-top: 0;
    border-radius: 12px;
    z-index: 12000;
    box-sizing: border-box;
  }

  .filter-group--section-heading {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .characteristic-range {
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .characteristic-options {
    max-height: 180px;
    padding-right: 0;
  }

  .characteristic-option {
    font-size: 12px;
    gap: 8px;
  }

  .characteristic-notice {
    font-size: 11px;
  }
}

/* Sticky позиционирование для больших экранов - единый контейнер */
@media (min-width: 769px) {
  /* Отключаем flex на больших экранах для правильной работы sticky */
  .post-container {
    display: block;
  }
  
  /* Сброс order для всех элементов на больших экранах */
  .page-title,
  .catalog-widget,
  .open-filters-btn,
  .filters-modal,
  .shop-grid,
  .load-more-container,
  .sticky-filters-wrapper,
  .mobile-buttons-bar {
    order: 0;
  }
  
  /* Единый sticky контейнер для каталога и фильтров */
  .sticky-filters-wrapper {
    background: white;
    position: sticky;
    top: 8px;
    z-index: 100;
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 10px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* mobile-buttons-bar - flex для размещения кнопок в ряд */
  .mobile-buttons-bar {
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    width: auto;
    max-width: 100%;
  }
  
  /* Показываем кнопку фильтров на больших экранах */
  .open-filters-btn {
    display: flex;
    width: var(--catalog-toolbar-control-height, 40px);
    min-width: var(--catalog-toolbar-control-height, 40px);
    max-width: var(--catalog-toolbar-control-height, 40px);
    flex: 0 0 var(--catalog-toolbar-control-height, 40px);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: var(--catalog-toolbar-control-height, 40px);
    min-height: var(--catalog-toolbar-control-height, 40px);
  }
  
  /* Каталог - компактная ширина по содержимому */
  .catalog-widget--sticky,
  .catalog-widget--subcategories {
    width: auto;
    flex: 0 0 auto;
    flex-shrink: 0;
    position: relative;
    display: flex;
    height: var(--catalog-toolbar-control-height, 40px);
  }

  .catalog-toolbar-search,
  .catalog-toolbar-brand {
    flex: 0 1 200px;
    width: 200px;
    min-width: 120px;
    max-width: 240px;
    height: var(--catalog-toolbar-control-height, 40px);
    overflow: visible;
  }

  .catalog-toolbar-apply {
    flex: 0 0 var(--catalog-toolbar-control-height, 40px);
    width: var(--catalog-toolbar-control-height, 40px);
    min-width: var(--catalog-toolbar-control-height, 40px);
    max-width: var(--catalog-toolbar-control-height, 40px);
    height: var(--catalog-toolbar-control-height, 40px);
    min-height: var(--catalog-toolbar-control-height, 40px);
  }
  
  /* Кнопка каталога - такая же высота */
  .catalog-widget--sticky .catalog-toggle,
  .catalog-widget--subcategories .catalog-toggle {
    width: auto;
    white-space: nowrap;
    height: var(--catalog-toolbar-control-height, 40px);
    min-height: var(--catalog-toolbar-control-height, 40px);
    padding-left: 14px;
    padding-right: 12px;
  }
  
  /* Dropdown позиционируется относительно catalog-widget */
  .catalog-widget--sticky .catalog-dropdown,
  .catalog-widget--subcategories .catalog-dropdown {
    position: absolute;
    top: calc(100% + 8px); /* Под кнопкой каталога */
    left: 0;
    width: 320px;
  }
  
  /* Модальное окно фильтров на больших экранах */
  .filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
  }
  
  .filters-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }
  
  .filters-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: none; /* Убираем ограничение высоты */
    height: 80vh; /* Фиксированная высота 80% экрана */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .filters-modal-body {
    padding: 0 0 25px;
  }
  
  .filters-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    z-index: 1;
  }
  
  .filters-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
  }
  
  .filters-container--sticky {
    padding: 25px;
  }
  
  /* Ограничиваем высоту списка брендов в модальном окне */
  .filters-modal .brand-suggestions {
    max-height: 300px; /* Увеличиваем для большого окна */
  }
  
  /* Форма фильтров */
  .filters-modal .filters-form {
    gap: 20px;
  }
}

.catalog-toggle {
  background: var(--btn-bg);
  color: var(--btn-color);
  border: var(--btn-border-width) solid var(--btn-border);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.catalog-toggle:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
  box-shadow: none;
  transform: none;
}

.catalog-toggle__icon {
  font-size: 20px;
}

.catalog-toggle__text {
  flex: 1;
  text-align: left;
  font-weight: 700;
}

.catalog-toggle__arrow {
  font-size: 14px;
  margin-left: 7px;
  transition: transform 0.3s ease;
}

.catalog-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 70vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.catalog-dropdown.active {
  display: block;
}

/* Минимум высота ~2 пункта корневого меню «Все категории» (чтобы было видно вложенные).
   На «Подкатегории» не применяем – высота строго по числу пунктов. */
@media (min-width: 769px) {
  .catalog-dropdown.catalog-dropdown--min-two-rows:not(#subcategories-dropdown),
  .catalog-dropdown.catalog-dropdown--min-two-rows:not(#subcategories-dropdown) .catalog-menu {
    min-height: 120px;
  }

  .catalog-widget--subcategories .catalog-dropdown,
  .catalog-widget--subcategories .catalog-dropdown .catalog-menu {
    min-height: 0;
  }
}

.catalog-menu {
  padding: 10px;
  position: relative;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
}

.catalog-menu::-webkit-scrollbar {
  width: var(--scrollbar-size);
}

.catalog-menu::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 8px;
  margin: 6px;
}

.catalog-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.catalog-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.catalog-menu-item {
  position: relative;
  margin-bottom: 4px;
}

.catalog-menu-item.active .catalog-menu-item__link {
  background-color: var(--blue-muted-bg);
  color: var(--blue);
  font-weight: 600;
}

.catalog-menu-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: white;
}

.catalog-menu-item__link:hover {
  background-color: var(--blue-soft-bg);
  color: var(--blue);
}

.catalog-menu-item__arrow {
  font-size: 16px;
  color: #999;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.catalog-menu-item:hover > .catalog-menu-item__link .catalog-menu-item__arrow {
  transform: translateX(3px);
}

/* Подменю категорий */
.catalog-submenu {
  display: none;
  position: fixed;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 250px;
  max-width: 350px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 150;
}

.catalog-submenu-item {
  margin-bottom: 2px;
}

.catalog-submenu-item__link {
  display: block;
  padding: 10px 14px;
  color: #495057;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  background-color: white;
}

.catalog-submenu-item__link:hover {
  background-color: var(--blue-soft-bg);
  color: var(--blue);
}

/* Стили для breadcrumb навигации */
.breadcrumb {
  padding: 4px 0;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* На карточке товара — чуть больше отступ снизу */
.container > .breadcrumb {
  margin-bottom: 16px;
}

.breadcrumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  line-height: 1.45;
  max-width: 100%;
}

.breadcrumb__item {
  display: inline;
}

.breadcrumb__link {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

.breadcrumb__separator {
  display: inline;
  color: #999;
  user-select: none;
  margin: 0 0.35em;
  white-space: nowrap;
}

.breadcrumb__current {
  color: #333;
  font-weight: 500;
}

/* Стили для дочерних категорий */
.subcategories-container {
  margin-bottom: 40px;
}

.subcategories-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.subcategory-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.subcategory-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px var(--blue-shadow);
  transform: translateY(-2px);
}

.subcategory-card__name {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
}

.subcategory-card__arrow {
  font-size: 20px;
  color: var(--blue);
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.subcategory-card:hover .subcategory-card__arrow {
  transform: translateX(4px);
}

/* Стили для редактирования корзины */
.order-item__quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border: var(--btn-border-width) solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  border-radius: var(--btn-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: var(--btn-font-weight);
  transition: var(--btn-transition);
  padding: 0;
  box-sizing: border-box;
}

.quantity-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
}

.quantity-btn:active {
  background: var(--btn-bg-hover);
}

.quantity-display {
  min-width: 64px;
  width: 64px;
  height: 36px;
  text-align: center;
  font-weight: 600;
  font-size: var(--control-font-size);
  padding: 0 4px;
  border: var(--control-border-width) solid var(--control-border-color);
  border-radius: var(--control-radius);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.order-item__quantity-controls .remove-btn {
  width: 36px;
  height: 36px;
  border: var(--btn-border-width) solid var(--btn-danger-border);
  background: var(--btn-danger-bg);
  color: var(--btn-danger-color);
  border-radius: var(--btn-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: var(--btn-font-weight);
  transition: var(--btn-transition);
  margin-left: 8px;
  padding: 0;
  box-sizing: border-box;
}

.order-item__quantity-controls .remove-btn:hover {
  background: var(--btn-danger-bg-hover);
  border-color: var(--btn-danger-color);
  color: var(--btn-danger-color-hover);
}

.order-item__quantity-controls .remove-btn:active {
  background: var(--btn-danger-bg-hover);
}

/* Стили для страницы товара */
.breadcrumbs {
  background: #f8f9fa;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumbs__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumbs__link {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

.breadcrumbs__separator {
  color: #6c757d;
}

.breadcrumbs__current {
  color: #495057;
  font-weight: 500;
}

.product-detail {
  margin-top: 0;
  margin-bottom: 30px;
  max-width: 100%;
  min-width: 0;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 8px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-detail__image {
  position: sticky;
  top: 20px;
  max-width: 100%;
  min-width: 0;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-gallery__stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.product-detail__photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 400px;
  object-fit: contain;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
}

.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e8ecf2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery__nav:hover,
.product-gallery__nav:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 2px 10px var(--blue-shadow);
  outline: none;
}

.product-gallery__nav--prev {
  left: 8px;
}

.product-gallery__nav--next {
  right: 8px;
}

.product-gallery__thumbs-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.product-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-scroll) transparent;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  box-sizing: border-box;
}

.product-gallery__thumbs::-webkit-scrollbar {
  height: var(--scrollbar-size);
}

.product-gallery__thumbs::-webkit-scrollbar-thumb {
  background: var(--blue-scroll);
  border-radius: 999px;
}

.product-gallery__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid #e8ecf2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.product-gallery__thumb.is-active {
  border: 2px solid var(--blue);
  box-shadow: none;
}

.product-gallery__thumb:hover,
.product-gallery__thumb:focus {
  border-color: var(--blue);
  outline: none;
}

/* Полноэкранный просмотр фото товара */
body.lightbox-open {
  overflow: hidden;
}

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

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 24, 0.88);
}

.product-lightbox__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.product-lightbox__close:hover,
.product-lightbox__close:focus {
  background: var(--blue-hover);
  box-shadow: 0 4px 14px var(--blue-shadow);
  outline: none;
}

.product-lightbox__viewport {
  position: relative;
  z-index: 1;
  width: min(100%, 100vw);
  max-width: 100vw;
  height: min(100vh, 100dvh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
  box-sizing: border-box;
}

.product-lightbox__viewport.is-zoomed {
  cursor: grab;
}

.product-lightbox__viewport.is-zoomed:active {
  cursor: grabbing;
}

.product-lightbox__img {
  max-width: 92%;
  max-height: 88%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  backface-visibility: hidden;
}

.product-lightbox__nav {
  position: static;
  transform: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
  flex: 0 0 auto;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.product-lightbox__nav:hover,
.product-lightbox__nav:focus {
  background: var(--blue-hover);
  box-shadow: 0 4px 14px var(--blue-shadow);
  outline: none;
}

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

.product-lightbox__toolbar {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-lightbox__zoom-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
  flex: 0 0 auto;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.product-lightbox__zoom-btn:hover,
.product-lightbox__zoom-btn:focus {
  background: var(--blue-hover);
  box-shadow: 0 4px 14px var(--blue-shadow);
  outline: none;
}

.product-detail__no-image {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 18px;
}

.product-detail__info {
  padding: 0 20px;
}

.product-detail__header {
  margin-bottom: 30px;
}

.product-detail__brand {
  display: inline-block;
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a.product-detail__brand:hover,
a.product-detail__brand:focus {
  color: #0056b3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-detail__name {
  font-size: 28px;
  font-weight: 600;
  color: #212529;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-detail__article {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 20px;
}

.product-detail__buy {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.product-detail__price {
  font-size: 32px;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.product-detail__actions {
  --pda-height: 36px;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 10px;
}

.product-detail__actions .cart-btn--large,
.product-detail__actions .back-to-shop-btn {
  min-height: var(--pda-height);
  height: var(--pda-height);
  padding: 0 var(--btn-pad-x);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border-radius: var(--btn-radius);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  transition: var(--btn-transition);
}

.product-detail__actions .cart-btn--large.cart-btn--add {
  background: var(--blue);
  border: 2px solid var(--blue);
  color: #fff;
}

.product-detail__actions .cart-btn--large.cart-btn--add:hover,
.product-detail__actions .cart-btn--large.cart-btn--add:focus {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
  outline: none;
  box-shadow: 0 4px 14px var(--blue-shadow);
  transform: translateY(-1px);
}

.product-detail__actions .cart-btn--large.cart-btn--add:active {
  transform: translateY(0);
  box-shadow: none;
}

.product-detail__actions .back-to-shop-btn {
  border: var(--btn-border-width) solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  white-space: nowrap;
}

.product-detail__actions .back-to-shop-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
}

.product-detail__actions .cart-controls {
  --cart-control-size: var(--pda-height);
  height: var(--pda-height);
  align-items: center;
  gap: 6px;
}

.product-detail__actions .cart-controls .cart-btn {
  width: var(--cart-control-size);
  min-width: var(--cart-control-size);
  max-width: var(--cart-control-size);
  height: var(--cart-control-size);
  min-height: var(--cart-control-size);
  max-height: var(--cart-control-size);
  padding: 0;
  border-radius: var(--btn-radius);
  font-size: 16px;
  font-weight: var(--btn-font-weight);
  box-sizing: border-box;
  transition: var(--btn-transition);
  flex: 0 0 var(--cart-control-size);
}

.product-detail__actions .cart-controls .cart-btn--remove {
  border-radius: var(--btn-radius);
  border: var(--btn-border-width) solid var(--btn-danger-border);
  background: var(--btn-danger-bg);
  color: var(--btn-danger-color);
}

.product-detail__actions .cart-controls .cart-btn--remove:hover {
  background: var(--btn-danger-bg-hover);
  border-color: var(--btn-danger-color);
  color: var(--btn-danger-color-hover);
}

.product-detail__actions .cart-controls .cart-btn--checkout {
  width: var(--cart-control-size);
  min-width: var(--cart-control-size);
  height: var(--cart-control-size);
  margin-left: 0;
  border-radius: var(--btn-radius);
  font-size: 16px;
  transition: var(--btn-transition);
  border: var(--btn-border-width) solid var(--btn-success-border);
  background: var(--btn-success-bg);
  color: var(--btn-success-color);
}

.product-detail__actions .cart-controls .cart-btn--checkout:hover {
  background: var(--btn-success-bg-hover);
  border-color: var(--btn-success-color);
  color: var(--btn-success-color-hover);
}

.product-detail__actions .cart-controls .cart-quantity-input {
  width: 72px;
  min-width: 72px;
  flex: 0 0 72px;
  height: var(--cart-control-size);
  min-height: var(--cart-control-size);
  max-height: var(--cart-control-size);
  padding: 0 4px;
  border: var(--btn-border-width) solid #d8dce3;
  border-radius: var(--btn-radius);
  font-size: 14px;
  box-sizing: border-box;
  transition: var(--btn-transition);
}

@media (min-width: 769px) {
  .product-detail__actions {
    --pda-height: 48px;
    gap: 12px;
  }

  .product-detail__actions .cart-btn--large {
    min-height: 48px;
    height: 48px;
    max-height: 48px;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 700;
    border-width: 2px;
    border-radius: 10px;
  }

  .product-detail__actions .cart-btn--large .cart-btn__icon,
  .product-detail__actions .cart-btn--large .cart-btn__icon .ui-icon {
    width: 18px;
    height: 18px;
  }
}

.cart-btn--large {
  padding: 0 18px;
  height: var(--cart-control-size, 36px);
  min-height: var(--cart-control-size, 36px);
  max-height: var(--cart-control-size, 36px);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border-radius: var(--btn-radius);
  transition: var(--btn-transition);
  box-sizing: border-box;
  line-height: 1;
}

.product-detail__description,
.product-detail__parameters {
  margin-bottom: 30px;
}

.product-detail__description h3,
.product-detail__parameters h3 {
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 15px;
}

.product-detail__description p {
  color: #495057;
  line-height: 1.6;
  font-size: 16px;
  text-align: justify;
}

.parameters-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

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

.parameters-table th,
.parameters-table td {
  padding: 12px 16px;
  vertical-align: top;
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
  border-bottom: 1px solid #eef0f3;
}

.parameters-table tr:last-child th,
.parameters-table tr:last-child td {
  border-bottom: none;
}

.parameters-table th {
  width: 46%;
  font-weight: 500;
  color: #6c757d;
  background: #f8f9fb;
}

.parameters-table td {
  width: 54%;
  font-weight: 600;
  color: #212529;
  word-break: break-word;
}

.parameters-table tr:nth-child(even) th {
  background: #f3f5f8;
}

.parameters-table tr:nth-child(even) td {
  background: #fafbfc;
}

.parameters-table tr:hover th,
.parameters-table tr:hover td {
  background: #eef5ff;
}

.product-detail__additional {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.product-detail__info-item {
  margin-bottom: 10px;
  color: #495057;
}

.product-detail__info-item:last-child {
  margin-bottom: 0;
}

.product-detail__info-item strong {
  color: #212529;
  margin-right: 10px;
}

.similar-products {
  padding: 24px 0 16px;
  margin-top: 0;
  background: #f8f9fa;
}

.similar-products__title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #212529;
  margin: 0 0 24px;
}

@media (max-width: 768px) {
  .similar-products {
    padding: 24px 0;
  }

  .similar-products__title {
    margin: 0 0 24px;
    font-size: 24px;
  }
}

.shop-card__no-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 14px;
}

.shop-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  pointer-events: none;
}

.shop-card__name a:hover {
  color: var(--blue);
}

.shop-card:hover .shop-card__name {
  color: var(--blue);
}

/* Стили модального окна карты */
.map-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-modal.d-none {
  display: none;
}

.map-container {
  width: 100%;
  height: 400px;
}

.map-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  height: 85%;
  overflow-y: auto;
  overflow-x: hidden;
}

.map-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-modal-header h3 {
  margin: 0;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 0;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: var(--btn-radius);
}

.close-btn:hover {
  color: #333;
  background: var(--btn-soft-bg);
}

.map-modal-body {
  padding: 20px;
}

.selected-address {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.map-modal-footer {
  text-align: right;
  padding-right: 20px;
}

.map-modal-footer.mt-20 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.map-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-controls .form-input {
  flex: 1;
}

.map-controls .submit-btn {
  flex-shrink: 0;
}


/* Стили из profile.html */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.profile-header {
  text-align: center;
  margin-bottom: 40px;
}

.profile-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
  margin-top: 0;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid #f5c6cb;
  text-align: center;
}

.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.profile-subtitle {
  color: #666;
  font-size: 1.1rem;
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.profile-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

/* .section-title уже определен выше в строке 2589 */

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

.address-list {
  margin-top: 20px;
}

.address-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e9ecef;
}

.address-text {
  margin-bottom: 10px;
  line-height: 1.5;
}

.address-details {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.address-actions {
  display: flex;
  gap: 10px;
}

.address-item .remove-btn {
  background: var(--btn-danger-bg);
  color: var(--btn-danger-color);
  border: var(--btn-border-width) solid var(--btn-danger-border);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.address-item .remove-btn:hover {
  background: var(--btn-danger-bg-hover);
  border-color: var(--btn-danger-color);
  color: var(--btn-danger-color-hover);
  transform: none;
  box-shadow: none;
}

.orders-section {
  grid-column: 1 / -1;
}

.orders-list {
  list-style: none;
  padding: 0;
}

.orders-list .order-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 0;
  margin-bottom: 12px;
  display: block;
  overflow: hidden;
}

.orders-list .order-accordion {
  margin: 0;
}

.orders-list .order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.orders-list .order-summary::-webkit-details-marker {
  display: none;
}

.orders-list .order-summary::marker {
  content: "";
}

.orders-list .order-summary__main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.orders-list .order-summary__arrow {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.orders-list .order-accordion[open] .order-summary__arrow {
  transform: rotate(225deg);
  margin-top: 4px;
}

.orders-list .order-accordion[open] .order-summary {
  border-bottom: 1px solid #e9ecef;
}

.orders-list .order-number {
  font-weight: 700;
  font-size: 16px;
  color: #333;
}

.orders-list .order-summary__total {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}

.orders-list .order-details {
  line-height: 1.6;
  padding: 14px 16px 16px;
}

.orders-list .order-details p {
  margin-bottom: 8px;
  color: #555;
}

.orders-list .order-details strong {
  color: #333;
  font-weight: 600;
}

.orders-list .order-details__actions {
  margin: 16px 0 0;
}

.orders-list .order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-new { background: #d4edda; color: #155724; }
.status-processing { background: #fff3cd; color: #856404; }
.status-shipped { background: var(--blue-muted-bg); color: var(--blue-hover); }
.status-delivered { background: #d1ecf1; color: #0c5460; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.orders-list .cancel-order-btn {
  background: var(--btn-danger-bg);
  color: var(--btn-danger-color);
  border: var(--btn-border-width) solid var(--btn-danger-border);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  white-space: nowrap;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.orders-list .cancel-order-btn:hover {
  background: var(--btn-danger-bg-hover);
  border-color: var(--btn-danger-color);
  transform: none;
  box-shadow: none;
}

.orders-list .order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.orders-list .order-item-row:last-child {
  border-bottom: none;
}

.orders-list .order-item-row .item-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  flex: 0 0 auto;
  background: #fff;
}

.orders-list .order-item-row .item-info {
  flex: 1 1 auto;
  min-width: 0;
}

.orders-list .order-item-row .item-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.orders-list .order-item-row .item-article,
.orders-list .order-item-row .item-quantity {
  font-size: 13px;
  color: #666;
}

.orders-list .order-item-row .item-price {
  flex: 0 0 auto;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.orders-list .order-total-line {
  margin-top: 12px;
  font-size: 16px;
}

.address-form {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.address-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.address-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.address-errors {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: none;
}

/* Стили из login.html и register.html */
.auth-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.auth-links {
  margin-top: 10px;
}

.register-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
}

.auth-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-verify-hint {
  text-align: center;
  color: #555;
  line-height: 1.45;
  margin: 0 0 24px;
}

.auth-code-input {
  letter-spacing: 0.35em;
  font-size: 1.35rem;
  text-align: center;
  font-weight: 600;
}

.auth-resend-form {
  margin-top: 0;
}

.form-input[readonly] {
  background: #f5f5f5;
  color: #555;
  cursor: not-allowed;
}

.auth-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
}

.auth-link a {
  color: var(--blue);
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.messages {
  margin-bottom: 20px;
}

.message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.message-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Стили из user_page.html */
.user-page-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.user-page-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.search-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.search-form h2 {
  margin-bottom: 20px;
  color: #333;
}

.search-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 15px;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
}

.search-btn {
  background: var(--btn-bg);
  color: var(--btn-color);
  border: var(--btn-border-width) solid var(--btn-border);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-min-height);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: var(--btn-transition);
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.search-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color-hover);
}

/* Стили из user_orders.html */
.orders-page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.orders-page-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.orders-list {
  list-style: none;
  padding: 0;
}


/* Нижняя фиксированная панель для мобильных устройств */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: var(--bottom-nav-offset);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  z-index: 999;
  padding: var(--bottom-nav-pad);
  border: 1px solid #e8ecf2;
}

.bottom-nav__container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 6px;
}

.bottom-nav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  min-height: var(--bottom-nav-btn-min-height);
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-color);
  text-decoration: none;
  font-size: 11px;
  font-weight: var(--btn-font-weight);
  transition: var(--btn-transition);
  cursor: pointer;
  border: var(--btn-border-width) solid var(--btn-border);
  white-space: nowrap;
  min-width: 64px;
  box-sizing: border-box;
  gap: 1px;
  line-height: 1.15;
}

.bottom-nav__btn--profile {
  background: var(--btn-bg);
  color: var(--btn-color);
  border-color: var(--btn-border);
}

.bottom-nav__btn--catalog {
  background: var(--btn-bg);
  color: var(--btn-color);
  border-color: var(--btn-border);
}

.bottom-nav__btn--home {
  background: var(--btn-bg);
  color: var(--btn-color);
  border-color: var(--btn-border);
}

.bottom-nav__btn--catalog.is-active,
.bottom-nav__btn--profile.is-active {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  box-shadow: none;
}

.bottom-nav__btn--shop {
  background: var(--btn-success-bg);
  color: var(--btn-success-color);
  border-color: var(--btn-success-border);
}

.bottom-nav__btn--logout {
  background: var(--btn-danger-bg);
  color: var(--btn-danger-color);
  border-color: var(--btn-danger-border);
}

.bottom-nav__btn:active {
  transform: none;
  background: var(--btn-bg-hover);
}

.bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0;
}

.bottom-nav__icon .ui-icon {
  width: 16px;
  height: 16px;
}

/* Страница «Все категории» */
.shop-categories-page {
  padding-bottom: 16px;
}

.body > .post-container.shop-categories-page {
  margin-bottom: 12px;
}

.shop-categories-page__lead {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .shop-categories-page {
    padding-bottom: 4px;
  }

  .body > .post-container.shop-categories-page {
    margin-bottom: 8px;
  }

  .shop-categories-page__lead {
    text-align: center;
  }
}

.shop-categories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.shop-categories-item {
  min-width: 0;
  max-width: 100%;
}

.shop-categories-item__row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.shop-categories-item__link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-categories-item__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-categories-item__count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.shop-categories-item__toggle {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-sizing: border-box;
  overflow: hidden;
  transition: background 0.15s ease;
}

.shop-categories-item__chevron {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transition: transform 0.15s ease;
}

.shop-categories-item__toggle:hover {
  background: #e2e8f0;
}

.shop-categories-item.is-open > .shop-categories-item__row .shop-categories-item__toggle {
  background: var(--blue-muted-bg);
  color: var(--blue);
}

.shop-categories-item.is-open > .shop-categories-item__row .shop-categories-item__chevron {
  transform: rotate(90deg);
}

.shop-categories-item__children {
  margin: 4px 0 8px 10px;
  padding-left: 10px;
  border-left: 3px solid var(--blue);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-categories-item__children[hidden] {
  display: none !important;
}

.catalog-menu-item.is-brand-inactive,
.catalog-submenu-item.is-brand-inactive,
.shop-categories-item.is-brand-inactive,
[data-category-id].is-brand-inactive {
  display: none !important;
}

.shop-categories-empty-brand {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

.shop-categories-empty-brand[hidden] {
  display: none !important;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  /* ========== Упорядочивание элементов - НЕ используем flex для работы sticky ========== */
  .post-container {
    display: block; /* Меняем на block для работы sticky */
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* ========== Фильтры в модальном окне ========== */
  .filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    order: 3;
  }
  
  .filters-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
  }
  
  .filters-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 100%;
    max-height: none;
    height: 85vh; /* Фиксированная высота 85% экрана */
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .filters-modal-body {
    padding: 0 0 20px;
  }

  .filters-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    z-index: 1;
  }
  
  .filters-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
  }
  
  .filters-container {
    padding: 20px;
    margin: 0;
    box-shadow: none;
  }
  
  .filters-form {
    gap: 15px;
  }
  
  .filter-group {
    width: 100%;
    min-width: 100%;
    flex: 1 1 100%;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }
  
  .filter-primary-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .filter-primary-actions {
    justify-content: stretch;
  }

  .filter-primary-actions .filter-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .filter-input,
  .filter-select {
    font-size: 15px;
    padding: 12px;
  }
  
  .price-input {
    font-size: 15px;
    padding: 12px 10px;
  }
  
  /* Ограничиваем высоту списка брендов в модальном окне */
  .filters-modal .brand-suggestions {
    max-height: 250px; /* Ограничиваем для удобства прокрутки */
  }
  
  /* ========== Каталог на главной странице ========== */
  .catalog-toggle {
    width: 100%;
    max-width: 100%;
    font-size: var(--btn-font-size);
    padding: var(--btn-pad-y) var(--btn-pad-x);
  }
  
  /* Стили для обычного каталога (не в mobile-buttons-bar) */
  .catalog-dropdown:not(.mobile-buttons-bar .catalog-dropdown) {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
  }
  
  .catalog-menu {
    max-height: 60vh;
  }
  
  /* Стили для обычных подкатегорий (не в mobile-buttons-bar) */
  .catalog-submenu:not(.mobile-buttons-bar .catalog-submenu) {
    position: static;
    margin-left: 0;
    margin-top: 4px;
    box-shadow: none;
    border-left: 3px solid var(--blue);
    padding-left: 12px;
  }
  
  .catalog-menu-item__link {
    font-size: 14px;
  }

  /* ========== Категории ========== */
  .subcategories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .subcategory-card {
    padding: 16px 20px;
  }
  
  .subcategories-title {
    font-size: 20px;
  }
}

/* Планшет: ссылки в бургер, одна action-кнопка справа */
@media (max-width: 1100px) {
  .header__inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .header__inner:has(.header__nav) {
    gap: 8px;
  }

  .header__inner:has(.header__nav) .header__text {
    position: static;
    transform: none;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: auto;
    font-size: 16px !important;
    font-weight: 700;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header__inner:has(.header__nav) .header__text:hover,
  .header__inner:has(.header__nav) .header__text:focus {
    transform: scale(1.03) !important;
  }

  .header:has(.header__shop-burger) {
    overflow: visible;
  }

  .header__burger.header__shop-burger {
    display: block;
    width: 28px;
    height: 28px;
    background-size: 22px 22px;
    margin-left: 0;
  }

  .header__right {
    display: flex;
    margin-left: auto;
    gap: 8px;
  }

  .header__inner:has(.header__nav) .header__nav {
    margin-left: 0;
  }

  .header__nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    margin: 0;
    width: min(240px, calc(100vw - 24px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header__nav-sep {
    display: block;
    width: auto;
    height: 1px;
    margin: 6px 16px;
    background: #eceff3;
  }

  .header__nav-link {
    display: block;
    color: #222;
    font-size: 15px;
    font-weight: 500;
    text-shadow: none;
    padding: 11px 18px;
    opacity: 1;
    text-decoration: none;
    border-radius: 0;
  }

  .header__nav-link:hover,
  .header__nav-link:focus,
  .header__nav-link.is-active {
    color: var(--blue);
    text-decoration: none;
    background: rgba(3, 123, 252, 0.06);
  }

  .header-btn,
  .my-orders-btn,
  .cart-toggle,
  .header-btn--cart {
    padding: 7px 11px;
    font-size: 12px;
  }

  .header__text {
    padding-bottom: 0;
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .product-detail {
    padding: 80px 0 20px;
  }

  .product-detail__info {
    padding: 0;
  }

  /* На мобильных actions уходят в bottom-nav */
  .header__right {
    display: none;
  }

  /* Лого слева, слоган по центру, бургер справа */
  .header__inner:has(.header__nav) {
    gap: 6px;
  }

  .header__inner:has(.header__nav) .header__text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
    flex: 0 0 auto;
    max-width: none;
    width: max-content;
    font-size: 16px !important;
    font-weight: 800;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .header__burger.header__shop-burger {
    margin-left: auto;
  }

  .header__inner:has(.header__nav) .header__text:hover,
  .header__inner:has(.header__nav) .header__text:focus {
    transform: translateX(-50%) scale(1.05) !important;
  }
}

@media (max-width: 640px) {
  .header__inner:has(.header__nav) .header__text {
    font-size: 12px !important;
    font-weight: 700;
  }

  .header__burger.header__shop-burger {
    width: 22px;
    height: 22px;
    background-size: 16px 16px;
  }
}

@media (max-width: 768px) {
  /* ========== Нижняя панель ========== */
  .bottom-nav {
    display: block;
  }

  /* ========== Карточки товаров (как на ПК, 2 в ряд) ========== */
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .shop-card {
    flex-direction: column;
    padding: 0;
  }
  
  .shop-card__image {
    width: 100%;
    min-width: 0;
    height: 140px;
    margin-right: 0;
    flex-shrink: 0;
  }
  
  .shop-card__photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .shop-card__no-image {
    height: 140px;
  }
  
  .shop-card__content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .shop-card__brand {
    font-size: 11px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
  }
  
  .shop-card__name {
    font-size: 13px;
    margin-bottom: 6px;
    margin-top: 0;
    line-height: 1.3;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .shop-card__article {
    display: none;
  }
  
  .shop-card__price {
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 700;
  }
  
  .shop-card__actions {
    margin-top: auto;
    gap: 6px;
  }

  .shop-card .cart-btn {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .shop-card__actions > .cart-btn {
    width: 100%;
  }

  .shop-card .cart-controls {
    --cart-control-size: 28px;
    gap: 4px;
    width: 100%;
  }

  .shop-card .cart-controls .cart-btn--add,
  .shop-card .cart-controls .cart-btn--remove,
  .shop-card .cart-controls .cart-btn--checkout {
    width: var(--cart-control-size);
    height: var(--cart-control-size);
    min-width: var(--cart-control-size);
    min-height: var(--cart-control-size);
    max-width: var(--cart-control-size);
    max-height: var(--cart-control-size);
    flex: 0 0 var(--cart-control-size);
    font-size: 14px;
    padding: 0;
  }

  .shop-card .cart-quantity-input {
    width: auto;
    min-width: 36px;
    flex: 1 1 auto;
    height: var(--cart-control-size);
    min-height: var(--cart-control-size);
    max-height: var(--cart-control-size);
    font-size: 12px;
    padding: 0 2px;
  }

  /* ========== Страница товара ========== */
  .product-detail__image {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  
  .product-detail__photo {
    height: 300px;
  }

  .product-detail__no-image {
    height: 300px;
  }
  
  .product-detail__buy {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }

  .product-detail__price {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .product-detail__actions {
    margin-top: 0;
    margin-bottom: 0;
    flex-direction: row;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
    width: auto;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }
  
  .product-detail__actions .cart-btn--large,
  .product-detail__actions .cart-controls,
  .product-detail__actions .back-to-shop-btn {
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }

  .product-detail__actions .cart-btn--large.cart-btn--add {
    white-space: nowrap;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
  }

  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .body > .container {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .product-gallery,
  .product-gallery__stage,
  .product-gallery__thumbs-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-detail__actions .cart-controls {
    justify-content: space-between;
  }

  .product-detail__actions .cart-controls .cart-btn,
  .product-detail__actions .cart-controls .cart-btn--checkout {
    flex: 0 0 var(--pda-height);
  }

  .product-detail__actions .cart-controls .cart-quantity-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 72px;
  }

  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-detail__info {
    padding: 0;
  }
  
  .product-detail__name {
    font-size: 24px;
  }
  
  .product-detail__price {
    font-size: 24px;
  }
  
  .parameters-table th,
  .parameters-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .parameters-table th {
    width: 42%;
  }

  .parameters-table td {
    width: 58%;
  }

  /* ========== Фильтры и поиск ========== */
  .page-title {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 16px;
  }
  
  .filters-container {
    padding: 15px;
  }
  
  .filters-form {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .filter-group {
    min-width: 100%;
    width: 100%;
    flex: 1 1 100%;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }
  
  .filter-primary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-primary-actions {
    flex-direction: column;
    gap: 8px;
  }

  .filter-primary-actions .filter-btn {
    width: 100%;
  }
  
  .filter-actions {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    align-self: stretch;
    margin-left: 0;
  }
  
  .price-filter-container {
    gap: 6px;
    width: 100%;
    flex-wrap: nowrap;
    display: flex;
  }
  
  .price-input {
    min-width: 0;
    width: calc(50% - 10px);
    font-size: 14px;
    padding: 10px 8px;
  }
  
  .price-separator {
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .brand-search-container {
    width: 100%;
  }

  .filter-input,
  .filter-select {
    font-size: 16px;
    padding: 10px 12px;
  }
  
  /* Увеличиваем размер полей форм для лучшей читаемости */
  .form-input,
  .form-textarea {
    font-size: 16px; /* iOS: без зума при фокусе */
    padding: var(--control-pad-y) var(--control-pad-x);
    min-height: var(--control-min-height);
  }
  
  /* Поля адреса – тот же масштаб, что и остальные контролы */
  #add-address-form .form-input,
  #add-address-form .form-textarea,
  #delivery-address-form .form-input,
  #delivery-address-form .form-textarea {
    padding: var(--control-pad-y) var(--control-pad-x);
    font-size: 16px;
    min-height: var(--control-min-height);
  }
  
  #add-address-form,
  #delivery-address-form {
    padding: 16px;
  }

  /* ========== Корзина ========== */
  .cart-count {
    display: inline;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
    top: 0;
    bottom: 0;
    height: 100%;
    max-height: none;
  }
  
  .cart-content {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .cart-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .cart-empty {
    grid-column: 1 / -1;
  }
  
  .cart-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
  }
  
  .cart-item__image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
  }
  
  .cart-item__info,
  .cart-item__content {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
  }
  
  .cart-item__name {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 0;
  }
  
  .cart-item__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue);
    margin: 0;
  }
  
  .cart-item__total {
    display: none;
  }
  
  .cart-item__controls {
    --cart-control-size: 30px;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .cart-item__controls .cart-btn,
  .cart-item__controls .cart-btn--remove,
  .cart-item__controls .cart-btn--add,
  .cart-item__controls .cart-btn--checkout,
  .cart-item__controls .cart-btn--remove-item {
    width: var(--cart-control-size) !important;
    height: var(--cart-control-size) !important;
    min-width: var(--cart-control-size) !important;
    min-height: var(--cart-control-size) !important;
    max-width: var(--cart-control-size) !important;
    max-height: var(--cart-control-size) !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    font-size: 14px !important;
  }

  .cart-item__controls .cart-quantity-input {
    width: 48px !important;
    min-width: 48px !important;
    flex: 0 0 48px !important;
    height: var(--cart-control-size) !important;
    min-height: var(--cart-control-size) !important;
    max-height: var(--cart-control-size) !important;
    font-size: 13px !important;
  }
  
  .cart-controls {
    --cart-control-size: 36px;
    flex-wrap: nowrap;
    gap: 6px;
  }
  
  .cart-btn {
    font-size: var(--btn-font-size);
  }
  
  .cart-controls .cart-btn--add,
  .cart-controls .cart-btn--remove,
  .cart-controls .cart-btn--checkout {
    width: var(--cart-control-size);
    height: var(--cart-control-size);
    min-width: var(--cart-control-size);
    min-height: var(--cart-control-size);
    max-width: var(--cart-control-size);
    max-height: var(--cart-control-size);
    padding: 0;
    font-size: 16px;
  }
  
  .cart-quantity-input,
  .cart-controls .cart-quantity-input {
    width: 60px;
    min-width: 60px;
    flex-basis: 60px;
    height: var(--cart-control-size);
    min-height: var(--cart-control-size);
    max-height: var(--cart-control-size);
    font-size: 14px;
  }

  /* В карточках каталога – компактнее, чтобы влезало в 2 колонки */
  .shop-card .cart-controls {
    --cart-control-size: 28px;
    gap: 4px;
    width: 100%;
    justify-content: space-between;
  }

  .shop-card .cart-controls .cart-btn--add,
  .shop-card .cart-controls .cart-btn--remove,
  .shop-card .cart-controls .cart-btn--checkout {
    font-size: 14px;
  }

  .shop-card .cart-quantity-input,
  .shop-card .cart-controls .cart-quantity-input {
    width: auto;
    min-width: 36px;
    flex: 1 1 auto;
    flex-basis: 0;
    max-width: none;
    font-size: 12px;
    padding: 0 2px;
  }
  
  .cart-btn--remove-item {
    background: var(--btn-danger-bg);
    color: var(--btn-danger-color);
    border: var(--btn-border-width) solid var(--btn-danger-border);
    border-radius: var(--btn-radius);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
  }
  
  .cart-item {
    position: relative;
  }

  /* ========== Оформление заказа ========== */

  .checkout-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .order-form-section,
  .order-summary-section {
    padding: 20px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .back-to-shop-btn {
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-font-size);
  }

  .product-detail__actions .back-to-shop-btn {
    min-height: var(--pda-height);
    height: var(--pda-height);
    padding: 0 var(--btn-pad-x);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
  }
  
  /* Основные поля формы checkout – как фильтры/кнопки */
  .order-form .form-input,
  .order-form .form-textarea,
  .order-form input[type="text"],
  .order-form input[type="tel"],
  .order-form input[type="email"],
  .order-form textarea,
  .order-form select {
    font-size: 16px; /* iOS */
    padding: var(--control-pad-y) var(--control-pad-x);
    min-height: var(--control-min-height);
    border: var(--control-border-width) solid var(--control-border-color);
    border-radius: var(--control-radius);
  }
  
  .order-form .form-label,
  .order-form label {
    font-size: var(--control-label-size);
    font-weight: var(--btn-font-weight);
    display: block;
  }
  
  .order-form small {
    font-size: 12px;
  }
  
  .submit-order-btn {
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-font-size);
    min-height: var(--btn-min-height);
    width: 100%;
  }
  
  .order-summary-section {
    font-size: var(--control-font-size);
  }
  
  .order-item__name {
    font-size: 14px;
  }

  .order-summary-section .order-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "image info"
      "image price";
    gap: 8px 12px;
    align-items: start;
  }

  .order-summary-section .order-item__image {
    grid-area: image;
    width: 56px;
    height: 56px;
  }

  .order-summary-section .order-item__info {
    grid-area: info;
    flex: none;
    min-width: 0;
  }

  .order-summary-section .order-item__price {
    grid-area: price;
    max-width: none;
    width: 100%;
    text-align: left;
    padding-left: 0;
  }

  .order-summary-section .order-item__quantity-controls {
    gap: 6px;
    flex-wrap: wrap;
  }

  .order-summary-section .order-item__quantity-controls .quantity-btn {
    width: 32px;
    height: 32px;
  }

  .order-summary-section .order-item__quantity-controls .quantity-display {
    width: 44px;
    min-width: 44px;
    height: 32px;
  }
  
  /* Кнопки доставки – единый стиль кнопок */
  #select-delivery-from-map,
  #show-delivery-address-form,
  #save-delivery-address,
  #cancel-delivery-address,
  #show-add-address-form,
  #cancel-add-address,
  #select-from-map {
    padding: var(--btn-pad-y) var(--btn-pad-x);
    min-height: var(--btn-min-height);
    font-size: var(--btn-font-size);
  }
  
  .custom-select-header {
    padding: var(--control-pad-y) var(--control-pad-x);
    min-height: var(--control-min-height);
    font-size: 16px;
  }

  .custom-select-option,
  .custom-select-text,
  .delivery-options .radio-option span {
    font-size: var(--control-font-size);
  }

  .delivery-options .radio-option {
    padding: var(--control-pad-y) var(--control-pad-x);
    min-height: var(--control-min-height);
  }

  .quantity-btn,
  .order-item__quantity-controls .remove-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .quantity-display {
    height: 36px;
    font-size: var(--control-font-size);
  }

  /* ========== Личный кабинет ========== */
  .profile-container {
    padding-bottom: 80px;
    padding: 20px 10px;
  }

  .profile-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-title {
    font-size: 1.8rem;
  }

  .profile-section {
    padding: 20px;
  }
  
  .address-form-grid {
    grid-template-columns: 1fr;
  }
  
  .address-form-actions {
    flex-direction: column;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* ========== Заказы ========== */
  .orders-page-container {
    padding-bottom: 80px;
    padding: 20px 10px;
  }

  .orders-list .order-item {
    padding: 0;
  }

  .orders-list .order-summary {
    padding: 12px 14px;
    justify-content: flex-start;
  }

  .orders-list .order-summary__main {
    flex: 0 1 auto;
    width: fit-content;
    max-width: calc(100% - 72px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
  }

  .orders-list .order-number {
    font-size: 15px;
  }

  .orders-list .order-status {
    align-self: center;
  }

  .orders-list .order-summary__total {
    margin-left: auto;
  }

  .filter-label--section {
    margin-bottom: 0 !important;
  }

  .brand-input {
    width: 100%;
  }
  
  .orders-list .cancel-order-btn {
    width: 100%;
  }

  /* ========== Модальное окно карты ========== */
  .map-modal-content {
    width: 95%;
    height: 90%;
    margin: 10px;
  }
  
  .map-modal-footer {
    padding-right: 15px;
  }
  
  .map-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .map-controls input,
  .map-controls button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* ========== Нижняя панель ========== */

  .filter-group--section-heading {
    padding: 12px 0 0 !important;
    border: none !important;
    border-top: 1px solid #e3e9f3 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .bottom-nav__container {
    gap: 8px;
  }

  .bottom-nav__btn {
    padding: 4px 8px;
    min-height: var(--bottom-nav-btn-min-height);
  }

  /* ========== Магазин ========== */
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  
  .shop-card__image,
  .shop-card__no-image {
    height: 120px;
  }
  
  .shop-card__content {
    padding: 8px;
  }

  .shop-card__name {
    font-size: 12px;
  }
  
  .shop-card__price {
    font-size: 14px;
  }

  /* ========== Страница товара ========== */
  .product-detail__name {
    font-size: 20px;
  }

  .product-detail__price {
    font-size: 22px;
  }

  /* ========== Фильтры и формы ========== */
  .page-title {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .filters-container {
    padding: 10px;
  }
  
  .filters-form {
    gap: 12px;
  }

  .filter-group {
    min-width: 100%;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    padding: var(--btn-pad-y) var(--btn-pad-x);
    min-height: var(--btn-min-height);
    height: auto;
  }
  
  .price-filter-container {
    gap: 4px;
    width: 100%;
    flex-wrap: nowrap;
  }
  
  .price-input {
    flex: 1;
    font-size: 14px;
    padding: 10px 6px;
    text-align: center;
  }
  
  .price-separator {
    font-size: 12px;
    flex-shrink: 0;
    padding: 0 3px;
    align-self: center;
  }
  
  .filter-group--section-heading {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }

  .characteristic-range {
    width: 100%;
    gap: 4px;
  }

  .characteristic-options {
    max-height: 150px;
  }

  .characteristic-option {
    font-size: 12px;
  }
  
  .brand-search-container {
    width: 100%;
  }
  
  .filter-label {
    font-size: 13px;
  }
  
  .filters-modal.active {
    padding: 0;
    align-items: stretch;
  }
  
  .filters-modal-content {
    max-height: 100vh;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }
  
  .filters-modal-header {
    padding: 12px 15px;
  }
  
  .filters-modal-header h3 {
    font-size: 16px;
  }
  
  .filters-container {
    padding: 15px;
    height: calc(100vh - 60px);
    overflow-y: auto;
  }
  
  .open-filters-btn {
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
  }

  .open-filters-btn--icon {
    padding: 0 !important;
    height: var(--catalog-toolbar-control-height, 44px) !important;
    min-height: var(--catalog-toolbar-control-height, 44px) !important;
    max-height: var(--catalog-toolbar-control-height, 44px) !important;
  }
  
  .catalog-toggle {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
  }

  .mobile-buttons-bar .catalog-toggle {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: var(--catalog-toolbar-control-height, 44px) !important;
    min-height: var(--catalog-toolbar-control-height, 44px) !important;
    max-height: var(--catalog-toolbar-control-height, 44px) !important;
  }

  .mobile-buttons-bar .catalog-toolbar-apply.filter-btn {
    width: var(--catalog-toolbar-control-height, 44px) !important;
    min-width: var(--catalog-toolbar-control-height, 44px) !important;
    max-width: var(--catalog-toolbar-control-height, 44px) !important;
    height: var(--catalog-toolbar-control-height, 44px) !important;
    min-height: var(--catalog-toolbar-control-height, 44px) !important;
    max-height: var(--catalog-toolbar-control-height, 44px) !important;
    padding: 0 !important;
  }
  
  .catalog-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }
  
  .catalog-menu {
    max-height: 50vh;
  }

  .auth-container,
  .register-container {
    padding: 20px 10px;
  }
  
  .auth-form {
    padding: 30px 20px;
  }
  .header__inner {
    gap: 3px;
  }

  .user-page-container {
    padding: 20px 10px;
  }
  
  .search-form {
    padding: 20px;
  }

  /* ========== Checkout ========== */
  .checkout-container {
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .checkout-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  
  .order-form-section,
  .order-summary-section {
    padding: 15px;
  }
  
  .order-form .form-input,
  .order-form .form-textarea,
  .order-form input[type="text"],
  .order-form input[type="tel"],
  .order-form input[type="email"],
  .order-form textarea,
  .order-form select {
    font-size: 16px;
    padding: var(--control-pad-y) var(--control-pad-x);
    min-height: var(--control-min-height);
  }
  
  .order-form .form-label,
  .order-form label {
    font-size: var(--control-label-size);
  }

  /* ========== Заказы и корзина ========== */
  .order-item__name {
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .order-item__price,
  .cart-item__price {
    font-size: 14px;
  }

  .order-item__total-price {
    font-size: 15px;
  }
  
  .cart-item__total {
    display: none;
  }

  .cart-item__image {
    width: 70px;
    height: 70px;
  }

  .cart-item__name {
    font-size: 13px;
  }

  .cart-total-label {
    font-size: 16px;
  }

  .cart-total-price {
    font-size: 20px;
  }

  .cart-checkout-btn {
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
  }

  /* ========== Профиль и адреса ========== */
  .profile-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 18px;
  }

  .address-item {
    padding: 12px;
  }

  .address-text {
    font-size: 14px;
  }
  
  /* Форма смены пароля - компактные кнопки */
  #change-password-form .submit-btn {
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-font-size);
  }
  
  #change-password-form .form-title {
    font-size: 16px;
  }
  
  #show-change-password-form {
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-font-size);
  }

  /* ========== Доставка ========== */
  .delivery-options {
    margin-bottom: 10px;
  }

  .radio-option {
    padding: var(--control-pad-y) var(--control-pad-x);
    font-size: var(--control-font-size);
    min-height: var(--control-min-height);
  }
  
  /* Доставка – без увеличенных radio */
  .delivery-options .radio-option input[type="radio"] {
    transform: none;
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }

  .profile-section .submit-btn,
  .profile-section .remove-btn,
  .orders-list .cancel-order-btn,
  #show-add-address-form,
  #cancel-add-address,
  #show-change-password-form {
    padding: var(--btn-pad-y) var(--btn-pad-x);
    min-height: var(--btn-min-height);
    font-size: var(--btn-font-size);
  }

  .profile-section .form-input,
  .profile-section .form-textarea,
  #change-password-form input,
  #add-address-form input,
  #add-address-form textarea {
    font-size: 16px;
    padding: var(--control-pad-y) var(--control-pad-x);
    min-height: var(--control-min-height);
    border: var(--control-border-width) solid var(--control-border-color);
    border-radius: var(--control-radius);
  }
}

/* Стили для автодополнения адресов на карте */
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.address-suggestions.active {
  display: block;
}

.address-suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.address-suggestion-item:hover {
  background-color: var(--blue-soft-bg);
}

.address-suggestion-item:last-child {
  border-bottom: none;
}
