/*!
 * Materius — тема OpenCart 3 / ocStore 3
 * Разработчик: SvyaTec
 * Базовая палитра: ref2 + фирменный #393c46
 * ---------------------------------------------------------
 * Содержит: design tokens, reset, typography, grid overrides,
 * layout (header/footer), sticky header, mega-menu, search,
 * cart, product cards, filters, checkout, forms, animations,
 * responsive (xs → xl), print, utilities.
 */

/* ===========================================================
   1. DESIGN TOKENS
   =========================================================== */
:root {
  /* brand */
  --mt-brand: #393c46;
  --mt-brand-dark: #2e3139;
  --mt-brand-light: #474b56;
  --mt-accent: #c4b896;
  --mt-accent-hover: #a89868;
  --mt-accent-soft: #d8cfb0;
  --mt-accent-rgb: 196, 184, 150;

  /* neutrals — тёмная тема */
  --mt-heading: #ffffff;
  --mt-text: #e4e4e4;
  --mt-text-muted: #9a9a9a;
  --mt-text-on-dark: #ffffff;
  --mt-bg: #393c46;
  --mt-bg-alt: #424652;
  --mt-bg-soft: #4a4f5c;
  --mt-surface: #3f424c;
  --mt-surface-raised: #4a4f5c;
  --mt-input-bg: #454956;
  --mt-input-bg-focus: #4e535f;
  --mt-input-text: #ffffff;
  --mt-border: #525663;
  --mt-border-strong: #5f6472;
  --mt-footer-bg: #2e3139;
  --mt-footer-bg-alt: #353842;
  --mt-focus: #c4b896;
  --mt-khaki-bg: #9a8f6a;
  --mt-khaki-bg-dark: #7a7050;
  --mt-brand-red: #881717;
  --mt-brand-red-hover: #6d1212;
  --mt-brand-red-rgb: 136, 23, 23;

  /* semantic */
  --mt-success: #2fa56b;
  --mt-warning: #f3a43a;
  --mt-danger:  #e23b3b;
  --mt-info:    #2f7cd3;

  /* radius */
  --mt-radius-xs: 6px;
  --mt-radius-sm: 8px;
  --mt-radius: 10px;
  --mt-radius-md: 12px;
  --mt-radius-lg: 18px;
  --mt-radius-xl: 28px;

  /* shadows */
  --mt-shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --mt-shadow-sm: 0 2px 6px rgba(0,0,0,.05);
  --mt-shadow: 0 6px 20px rgba(0,0,0,.06);
  --mt-shadow-md: 0 10px 30px rgba(0,0,0,.08);
  --mt-shadow-lg: 0 20px 50px rgba(0,0,0,.12);

  /* typography */
  --mt-font-heading: "Montserrat Alternates", "Manrope", "Segoe UI", Arial, sans-serif;
  --mt-font-body: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --mt-font-weight-regular: 400;
  --mt-font-weight-medium: 500;
  --mt-font-weight-semibold: 600;
  --mt-font-weight-bold: 700;

  --mt-fs-12: 12px;
  --mt-fs-13: 13px;
  --mt-fs-14: 14px;
  --mt-fs-15: 15px;
  --mt-fs-16: 16px;
  --mt-fs-18: 18px;
  --mt-fs-20: 20px;
  --mt-fs-24: 24px;
  --mt-fs-28: 28px;
  --mt-fs-32: 32px;
  --mt-fs-40: 40px;
  --mt-fs-48: 48px;

  /* layout */
  --mt-container: 1280px;
  --mt-container-wide: 1520px;
  --mt-header-height: 96px;
  --mt-header-height-compact: 70px;
  --mt-topbar-height: 36px;
  --mt-transition: .25s cubic-bezier(.4,0,.2,1);
  --mt-transition-fast: .15s cubic-bezier(.4,0,.2,1);

  /* z-index */
  --mt-z-topbar: 40;
  --mt-z-header: 50;
  --mt-z-menu: 60;
  --mt-z-overlay: 90;
  --mt-z-modal: 100;
  --mt-z-toast: 120;
}

/* ===========================================================
   2. RESET + BASE
   =========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--mt-font-body);
  font-size: var(--mt-fs-15);
  line-height: 1.55;
  color: var(--mt-text);
  background: var(--mt-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--mt-text);
  text-decoration: none;
  transition: color var(--mt-transition-fast);
}
a:hover { color: var(--mt-accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--mt-focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6, .mt-heading {
  font-family: var(--mt-font-heading);
  font-weight: var(--mt-font-weight-semibold);
  color: var(--mt-heading);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
  line-height: 1.2;
}
h1, .h1 { font-size: var(--mt-fs-40); }
h2, .h2 { font-size: var(--mt-fs-32); }
h3, .h3 { font-size: var(--mt-fs-24); }
h4, .h4 { font-size: var(--mt-fs-20); }
h5, .h5 { font-size: var(--mt-fs-18); }
h6, .h6 { font-size: var(--mt-fs-16); }

p { margin: 0 0 1em; }

button { font-family: inherit; cursor: pointer; }

hr {
  border: 0;
  border-top: 1px solid var(--mt-border);
  margin: 32px 0;
}

::selection { background: var(--mt-accent); color: #fff; }

.container,
.container-wide { max-width: var(--mt-container); margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }
.container-wide { max-width: var(--mt-container-wide); }

/* Перекрываем bootstrap .container для лучшей ширины */
body > nav#top .container,
body > header .container,
body > footer .container,
body > div.container,
body > main .container {
  max-width: var(--mt-container);
}
body > header .container-wide {
  max-width: var(--mt-container-wide);
}

/* ===========================================================
   3. UTILITIES
   =========================================================== */
.mt-hidden { display: none !important; }
.mt-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-text-center { text-align: center; }
.mt-text-right  { text-align: right; }
.mt-text-muted  { color: var(--mt-text-muted); }
.mt-text-accent { color: var(--mt-accent); }
.mt-nowrap { white-space: nowrap; }

.mt-grid { display: grid; gap: 20px; }
.mt-flex { display: flex; }
.mt-flex-center { display: flex; align-items: center; justify-content: center; }
.mt-flex-between { display: flex; align-items: center; justify-content: space-between; }

.mt-stack-sm > * + * { margin-top: 8px; }
.mt-stack    > * + * { margin-top: 16px; }
.mt-stack-lg > * + * { margin-top: 32px; }

.mt-section { padding: 64px 0; }
.mt-section-sm { padding: 40px 0; }
.mt-section-lg { padding: 96px 0; }
.mt-section-alt { background: var(--mt-bg-alt); }

.mt-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.mt-section-header__title { margin: 0; font-size: var(--mt-fs-32); }
.mt-section-header__subtitle { color: var(--mt-text-muted); margin-top: 6px; }
.mt-section-header__link { color: var(--mt-text-muted); font-weight: var(--mt-font-weight-semibold); font-size: var(--mt-fs-14); letter-spacing: .03em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.mt-section-header__link:hover { color: var(--mt-accent); }
.mt-section-header__link::after { content: "→"; transition: transform var(--mt-transition-fast); }
.mt-section-header__link:hover::after { transform: translateX(4px); }

/* ===========================================================
   4. BUTTONS
   =========================================================== */
.mt-btn,
.btn.btn-primary,
.btn.btn-inverse,
.btn.btn-lg.btn-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-family: var(--mt-font-body);
  font-size: var(--mt-fs-15);
  font-weight: var(--mt-font-weight-semibold);
  line-height: 1;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--mt-radius);
  cursor: pointer;
  transition: background-color var(--mt-transition-fast), color var(--mt-transition-fast), border-color var(--mt-transition-fast), transform var(--mt-transition-fast), box-shadow var(--mt-transition-fast);
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
}
.mt-btn:hover { text-decoration: none; transform: translateY(-1px); }
.mt-btn:active { transform: translateY(0); }
.mt-btn:focus-visible { outline: 2px solid var(--mt-focus); outline-offset: 2px; }
.mt-btn[disabled], .mt-btn.is-disabled { opacity: .6; cursor: not-allowed; transform: none; }

.mt-btn--sm { height: 38px; padding: 0 16px; font-size: var(--mt-fs-14); }
.mt-btn--lg { height: 56px; padding: 0 32px; font-size: var(--mt-fs-16); }
.mt-btn--xl { height: 64px; padding: 0 40px; font-size: var(--mt-fs-18); border-radius: var(--mt-radius-md); }
.mt-btn--block { width: 100%; }

.mt-btn--primary,
.btn.btn-primary {
  background: var(--mt-brand);
  color: #fff;
}
.mt-btn--primary:hover,
.btn.btn-primary:hover { background: var(--mt-accent); color: #fff; }

.mt-btn--accent {
  background: var(--mt-accent);
  color: #fff;
}
.mt-btn--accent:hover { background: var(--mt-accent-hover); color: #fff; }

.mt-btn--dark,
.btn.btn-inverse {
  background: var(--mt-text);
  color: #fff;
}
.mt-btn--dark:hover,
.btn.btn-inverse:hover { background: var(--mt-accent); color: #fff; }

.mt-btn--outline {
  background: var(--mt-surface);
  color: var(--mt-text);
  border-color: var(--mt-border-strong);
}
.mt-btn--outline:hover { border-color: var(--mt-accent); color: var(--mt-accent); background: rgba(var(--mt-accent-rgb), .08); }

.mt-btn--outline-accent {
  background: transparent;
  color: var(--mt-accent);
  border-color: var(--mt-accent);
}
.mt-btn--outline-accent:hover { background: var(--mt-accent); color: #fff; }

.mt-btn--ghost {
  background: transparent;
  color: var(--mt-text);
}
.mt-btn--ghost:hover { background: var(--mt-bg-alt); }

.mt-btn--icon { padding: 0; width: 48px; }
.mt-btn--icon.mt-btn--sm { width: 38px; }

/* иконка внутри */
.mt-btn svg,
.mt-btn i.fa { width: 18px; height: 18px; font-size: 16px; }

/* ===========================================================
   5. FORMS & INPUTS
   =========================================================== */
.mt-field { display: block; margin-bottom: 16px; }
.mt-label {
  display: block;
  font-size: var(--mt-fs-13);
  font-weight: var(--mt-font-weight-medium);
  color: var(--mt-text-muted);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.mt-label .mt-req { color: var(--mt-accent); margin-left: 2px; }

.mt-input,
.mt-select,
.mt-textarea,
.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: var(--mt-font-body);
  font-size: var(--mt-fs-15);
  color: var(--mt-input-text);
  background: var(--mt-input-bg);
  border: 1px solid var(--mt-border-strong);
  border-radius: var(--mt-radius-md);
  transition: border-color var(--mt-transition-fast), box-shadow var(--mt-transition-fast);
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.mt-textarea,
textarea.form-control {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}
.mt-input:focus,
.mt-select:focus,
.mt-textarea:focus,
.form-control:focus {
  outline: none;
  background: var(--mt-input-bg-focus);
  border-color: var(--mt-accent);
  box-shadow: 0 0 0 3px rgba(var(--mt-accent-rgb), .15);
}
.mt-input::placeholder,
.mt-textarea::placeholder,
.form-control::placeholder { color: rgba(255, 255, 255, .42); }

/* autofill на тёмных полях */
.mt-input:-webkit-autofill,
.mt-select:-webkit-autofill,
.form-control:-webkit-autofill {
  -webkit-text-fill-color: var(--mt-input-text);
  box-shadow: 0 0 0 1000px var(--mt-input-bg) inset;
  transition: background-color 9999s ease-out 0s;
}

.mt-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23c4b896' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 40px;
}
/* Убираем дефолтную стрелку MS Edge / IE */
.mt-select::-ms-expand { display: none; }

.mt-field.is-invalid .mt-input,
.mt-field.is-invalid .form-control {
  border-color: var(--mt-danger);
  box-shadow: 0 0 0 3px rgba(226,59,59,.12);
}
.mt-field__error {
  display: block;
  margin-top: 4px;
  color: var(--mt-danger);
  font-size: var(--mt-fs-13);
}

.mt-input-group {
  display: flex;
  position: relative;
}
.mt-input-group .mt-input,
.mt-input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mt-input-group .mt-btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.mt-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: var(--mt-fs-14);
  color: var(--mt-text);
  user-select: none;
}
.mt-check input[type="checkbox"],
.mt-check input[type="radio"] {
  width: 20px; height: 20px; accent-color: var(--mt-accent);
  margin: 0;
}

/* ===========================================================
   6. TOP BAR
   =========================================================== */
#top {
  background: var(--mt-brand);
  color: rgba(255,255,255,.88);
  font-size: var(--mt-fs-13);
  padding: 0;
  height: var(--mt-topbar-height);
  line-height: var(--mt-topbar-height);
  position: relative;
  z-index: calc(var(--mt-z-menu) + 14);
  overflow: visible;
}
#top .container,
#top .mt-topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: none; padding: 0 24px; }
#top a, #top .btn { color: rgba(255,255,255,.78); }
#top a:hover, #top .btn:hover { color: #fff; }
#top .mt-topbar-left,
#top .mt-topbar-right { display: flex; align-items: center; gap: 18px; }
#top .btn.btn-link { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; height: auto; line-height: 1; text-decoration: none; }
#top .btn.btn-link:hover { color: #fff; }
#top .dropdown-menu {
  background: var(--mt-khaki-bg-dark);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: var(--mt-radius-sm);
  padding: 6px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  min-width: 200px;
  max-width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 440px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: calc(var(--mt-z-menu) + 15);
}
#top .dropdown-menu > li > a,
#top .dropdown-menu > li > button {
  color: #fff;
  padding: 8px 14px;
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
#top .dropdown-menu > li > a:hover,
#top .dropdown-menu > li > button:hover { background: rgba(0, 0, 0, .18); color: #fff; }
#top .dropdown-menu .divider { background: rgba(255, 255, 255, .14); }
#top .mt-topbar-right .dropdown-menu {
  left: auto;
  right: 0;
}

#top .mt-topbar-contacts { display: inline-flex; align-items: center; gap: 18px; }
#top .mt-topbar-contacts a { display: inline-flex; align-items: center; gap: 6px; }

/* ===========================================================
   7. HEADER + STICKY (ref3 — ТСК-Маркет + ref2 — Piromaniac drawer)
   =========================================================== */

/* Видимость по экранам */
.mt-hide-mob { display: block; }
.mt-show-mob { display: none; }
@media (max-width: 991px) {
  .mt-hide-mob { display: none !important; }
  .mt-show-mob { display: block !important; }
}

/* Topbar — тонкая верхняя полоса */
#top.mt-topbar {
  position: relative;
  z-index: calc(var(--mt-z-menu) + 14);
  overflow: visible;
}
#top.mt-topbar:has(.btn-group.open) {
  z-index: calc(var(--mt-z-overlay) - 2);
}
.mt-topbar {
  background: var(--mt-brand);
  color: #fff;
  font-size: var(--mt-fs-13);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mt-topbar > .container,
.mt-topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 40px; gap: 20px; flex-wrap: wrap;
  width: 100%; max-width: none; padding: 0 clamp(16px, 3vw, 40px);
  overflow: visible;
}
.mt-topbar__left, .mt-topbar__right {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  overflow: visible;
}
#top .pull-left { float: none !important; }
.mt-topbar__blog.btn-group {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  overflow: visible;
}
.mt-topbar__blog .dropdown-menu {
  margin-top: 4px;
  left: 0;
  right: auto;
  z-index: calc(var(--mt-z-overlay));
}
.mt-topbar__blog.btn-group.open { z-index: calc(var(--mt-z-overlay)); }
.mt-topbar__blog.btn-group.open > .dropdown-menu { display: block; z-index: calc(var(--mt-z-overlay)); }
.mt-topbar a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.mt-topbar a:hover { color: var(--mt-accent); }
.mt-topbar__clock { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); }
.mt-topbar__nav { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.mt-topbar__nav li { margin: 0; }
.mt-topbar__account-btn { display: inline-flex; align-items: center; gap: 6px; }
.mt-topbar__account-btn .fa { color: var(--mt-accent); }
.mt-topbar__account-btn span { color: rgba(255,255,255,.4); margin: 0 2px; }
@media (max-width: 991px) {
  .mt-topbar { display: none; }
}

/* Главная шапка */
.mt-header {
  position: sticky;
  top: 0;
  z-index: calc(var(--mt-z-menu) + 12);
  background: var(--mt-surface);
  border-top: 3px solid var(--mt-accent);
  border-bottom: 1px solid var(--mt-border);
  transition: box-shadow var(--mt-transition), background var(--mt-transition);
  will-change: box-shadow;
}
.mt-header.is-stuck {
  box-shadow: 0 6px 28px rgba(0,0,0,.10);
  border-bottom-color: rgba(var(--mt-accent-rgb), .35);
}

.mt-header__main {
  padding: 16px 0;
  background: var(--mt-khaki-bg);
  transition: padding var(--mt-transition);
}
.mt-header.is-stuck .mt-header__main { padding: 8px 0; }

/* Декоративная «подложка» шапки для акцента без перегруза */
.mt-header__main {
  position: relative;
  z-index: calc(var(--mt-z-menu) + 4);
}
.mt-header__main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 40%, rgba(var(--mt-accent-rgb), .06), transparent 55%);
  pointer-events: none;
}
.mt-header__main > .container { position: relative; z-index: 1; }
.mt-menu-wrap {
  position: relative;
  z-index: var(--mt-z-menu);
}

/* 4-колоночный row: logo | catalog+search (широкая) | menu | contacts */
.mt-header__row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(400px, 1.4fr) minmax(220px, auto) minmax(300px, 360px);
  align-items: center;
  gap: 20px;
}
.mt-header__col { display: flex; align-items: center; min-width: 0; }
.mt-header__col--logo { justify-content: flex-start; }
.mt-header__col--search { gap: 10px; }
.mt-header__col--menu { justify-content: flex-end; }
.mt-header__col--contact { flex-direction: row; align-items: flex-start; justify-content: flex-end; gap: 12px; min-width: 300px; }
.mt-header__contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  max-width: 100%;
}
.mt-header__contact-main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}
.mt-header__messengers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 2px;
}
.mt-header__messengers--foot {
  justify-content: center;
  width: 100%;
  margin: 10px 0 4px;
}
.mt-header__messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mt-bg-alt);
  color: var(--mt-text);
  text-decoration: none;
  transition: background var(--mt-transition-fast), color var(--mt-transition-fast), transform var(--mt-transition-fast);
}
.mt-header__messenger:hover {
  color: #fff;
  transform: translateY(-1px);
}
.mt-header__messenger--max:hover { background: #7b61ff; }
.mt-header__messenger--whatsapp:hover { background: #25d366; }
.mt-header__messenger--telegram:hover { background: #2aabee; }
.mt-header__messenger-letter {
  font-family: var(--mt-font-heading);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.mt-header__messenger svg { display: block; }

/* Лого */
.mt-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; max-width: 100%; }
.mt-logo img, .mt-logo svg { max-height: 56px; max-width: 100%; width: auto; }
.mt-logo--mob img { max-height: 40px; }
.mt-logo__name { font-family: var(--mt-font-heading); font-weight: 800; font-size: var(--mt-fs-22); color: var(--mt-text); letter-spacing: -.02em; }

/* Кнопка «Каталог» */
.mt-catalog-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 22px 0 18px;
  background: var(--mt-brand-red);
  color: #fff;
  border: 0;
  border-radius: var(--mt-radius-sm);
  font-family: var(--mt-font-heading);
  font-weight: 700;
  font-size: var(--mt-fs-15);
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.mt-catalog-btn:hover { background: var(--mt-brand-red-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--mt-brand-red-rgb), .35); }
.mt-catalog-btn.is-active { background: var(--mt-brand-red-hover); }
.mt-catalog-btn__icon {
  position: relative;
  width: 20px; height: 14px;
  display: inline-block;
}
.mt-catalog-btn__icon span,
.mt-catalog-btn__icon::before,
.mt-catalog-btn__icon::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px; background: #fff; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mt-catalog-btn__icon::before { top: 0; }
.mt-catalog-btn__icon span { top: 6px; }
.mt-catalog-btn__icon::after { top: 12px; }
.mt-catalog-btn.is-active .mt-catalog-btn__icon::before { transform: translateY(6px) rotate(45deg); }
.mt-catalog-btn.is-active .mt-catalog-btn__icon::after  { transform: translateY(-6px) rotate(-45deg); }
.mt-catalog-btn.is-active .mt-catalog-btn__icon span    { opacity: 0; }

/* Поиск в шапке */
.mt-header__search {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}
.mt-header__search .mt-search { max-width: none; }
.mt-header__search .mt-search__form {
  padding: 6px 6px 6px 22px;
  border: 1px solid var(--mt-border);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.mt-header__search .mt-search__form:focus-within {
  border-color: var(--mt-accent);
  box-shadow: 0 0 0 4px rgba(var(--mt-accent-rgb), .12);
}
.mt-header__search .mt-search__input {
  height: 52px;
  font-size: var(--mt-fs-16);
}
.mt-header__search .mt-search__submit {
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: var(--mt-fs-15);
}
.mt-header__search .mt-search__submit .fa { font-size: 15px; }

/* Мини-меню (иконки) */
.mt-header__menu-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mt-header__icon-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  height: 54px;
  padding: 4px 10px;
  border-radius: var(--mt-radius-sm);
  background: transparent;
  color: var(--mt-text);
  border: 0;
  transition: background var(--mt-transition-fast), color var(--mt-transition-fast);
  text-decoration: none;
  cursor: pointer;
}
.mt-header__icon-btn .fa { font-size: 20px; }
.mt-header__icon-btn .mt-header__icon-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--mt-text-muted);
  line-height: 1;
}
.mt-header__icon-btn:hover { background: var(--mt-bg-alt); color: var(--mt-accent); }
.mt-header__icon-btn:hover .mt-header__icon-label { color: var(--mt-accent); }
.mt-header__icon-btn .mt-header__icon-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  background: var(--mt-accent);
  color: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  border: 2px solid #fff;
  line-height: 1;
}
.mt-header__icon-badge.is-empty { display: none; }
.mt-header__cart { position: relative; z-index: calc(var(--mt-z-menu) + 6); }

/* Контакты */
.mt-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mt-font-heading);
  font-size: var(--mt-fs-18);
  font-weight: 700;
  color: var(--mt-text);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
  max-width: 100%;
}
.mt-header__phone-num { line-height: 1.15; }
.mt-header__phone:hover { color: var(--mt-accent); }
.mt-header__phone-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mt-brand-red);
  flex-shrink: 0;
  position: relative;
  display: block;
  overflow: visible;
}
.mt-header__phone-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(var(--mt-brand-red-rgb), .45);
  animation: mtPhoneRing 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes mtPhoneRing {
  0% { transform: scale(1); opacity: .75; }
  100% { transform: scale(2.6); opacity: 0; }
}
.mt-header__callback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mt-accent);
  font-size: var(--mt-fs-13);
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dashed var(--mt-accent);
  line-height: 1.3;
}
.mt-header__callback:hover { color: var(--mt-accent-hover); border-bottom-color: transparent; }

/* Мобильная шапка */
.mt-header__mob { padding: 10px 0 10px; border-bottom: 1px solid var(--mt-border); }
.mt-header__mob-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.mt-header__mob-actions { display: inline-flex; align-items: center; gap: 6px; }
.mt-header__mob-call {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; border: 0; color: var(--mt-accent); cursor: pointer;
  font-size: 10px; font-weight: 600; text-decoration: none; padding: 4px 8px;
  line-height: 1.2;
}
.mt-header__mob-call .fa { font-size: 18px; }
.mt-burger {
  display: inline-flex;
  width: 44px; height: 44px;
  background: var(--mt-text);
  border: 0;
  border-radius: var(--mt-radius-sm);
  color: #fff;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.mt-burger:hover { background: var(--mt-accent); color: #fff; transform: translateY(-1px); }
.mt-burger svg { width: 20px; height: 16px; }

.mt-header__mob-bottom { padding: 0 0 10px; background: var(--mt-bg); border-bottom: 1px solid var(--mt-border); }
.mt-header__mob-bottom-row { display: flex; gap: 8px; align-items: center; }
.mt-header__mob-search { flex: 1; min-width: 0; }
.mt-header__mob-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--mt-accent);
  color: #fff;
  border-radius: var(--mt-radius-sm);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.mt-header__mob-cart-btn:hover { background: var(--mt-accent-hover); color: #fff; transform: translateY(-1px); }
.mt-header__mob-cart-btn .fa { font-size: 18px; }
.mt-header__mob-cart-btn .mt-header__icon-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--mt-text); color: #fff; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; border: 2px solid #fff; line-height: 1;
}

/* ===========================================================
   7b. CATALOG DRAWER — выдвижная панель каталога (ref2-style)
   =========================================================== */
.mt-catalog-drawer {
  position: fixed;
  top: 0; left: 0;
  width: min(400px, 90vw);
  height: 100vh;
  background: #fff;
  box-shadow: var(--mt-shadow-lg);
  z-index: calc(var(--mt-z-overlay) + 2);
  transform: translateX(-105%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mt-catalog-drawer.is-open { transform: translateX(0); }
.mt-catalog-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: var(--mt-brand-red); color: #fff;
  font-family: var(--mt-font-heading); font-size: var(--mt-fs-18); font-weight: 700;
}
.mt-catalog-drawer__head strong { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.mt-catalog-drawer__head .fa { color: rgba(255,255,255,.9); }
.mt-catalog-drawer__close {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.12);
  border: 0; border-radius: 50%;
  color: #fff; cursor: pointer;
  transition: background .2s;
}
.mt-catalog-drawer__close:hover { background: var(--mt-brand-red-hover); }
.mt-catalog-drawer__body {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
}
.mt-catalog-drawer__list { list-style: none; padding: 0; margin: 0; }
.mt-catalog-drawer__list li {
  position: relative;
  border-bottom: 1px solid var(--mt-border);
}
.mt-catalog-drawer__list li:last-child { border-bottom: 0; }
.mt-catalog-drawer__list a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  color: var(--mt-text);
  font-size: var(--mt-fs-15);
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s, padding-left .2s;
}
.mt-catalog-drawer__list a::after {
  content: "\f105"; font-family: FontAwesome;
  margin-left: auto; color: var(--mt-text-muted); font-weight: 400;
  transition: transform .2s, color .2s;
}
.mt-catalog-drawer__list a:hover {
  background: var(--mt-bg-alt);
  color: var(--mt-accent);
  padding-left: 28px;
}
.mt-catalog-drawer__list a:hover::after { color: var(--mt-accent); transform: translateX(4px); }
.mt-catalog-drawer__list .mt-cat-ico {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--mt-accent);
  border-radius: var(--mt-radius-xs);
  background: var(--mt-bg-alt);
  overflow: hidden;
}
.mt-catalog-drawer__list .mt-cat-ico img {
  width: 24px; height: 24px;
  object-fit: cover;
  border-radius: 4px;
}
.mt-catalog-drawer__list .mt-cat-ico__letter {
  font-size: 12px;
  font-weight: 700;
  color: var(--mt-accent);
  text-transform: uppercase;
}
.mt-catalog-drawer__list .mt-sub {
  list-style: none; margin: 0; padding: 0 0 8px 48px;
  display: none;
}
.mt-catalog-drawer__list .is-open > .mt-sub { display: block; }
.mt-catalog-drawer__list .mt-sub a {
  padding: 8px 22px 8px 0;
  font-size: var(--mt-fs-14);
  font-weight: 400;
  color: var(--mt-text-muted);
  border: 0;
}
.mt-catalog-drawer__list .mt-sub a:hover { color: var(--mt-accent); padding-left: 6px; background: transparent; }
.mt-catalog-drawer__list .mt-sub a::after { display: none; }
.mt-catalog-drawer__foot {
  padding: 16px 22px;
  border-top: 1px solid var(--mt-border);
  display: grid; gap: 10px;
  background: var(--mt-bg-alt);
}

/* burger (оставляем для обратной совместимости) */
.mt-burger span {
  display: none;
}

/* ===========================================================
   8. SEARCH
   =========================================================== */
.mt-search {
  position: relative;
  flex: 1;
  max-width: 620px;
}
.mt-search__form {
  display: flex;
  align-items: center;
  background: var(--mt-bg-alt);
  border: 1px solid transparent;
  border-radius: var(--mt-radius-md);
  padding: 4px 4px 4px 18px;
  transition: background var(--mt-transition-fast), border-color var(--mt-transition-fast);
}
.mt-search__form:focus-within {
  background: var(--mt-surface-raised);
  border-color: var(--mt-accent);
  box-shadow: 0 0 0 3px rgba(var(--mt-accent-rgb), .12);
}
.mt-search__input {
  flex: 1;
  border: 0;
  background: transparent;
  height: 48px;
  font-family: inherit;
  font-size: var(--mt-fs-15);
  color: var(--mt-text);
  outline: 0;
  min-width: 0;
}
.mt-search__input::placeholder { color: var(--mt-text-muted); }
.mt-search__submit {
  height: 44px;
  padding: 0 22px;
  background: var(--mt-accent);
  color: #fff;
  font-weight: var(--mt-font-weight-semibold);
  border: 0;
  border-radius: var(--mt-radius);
  display: inline-flex;
  align-items: center; gap: 8px;
  transition: background var(--mt-transition-fast);
  cursor: pointer;
}
.mt-search__submit:hover { background: var(--mt-brand); }
.mt-search__submit .fa { font-size: 14px; }

.mt-search__dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--mt-surface-raised);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  box-shadow: var(--mt-shadow-md);
  max-height: 420px;
  overflow: auto;
  padding: 8px 0;
  display: none;
  z-index: 55;
}
.mt-search__dropdown.is-open { display: block; }
.mt-search__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--mt-text);
}
.mt-search__item:hover { background: var(--mt-bg-alt); color: var(--mt-text); }
.mt-search__item img { width: 48px; height: 48px; object-fit: contain; border-radius: var(--mt-radius-sm); background: var(--mt-bg-alt); }
.mt-search__item-name { font-weight: var(--mt-font-weight-medium); color: var(--mt-text); }
.mt-search__item-price { color: var(--mt-accent-soft); font-weight: 700; margin-left: auto; }

/* ===========================================================
   9. MEGA MENU
   =========================================================== */
.mt-menu {
  background: var(--mt-surface);
  border-top: 1px solid var(--mt-border);
  position: relative;
  z-index: var(--mt-z-menu);
  overflow: visible;
}
.mt-menu .container { overflow: visible; }
.mt-menu-wrap { overflow: visible; }
.mt-menu__inner {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow: visible;
}
.mt-menu__catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  height: 56px;
  background: var(--mt-accent);
  color: #fff;
  font-weight: var(--mt-font-weight-semibold);
  font-size: var(--mt-fs-15);
  border: 0;
  border-radius: var(--mt-radius-md);
  cursor: pointer;
  margin: 10px 24px 10px 0;
  transition: background var(--mt-transition-fast);
}
.mt-menu__catalog-btn:hover { background: var(--mt-brand); color: #fff; }
.mt-menu__catalog-btn .mt-menu__catalog-icon {
  display: inline-flex;
  flex-direction: column; gap: 3px;
}
.mt-menu__catalog-btn .mt-menu__catalog-icon span {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px;
}
.mt-menu__list {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0; padding: 0;
  gap: 4px;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.mt-menu__item { position: relative; min-width: 0; flex: 0 0 auto; }
.mt-menu__item.is-hidden { display: none !important; }
.mt-menu__item--more[hidden] { display: none !important; }
.mt-menu__item--more > .mt-menu__link,
.mt-menu__item--more > .mt-menu__link--more {
  font-weight: var(--mt-font-weight-semibold);
  cursor: pointer;
  border: 0;
  background: transparent;
  font-family: inherit;
}
.mt-menu__item--more > .mt-menu__drop { left: auto; right: 0; }
.mt-menu__drop--more {
  width: min(360px, calc(100vw - 24px));
  min-width: 0;
  display: none;
  grid-template-columns: 1fr;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  max-height: min(65vh, 480px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--mt-khaki-bg-dark);
  border: 1px solid rgba(0, 0, 0, .16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .32);
  border-radius: var(--mt-radius-md);
}
.mt-menu__item--more.is-open > .mt-menu__drop--more {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mt-menu__item--more:hover > .mt-menu__drop--more {
  display: block;
}
.mt-menu__drop--more ul { list-style: none; margin: 0; padding: 0; }
.mt-menu__drop--more li + li { margin-top: 2px; }
.mt-menu__drop--more a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--mt-radius-xs);
  color: #fff;
  text-decoration: none;
  font-size: var(--mt-fs-14);
  font-weight: var(--mt-font-weight-medium);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  transition: background .2s, color .2s;
}
.mt-menu__drop--more a:hover {
  background: rgba(0, 0, 0, .2);
  color: #fff;
}
.mt-menu__link {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 14px;
  font-size: var(--mt-fs-15);
  font-weight: var(--mt-font-weight-medium);
  color: var(--mt-text);
  text-decoration: none;
  border-radius: var(--mt-radius-sm);
  transition: background var(--mt-transition-fast), color var(--mt-transition-fast);
}
.mt-menu__link:hover,
.mt-menu__item.is-open > .mt-menu__link { background: var(--mt-bg-alt); color: var(--mt-accent); }
.mt-menu__link .fa-chevron-down { font-size: 10px; margin-left: 6px; opacity: .5; }

.mt-menu__drop {
  position: absolute;
  top: 100%; left: 0;
  width: min(640px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  min-width: 0;
  background: var(--mt-khaki-bg);
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: var(--mt-radius-md);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--mt-transition-fast), transform var(--mt-transition-fast), visibility 0s .2s;
  z-index: var(--mt-z-menu);
  max-height: min(70vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mt-menu__item:nth-last-child(-n+6) > .mt-menu__drop:not(.mt-menu__drop--more) {
  left: auto;
  right: 0;
}
.mt-menu__item:first-child > .mt-menu__drop:not(.mt-menu__drop--more),
.mt-menu__item:nth-child(2) > .mt-menu__drop:not(.mt-menu__drop--more) {
  left: 0;
  right: auto;
}
.mt-menu__item:hover > .mt-menu__drop,
.mt-menu__item.is-open > .mt-menu__drop {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: 0s;
}
.mt-menu__drop ul { list-style: none; padding: 0; margin: 0; }
.mt-menu__drop ul li { margin: 0; }
.mt-menu__drop a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--mt-radius-xs);
  color: var(--mt-brand);
  font-size: var(--mt-fs-14);
  overflow-wrap: break-word;
  word-break: normal;
}
.mt-menu__drop a:hover { background: rgba(57, 60, 70, .12); color: var(--mt-brand); }
.mt-menu__drop .see-all {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 10px 8px;
  font-weight: var(--mt-font-weight-semibold);
  color: var(--mt-brand-red);
  border-top: 1px solid rgba(0, 0, 0, .12);
}
.mt-menu__drop .see-all:hover { color: var(--mt-brand-red-hover); }

/* ===========================================================
   10. CART DROPDOWN
   =========================================================== */
#cart { display: inline-block; }
#cart > .btn { display: none; } /* скрываем дефолтную кнопку */
.mt-cart-dd {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: min(380px, calc(100vw - 24px));
  background-color: var(--mt-surface-raised) !important;
  color: var(--mt-text) !important;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  box-shadow: var(--mt-shadow-lg);
  padding: 16px;
  display: none;
  z-index: calc(var(--mt-z-overlay) - 1);
}
.mt-cart-dd.is-open {
  display: block;
}
.mt-cart-dd.is-fixed {
  position: fixed;
  left: auto;
}
body.mt-cart-open .mt-header {
  z-index: calc(var(--mt-z-overlay) - 2);
}
body.mt-cart-open .mt-header__cart,
body.mt-cart-open #cart {
  z-index: calc(var(--mt-z-overlay) - 1);
}
body.mt-cart-open .mt-cart-dd {
  z-index: calc(var(--mt-z-overlay));
}
.mt-cart-dd__empty { text-align: center; color: var(--mt-text-muted); padding: 24px 8px; }
.mt-cart-dd__list { max-height: 360px; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.mt-cart-dd__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mt-border); align-items: start; }
.mt-cart-dd__item:last-child { border-bottom: 0; }
.mt-cart-dd__item > div { min-width: 0; }
.mt-cart-dd__img { width: 64px; height: 64px; object-fit: contain; background: var(--mt-bg-alt); border-radius: var(--mt-radius-sm); }
.mt-cart-dd__name {
  font-size: var(--mt-fs-14);
  font-weight: var(--mt-font-weight-medium);
  color: var(--mt-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.mt-cart-dd__opts { font-size: var(--mt-fs-12); color: var(--mt-text-muted); margin-top: 2px; }
.mt-cart-dd__qty  { font-size: var(--mt-fs-13); color: var(--mt-text-muted); margin-top: 4px; }
.mt-cart-dd__price { font-weight: 700; color: var(--mt-text); text-align: right; }
.mt-cart-dd__remove { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: transparent; color: var(--mt-text-muted); border: 0; border-radius: 4px; cursor: pointer; font-size: 14px; margin-top: 4px; }
.mt-cart-dd__remove:hover { background: var(--mt-danger); color: #fff; }
.mt-cart-dd__totals { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--mt-border); }
.mt-cart-dd__total-row { display: flex; justify-content: space-between; font-size: var(--mt-fs-14); margin-bottom: 4px; color: var(--mt-text-muted); }
.mt-cart-dd__total-row.is-grand { font-size: var(--mt-fs-16); font-weight: 700; color: var(--mt-text); }
.mt-cart-dd__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.mt-cart-dd__actions .mt-btn {
  width: 100%;
  white-space: normal;
  height: auto;
  min-height: 38px;
  padding: 8px 12px;
  line-height: 1.25;
  text-align: center;
}

/* ===========================================================
   11. HERO / SLIDER
   =========================================================== */
.mt-hero {
  position: relative;
  background: linear-gradient(135deg, #121212 0%, #2a2a2a 100%);
  color: #fff;
  border-radius: var(--mt-radius-lg);
  overflow: hidden;
  padding: 60px 48px;
  min-height: 420px;
  display: flex;
  align-items: center;
  margin: 32px 0;
}
.mt-hero::before {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--mt-accent-rgb),.55) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.mt-hero__content { position: relative; z-index: 2; max-width: 560px; }
.mt-hero__eyebrow {
  display: inline-block;
  font-size: var(--mt-fs-12);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--mt-accent-soft);
  font-weight: var(--mt-font-weight-semibold);
  margin-bottom: 16px;
}
.mt-hero__title {
  font-family: var(--mt-font-heading);
  font-size: var(--mt-fs-48);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.mt-hero__subtitle { color: rgba(255,255,255,.75); font-size: var(--mt-fs-18); margin-bottom: 32px; }
.mt-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.mt-hero--home {
  isolation: isolate;
  min-height: 460px;
  background:
    radial-gradient(circle at 82% 18%, rgba(var(--mt-accent-rgb), .15), transparent 26%),
    radial-gradient(circle at 18% 100%, rgba(var(--mt-accent-rgb), .22), transparent 34%),
    linear-gradient(135deg, #393c46 0%, #424652 52%, #2e3139 100%);
}
.mt-hero--home .mt-hero__content {
  flex: 1 1 auto;
  max-width: min(560px, calc(100% - min(400px, 40vw) - 32px));
}
.mt-hero--home::before {
  right: -100px;
  top: -180px;
  opacity: .9;
  transform: translate3d(0, var(--mt-parallax-y-neg, 0px), 0);
}
.mt-hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 76%, transparent);
  opacity: .28;
  pointer-events: none;
  transform: translate3d(0, var(--mt-parallax-grid, 0px), 0);
}
.mt-hero__orb {
  position: absolute;
  z-index: 1;
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
  opacity: .78;
  animation: mt-float-soft 8s ease-in-out infinite;
}
.mt-hero__orb--one {
  right: 18%;
  top: 18%;
  background: radial-gradient(circle, rgba(var(--mt-accent-rgb), .42), transparent 68%);
}
.mt-hero__orb--two {
  right: 6%;
  bottom: 10%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,.24), transparent 70%);
  animation-delay: -3s;
}
.mt-hero__visual {
  position: absolute;
  right: clamp(28px, 7vw, 96px);
  top: 50%;
  z-index: 2;
  width: min(380px, 36vw);
  transform: translate3d(0, calc(-50% + var(--mt-parallax-visual, 0px)), 0);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.mt-hero__glass-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  border-radius: var(--mt-radius-lg);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mt-hero__glass-card--main {
  width: 100%;
  padding: 28px 28px 32px;
}
.mt-hero__glass-card--main span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.72);
  font-size: var(--mt-fs-13);
  text-transform: uppercase;
  letter-spacing: .16em;
}
.mt-hero__glass-card--main strong {
  display: block;
  font-family: var(--mt-font-heading);
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.12;
}
.mt-hero__glass-card--mini {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 18px;
  font-weight: 700;
  white-space: nowrap;
  animation: mt-float-soft 7s ease-in-out infinite reverse;
}
.mt-hero__glass-card--mini .fa {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mt-accent);
}

/* ===========================================================
   12. CATEGORY WALL (ref1)
   =========================================================== */
.mt-section--catwall { padding-top: 48px; padding-bottom: 64px; }
.mt-cat-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 170px;
  gap: 16px;
}
.mt-cat-wall__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(145deg, var(--mt-surface-raised) 0%, var(--mt-bg-alt) 100%);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--mt-heading);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), border-color .25s;
  isolation: isolate;
  min-width: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: mt-cat-tile-in .65s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: var(--mt-tile-delay, 0ms);
}
@keyframes mt-cat-tile-in {
  to { opacity: 1; transform: translateY(0); }
}
.mt-cat-wall__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.72) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: .85;
  transition: opacity .35s;
}
.mt-cat-wall__shine {
  position: absolute;
  inset: -40% auto auto -30%;
  width: 55%;
  height: 180%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  transform: translateX(-120%) rotate(12deg);
  z-index: 2;
  pointer-events: none;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.mt-cat-wall__tile:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  border-color: rgba(var(--mt-accent-rgb), .35);
  color: #fff;
}
.mt-cat-wall__tile:hover::after { opacity: .92; }
.mt-cat-wall__tile:hover .mt-cat-wall__shine { transform: translateX(220%) rotate(12deg); }
.mt-cat-wall__body {
  position: relative;
  z-index: 3;
  min-width: 0;
  flex: 1 1 auto;
}
.mt-cat-wall__tile.is-wide { grid-column: span 2; }
.mt-cat-wall__tile.is-tall { grid-row: span 2; }
.mt-cat-wall__tile.is-big  { grid-column: span 2; grid-row: span 2; }
.mt-cat-wall__tile.is-accent {
  background: linear-gradient(135deg, var(--mt-brand-red) 0%, #5a1010 100%);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.mt-cat-wall__tile.is-accent:hover { color: #fff; }
.mt-cat-wall__tile.is-dark { background: var(--mt-text); color: #fff; }
.mt-cat-wall__tile.is-dark:hover { color: #fff; }
.mt-cat-wall__title {
  font-family: var(--mt-font-heading);
  font-size: var(--mt-fs-18);
  font-weight: var(--mt-font-weight-semibold);
  margin: 0;
  position: relative; z-index: 2;
  max-width: 100%;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
  text-wrap: balance;
}
.mt-cat-wall__tile.is-big .mt-cat-wall__title { font-size: var(--mt-fs-26); }
.mt-cat-wall__tile.is-wide .mt-cat-wall__title,
.mt-cat-wall__tile.is-tall .mt-cat-wall__title { font-size: var(--mt-fs-19); }
.mt-cat-wall__sub {
  font-size: var(--mt-fs-13);
  color: rgba(255,255,255,.78);
  margin-top: 6px;
  position: relative; z-index: 2;
}
.mt-cat-wall__footer {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 3;
  margin-top: auto;
}
.mt-cat-wall__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--mt-fs-13);
  font-weight: var(--mt-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mt-accent);
}
.mt-cat-wall__tile.is-accent .mt-cat-wall__cta,
.mt-cat-wall__tile.is-dark .mt-cat-wall__cta { color: rgba(255,255,255,.92); }
.mt-cat-wall__cta::after { content: "→"; transition: transform var(--mt-transition-fast); }
.mt-cat-wall__tile:hover .mt-cat-wall__cta::after { transform: translateX(4px); }
.mt-cat-wall__image {
  position: absolute; inset: 0;
  z-index: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: .55;
  transition: opacity .4s, transform .6s cubic-bezier(.4,0,.2,1);
}
.mt-cat-wall__tile:hover .mt-cat-wall__image { opacity: .68; transform: scale(1.06); }

/* ===========================================================
   13. BENEFITS (ref2)
   =========================================================== */
.mt-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mt-benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-lg);
  transition: transform var(--mt-transition-fast), box-shadow var(--mt-transition), border-color var(--mt-transition-fast);
}
.mt-benefit:hover { transform: translateY(-4px); box-shadow: var(--mt-shadow-md); border-color: transparent; }
.mt-benefit__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--mt-accent-rgb), .1);
  color: var(--mt-accent);
  border-radius: var(--mt-radius-md);
  font-size: 24px;
}
.mt-benefit__title {
  margin: 0 0 6px;
  font-family: var(--mt-font-heading);
  font-weight: var(--mt-font-weight-semibold);
  font-size: var(--mt-fs-16);
  color: var(--mt-text);
}
.mt-benefit__text { color: var(--mt-text-muted); font-size: var(--mt-fs-14); margin: 0; }

/* ===========================================================
   14. PRODUCT CARD THUMBNAIL (ref2)
   =========================================================== */
.mt-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mt-products.mt-products--3 { grid-template-columns: repeat(3, 1fr); }
.mt-products.mt-products--5 { grid-template-columns: repeat(5, 1fr); }

.mt-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-lg);
  overflow: hidden;
  transition: border-color var(--mt-transition-fast), box-shadow var(--mt-transition), transform var(--mt-transition-fast);
  isolation: isolate;
}
.mt-product-card:hover {
  border-color: transparent;
  box-shadow: var(--mt-shadow-md);
  transform: translateY(-3px);
}
.mt-product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--mt-bg-alt);
  overflow: hidden;
}
.mt-product-card__image {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform var(--mt-transition), opacity var(--mt-transition-fast);
}
.mt-product-card__image--second {
  position: absolute; inset: 0;
  opacity: 0;
}
.mt-product-card:hover .mt-product-card__image--main { opacity: 0; }
.mt-product-card:hover .mt-product-card__image--second { opacity: 1; }
.mt-product-card:hover .mt-product-card__image { transform: scale(1.03); }

/* Ротация галереи при hover: несколько изображений — индикатор точками */
.mt-product-card__gallery {
  position: absolute; inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.mt-product-card__gallery img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  opacity: 0;
  transition: opacity .25s ease;
}
.mt-product-card__gallery img.is-active { opacity: 1; }
.mt-product-card.has-gallery:hover .mt-product-card__gallery { opacity: 1; }
.mt-product-card.has-gallery:hover .mt-product-card__image--main { opacity: 0; }

.mt-product-card__dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 4px;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 3;
  pointer-events: none;
}
.mt-product-card.has-gallery:hover .mt-product-card__dots { opacity: 1; }
.mt-product-card__dot {
  width: 16px; height: 3px;
  background: rgba(0,0,0,.15);
  border-radius: 2px;
  transition: background .2s, width .2s;
}
.mt-product-card__dot.is-active { background: var(--mt-accent); width: 22px; }

/* Страховка: скрываем старую кнопку «Каталог товаров» в мегаменю (дубль кнопки «Каталог») */
.mt-menu__catalog-btn { display: none !important; }
.mt-menu .container { max-width: var(--mt-container-wide); }
.mt-cart-qty--stepper { flex-wrap: wrap; max-width: 220px; }

.mt-product-card__badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 2;
}
.mt-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  font-size: var(--mt-fs-12);
  font-weight: var(--mt-font-weight-semibold);
  color: #fff;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.4;
}
.mt-badge--sale  { background: var(--mt-accent); }
.mt-badge--new   { background: var(--mt-success); }
.mt-badge--hit   { background: var(--mt-brand); }
.mt-badge--hot   { background: var(--mt-warning); color: var(--mt-brand); }

.mt-product-card__actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--mt-transition-fast), transform var(--mt-transition-fast);
}
.mt-product-card:hover .mt-product-card__actions { opacity: 1; transform: translateY(0); }
.mt-product-card__action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--mt-surface-raised);
  color: var(--mt-text);
  border: 1px solid var(--mt-border);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--mt-transition-fast), color var(--mt-transition-fast), border-color var(--mt-transition-fast);
  font-size: 14px;
  text-decoration: none;
}
.mt-product-card__action-btn:hover { background: var(--mt-accent); color: #fff; border-color: var(--mt-accent); }

.mt-product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mt-product-card__cat  { font-size: var(--mt-fs-12); color: var(--mt-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.mt-product-card__title {
  font-family: var(--mt-font-body);
  font-size: var(--mt-fs-15);
  font-weight: var(--mt-font-weight-semibold);
  color: var(--mt-text);
  margin: 0;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mt-product-card__title a { color: inherit; text-decoration: none; }
.mt-product-card__title a:hover { color: var(--mt-accent); }
.mt-product-card__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--mt-warning); font-size: 13px; }
.mt-product-card__rating .fa-star-o { color: var(--mt-border-strong); }
.mt-product-card__price-wrap { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.mt-product-card__price { font-family: var(--mt-font-heading); font-size: var(--mt-fs-20); font-weight: 700; color: var(--mt-text); line-height: 1; }
.mt-product-card__price-old {
  text-decoration: line-through;
  color: var(--mt-text-muted);
  font-size: var(--mt-fs-14);
}
.mt-product-card__footer { display: flex; gap: 8px; margin-top: 12px; }
.mt-product-card__buy {
  flex: 1;
  height: 42px;
  background: var(--mt-brand);
  color: #fff;
  border: 0;
  border-radius: var(--mt-radius);
  font-weight: var(--mt-font-weight-semibold);
  font-size: var(--mt-fs-14);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--mt-transition-fast);
  text-decoration: none;
}
.mt-product-card__buy:hover { background: var(--mt-accent); color: #fff; }
.mt-product-card__buy.is-in-cart { background: var(--mt-success); }
.mt-product-card__buy--out {
  background: var(--mt-bg-alt);
  color: var(--mt-text-muted);
  border: 1px solid var(--mt-border);
  cursor: default;
  text-decoration: none;
}
.mt-product-card__buy--out:hover { background: var(--mt-bg-alt); color: var(--mt-danger); transform: none; }
.mt-product-card--out .mt-product-card__image-wrap { position: relative; }
.mt-product-card--out {
  opacity: .78;
  filter: grayscale(.18) saturate(.85);
}
.mt-product-card__out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.mt-product-card--out .mt-product-card__body { opacity: .92; }
.mt-badge--preorder {
  background: var(--mt-khaki-bg-dark, #7a7050);
  color: #fff;
}
.mt-pdp__preorder-note {
  flex: 1 1 100%;
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: var(--mt-radius);
  background: rgba(122, 112, 80, .12);
  border: 1px solid rgba(122, 112, 80, .28);
  color: var(--mt-text);
  font-size: var(--mt-fs-14);
  line-height: 1.45;
}
.mt-pdp--out .mt-pdp__gallery,
.mt-pdp--out .mt-pdp__info {
  opacity: .88;
  filter: grayscale(.12) saturate(.9);
}
.mt-product-card__buy--preorder {
  background: var(--mt-khaki-bg-dark, #7a7050);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.mt-product-card__buy--preorder:hover { background: var(--mt-khaki-bg, #9a8f6a); color: #fff; }
.mt-btn--preorder { background: var(--mt-khaki-bg-dark, #7a7050) !important; border-color: var(--mt-khaki-bg-dark, #7a7050) !important; }
.mt-btn--preorder:hover { background: var(--mt-khaki-bg, #9a8f6a) !important; border-color: var(--mt-khaki-bg, #9a8f6a) !important; }
.mt-pdp__out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
.mt-pdp--out .mt-pdp__info { opacity: 1; }
.mt-btn.is-disabled,
.mt-btn.is-disabled:hover {
  opacity: .72;
  cursor: not-allowed;
  transform: none;
}
.mt-product-card__one-click {
  height: 42px;
  padding: 0 14px;
  background: var(--mt-bg-alt);
  border: 0;
  border-radius: var(--mt-radius);
  font-weight: var(--mt-font-weight-semibold);
  font-size: var(--mt-fs-13);
  color: var(--mt-text);
  cursor: pointer;
  transition: background var(--mt-transition-fast);
}
.mt-product-card__one-click:hover { background: var(--mt-accent); color: #fff; }

.mt-product-card__stock { font-size: var(--mt-fs-12); color: var(--mt-success); font-weight: var(--mt-font-weight-medium); display: inline-flex; align-items: center; gap: 4px; }
.mt-product-card__stock--out { color: var(--mt-danger); }

/* ===========================================================
   15. PRODUCT DETAIL PAGE
   =========================================================== */
.mt-pdp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.mt-pdp__gallery { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.mt-pdp__thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; }
.mt-pdp__thumb {
  width: 80px; height: 80px;
  border: 2px solid transparent;
  border-radius: var(--mt-radius-sm);
  background: var(--mt-bg-alt);
  cursor: pointer;
  padding: 4px;
  transition: border-color var(--mt-transition-fast);
}
.mt-pdp__thumb.is-active, .mt-pdp__thumb:hover { border-color: var(--mt-accent); }
.mt-pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.mt-pdp__main-image {
  background: var(--mt-bg-alt);
  border-radius: var(--mt-radius-md);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.mt-pdp__main-image img { max-width: 90%; max-height: 90%; object-fit: contain; }
.mt-pdp__badges { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }

.mt-pdp__title { font-size: var(--mt-fs-32); font-family: var(--mt-font-heading); font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.mt-pdp__meta { display: flex; align-items: center; gap: 16px; color: var(--mt-text-muted); font-size: var(--mt-fs-13); margin-bottom: 16px; flex-wrap: wrap; }
.mt-pdp__meta span { display: inline-flex; align-items: center; gap: 4px; }
.mt-pdp__meta strong { color: var(--mt-text); font-weight: var(--mt-font-weight-semibold); }
.mt-pdp__price-box { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.mt-pdp__price { font-family: var(--mt-font-heading); font-weight: 700; font-size: var(--mt-fs-40); color: var(--mt-text); line-height: 1; }
.mt-pdp__price-old { font-size: var(--mt-fs-20); color: var(--mt-text-muted); text-decoration: line-through; }
.mt-pdp__saving { background: var(--mt-accent); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: var(--mt-fs-13); font-weight: 700; }
.mt-pdp__qty { display: inline-flex; align-items: center; border: 1px solid var(--mt-border-strong); border-radius: var(--mt-radius); height: 48px; overflow: hidden; }
.mt-pdp__qty button { width: 44px; height: 48px; background: transparent; border: 0; font-size: 18px; color: var(--mt-text); cursor: pointer; }
.mt-pdp__qty button:hover { background: var(--mt-bg-alt); color: var(--mt-accent); }
.mt-pdp__qty input { width: 60px; height: 48px; border: 0; text-align: center; font-weight: var(--mt-font-weight-semibold); font-size: var(--mt-fs-16); background: transparent; outline: none; }
.mt-pdp__buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.mt-pdp__options { margin-bottom: 24px; display: grid; gap: 16px; }
.mt-pdp__option-title { font-size: var(--mt-fs-14); font-weight: var(--mt-font-weight-semibold); margin-bottom: 10px; display: flex; justify-content: space-between; }
.mt-pdp__swatch-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-pdp__swatch {
  min-width: 50px;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--mt-border-strong);
  background: #fff;
  color: var(--mt-text);
  border-radius: var(--mt-radius-sm);
  font-size: var(--mt-fs-14);
  cursor: pointer;
  transition: border-color var(--mt-transition-fast), background var(--mt-transition-fast);
}
.mt-pdp__swatch:hover { border-color: var(--mt-text); }
.mt-pdp__swatch.is-active { border-color: var(--mt-accent); background: rgba(var(--mt-accent-rgb), .05); }

.mt-pdp__delivery {
  background: var(--mt-bg-alt);
  border-radius: var(--mt-radius-md);
  padding: 20px;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.mt-pdp__delivery-row { display: flex; gap: 12px; align-items: flex-start; }
.mt-pdp__delivery-row .fa { font-size: 18px; color: var(--mt-accent); margin-top: 3px; width: 22px; text-align: center; }
.mt-pdp__delivery-row strong { display: block; font-size: var(--mt-fs-14); color: var(--mt-text); }
.mt-pdp__delivery-row span { font-size: var(--mt-fs-13); color: var(--mt-text-muted); }

.mt-tabs { margin-top: 48px; }
.mt-tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--mt-border); margin-bottom: 24px; overflow-x: auto; }
.mt-tabs__btn {
  background: transparent;
  border: 0;
  padding: 14px 20px;
  font-size: var(--mt-fs-15);
  font-weight: var(--mt-font-weight-semibold);
  color: var(--mt-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--mt-transition-fast), border-color var(--mt-transition-fast);
  white-space: nowrap;
}
.mt-tabs__btn.is-active,
.mt-tabs__btn:hover { color: var(--mt-text); }
.mt-tabs__btn.is-active { border-bottom-color: var(--mt-accent); color: var(--mt-accent); }
.mt-tabs__pane { display: none; }
.mt-tabs__pane.is-active { display: block; animation: mt-fade-in .3s ease; }

.mt-attributes { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--mt-border); border-radius: var(--mt-radius-md); overflow: hidden; }
.mt-attr { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 20px; border-bottom: 1px solid var(--mt-border); }
.mt-attr:last-child { border-bottom: 0; }
.mt-attr:nth-child(odd) { background: var(--mt-bg-alt); }
.mt-attr__key { color: var(--mt-text-muted); }
.mt-attr__val { font-weight: var(--mt-font-weight-medium); }

/* ===========================================================
   16. CATEGORY LISTING / FILTERS
   =========================================================== */
.mt-listing { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.mt-filter {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--mt-header-height-compact) + 16px);
  max-height: calc(100vh - var(--mt-header-height-compact) - 40px);
  overflow: auto;
  color: var(--mt-text);
}
.mt-filter__title { font-family: var(--mt-font-heading); font-weight: 700; font-size: var(--mt-fs-18); margin: 0 0 16px; color: var(--mt-heading); }
.mt-filter__group { margin-bottom: 20px; }
.mt-filter__group-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--mt-fs-14);
  font-weight: var(--mt-font-weight-semibold);
  margin-bottom: 10px;
  cursor: pointer;
}
.mt-filter__group-title .fa { color: var(--mt-text-muted); font-size: 10px; transition: transform var(--mt-transition-fast); }
.mt-filter__group.is-collapsed .mt-filter__group-title .fa { transform: rotate(-90deg); }
.mt-filter__group.is-collapsed .mt-filter__group-body { display: none; }
.mt-filter__group-body { display: grid; gap: 6px; }

.mt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  margin-bottom: 18px;
  box-shadow: var(--mt-shadow-xs);
  flex-wrap: wrap;
  color: var(--mt-text);
}
.mt-toolbar__left, .mt-toolbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-toolbar .mt-btn--outline,
.mt-toolbar .mt-btn--ghost {
  color: var(--mt-text);
}
.mt-toolbar .mt-btn--outline .fa,
.mt-toolbar .mt-btn--ghost .fa,
.mt-toolbar .mt-view-switch .fa {
  color: inherit;
}
.mt-view-switch {
  display: inline-flex;
  background: var(--mt-bg-alt);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-sm);
  padding: 3px;
  gap: 2px;
}
.mt-view-switch button {
  width: 38px; height: 34px;
  background: transparent;
  border: 0;
  border-radius: var(--mt-radius-xs);
  color: var(--mt-text-muted);
  cursor: pointer;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.mt-view-switch button:hover { color: var(--mt-text); }
.mt-view-switch button.is-active {
  background: var(--mt-khaki-bg);
  color: var(--mt-brand);
  box-shadow: var(--mt-shadow-xs);
}
.mt-view-switch button.is-active .fa { color: var(--mt-brand); }

/* list view */
.mt-products.is-list { grid-template-columns: 1fr; gap: 12px; }
.mt-products.is-list .mt-product-card { flex-direction: row; }
.mt-products.is-list .mt-product-card__image-wrap { width: 220px; aspect-ratio: 1; flex-shrink: 0; }
.mt-products.is-list .mt-product-card__body { padding: 20px; }
.mt-products.is-list .mt-product-card__title { min-height: auto; font-size: var(--mt-fs-18); }
.mt-products.is-list .mt-product-card__footer { max-width: 320px; margin-top: 16px; }

/* ── CATEGORY PAGE (ref2) — hero, chips, toolbar, pagination ── */
.mt-category-page { background: var(--mt-bg); padding-bottom: 60px; }

.mt-cat-hero {
  position: relative;
  background: linear-gradient(180deg, var(--mt-bg-alt) 0%, var(--mt-bg) 100%);
  padding: 4px 0 32px;
  margin-bottom: 28px;
  overflow: hidden;
}
.mt-cat-hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(var(--mt-accent-rgb), .10), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.mt-cat-hero .breadcrumb,
.mt-cat-hero .mt-breadcrumb {
  padding: 14px 0 !important;
  margin: 0 0 6px !important;
  font-size: var(--mt-fs-13);
}
.mt-cat-hero__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-left: 20px;
  border-left: 4px solid var(--mt-accent);
}
.mt-cat-hero__title-wrap { flex: 1; min-width: 0; }
.mt-cat-hero__title {
  font-family: var(--mt-font-heading);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 2px 0 10px;
  color: var(--mt-text);
}
.mt-cat-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: var(--mt-fs-13);
  color: rgba(255, 255, 255, .92);
  background: var(--mt-khaki-bg-dark);
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 999px;
}
.mt-cat-hero__meta::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mt-accent-soft);
}
.mt-cat-hero__thumb {
  flex-shrink: 0;
  width: 160px; height: 120px;
  border-radius: var(--mt-radius-md);
  overflow: hidden;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  display: flex; align-items: center; justify-content: center;
}
.mt-cat-hero__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mt-cat-hero__desc {
  color: var(--mt-text-muted);
  font-size: var(--mt-fs-15);
  line-height: 1.65;
  max-width: 920px;
  margin-top: 24px;
  max-height: none !important;
  overflow: visible !important;
}

/* Плитки подкатегорий (как карточки товаров: крупное фото + подпись) */
.mt-cat-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.mt-cat-chip {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-lg);
  color: var(--mt-text);
  text-decoration: none;
  transition: border-color var(--mt-transition-fast), box-shadow var(--mt-transition), transform var(--mt-transition-fast);
  isolation: isolate;
}
.mt-cat-chip:hover {
  border-color: transparent;
  color: var(--mt-text);
  transform: translateY(-3px);
  box-shadow: var(--mt-shadow-md);
}
.mt-cat-chip__media {
  position: relative;
  flex: 1 1 auto;
  aspect-ratio: 4 / 3;
  background: var(--mt-bg-alt);
  overflow: hidden;
}
.mt-cat-chip__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--mt-transition);
}
.mt-cat-chip:hover .mt-cat-chip__img { transform: scale(1.03); }
.mt-cat-chip__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--mt-accent);
  font-size: 42px;
  opacity: .55;
}
.mt-cat-chip__label {
  flex: 0 0 auto;
  padding: 14px 16px 16px;
  font-family: var(--mt-font-heading);
  font-size: var(--mt-fs-15);
  font-weight: var(--mt-font-weight-semibold);
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Listing layout */
.mt-cat-body { padding-top: 0; }
.mt-listing__aside {
  min-width: 0;
  width: 100%;
}
.mt-listing__aside-inner {
  position: sticky;
  top: calc(var(--mt-header-height-compact) + 12px);
  max-height: calc(100vh - var(--mt-header-height-compact) - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
/* column_left внутри listing — без .row; отменяем bootstrap float/25% */
.mt-listing__aside #column-left,
.mt-listing__aside #column-right,
.mt-listing__aside .mt-column {
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: static;
}
/* Модули баннеров/каруселей в сайдбаре — без полноширинного .container */
.mt-listing__aside .mt-section-sm {
  padding: 0;
  margin-top: 0;
}
.mt-listing__aside .mt-section-sm .container {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.mt-listing__aside-inner::-webkit-scrollbar { width: 6px; }
.mt-listing__aside-inner::-webkit-scrollbar-thumb { background: var(--mt-border-strong); border-radius: 3px; }
.mt-listing__aside-close {
  display: none;
  width: 36px; height: 36px;
  background: var(--mt-bg-alt); border: 0; border-radius: 50%;
  cursor: pointer; color: var(--mt-text);
  position: absolute; top: 12px; right: 12px;
  z-index: 2;
}
.mt-listing__main { min-width: 0; }
.mt-aside-empty { padding: 16px; background: var(--mt-bg-alt); border-radius: var(--mt-radius-md); text-align: center; }

/* Robust grid: prevent sidebar dropping to bottom when content container is "large" */
/* Especially on main/parent category pages vs secondary */
.mt-listing {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
.mt-listing--full,
.mt-listing:not(:has(.mt-listing__aside)) {
  grid-template-columns: 1fr;
}
.mt-listing__main--full {
  grid-column: 1 / -1;
}

/* Category description moved to BOTTOM of page for better UX/SEO on all cat pages */
.mt-cat-bottom-desc {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  font-size: 15px;
  line-height: 1.75;
  color: var(--mt-text);
}
.mt-cat-bottom-desc h2,
.mt-cat-bottom-desc h3 {
  color: var(--mt-heading);
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}
.mt-cat-bottom-desc a {
  color: var(--mt-accent);
  text-decoration: underline;
}
.mt-cat-bottom-desc img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

/* Toolbar */
.mt-toolbar__field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mt-toolbar__label {
  margin: 0;
  font-size: var(--mt-fs-13);
  color: var(--mt-text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.mt-toolbar .mt-select--sm { width: auto; min-width: 160px; }
.mt-select--sm { height: 36px; padding: 0 36px 0 12px; font-size: var(--mt-fs-14); background-position: right 10px center; }

/* Pagination */
.mt-pagination-wrap {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding: 20px 0; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--mt-border);
}
.mt-pagination-meta { color: var(--mt-text-muted); font-size: var(--mt-fs-13); }
.mt-pagination .pagination { display: inline-flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mt-pagination .pagination > li > a,
.mt-pagination .pagination > li > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--mt-border); border-radius: var(--mt-radius-sm);
  background: var(--mt-surface); color: var(--mt-text);
  text-decoration: none; font-weight: 600; font-size: var(--mt-fs-14);
  transition: all .2s;
}
.mt-pagination .pagination > li > a:hover { border-color: var(--mt-khaki-bg); color: var(--mt-accent-soft); background: var(--mt-bg-soft); }
.mt-pagination .pagination > li.active > span,
.mt-pagination .pagination > li.active > a {
  background: var(--mt-khaki-bg); color: var(--mt-brand); border-color: var(--mt-khaki-bg);
}

/* Empty state */
.mt-empty-state {
  text-align: center; padding: 72px 24px;
  background: var(--mt-bg-alt);
  border-radius: var(--mt-radius-lg);
}
.mt-empty-state__icon { font-size: 56px; color: var(--mt-border-strong); margin-bottom: 18px; }
.mt-empty-state__text { font-size: var(--mt-fs-16); color: var(--mt-text-muted); margin-bottom: 22px; }

/* Filter drawer backdrop (mobile) */
.mt-filter-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  z-index: calc(var(--mt-z-header) + 3);
}
.mt-filter-backdrop.is-open { opacity: 1; pointer-events: all; }

@media (max-width: 991px) {
  .mt-cat-hero__head { flex-direction: column-reverse; }
  .mt-cat-hero__thumb { width: 100%; max-width: 200px; }

  .mt-listing__aside {
    position: fixed; top: 0; left: 0;
    width: min(340px, 90vw); height: 100vh;
    background: var(--mt-bg);
    z-index: calc(var(--mt-z-header) + 4);
    transform: translateX(-105%);
    transition: transform .3s ease;
    box-shadow: var(--mt-shadow-lg);
    padding: 64px 18px 24px;
    overflow-y: auto;
  }
  .mt-listing__aside.is-open { transform: translateX(0); }
  .mt-listing__aside-inner { position: static; max-height: none; overflow: visible; }
  .mt-listing__aside-close { display: inline-flex; }
  .mt-cat-hero { padding: 12px 0 24px; margin-bottom: 20px; }
  .mt-toolbar { padding: 10px 12px; }
  .mt-toolbar__field { gap: 6px; }
  .mt-toolbar__label { display: none; }
  .mt-pagination-wrap { justify-content: center; }
  .mt-pagination-meta { order: 2; width: 100%; text-align: center; }
}

/* Helpers */
.visible-xs-inline, .visible-sm-inline { display: none !important; }
@media (max-width: 991px) {
  .visible-xs-inline, .visible-sm-inline { display: inline-flex !important; }
  .hidden-xs { display: none !important; }
}

/* ===========================================================
   17. BREADCRUMBS
   =========================================================== */
.breadcrumb, .mt-breadcrumbs {
  background: transparent !important;
  padding: 16px 0 !important;
  margin: 0 !important;
  list-style: none;
  font-size: var(--mt-fs-13);
  color: var(--mt-text-muted);
  border: 0 !important;
  border-radius: 0;
}
.breadcrumb li,
.mt-breadcrumbs li { display: inline-block; }
.breadcrumb > li + li::before,
.mt-breadcrumbs > li + li::before { content: "/"; color: var(--mt-border-strong); padding: 0 8px; }
.breadcrumb a,
.mt-breadcrumbs a { color: var(--mt-text-muted); text-decoration: none; }
.breadcrumb a:hover,
.mt-breadcrumbs a:hover { color: var(--mt-accent); }
.breadcrumb > .active,
.mt-breadcrumbs .mt-breadcrumbs__item--active { color: var(--mt-text); }

/* ===========================================================
   18. PAGINATION / ALERTS
   =========================================================== */
.pagination, .mt-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
  border-radius: var(--mt-radius-sm);
}
.pagination > li > a, .pagination > li > span,
.mt-pagination a, .mt-pagination span {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-sm);
  color: var(--mt-text);
  text-decoration: none;
  font-weight: var(--mt-font-weight-medium);
  margin: 0;
  float: none;
}
.pagination > li > a:hover, .mt-pagination a:hover { background: var(--mt-accent); color: #fff; border-color: var(--mt-accent); }
.pagination > .active > span, .pagination > .active > a,
.mt-pagination .is-active span { background: var(--mt-brand); color: #fff; border-color: var(--mt-brand); }

.alert {
  padding: 14px 18px;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  font-size: var(--mt-fs-14);
  margin-bottom: 16px;
  background: var(--mt-surface-raised);
  color: var(--mt-heading);
}
.alert a { color: var(--mt-accent-soft); }
.alert .close {
  color: var(--mt-text-muted);
  opacity: 1;
  text-shadow: none;
  font-size: 22px;
  font-weight: 400;
}
.alert .close:hover { color: #fff; }
.alert-success {
  background: rgba(47, 165, 107, .16);
  color: #b8f0d0;
  border-color: rgba(47, 165, 107, .45);
}
.alert-danger {
  background: rgba(226, 59, 59, .14);
  color: #ffc9c9;
  border-color: rgba(226, 59, 59, .4);
}
.alert-info {
  background: rgba(47, 124, 211, .14);
  color: #b8d9ff;
  border-color: rgba(47, 124, 211, .4);
}
.alert-warning {
  background: rgba(243, 164, 58, .16);
  color: #ffe2b8;
  border-color: rgba(243, 164, 58, .45);
}

/* ===========================================================
   19. FOOTER (with map, ref1)
   =========================================================== */
.mt-footer {
  background: var(--mt-khaki-bg);
  color: rgba(255,255,255,.88);
  padding-top: 64px;
  margin-top: 80px;
}
.mt-footer h5 { color: #fff; font-family: var(--mt-font-heading); font-size: var(--mt-fs-16); font-weight: var(--mt-font-weight-semibold); margin: 0 0 18px; letter-spacing: .01em; }
.mt-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mt-footer a { color: rgba(255,255,255,.7); text-decoration: none; transition: color var(--mt-transition-fast); }
.mt-footer a:hover { color: #fff; }

.mt-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mt-footer__brand img, .mt-footer__brand svg { max-height: 56px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.mt-footer__brand p { color: rgba(255,255,255,.6); font-size: var(--mt-fs-14); line-height: 1.6; max-width: 360px; }
.mt-footer__contacts { margin-top: 20px; display: grid; gap: 8px; font-size: var(--mt-fs-14); }
.mt-footer__contacts a { color: #fff; font-weight: var(--mt-font-weight-semibold); font-size: var(--mt-fs-20); font-family: var(--mt-font-heading); }

.mt-footer__socials { display: flex; gap: 8px; margin-top: 20px; }
.mt-footer__social {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07);
  color: #fff;
  border-radius: 50%;
  transition: background var(--mt-transition-fast);
}
.mt-footer__social:hover { background: var(--mt-accent); color: #fff; }
.mt-footer__social--max span {
  font-family: var(--mt-font-heading);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
}
.mt-footer__social--max:hover { background: #7b61ff; }

.mt-footer__map {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}
.mt-footer__map-info { display: grid; gap: 14px; }
.mt-footer__map-info h4 { color: #fff; font-family: var(--mt-font-heading); font-size: var(--mt-fs-24); margin: 0; }
.mt-footer__map-info p  { color: rgba(255,255,255,.7); font-size: var(--mt-fs-14); margin: 0; }
.mt-footer__map-info strong { color: #fff; font-weight: var(--mt-font-weight-semibold); }
.mt-map-embed {
  width: 100%;
  height: 340px;
  border-radius: var(--mt-radius-md);
  overflow: hidden;
  border: 0;
}

.mt-footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
  font-size: var(--mt-fs-13);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.mt-footer__payments { display: inline-flex; gap: 8px; align-items: center; }
.mt-footer__payments span {
  height: 24px; padding: 0 8px;
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  letter-spacing: .05em;
}

/* ===========================================================
   20. CHECKOUT (one page)
   =========================================================== */
.mt-checkout { display: grid; grid-template-columns: 1fr 420px; gap: 32px; margin-top: 24px; }
.mt-checkout__steps { display: grid; gap: 16px; }
.mt-step {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  padding: 24px;
  transition: border-color var(--mt-transition-fast);
}
.mt-step.is-active { border-color: var(--mt-accent); box-shadow: 0 0 0 3px rgba(var(--mt-accent-rgb),.08); }
.mt-step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mt-step__num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mt-bg-alt);
  color: var(--mt-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: var(--mt-fs-15);
  transition: background var(--mt-transition-fast), color var(--mt-transition-fast);
}
.mt-step.is-active .mt-step__num,
.mt-step.is-done .mt-step__num { background: var(--mt-accent); color: #fff; }
.mt-step.is-done .mt-step__num::after { content: "✓"; }
.mt-step.is-done .mt-step__num > span { display: none; }
.mt-step__title { font-family: var(--mt-font-heading); font-size: var(--mt-fs-18); font-weight: 700; margin: 0; }

.mt-shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mt-shipping-options__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.mt-shipping-options__label:hover {
  border-color: var(--mt-khaki-bg);
  background: var(--mt-surface-raised);
}
.mt-shipping-options__label input[type="radio"] {
  margin: 3px 0 0;
  flex-shrink: 0;
}
.mt-shipping-options__text {
  flex: 1;
  line-height: 1.4;
  color: var(--mt-text);
}

.mt-summary {
  position: sticky;
  top: calc(var(--mt-header-height-compact) + 16px);
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  padding: 24px;
  align-self: start;
  color: var(--mt-text);
}
.mt-summary__title {
  font-family: var(--mt-font-heading);
  font-size: var(--mt-fs-18);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--mt-heading);
}
.mt-summary__row { display: flex; justify-content: space-between; font-size: var(--mt-fs-14); color: var(--mt-text-muted); padding: 6px 0; }
.mt-summary__row.is-grand { font-weight: 700; color: var(--mt-heading); font-size: var(--mt-fs-18); margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--mt-border); }

.mt-delivery-options, .mt-payment-options { display: grid; gap: 10px; }
.mt-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius);
  cursor: pointer;
  color: var(--mt-text);
  transition: border-color var(--mt-transition-fast), background var(--mt-transition-fast);
}
.mt-option:hover { border-color: var(--mt-accent-soft); background: var(--mt-surface-raised); }
.mt-option input[type="radio"] { margin: 0; accent-color: var(--mt-accent); }
.mt-option.is-selected { border-color: var(--mt-accent); background: rgba(var(--mt-accent-rgb), .12); }
.mt-option__title { font-weight: var(--mt-font-weight-semibold); color: var(--mt-heading); }
.mt-option__desc  { font-size: var(--mt-fs-13); color: var(--mt-text-muted); }
.mt-option__price { margin-left: auto; font-weight: 700; color: var(--mt-accent-soft); }

/* ===========================================================
   21. ACCOUNT / SIDEBAR NAV
   =========================================================== */
.mt-account-nav { background: #fff; border: 1px solid var(--mt-border); border-radius: var(--mt-radius-md); padding: 10px; list-style: none; margin: 0; }
.mt-account-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  color: var(--mt-text);
  border-radius: var(--mt-radius-sm);
  font-weight: var(--mt-font-weight-medium);
  font-size: var(--mt-fs-14);
}
.mt-account-nav a:hover, .mt-account-nav li.is-active a { background: var(--mt-bg-alt); color: var(--mt-accent); }

/* ===========================================================
   22. MODAL (popup)
   =========================================================== */
.mt-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--mt-z-modal);
  padding: 20px;
  animation: mt-fade-in .2s ease;
}
.mt-modal.is-open { display: flex; }
.mt-modal__dialog {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border-strong);
  border-radius: var(--mt-radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .5);
  animation: mt-pop-in .25s ease;
  position: relative;
  color: var(--mt-text);
}
.mt-modal__dialog--lg { max-width: 780px; }
.mt-modal__body { padding: 36px 32px 32px; }
.mt-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mt-bg-alt);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--mt-text);
  font-size: 18px;
  transition: background var(--mt-transition-fast), color var(--mt-transition-fast);
}
.mt-modal__close:hover { background: var(--mt-danger); color: #fff; }
.mt-modal__title { font-family: var(--mt-font-heading); font-size: var(--mt-fs-24); margin: 0 0 6px; color: var(--mt-heading); }
.mt-modal__subtitle { color: var(--mt-text-muted); margin-bottom: 24px; }
.mt-modal__body .mt-label,
.mt-modal__body label { color: var(--mt-text-muted); }

/* Модал «Товар в корзине» */
.mt-cart-added__product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--mt-bg-alt);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
}
.mt-cart-added__product[hidden],
.mt-cart-added__related[hidden] { display: none !important; }
.mt-cart-added__thumb {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: var(--mt-surface);
  border-radius: var(--mt-radius-sm);
}
.mt-cart-added__name {
  font-size: var(--mt-fs-16);
  font-weight: var(--mt-font-weight-semibold);
  color: var(--mt-text);
  margin: 0 0 8px;
  line-height: 1.35;
}
.mt-cart-added__name a { color: inherit; }
.mt-cart-added__name a:hover { color: var(--mt-accent); }
.mt-cart-added__price {
  font-size: var(--mt-fs-18);
  font-weight: 700;
  color: var(--mt-accent-soft);
  margin-bottom: 12px;
}
.mt-cart-added__price del {
  font-size: var(--mt-fs-14);
  color: var(--mt-text-muted);
  font-weight: 400;
  margin-right: 8px;
}
.mt-cart-added__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mt-border-strong);
  border-radius: var(--mt-radius-sm);
  overflow: hidden;
  background: var(--mt-surface);
}
.mt-cart-added__qty button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--mt-text);
  font-size: 18px;
  cursor: pointer;
}
.mt-cart-added__qty button:hover { background: var(--mt-bg-soft); color: var(--mt-accent); }
.mt-cart-added__qty input {
  width: 56px;
  min-width: 56px;
  height: 40px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-left: 1px solid var(--mt-border);
  border-right: 1px solid var(--mt-border);
  text-align: center;
  font-size: var(--mt-fs-16);
  font-weight: 700;
  line-height: 40px;
  font-family: var(--mt-font-body);
  background: var(--mt-bg-alt);
  color: var(--mt-heading);
  -moz-appearance: textfield;
  appearance: textfield;
  box-sizing: border-box;
}
.mt-cart-added__qty input::-webkit-outer-spin-button,
.mt-cart-added__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mt-cart-added__related-title {
  font-size: var(--mt-fs-16);
  font-weight: var(--mt-font-weight-semibold);
  margin: 0 0 12px;
  color: var(--mt-heading);
}
.mt-cart-added__related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.mt-cart-added__rel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--mt-bg-alt);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-sm);
  text-decoration: none;
  color: var(--mt-text);
  transition: border-color .2s, box-shadow .2s;
}
.mt-cart-added__rel:hover {
  border-color: var(--mt-accent);
  box-shadow: var(--mt-shadow-sm);
  color: var(--mt-text);
}
.mt-cart-added__rel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--mt-surface);
  border-radius: var(--mt-radius-xs);
}
.mt-cart-added__rel-name {
  font-size: var(--mt-fs-12);
  line-height: 1.35;
  font-weight: 500;
  flex: 1;
}
.mt-cart-added__rel-price {
  font-size: var(--mt-fs-13);
  font-weight: 700;
  color: var(--mt-accent-soft);
}
.mt-cart-added__actions {
  display: grid;
  gap: 10px;
}
.mt-cart-added__call { display: none; }
@media (max-width: 991px) {
  .mt-cart-added__call { display: inline-flex; }
}
@media (max-width: 640px) {
  .mt-cart-added__related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-cart-added__product { grid-template-columns: 72px minmax(0, 1fr); }
  .mt-cart-added__thumb { width: 72px; height: 72px; }
}

/* ===========================================================
   23. TOASTS & INLINE NOTIFICATIONS
   =========================================================== */
.mt-toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--mt-z-toast);
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.mt-toast-wrap .mt-toast { pointer-events: auto; }
.mt-toast {
  background: var(--mt-surface-raised);
  border: 1px solid var(--mt-border-strong);
  border-left: 4px solid var(--mt-accent);
  border-radius: var(--mt-radius-md);
  padding: 14px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .42);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: mt-slide-in-right .3s ease;
  color: var(--mt-heading);
}
.mt-toast.is-success {
  border-left-color: var(--mt-success);
  background: linear-gradient(135deg, rgba(47, 165, 107, .22) 0%, var(--mt-surface-raised) 55%);
}
.mt-toast.is-error {
  border-left-color: var(--mt-danger);
  background: linear-gradient(135deg, rgba(226, 59, 59, .2) 0%, var(--mt-surface-raised) 55%);
}
.mt-toast.is-info {
  border-left-color: var(--mt-info);
  background: linear-gradient(135deg, rgba(47, 124, 211, .18) 0%, var(--mt-surface-raised) 55%);
}
.mt-toast__body {
  font-size: var(--mt-fs-14);
  font-weight: var(--mt-font-weight-medium);
  line-height: 1.45;
  color: var(--mt-heading);
  flex: 1;
}
.mt-toast__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--mt-accent-soft);
  padding: 0 2px;
  font-size: 20px;
  line-height: 1;
  transition: color var(--mt-transition-fast);
}
.mt-toast__close:hover { color: #fff; }

/* ===========================================================
   24. SCROLL-TO-TOP
   =========================================================== */
.mt-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 48px; height: 48px;
  background: var(--mt-brand);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--mt-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--mt-transition), transform var(--mt-transition), background var(--mt-transition-fast), visibility 0s .25s;
  z-index: 80;
  font-size: 16px;
}
.mt-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.mt-to-top:hover { background: var(--mt-accent); }

/* ===========================================================
   25. ANIMATIONS
   =========================================================== */
@keyframes mt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mt-pop-in  { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes mt-slide-in-right { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mt-slide-in-up    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mt-slide-in-left  { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mt-pulse          { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes mt-float-soft     { 0%,100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }

[data-mt-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
[data-mt-animate].is-inview {
  opacity: 1;
  transform: translate(0, 0);
}
[data-mt-animate="left"]  { transform: translateX(-28px); }
[data-mt-animate="right"] { transform: translateX(28px); }
[data-mt-animate="scale"] { transform: scale(.94); }

/* ===========================================================
   26. OVERRIDES FOR DEFAULT OPENCART CLASSES
   =========================================================== */
#checkout-cart table { border-radius: var(--mt-radius-md); overflow: hidden; }

/* Cart page */
.mt-cart-page { padding-bottom: 48px; }
.mt-cart-empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow-sm);
}
.mt-cart-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--mt-bg-alt);
  color: var(--mt-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.mt-cart-empty__text { font-size: var(--mt-fs-16); color: var(--mt-text-muted); margin: 0 0 20px; }
.mt-cart-page__weight { color: var(--mt-text-muted); font-weight: 400; font-size: 16px; }
.mt-cart-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  background: var(--mt-surface);
  box-shadow: var(--mt-shadow-sm);
}
.mt-cart-table { margin: 0; min-width: 760px; }
.mt-cart-table__col-image { width: 96px; }
.mt-cart-table__col-model { width: 120px; color: var(--mt-text-muted); font-size: var(--mt-fs-13); }
.mt-cart-table__col-qty { width: 190px; }
.mt-cart-table__thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: var(--mt-radius-sm);
  background: var(--mt-bg-alt);
  overflow: hidden;
}
.mt-cart-table__thumb img { width: 100%; height: 100%; object-fit: contain; }
.mt-cart-table__name a { font-weight: 600; color: var(--mt-text); text-decoration: none; }
.mt-cart-table__name a:hover { color: var(--mt-accent); }
.mt-cart-table__meta {
  font-size: var(--mt-fs-13);
  color: var(--mt-text-muted);
  margin-top: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mt-cart-foot {
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  margin-top: 0;
  background: var(--mt-bg-alt);
  border: 1px solid var(--mt-border);
  border-top: 0;
  border-radius: 0 0 var(--mt-radius-md) var(--mt-radius-md);
}
.mt-cart-table__nostock { color: var(--mt-danger); margin-left: 4px; }
.mt-cart-table__price,
.mt-cart-table__total { white-space: nowrap; }
.mt-cart-table__total { font-weight: 700; color: var(--mt-text); }
.mt-cart-qty { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.mt-cart-qty__input { width: 72px; height: 40px; text-align: center; padding: 0 8px; }
.mt-cart-qty__remove { color: var(--mt-danger); }
.mt-cart-qty__remove:hover { border-color: var(--mt-danger); background: rgba(220, 38, 38, .08); }
.mt-cart-bottom {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}
.mt-cart-bottom__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-cart-summary { position: static; }
.mt-cart-summary__checkout { margin-top: 16px; }
.mt-cart-modules { margin-top: 32px; }
.mt-cart-modules__title { margin: 0 0 8px; font-family: var(--mt-font-heading); }
.mt-cart-accordion { display: grid; gap: 12px; }
.mt-cart-accordion .mt-cart-module,
.mt-cart-accordion .panel.panel-default {
  margin: 0;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  box-shadow: none;
  overflow: hidden;
}
.mt-cart-accordion .panel-heading {
  background: var(--mt-bg-alt);
  border: 0;
  border-bottom: 1px solid var(--mt-border);
  padding: 16px 22px;
}
.mt-cart-accordion .panel-heading .panel-title { margin: 0; font-size: 17px; font-weight: 700; font-family: var(--mt-font-heading); }
.mt-cart-accordion .panel-heading a {
  color: var(--mt-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color .2s;
}
.mt-cart-accordion .panel-heading a:hover { color: var(--mt-accent); }
.mt-cart-accordion .panel-body {
  padding: 22px;
  background: var(--mt-surface);
  border: 0;
  color: var(--mt-text);
}
.mt-cart-accordion .panel-body .form-control,
.mt-cart-accordion .panel-body .mt-input {
  background: var(--mt-input-bg);
  color: var(--mt-input-text);
  border-color: var(--mt-border-strong);
}
.mt-cart-accordion .input-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.mt-cart-accordion .input-group .form-control { flex: 1 1 200px; min-width: 0; }
.mt-cart-accordion .input-group-btn,
.mt-cart-accordion .input-group .mt-btn { flex: 0 0 auto; }
.mt-input-group { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.mt-input-group .mt-input,
.mt-input-group .form-control { flex: 1 1 220px; min-width: 0; height: 44px; }
.mt-input-group .mt-btn { flex: 0 0 auto; min-height: 44px; white-space: nowrap; }
.mt-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.mt-form--stack .mt-field { margin-bottom: 14px; }
.mt-form--stack .mt-field:last-child { margin-bottom: 0; }
@media (max-width: 991px) {
  .mt-cart-bottom { grid-template-columns: 1fr; }
  .mt-cart-table__col-model { display: none; }
}
@media (max-width: 767px) {
  .mt-cart-table thead { display: none; }
  .mt-cart-table,
  .mt-cart-table tbody,
  .mt-cart-table tr,
  .mt-cart-table td { display: block; width: 100%; }
  .mt-cart-table__row {
    padding: 16px;
    border-bottom: 1px solid var(--mt-border);
  }
  .mt-cart-table__row td { border: 0; padding: 6px 0; }
  .mt-cart-table__col-image { padding-bottom: 10px; }
  .mt-cart-table__total { font-size: var(--mt-fs-18); padding-top: 8px; }
}
.table { width: 100%; background: #fff; border-collapse: separate; border-spacing: 0; }
.table > thead > tr > th { background: var(--mt-bg-alt); color: var(--mt-text); font-weight: var(--mt-font-weight-semibold); border-bottom: 1px solid var(--mt-border); padding: 14px; text-align: left; font-size: var(--mt-fs-13); text-transform: uppercase; letter-spacing: .03em; }
.table > tbody > tr > td { padding: 14px; border-bottom: 1px solid var(--mt-border); vertical-align: middle; }
.table > tbody > tr:last-child > td { border-bottom: 0; }

.panel {
  background: #fff;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  box-shadow: none;
  margin-bottom: 20px;
}
.panel-heading { background: transparent; border-bottom: 1px solid var(--mt-border); padding: 14px 18px; font-family: var(--mt-font-heading); font-weight: var(--mt-font-weight-semibold); }
.panel-body    { padding: 18px; }
.well { background: var(--mt-bg-alt); border: 1px solid var(--mt-border); border-radius: var(--mt-radius-md); padding: 20px; box-shadow: none; }

/* list-group */
.list-group { border: 0; padding: 0; margin: 0; }
.list-group-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--mt-border);
  background: #fff;
  border-radius: var(--mt-radius-sm) !important;
  margin-bottom: 6px;
  color: var(--mt-text);
  text-align: left;
  white-space: normal;
  word-break: break-word;
  text-decoration: none;
  line-height: 1.35;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.list-group-item:hover { border-color: var(--mt-accent); color: var(--mt-accent); text-decoration: none; }
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
  background: var(--mt-accent);
  border-color: var(--mt-accent);
  color: #fff;
}

/* Sidebar категорий на странице категории — новый унифицированный блок */
.mt-aside-block {
  display: block;
  width: 100%;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.mt-aside-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--mt-khaki-bg-dark);
  color: #fff;
  border-bottom: 3px solid var(--mt-accent);
  font-family: var(--mt-font-heading);
  font-weight: 700;
  font-size: var(--mt-fs-16);
  letter-spacing: .02em;
  line-height: 1.2;
}
.mt-aside-block__ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  flex-shrink: 0;
}
.mt-aside-block__title { flex: 1; min-width: 0; }

.mt-aside-cats {
  display: flex !important;
  flex-direction: column;
  list-style: none;
  padding: 8px;
  margin: 0;
  gap: 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.mt-aside-cats__item {
  display: block;
  width: 100%;
  position: relative;
}
.mt-aside-cats__link,
.mt-aside-cats a.list-group-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: var(--mt-radius-sm) !important;
  background: transparent;
  color: var(--mt-text);
  font-size: var(--mt-fs-14);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-decoration: none !important;
  white-space: normal;
  word-break: break-word;
  transition: background .2s, color .2s, padding .2s;
}
.mt-aside-cats__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.mt-aside-cats__arrow {
  font-size: 14px;
  color: var(--mt-text-muted);
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.mt-aside-cats__link:hover,
.mt-aside-cats a.list-group-item:hover {
  background: var(--mt-bg-alt);
  color: var(--mt-accent-soft);
}
.mt-aside-cats__link:hover .mt-aside-cats__arrow {
  color: var(--mt-accent-soft);
  transform: translateX(3px);
}
.mt-aside-cats__item.is-active > .mt-aside-cats__link,
.mt-aside-cats__link.is-active,
.mt-aside-cats__link.active,
.mt-aside-cats a.list-group-item.active,
.mt-aside-cats a.list-group-item.active:hover {
  background: var(--mt-khaki-bg);
  color: var(--mt-brand);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.mt-aside-cats__item.is-active > .mt-aside-cats__link .mt-aside-cats__arrow { color: rgba(26, 26, 26, .75); }

.mt-aside-cats__sub {
  list-style: none;
  padding: 4px 0 8px 16px;
  margin: 0;
  display: grid;
  gap: 2px;
  border-left: 2px solid rgba(var(--mt-accent-rgb), .3);
  margin-left: 14px;
}
.mt-aside-cats__sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--mt-radius-sm);
  color: var(--mt-text-muted);
  font-size: var(--mt-fs-13);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.mt-aside-cats__sub-ico { font-size: 9px; opacity: .55; color: var(--mt-accent); }
.mt-aside-cats__sub-link:hover { background: var(--mt-bg-alt); color: var(--mt-accent-soft); }
.mt-aside-cats__sub-link.is-active {
  color: var(--mt-accent-soft);
  font-weight: 600;
  background: rgba(var(--mt-accent-rgb), .12);
}

/* Fallback для обычных .panel / .list-group */
.mt-listing__aside .panel {
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  background: var(--mt-surface);
}
.mt-listing__aside .panel-heading {
  background: var(--mt-khaki-bg-dark);
  color: #fff;
  padding: 16px 18px;
  font-family: var(--mt-font-heading);
  font-weight: 700;
  font-size: var(--mt-fs-16);
  letter-spacing: .02em;
  border-bottom: 3px solid var(--mt-accent);
}
.mt-listing__aside .panel-body {
  padding: 14px;
  background: var(--mt-surface);
  color: var(--mt-text);
}
.mt-listing__aside .list-group {
  display: flex !important;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
  background: transparent;
}

/* ===========================================================
   27. RESPONSIVE
   =========================================================== */
@media (max-width: 1200px) {
  .mt-cat-wall { grid-template-columns: repeat(4, 1fr); }
  .mt-cat-chips { grid-template-columns: repeat(3, 1fr); }
  .mt-products { grid-template-columns: repeat(3, 1fr); }
  .mt-header__row { grid-template-columns: minmax(130px, 160px) minmax(240px, 1fr) auto minmax(250px, 290px); gap: 14px; }
  .mt-header__icon-btn { min-width: 52px; padding: 4px 8px; }
  .mt-header__icon-btn .mt-header__icon-label { font-size: 10px; }
  .mt-header__phone { font-size: var(--mt-fs-16); }
  .mt-header__col--contact { min-width: 280px; }
  :root { --mt-container: 100%; }
}

@media (max-width: 1099px) {
  .mt-header__row { grid-template-columns: minmax(130px, 170px) minmax(280px, 1fr) auto; }
  .mt-header__col--contact { display: none; }
}

@media (max-width: 991px) {
  :root {
    --mt-fs-48: 36px;
    --mt-fs-40: 28px;
    --mt-fs-32: 24px;
    --mt-header-height: 70px;
    --mt-header-height-compact: 60px;
  }
  .mt-search { max-width: none; }
  .mt-menu { display: none; }

  .mt-benefits { grid-template-columns: repeat(2, 1fr); }
  .mt-cat-wall { grid-template-columns: repeat(3, 1fr); }
  .mt-cat-chips { grid-template-columns: repeat(3, 1fr); }
  .mt-products { grid-template-columns: repeat(3, 1fr); }

  .mt-hero { padding: 40px 28px; min-height: 340px; }
  .mt-hero__title { font-size: 36px; }
  .mt-hero__visual { display: none; }

  .mt-footer__top { grid-template-columns: 1fr 1fr; }
  .mt-footer__map { grid-template-columns: 1fr; }

  .mt-pdp { grid-template-columns: 1fr; }
  .mt-pdp__gallery { grid-template-columns: 1fr; }
  .mt-pdp__thumbs { flex-direction: row; max-height: none; overflow-x: auto; }

  .mt-listing { grid-template-columns: 1fr; }
  .mt-filter { position: static; max-height: none; display: none; }
  .mt-filter.is-open { display: block; }

  .mt-checkout { grid-template-columns: 1fr; }
  .mt-summary { position: static; }
}

@media (max-width: 767px) {
  .mt-section { padding: 40px 0; }
  .mt-section-lg { padding: 56px 0; }
  .mt-cat-wall { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .mt-cat-wall__tile.is-wide { grid-column: span 2; }
  .mt-cat-wall__tile.is-big { grid-column: span 2; grid-row: auto; }
  .mt-cat-wall__tile.is-tall { grid-row: auto; }
  .mt-cat-chips { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mt-cat-chip__label { padding: 12px; font-size: var(--mt-fs-14); }
  .mt-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mt-products.mt-products--3,
  .mt-products.mt-products--5 { grid-template-columns: repeat(2, 1fr); }
  .mt-product-card__body { padding: 12px; }
  .mt-product-card__title { font-size: var(--mt-fs-14); min-height: 2.6em; }
  .mt-product-card__price { font-size: var(--mt-fs-16); }
  .mt-product-card__one-click { display: none; }
  .mt-product-card__footer { margin-top: 8px; }
  .mt-products.is-list .mt-product-card { flex-direction: column; }
  .mt-products.is-list .mt-product-card__image-wrap { width: 100%; aspect-ratio: 4/3; }

  .mt-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .mt-footer__brand { order: -1; }
  .mt-footer { padding-top: 40px; margin-top: 40px; }

  .mt-benefits { grid-template-columns: 1fr; }

  .mt-pdp__title { font-size: var(--mt-fs-28); }
  .mt-pdp__price { font-size: var(--mt-fs-32); }

  .mt-toolbar { padding: 10px; }
  .mt-toolbar select { flex: 1; }

  .mt-hero { padding: 28px 20px; min-height: 280px; border-radius: var(--mt-radius-md); }
  .mt-header__mob-bottom-row { padding: 0 12px; gap: 6px; }
  .mt-header__mob-search .mt-search__form { border: 1px solid var(--mt-border); }
  .mt-cat-wall { gap: 10px; grid-auto-rows: 150px; }
  .mt-cat-wall__title { font-size: var(--mt-fs-15); line-height: 1.3; }
  .mt-cat-wall__tile.is-big .mt-cat-wall__title { font-size: var(--mt-fs-20); }
  .mt-cat-chip__img { padding: 12px; }
}

@media (max-width: 480px) {
  .mt-cat-wall { grid-template-columns: 1fr; }
  .mt-cat-wall__tile.is-wide,
  .mt-cat-wall__tile.is-big { grid-column: auto; }
  .mt-cat-chips { grid-template-columns: 1fr; }
  .mt-products { grid-template-columns: 1fr; }
  .mt-modal__body { padding: 24px 20px; }
  .mt-section-header__link { font-size: var(--mt-fs-12); }
}

@media (prefers-reduced-motion: reduce) {
  .mt-hero__orb,
  .mt-hero__glass-card--mini {
    animation: none;
  }
  .mt-hero--home::before,
  .mt-hero--home::after {
    transform: none;
  }
  .mt-hero__visual { transform: translateY(-50%); }
}

/* ===========================================================
   28. OFF-CANVAS MOBILE MENU
   =========================================================== */
.mt-offcanvas {
  position: fixed;
  top: 0; left: 0;
  width: min(340px, 84vw);
  height: 100vh;
  background: #fff;
  box-shadow: var(--mt-shadow-lg);
  z-index: calc(var(--mt-z-overlay) + 2);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mt-offcanvas.is-open { transform: translateX(0); }
.mt-offcanvas__head {
  padding: 18px 20px;
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--mt-brand-red);
  color: #fff;
}
.mt-offcanvas__head strong { color: #fff; }
.mt-offcanvas__close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.12);
  border: 0; border-radius: 50%;
  color: #fff; cursor: pointer;
}
.mt-offcanvas__close:hover { background: var(--mt-brand-red-hover); }
.mt-offcanvas__body { overflow: auto; padding: 16px 8px; flex: 1; }
.mt-offcanvas__list { list-style: none; padding: 0; margin: 0; }
.mt-offcanvas__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-size: var(--mt-fs-15);
  font-weight: var(--mt-font-weight-medium);
  color: var(--mt-text);
  border-radius: var(--mt-radius-sm);
}
.mt-offcanvas__list a:hover { background: var(--mt-bg-alt); color: var(--mt-accent-soft); }
.mt-offcanvas__section-title {
  margin: 18px 0 8px;
  padding: 0 20px;
  font-family: var(--mt-font-heading);
  font-size: var(--mt-fs-12);
  font-weight: var(--mt-font-weight-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mt-text-muted);
}
.mt-offcanvas__section-title:first-child { margin-top: 8px; }
.mt-offcanvas__foot { padding: 16px 20px; border-top: 1px solid var(--mt-border); display: grid; gap: 10px; }

.mt-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: calc(var(--mt-z-overlay) + 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s .25s;
}
.mt-overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ===========================================================
   28b. DARK THEME — поверхности и акценты
   =========================================================== */
.mt-header,
.mt-menu,
.mt-search__form,
.mt-header__search .mt-search__form,
.mt-catalog-drawer,
.mt-offcanvas,
.mt-cart-dd,
.mt-toast,
.mt-modal__dialog,
.mt-benefit,
.mt-product-card,
.mt-cat-wall__tile:not(.is-accent):not(.is-dark),
.mt-toolbar,
.mt-filter,
.mt-aside-block,
.mt-cat-chip,
.mt-cat-hero__thumb,
#dream-filter, .dream-filter, [id^="dream_filter"] {
  background: var(--mt-surface);
  border-color: var(--mt-border);
  color: var(--mt-text);
}
.mt-input,
.mt-textarea,
.mt-select,
.mt-search__form,
.mt-search__dropdown,
.mt-header__mob-bottom {
  background-color: var(--mt-surface);
  border-color: var(--mt-border);
  color: var(--mt-text);
}

.mt-header__icon-btn:hover,
.mt-offcanvas__list a:hover { background: var(--mt-bg-alt); }

.mt-btn--outline,
.mt-btn--outline.mt-btn--lg {
  background: transparent;
  border-color: var(--mt-border-strong);
  color: var(--mt-text);
}
.mt-btn--outline:hover { border-color: var(--mt-accent); color: var(--mt-accent); background: rgba(var(--mt-accent-rgb), .08); }

.mt-btn--accent,
.mt-btn--primary,
.btn.btn-primary { color: var(--mt-brand); }
.mt-btn--accent:hover { color: var(--mt-brand); }

.mt-header__main {
  background: var(--mt-khaki-bg) !important;
}
.mt-header__main .mt-header__icon-btn,
.mt-header__main .mt-header__icon-btn .fa {
  color: #fff;
}
.mt-header__main .mt-header__icon-btn .mt-header__icon-label {
  color: #fff;
}
.mt-header__main .mt-header__icon-btn:hover,
.mt-header__main .mt-header__icon-btn:hover .fa,
.mt-header__main .mt-header__icon-btn:hover .mt-header__icon-label {
  color: #fff;
}
.mt-header__main .mt-logo__name,
.mt-header__main .mt-header__phone,
.mt-header__main .mt-header__phone-num { color: var(--mt-brand); }
.mt-header__main .mt-header__callback {
  color: var(--mt-brand-red);
  border-color: var(--mt-brand-red);
}
.mt-footer {
  background: var(--mt-khaki-bg) !important;
}

.mt-section-header__title { color: var(--mt-heading); }

/* Страница категории — sidebar, фильтры, legacy OpenCart-блоки */
.mt-category-page .panel,
.mt-category-page .list-group-item,
.mt-listing__aside .list-group-item {
  background: var(--mt-surface);
  border-color: var(--mt-border);
  color: var(--mt-text);
}
.mt-category-page .list-group-item:hover,
.mt-listing__aside .list-group-item:hover {
  border-color: var(--mt-khaki-bg);
  color: var(--mt-accent-soft);
  background: var(--mt-bg-soft);
}
.mt-category-page .list-group-item.active,
.mt-category-page .list-group-item.active:hover,
.mt-listing__aside .list-group-item.active,
.mt-listing__aside .list-group-item.active:hover {
  background: var(--mt-khaki-bg);
  border-color: var(--mt-khaki-bg);
  color: var(--mt-brand);
}
.mt-category-page .mt-product-card__action-btn {
  background: var(--mt-surface-raised);
  border-color: var(--mt-border);
  color: var(--mt-text);
}
.mt-category-page .mt-toolbar .mt-select,
.mt-category-page .mt-toolbar .mt-select option {
  background-color: var(--mt-bg-soft);
  color: var(--mt-text);
}
.mt-category-page .mt-toolbar__label { color: var(--mt-text-muted); }

/* Главная — лёгкая анимация фона */
.mt-home--animated {
  position: relative;
  isolation: isolate;
}
.mt-home--animated::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .88) 100%),
    url('../../../../../image/32345.jpg') repeat center top;
  background-size: auto, 60%;
}
.mt-home--animated > .container { position: relative; z-index: 1; }

/* Подвал — полоса вместо карты */
.mt-footer__band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 48px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.mt-footer__band-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--mt-radius-lg);
  transition: border-color var(--mt-transition-fast), background var(--mt-transition-fast);
}
.mt-footer__band-card:hover {
  background: rgba(var(--mt-accent-rgb), .08);
  border-color: rgba(var(--mt-accent-rgb), .25);
}
.mt-footer__band-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--mt-accent-rgb), .15);
  color: var(--mt-accent);
  border-radius: var(--mt-radius-md);
  font-size: 20px;
}
.mt-footer__band-card strong {
  display: block;
  color: #fff;
  font-family: var(--mt-font-heading);
  font-size: var(--mt-fs-16);
  margin-bottom: 6px;
}
.mt-footer__band-card p {
  margin: 0 0 10px;
  font-size: var(--mt-fs-13);
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.mt-footer__band-card a { color: var(--mt-accent-soft); }
.mt-footer__band-card a:hover { color: var(--mt-accent); }

/* Карта сайта */
.mt-sitemap-page { padding: 32px 0 64px; }
.mt-breadcrumb { margin-bottom: 20px; }
.mt-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--mt-fs-13);
  color: var(--mt-text-muted);
}
.mt-breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.mt-breadcrumb a { color: var(--mt-text-muted); }
.mt-breadcrumb a:hover { color: var(--mt-accent); }
.mt-breadcrumb span { color: var(--mt-text); }

.mt-sitemap-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 32px;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-lg);
}
.mt-sitemap-hero h1 { margin: 0 0 8px; font-size: var(--mt-fs-32); }
.mt-sitemap-hero p { margin: 0; color: var(--mt-text-muted); max-width: 520px; }
.mt-sitemap-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mt-sitemap-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--mt-bg-alt);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-pill, 999px);
  font-size: var(--mt-fs-14);
  font-weight: var(--mt-font-weight-medium);
  color: var(--mt-text);
  transition: background var(--mt-transition-fast), border-color var(--mt-transition-fast), color var(--mt-transition-fast);
}
.mt-sitemap-pill:hover {
  background: rgba(var(--mt-accent-rgb), .12);
  border-color: var(--mt-accent);
  color: var(--mt-accent);
}

.mt-sitemap-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.mt-sitemap-block {
  padding: 24px;
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-lg);
}
.mt-sitemap-block__title {
  margin: 0 0 20px;
  font-size: var(--mt-fs-20);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mt-heading);
}
.mt-sitemap-block__title .fa { color: var(--mt-accent); font-size: 18px; }

.mt-sitemap-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.mt-sitemap-cat {
  padding: 16px;
  background: var(--mt-bg-alt);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
}
.mt-sitemap-cat h3 {
  margin: 0 0 10px;
  font-size: var(--mt-fs-16);
}
.mt-sitemap-cat h3 a { color: var(--mt-heading); font-weight: var(--mt-font-weight-semibold); }
.mt-sitemap-cat h3 a:hover { color: var(--mt-accent); }
.mt-sitemap-cat__sub,
.mt-sitemap-cat__sub ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mt-sitemap-cat__sub > li { margin-bottom: 6px; }
.mt-sitemap-cat__sub a {
  font-size: var(--mt-fs-14);
  color: var(--mt-text-muted);
}
.mt-sitemap-cat__sub a:hover { color: var(--mt-accent); }
.mt-sitemap-cat__sub ul {
  margin: 6px 0 0 12px;
  padding-left: 12px;
  border-left: 1px solid var(--mt-border);
}
.mt-sitemap-cat__sub ul a { font-size: var(--mt-fs-13); }

.mt-sitemap-side { display: grid; gap: 20px; }
.mt-sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.mt-sitemap-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--mt-radius-sm);
  color: var(--mt-text);
  font-size: var(--mt-fs-14);
}
.mt-sitemap-links a:hover {
  background: rgba(var(--mt-accent-rgb), .1);
  color: var(--mt-accent);
}
.mt-sitemap-links .fa { width: 18px; text-align: center; color: var(--mt-accent); opacity: .85; }

@media (max-width: 991px) {
  .mt-footer__band { grid-template-columns: 1fr; }
  .mt-sitemap-grid { grid-template-columns: 1fr; }
  .mt-sitemap-hero { flex-direction: column; align-items: flex-start; }
}

/* ===========================================================
   29. PRINT
   =========================================================== */
@media print {
  .mt-header, .mt-footer, #top, .mt-to-top, .mt-menu, .mt-offcanvas, .mt-modal, .mt-toast-wrap { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ===========================================================
   30. REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-mt-animate] { opacity: 1 !important; transform: none !important; }
  .mt-home--animated::before { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   31. THIRD-PARTY MODULES INTEGRATION
   (Dream Filter, Megamenu Pro, Callback, etc.)
   =========================================================== */

/* —— Dream Filter —— */
#dream-filter, .dream-filter, [id^="dream_filter"] {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: var(--mt-shadow-sm);
  color: var(--mt-text);
}
#dream-filter .df-title, .dream-filter h3, .dream-filter h4 {
  font-family: var(--mt-font-heading);
  font-size: var(--mt-fs-16);
  font-weight: 700;
  color: var(--mt-text);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
#dream-filter .df-block, .dream-filter .df-block,
#dream-filter .filter-group, .dream-filter .filter-group {
  padding: 14px 0;
  border-top: 1px solid var(--mt-border-light, rgba(0,0,0,.06));
}
#dream-filter .df-block:first-child, .dream-filter .df-block:first-child { border-top: 0; padding-top: 0; }
#dream-filter label, .dream-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  color: var(--mt-text);
  font-size: var(--mt-fs-14);
  cursor: pointer;
  transition: color .2s;
}
#dream-filter label:hover, .dream-filter label:hover { color: var(--mt-accent); }
#dream-filter input[type="checkbox"], #dream-filter input[type="radio"],
.dream-filter input[type="checkbox"], .dream-filter input[type="radio"] {
  accent-color: var(--mt-accent);
}
#dream-filter input[type="text"], #dream-filter input[type="number"],
.dream-filter input[type="text"], .dream-filter input[type="number"] {
  height: 36px; padding: 0 10px;
  border: 1px solid var(--mt-border); border-radius: var(--mt-radius-sm);
  background: var(--mt-bg-soft);
  color: var(--mt-text);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
#dream-filter input:focus, .dream-filter input:focus {
  border-color: var(--mt-accent); box-shadow: 0 0 0 3px rgba(254,79,40,.12); outline: 0;
}
#dream-filter .df-button, .dream-filter .btn,
#dream-filter button[type="submit"], .dream-filter button[type="submit"] {
  background: var(--mt-accent);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: var(--mt-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
#dream-filter .df-button:hover, .dream-filter .btn:hover { background: var(--mt-accent-dark, #e04424); transform: translateY(-1px); }

/* —— Megamenu Pro —— */
#menuvh, .menuvh, .nsmenu-pro {
  background: #fff;
  border-top: 1px solid var(--mt-border);
}
#menuvh .nav > li > a,
.menuvh .nav > li > a {
  color: var(--mt-text);
  padding: 14px 16px;
  font-family: var(--mt-font-heading);
  font-weight: 600;
  font-size: var(--mt-fs-14);
  letter-spacing: .01em;
  text-transform: none;
  transition: color .2s, background .2s;
}
#menuvh .nav > li:hover > a,
#menuvh .nav > li.active > a,
.menuvh .nav > li:hover > a { color: var(--mt-accent); background: transparent; }
#menuvh .dropdown-menu, .menuvh .dropdown-menu {
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  box-shadow: var(--mt-shadow-lg);
  padding: 12px;
}
.menu-vertical-list, #menu-vertical-list {
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  overflow: hidden;
}

/* —— Callback (freeopencart.ru) — блок берёт наш стиль, но не перекрываем собственный модал —— */
.callback-module-wrap { z-index: 900; }
.callback-module-wrap .callback-btn {
  box-shadow: var(--mt-shadow-md);
  border-radius: 50%;
}

/* —— SEO Microdata Pro — невидимая микроразметка, стилей не требуется —— */

/* —— Compatibility: прячем JSON-LD дубликаты —— */
script[type="application/ld+json"] { display: none; }

/* Bootstrap и модули подключают свой body после materius.css — возвращаем тёмную тему */
body.mt-page {
  font-family: var(--mt-font-body) !important;
  font-size: var(--mt-fs-15) !important;
  line-height: 1.55 !important;
  color: var(--mt-text) !important;
  background-color: var(--mt-bg) !important;
}

#cart .mt-cart-dd,
#cart .mt-cart-dd__name,
#cart .mt-cart-dd__price,
#cart .mt-cart-dd__qty,
#cart .mt-cart-dd__total-row {
  color: var(--mt-text);
}

#cart .mt-cart-dd__name { color: var(--mt-text) !important; }
#cart .mt-cart-dd__qty,
#cart .mt-cart-dd__total-row:not(.is-grand) { color: var(--mt-text-muted) !important; }

/* Bootstrap-модалки и QC-предупреждения (перебивают дефолтный белый фон) */
body.mt-page .modal-content {
  background: var(--mt-surface);
  border-color: var(--mt-border-strong);
  color: var(--mt-text);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .45);
}
body.mt-page .modal-header {
  background: var(--mt-bg-alt);
  border-color: var(--mt-border);
  color: var(--mt-heading);
}
body.mt-page .modal-title { color: var(--mt-heading); }
body.mt-page .modal-body { color: var(--mt-text); }
body.mt-page .modal-footer {
  background: var(--mt-surface);
  border-color: var(--mt-border);
}
body.mt-page .modal-content .close {
  color: var(--mt-text-muted);
  opacity: 1;
  text-shadow: none;
}
body.mt-page .modal-content .close:hover { color: #fff; }
body.mt-page #warning-messages .alert,
body.mt-page #content > .alert {
  background: var(--mt-surface-raised);
  border-color: var(--mt-border-strong);
  color: var(--mt-heading);
}
body.mt-page #warning-messages .alert-danger,
body.mt-page #content > .alert-danger {
  background: rgba(226, 59, 59, .16);
  color: #ffc9c9;
  border-color: rgba(226, 59, 59, .4);
}
body.mt-page #warning-messages .alert-success,
body.mt-page #content > .alert-success {
  background: rgba(47, 165, 107, .16);
  color: #b8f0d0;
  border-color: rgba(47, 165, 107, .45);
}
body.mt-page #warning-messages .alert-warning,
body.mt-page #content > .alert-warning {
  background: rgba(243, 164, 58, .16);
  color: #ffe2b8;
  border-color: rgba(243, 164, 58, .45);
}

/* Тосты — максимальный приоритет (Bootstrap/QC подключаются позже) */
#mt-toasts .mt-toast,
body.mt-page #mt-toasts .mt-toast {
  background: var(--mt-surface-raised) !important;
  border: 1px solid var(--mt-border-strong) !important;
  border-left: 4px solid var(--mt-accent) !important;
  color: #fff !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45) !important;
}
#mt-toasts .mt-toast.is-success,
body.mt-page #mt-toasts .mt-toast.is-success {
  border-left-color: var(--mt-success) !important;
  background: linear-gradient(135deg, rgba(47, 165, 107, .28) 0%, var(--mt-surface-raised) 55%) !important;
}
#mt-toasts .mt-toast.is-error,
body.mt-page #mt-toasts .mt-toast.is-error {
  border-left-color: var(--mt-danger) !important;
  background: linear-gradient(135deg, rgba(226, 59, 59, .26) 0%, var(--mt-surface-raised) 55%) !important;
}
#mt-toasts .mt-toast__body,
body.mt-page #mt-toasts .mt-toast__body {
  color: #fff !important;
}
#mt-toasts .mt-toast__close,
body.mt-page #mt-toasts .mt-toast__close {
  color: var(--mt-accent-soft) !important;
}
#quickcheckoutconfirm #success-messages .alert,
#quickcheckoutconfirm #success-messages .alert-success {
  background: rgba(47, 165, 107, .18) !important;
  border: 1px solid rgba(47, 165, 107, .45) !important;
  color: #b8f0d0 !important;
}
#quickcheckoutconfirm #success-messages .alert .close {
  color: var(--mt-text-muted) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* ==================== Swiper (banner/carousel/slideshow) — приведено к тёмной теме ====================
   Модули banner/carousel/slideshow подключают вместе с библиотекой swiper её стоковый
   catalog/view/javascript/jquery/swiper/css/opencart.css — он рассчитан на светлый шаблон
   OpenCart по умолчанию (белая рамка 4px, белая заливка, тень, чёрные стрелки/точки) и на
   тёмном фоне сайта выглядит чужеродным белым коробом. Перекрываем под токены темы. */
.swiper-viewport {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0 0 var(--mt-s-8);
}
.swiper-button-prev,
.swiper-button-next {
  color: var(--mt-heading);
  text-shadow: none;
}
.swiper-button-prev:before,
.swiper-button-next:before {
  color: var(--mt-heading);
}
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.75);
}
.swiper-pagination-bullet-active {
  background: var(--mt-accent);
}

/* ==================== Промо-баннер на главной (акция) ====================
   Раньше был инлайн display:flex + flex-wrap: на узких экранах кнопка
   переносилась второй строкой, и из-за этого у блока на мобильных рисовались
   острые нижние углы вместо border-radius. Ниже — flex-direction:column на
   узких экранах вместо переноса строки. */
.mt-promo-banner {
  background: linear-gradient(90deg, #1a1a2e, #0f3460);
  color: #fff;
  padding: 24px;
  margin-bottom: 24px;
  border-radius: var(--mt-radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mt-promo-banner__label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #f0a500;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mt-promo-banner__title {
  font-size: 22px;
  font-weight: 800;
}
.mt-promo-banner__accent {
  color: #f0a500;
}
.mt-promo-banner__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  margin-top: 4px;
}
.mt-promo-banner__cta {
  background: #f0a500;
  color: #1a1a2e;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.mt-promo-banner__cta:hover {
  background: #d99000;
  color: #1a1a2e;
}
@media (max-width: 560px) {
  .mt-promo-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .mt-promo-banner__cta {
    text-align: center;
    white-space: normal;
  }
}
