:root {
  --hub-content-max: 1488px;
  --hub-bg: #ffffff;
  --hub-surface: #ffffff;
  --hub-card: #ffffff;
  --hub-line: #d7d7dc;
  --hub-line-strong: #b9bac2;
  --hub-text: #1e2026;
  --hub-muted: #626672;
  --hub-dark: #1f2229;
  --hub-accent: #404754;
  --mm-orange: #ff4521;
  --mm-orange-hover: #e63d1c;
  --mm-ink: #2f2f2f;
  --mm-search-border: #e3e4e8;
  --mm-search-icon-bg: #f0f1f3;
  --brand-red: #ff4521;
  --brand-red-dark: #e63d1c;
  --brand-red-light: #ff6a4d;
  --brand-red-gradient: linear-gradient(135deg, var(--brand-red-light) 0%, var(--brand-red) 52%, var(--brand-red-dark) 100%);
  --hub-radius-lg: 18px;
  --hub-radius-md: 14px;
  --hub-radius-sm: 10px;
  --hub-shadow: 0 8px 22px rgba(22, 24, 32, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hub-text);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 44%, rgba(255, 255, 255, 0.88) 100%),
    linear-gradient(180deg, #ffffff 0%, #fdfdfd 58%, #fbfbfb 100%);
  min-height: 100vh;
  overscroll-behavior-y: auto;
}

.sh-header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  min-height: 78px;
  padding: 10px 0 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--mm-search-border);
}
.sh-header-inner {
  width: min(var(--hub-content-max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.sh-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
  padding: 4px 0;
}
.sh-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.12));
}
.sh-logo-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  line-height: 1.1;
}
.sh-logo-name {
  font-family: 'Exo 2', 'Inter', sans-serif;
  font-size: 29px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}
.sh-logo-tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6b7280;
  white-space: nowrap;
  line-height: 1.2;
}
.sh-logo-gsm {
  color: var(--mm-orange);
  text-shadow: 0 1px 8px rgba(255, 69, 33, 0.18);
}
.sh-logo-hub {
  color: #2c3441;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.01em;
}

.sh-catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  border: none;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0, transparent 14px,
      rgba(255, 255, 255, 0.055) 14px,
      rgba(255, 255, 255, 0.055) 28px
    ),
    linear-gradient(155deg, #64748b 0%, #3d4a5c 45%, #1e293b 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.28);
  transition: filter 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.sh-catalog-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.36);
}
.sh-catalog-btn:active {
  transform: scale(0.97);
  filter: brightness(0.96);
}
a.sh-catalog-btn {
  -webkit-tap-highlight-color: transparent;
}
.sh-catalog-btn.sh-catalog-btn--active {
  /* Без красной обводки на текущей странице — только лёгкое выделение */
  box-shadow:
    0 2px 10px rgba(30, 41, 59, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  filter: brightness(1.06);
}
.sh-catalog-btn svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Обёртка вынесена из sh-search-wrap, чтобы dropdown не обрезался overflow:hidden */
.sh-search-outer {
  flex: 1;
  max-width: 480px;
  min-width: 0;
  position: relative;
}
.sh-search-wrap {
  width: 100%;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--mm-search-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.16s, border-color 0.16s;
}
.sh-search-wrap:focus-within {
  border-color: #c8cad1;
  box-shadow: 0 0 0 3px rgba(255, 69, 33, 0.12);
}
.sh-search-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  padding: 0 12px 0 16px;
  background: transparent;
  color: var(--hub-text);
  font-size: 15px;
  outline: none;
}
.sh-search-input::placeholder { color: #a8abb4; }
.sh-search-submit {
  flex: 0 0 auto;
  width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--mm-search-icon-bg);
  color: #7a7e88;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.sh-search-submit:hover {
  background: #e8eaee;
  color: var(--mm-ink);
}

.sh-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
}
.sh-nav-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 64px;
  padding: 4px 8px 2px;
  border: none;
  background: transparent;
  color: var(--mm-ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.16s, background 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.sh-nav-action:hover {
  color: var(--mm-orange);
  background: rgba(255, 69, 33, 0.06);
}
.sh-nav-action svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
  flex-shrink: 0;
}
.sh-cart-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--mm-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sh-fab-cart {
  display: none;
}

.sh-bottom-nav {
  display: none;
}
.sh-search-panel {
  display: none;
}

/* ════════════════════════════════════════════════════════════
   SEARCH DROPDOWN
   ════════════════════════════════════════════════════════════ */

.sh-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 500;
  background: #fff;
  border: 1px solid #eaecf2;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.7) inset,
    0 12px 48px rgba(15, 23, 42, 0.16),
    0 4px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: none;
  max-height: 440px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sh-search-dropdown.open { display: block; }

/* Открывается вверх (мобильная панель у дна экрана) */
.sh-search-dropdown--up {
  top: auto;
  bottom: calc(100% + 8px);
}

/* ── Список результатов ── */
.sh-sd-list {
  list-style: none; margin: 0; padding: 6px 0;
}

.sh-sd-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  text-decoration: none; color: inherit;
  transition: background 0.12s;
  outline: none;
}
.sh-sd-link:hover,
.sh-sd-link:focus { background: #f8f9fb; }

.sh-sd-img {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 10px; object-fit: contain;
  background: #f6f7fb; border: 1px solid #eef0f5;
}
.sh-sd-img--ph {
  background: linear-gradient(135deg, #f2f3f7 0%, #e8ebf2 100%);
}

.sh-sd-info { flex: 1; min-width: 0; }

.sh-sd-name {
  display: block; font-size: 13px; font-weight: 600; color: #1e2026;
  line-height: 1.35; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.sh-sd-name mark {
  background: none; color: var(--mm-orange, #ff4521); font-weight: 800;
}

.sh-sd-meta {
  display: flex; align-items: center; gap: 8px;
}

.sh-sd-sku {
  font-size: 11px; color: #9ca3af; font-weight: 500;
}

.sh-sd-price {
  font-size: 13px; font-weight: 800;
  color: var(--mm-orange, #ff4521);
}
.sh-sd-price-empty {
  font-size: 11px; color: #c4c9d4;
}

/* ── Footer ── */
.sh-sd-footer {
  border-top: 1px solid #f1f3f7;
  padding: 0;
}

.sh-sd-all {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  font-size: 13px; font-weight: 600;
  color: #374151; text-decoration: none;
  background: #fafbfc;
  transition: background 0.12s, color 0.12s;
  outline: none;
}
.sh-sd-all:hover, .sh-sd-all:focus {
  background: #f1f3f7;
  color: var(--mm-orange, #ff4521);
}
.sh-sd-all svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── States ── */
.sh-sd-empty,
.sh-sd-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px; color: #9ca3af; font-size: 13px;
}
.sh-sd-empty svg { width: 18px; height: 18px; flex-shrink: 0; }

.sh-sd-spinner {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid #e5e7eb;
  border-top-color: var(--mm-orange, #ff4521);
  border-radius: 50%;
  animation: sh-sd-spin 0.55s linear infinite;
}
@keyframes sh-sd-spin { to { transform: rotate(360deg); } }

.shop-main {
  width: min(var(--hub-content-max), calc(100% - 28px));
  margin: 0 auto;
  min-height: calc(100vh - 84px);
  padding: 28px 0 44px;
}
.shop-hero {
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius-lg);
  background: linear-gradient(180deg, #f8f8f9 0%, #f1f1f3 100%);
  box-shadow: var(--hub-shadow);
  padding: 26px 24px;
  margin-bottom: 14px;
}
.shop-hero-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hub-dark);
}
.shop-hero-subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--hub-muted);
  max-width: 760px;
}

.shop-note {
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius-md);
  background: var(--hub-surface);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--hub-muted);
}
.shop-note strong {
  color: var(--hub-text);
}

.sh-groups-head {
  margin-top: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.sh-groups-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mm-ink);
  font-family: 'Inter', -apple-system, sans-serif;
}
.sh-groups-strip-wrap {
  position: relative;
}
.sh-groups-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.sh-groups-nav-btn {
  position: absolute;
  top: 72px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease;
  pointer-events: auto;
}
.sh-groups-nav-btn:hover {
  transform: translateY(calc(-50% - 1px));
  color: var(--mm-orange);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
}
.sh-groups-nav-btn.sh-groups-prev {
  left: -10px;
}
.sh-groups-nav-btn.sh-groups-next {
  right: -10px;
}
.sh-groups-strip {
  margin-top: -8px;      /* компенсируем padding-top визуально */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b7bcc7 transparent;
  /*
   * padding-top/bottom создают буфер ВНУТРИ overflow-контейнера —
   * CSS обрезает по границе padding, поэтому карточка при scale/translateY
   * уходит в эту зону и не клипируется.
   * 16px покрывает translateY(-6px) + scale(1.06) ≈ 11px вылета.
   */
  padding-top: 16px;
  padding-bottom: 20px;
  padding-left: 6px;
  padding-right: 6px;
}
.sh-groups-track {
  display: flex;
  gap: 12px;
  min-width: max-content;
}
.sh-group-tile {
  width: 146px;
  flex: 0 0 auto;
  /* Перспектива на тайле — для честного 3D transform на карточке */
  perspective: 600px;
}
.sh-group-card {
  width: 146px;
  height: 176px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #ffffff;
  /*
   * Многослойная тень = лёгкий 3D-эффект без тяжести:
   * слой 1 — едва заметный ореол (контур глубины)
   * слой 2 — мягкая диффузная тень под объектом
   * слой 3 — контурное кольцо (имитирует бортик)
   */
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 2px 6px rgba(15, 23, 42, 0.07),
    0 6px 16px rgba(15, 23, 42, 0.04);
  flex: 0 0 auto;
  display: block;
  /*
   * overflow: visible — убирает обрезку img при hover-трансформе.
   * Закругления применяются к img напрямую.
   */
  overflow: visible;
  transition:
    transform 0.26s cubic-bezier(0.22, 0.9, 0.36, 1),
    box-shadow 0.26s ease,
    border-color 0.26s ease;
  text-decoration: none;
  position: relative;
  will-change: transform;
}
.sh-group-card:hover {
  /*
   * «Вылет» карточки: translateY поднимает вверх,
   * scale(1.06) увеличивает — ощущение выхода из плоскости.
   * Рамка нейтральная, без оранжевого.
   */
  transform: translateY(-6px) scale(1.06);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 8px 22px rgba(15, 23, 42, 0.11),
    0 18px 40px rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.09);
  z-index: 4;
}
/* Картинка клипается своим border-radius, а не родительским overflow */
.sh-group-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f2f4f8;
  padding: 0;
  border-radius: 15px;  /* чуть меньше карточки — тонкая белая рамка сохраняется */
}
.sh-group-card-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e94a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(140deg, #f2f3f7 0%, #e8ebf2 100%);
  border-radius: 15px;
}
.sh-group-name {
  padding: 10px 6px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--mm-ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 40px;
}

/* ── Баннер: панель слева + фото справа (как у маркетплейса) ── */
.sh-slider {
  position: relative;
  overflow: visible;
  border-radius: 18px;
  background: #e8ecf4;
  margin: 4px 0 22px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.sh-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;
  overflow: visible;
}
.sh-slider-clip {
  border-radius: 18px;
  overflow: hidden;
}
.sh-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}
.sh-slide-mm {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  min-height: 280px;
  max-height: min(420px, 42vw);
  position: relative;
  border-radius: 18px;
  overflow: visible;
  background: #1d4ed8;
}
/* Clip the photo inside rounded corners while allowing badge to overflow */
.sh-slide-mm-right {
  border-radius: 0 18px 18px 0;
}
.sh-slide-mm--fullbleed .sh-slide-mm-right {
  border-radius: 18px;
}
.sh-slide-mm--fullbleed {
  grid-template-columns: 1fr;
  max-height: min(360px, 55vw);
}
.sh-slide-mm--fullbleed .sh-slide-mm-photo {
  margin: 0;
  border-radius: 0;
}
.sh-slide-mm-left {
  position: relative;
  padding: 32px 28px 40px 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 0;
}
.sh-banner-theme-blue {
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0, transparent 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 28px
    ),
    radial-gradient(ellipse 100% 90% at 0% 100%, rgb(255 255 255 / var(--glow-alpha, 0.14)) 0%, transparent 52%),
    linear-gradient(168deg, #1e5aef 0%, #2563eb 42%, #1e40af 100%);
}
.sh-banner-theme-red {
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0, transparent 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 28px
    ),
    radial-gradient(ellipse 100% 90% at 0% 100%, rgb(255 255 255 / var(--glow-alpha, 0.14)) 0%, transparent 52%),
    linear-gradient(168deg, #f87171 0%, #dc2626 45%, #991b1b 100%);
}
.sh-banner-theme-orange {
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0, transparent 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 28px
    ),
    radial-gradient(ellipse 100% 90% at 0% 100%, rgb(255 255 255 / var(--glow-alpha, 0.14)) 0%, transparent 52%),
    linear-gradient(168deg, #fb923c 0%, #ea580c 45%, #9a3412 100%);
}
.sh-banner-theme-violet {
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0, transparent 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 28px
    ),
    radial-gradient(ellipse 100% 90% at 0% 100%, rgb(255 255 255 / var(--glow-alpha, 0.14)) 0%, transparent 52%),
    linear-gradient(168deg, #a78bfa 0%, #7c3aed 45%, #5b21b6 100%);
}
.sh-banner-theme-teal {
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0, transparent 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.045)) 28px
    ),
    radial-gradient(ellipse 100% 90% at 0% 100%, rgb(255 255 255 / var(--glow-alpha, 0.14)) 0%, transparent 52%),
    linear-gradient(168deg, #2dd4bf 0%, #0d9488 45%, #115e59 100%);
}
.sh-banner-theme-slate {
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0, transparent 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.03)) 14px,
      rgb(255 255 255 / var(--stripe-alpha, 0.03)) 28px
    ),
    radial-gradient(ellipse 100% 90% at 0% 100%, rgb(255 255 255 / var(--glow-alpha, 0.10)) 0%, transparent 52%),
    linear-gradient(168deg, #94a3b8 0%, #475569 45%, #1e293b 100%);
}
.sh-slide-mm-h {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 16ch;
}
.sh-slide-mm-lead {
  margin: 14px 0 0;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
  max-width: 36em;
}
/* ── Бейдж: базовые стили ── */
.sh-slide-mm-badge {
  position: absolute;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 10px 16px 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ff6b35 0%, var(--mm-orange) 55%, #e63d1c 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(230, 61, 28, 0.38);
  pointer-events: none;
}
/* Пилюля — на стыке левой панели и фото */
.sh-badge-pill {
  left: -48px;
  top: 22%;
  transform: none;
}
/* Тег — в верхнем правом углу фото */
.sh-badge-tag {
  top: 16px;
  right: 16px;
  left: auto;
  border-radius: 12px;
  padding: 8px 14px 10px;
  min-width: 90px;
}
/* Угол текстовой панели */
.sh-badge-corner {
  top: 16px;
  left: 16px;
  border-radius: 12px;
  padding: 8px 14px 10px;
  min-width: 90px;
}
/* Если show_title=false — бейдж всегда в верхнем правом углу */
.sh-badge-top-right {
  top: 16px;
  right: 16px;
  left: auto;
}
.sh-slide-mm-badge-sm {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
  line-height: 1.2;
}
.sh-slide-mm-badge-lg {
  margin-top: 3px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ── Анимации баннера ── */
@keyframes bnrFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bnrSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bnrZoomIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes bnrBadgePop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* fade */
.sh-anim-fade .sh-slide-mm-h,
.sh-anim-fade .sh-slide-mm-lead,
.sh-anim-fade .sh-slide-mm-badge { opacity: 0; }
.sh-slide--active .sh-anim-fade .sh-slide-mm-h {
  animation: bnrFadeIn 0.65s ease 0.08s forwards;
}
.sh-slide--active .sh-anim-fade .sh-slide-mm-lead {
  animation: bnrFadeIn 0.65s ease 0.28s forwards;
}
.sh-slide--active .sh-anim-fade .sh-slide-mm-badge {
  animation: bnrBadgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards;
}

/* slide */
.sh-anim-slide .sh-slide-mm-h,
.sh-anim-slide .sh-slide-mm-lead,
.sh-anim-slide .sh-slide-mm-badge { opacity: 0; transform: translateY(22px); }
.sh-slide--active .sh-anim-slide .sh-slide-mm-h {
  animation: bnrSlideUp 0.6s cubic-bezier(0.2, 0.8, 0.4, 1) 0.08s forwards;
}
.sh-slide--active .sh-anim-slide .sh-slide-mm-lead {
  animation: bnrSlideUp 0.6s cubic-bezier(0.2, 0.8, 0.4, 1) 0.25s forwards;
}
.sh-slide--active .sh-anim-slide .sh-slide-mm-badge {
  animation: bnrBadgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.42s forwards;
}

/* zoom */
.sh-anim-zoom .sh-slide-mm-h,
.sh-anim-zoom .sh-slide-mm-lead,
.sh-anim-zoom .sh-slide-mm-badge { opacity: 0; transform: scale(0.88); }
.sh-slide--active .sh-anim-zoom .sh-slide-mm-h {
  animation: bnrZoomIn 0.55s cubic-bezier(0.2, 0.8, 0.4, 1) 0.08s forwards;
}
.sh-slide--active .sh-anim-zoom .sh-slide-mm-lead {
  animation: bnrZoomIn 0.55s cubic-bezier(0.2, 0.8, 0.4, 1) 0.22s forwards;
}
.sh-slide--active .sh-anim-zoom .sh-slide-mm-badge {
  animation: bnrBadgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.38s forwards;
}
/* Правая колонка — целиком под фото; overflow visible, чтобы бейдж не уходил под градиент */
.sh-slide-mm-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: stretch;
  overflow: visible;
  background: #f1f5f9;
}
.sh-slide-mm-photo {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.sh-slide-mm-photo picture {
  position: absolute;
  inset: 0;
  display: block;
}
.sh-slide-mm-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* object-fit / object-position из inline-стиля баннера */
.sh-slide-mm-legal {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 8;
  margin: 0;
  max-width: min(48%, 420px);
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.sh-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 10;
}
.sh-slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background 0.2s, width 0.2s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.sh-slider-dot.active {
  width: 18px;
  border-radius: 4px;
  background: #fff;
}
.sh-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.15);
  color: #6b7280;
  transition: background 0.18s, color 0.18s;
}
.sh-slider-btn:hover {
  background: #fff;
  color: var(--mm-ink);
}
.sh-slider-prev { left: 10px; }
.sh-slider-next { right: 10px; }

@media (max-width: 980px) {
  .shop-main {
    width: calc(100% - 16px);
  }
  .sh-slider {
    border-radius: 14px;
    margin-left: 0;
    margin-right: 0;
  }
  .sh-slider-clip {
    border-radius: 14px;
  }
  /* Slide fills full height of the track so shorter banners don't expose
     the slider's gray background when a taller banner sets the track height */
  .sh-slide {
    display: flex;
    flex-direction: column;
  }
  .sh-slide-mm {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: visible;
    border-radius: 0;
  }
  .sh-slide-mm-left {
    flex: 1;
  }
  .sh-slide-mm-right {
    border-radius: 0;
    overflow: visible;
    z-index: 2;
  }
  .sh-slide-mm-right {
    order: 1;
  }
  /* Badge: чип у края фото; колонка выше градиента, бейдж выше колонки */
  .sh-slide-mm-right {
    order: 1;
    position: relative;
  }
  .sh-slide-mm-badge {
    position: absolute;
    bottom: -16px;
    right: 16px;
    left: auto;
    top: auto;
    transform: none;
    z-index: 30;
    min-width: 90px;
    padding: 7px 14px 9px;
    border-radius: 14px;
    font-size: 0.88em;
  }
  .sh-badge-corner {
    bottom: auto;
    top: 10px;
    left: 10px;
    right: auto;
  }
  .sh-slide-mm-badge-lg {
    font-size: 18px;
  }
  .sh-slide-mm-left {
    order: 2;
    padding: 28px 20px 22px;
    min-height: 0;
    z-index: 0;
  }
  .sh-slide-mm-photo {
    flex: 0 0 auto;
    width: 100%;
    height: min(52vw, 300px);
    min-height: 160px;
    max-height: 300px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }
  .sh-slide-mm-legal {
    order: 4;
    position: static;
    max-width: none;
    text-align: left;
    margin: 0 16px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
  }
  .sh-slide-mm-legal {
    order: 4;
    position: static;
    max-width: none;
    text-align: left;
    margin: 0 16px 14px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: none;
  }
  .sh-slider-btn { display: none; }
  .sh-groups-title { font-size: 20px; }
  .sh-groups-nav { display: none; }
  .sh-groups-head {
    padding-left: 2px;
    padding-right: 2px;
  }
  .sh-groups-strip {
    padding-left: 2px;
    padding-right: 2px;
  }
  .sh-group-tile { width: 126px; perspective: 500px; }
  .sh-group-card {
    width: 126px;
    height: 160px;
    border-radius: 12px;
    overflow: visible;
  }
  .sh-group-card img { border-radius: 11px; }
  .sh-group-card-empty { border-radius: 11px; }
  .sh-group-card:hover { transform: translateY(-4px) scale(1.04); }
  .sh-group-name { font-size: 13px; min-height: 36px; padding-top: 8px; }
}

@media (max-width: 980px) {
  .sh-header {
    padding: 10px 0 12px;
    min-height: 64px;
  }
  .sh-header-inner {
    width: calc(100% - 16px);
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .sh-logo {
    min-width: 0;
    padding: 4px 0;
    flex: 1 1 auto;
    gap: 10px;
    max-width: calc(100% - 120px);
  }
  .sh-logo-img {
    width: 48px;
    height: 48px;
  }
  .sh-logo-stack {
    gap: 3px;
    min-width: 0;
  }
  .sh-logo-name {
    font-size: 24px;
    letter-spacing: -0.02em;
  }
  .sh-logo-tagline {
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: #64748b;
  }

  .sh-search-wrap {
    display: none;
  }
  .sh-catalog-btn {
    display: none;
  }

  .sh-header-inner {
    min-height: 56px;
  }

  .sh-actions {
    display: flex;
    margin-left: auto;
    gap: 2px;
    flex-shrink: 0;
  }
  /* Корзина в нижнем меню — дублировать в шапке не нужно */
  .sh-nav-cart {
    display: none !important;
  }
  .sh-nav-action {
    min-width: 54px;
    padding: 6px 6px 4px;
  }
  .sh-nav-action span {
    font-size: 11px;
    font-weight: 600;
  }
  .sh-nav-action svg {
    width: 26px;
    height: 26px;
  }

  /* ─── Floating search panel ─── */
  .sh-search-panel {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    z-index: 129;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    transform: translateY(calc(100% + 26px));
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1),
      opacity 0.24s ease;
  }
  .sh-search-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .sh-search-panel-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(190, 195, 206, 0.9);
    border-radius: 16px;
    height: 50px;
    padding: 0 14px;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(26, 30, 40, 0.14);
    transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
  }
  .sh-search-panel-row:focus-within {
    border-color: #bcc1cd;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(205, 210, 221, 0.55), 0 3px 12px rgba(34, 40, 55, 0.10);
  }
  .sh-search-panel-row > svg {
    color: #9ea3b0;
    flex-shrink: 0;
  }
  .sh-bottom-search-input {
    flex: 1;
    height: 100%;
    border: 0;
    background: transparent;
    color: #1e2026;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
  }
  .sh-bottom-search-input::placeholder { color: #a0a5b2; }

  /* ─── Нижнее меню (графит + полосы, как кнопка «Каталог») ─── */
  .sh-bottom-nav {
    display: block;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 130;
    background:
      repeating-linear-gradient(
        118deg,
        transparent 0, transparent 11px,
        rgba(255, 255, 255, 0.045) 11px,
        rgba(255, 255, 255, 0.045) 22px
      ),
      linear-gradient(168deg, #5c6573 0%, #3d4a5c 38%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow:
      0 12px 32px rgba(15, 23, 42, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }
  .sh-bottom-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 72px;
    height: auto;
    align-items: stretch;
    padding: 6px 4px 8px;
  }
  .sh-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif;
    padding: 6px 2px;
    margin: 0 1px;
    transition: color 0.18s, background 0.18s, transform 0.14s ease;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    user-select: none;
    position: relative;
  }
  .sh-bottom-link.active,
  .sh-bottom-link.search-active {
    color: #fff;
    background: rgba(255, 69, 33, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 69, 33, 0.35);
  }
  .sh-bottom-link.active svg,
  .sh-bottom-link.search-active svg {
    color: var(--mm-orange);
    stroke: var(--mm-orange);
    transform: translateY(-1px);
  }
  .sh-bottom-link:active {
    transform: scale(0.97);
  }
  .sh-bottom-link svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.85;
    stroke: currentColor;
    fill: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease, stroke 0.18s ease;
  }

  .shop-main {
    width: calc(100% - 12px);
    min-height: calc(100vh - 88px);
    padding-top: 14px;
    padding-bottom: 148px;
  }
  /* Каталог: больше «воздуха» у левого/правого края на телефонах */
  .shop-main.shop-main--catalog {
    width: min(var(--hub-content-max), calc(100% - 36px));
  }
  .shop-hero {
    padding: 18px 16px;
  }
  .shop-hero-title {
    font-size: 24px;
  }
  .shop-hero-subtitle {
    font-size: 14px;
  }
}

/* ── Товары в группе ──────────────── */
.sh-products-section { margin-top: 32px; }
.sh-popular-section { margin-top: 28px; }
.sh-popular-group-block + .sh-popular-group-block { margin-top: 28px; }
.sh-popular-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sh-popular-group-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hub-text);
  font-family: 'Sora', 'Inter', sans-serif;
}
.sh-popular-group-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--mm-orange);
  text-decoration: none;
  white-space: nowrap;
}
.sh-popular-group-link:hover { text-decoration: underline; }
.sh-products-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.sh-products-title { font-family:'Sora','Inter',sans-serif; font-weight:700; font-size:22px; color:var(--hub-text); }
.sh-products-filters { display:flex; gap:8px; flex-wrap:wrap; }
.sh-filter-btn { padding:6px 14px; border-radius:20px; border:1px solid var(--hub-line); background:#fff; font-size:13px; cursor:pointer; color:var(--hub-muted); transition:all .15s; }
.sh-filter-btn:hover { border-color:var(--hub-accent); color:var(--hub-text); }
.sh-filter-btn.active { background:var(--hub-dark); color:#fff; border-color:var(--hub-dark); }
.sh-product-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; }
.sh-product-card { background:var(--hub-card); border:1px solid var(--hub-line); border-radius:var(--hub-radius-md); padding:0; display:flex; flex-direction:column; overflow:hidden; transition:box-shadow .2s, border-color .2s; }
.sh-product-card:hover { box-shadow:var(--hub-shadow); border-color:var(--hub-line-strong); }
.sh-product-card-img { width:100%; aspect-ratio:1/1; overflow:hidden; background:#f8fafc; flex-shrink:0; }
.sh-product-card-img img { width:100%; height:100%; object-fit:contain; display:block; }
.sh-product-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, #f4f6fb 0%, #eaecf4 100%);
  position: relative;
  overflow: hidden;
}
.sh-product-card-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7) 0%, transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(220,38,38,0.04) 0%, transparent 55%);
  pointer-events: none;
}
.sh-ph-initials {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  color: #9aa2b8;
  text-align: center;
  padding: 0 14px;
  position: relative;
  z-index: 1;
  user-select: none;
  word-break: break-word;
}
.sh-ph-initials em {
  font-style: normal;
  color: #c4cad8;
  font-size: 11px;
  font-weight: 500;
}
.sh-product-card-body { padding:14px; display:flex; flex-direction:column; gap:8px; flex:1; }
.sh-product-name { font-size:14px; font-weight:600; color:var(--hub-text); line-height:1.35; }
.sh-product-price { font-size:18px; font-weight:700; color:var(--hub-text); }
.sh-product-price-empty { font-size:14px; color:var(--hub-muted); }
.sh-badge-green  { display:inline-flex; align-items:center; gap:5px; align-self:flex-start; width:fit-content; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:0.01em; background:#dcfce7; color:#15803d; }
.sh-badge-orange { display:inline-flex; align-items:center; gap:5px; align-self:flex-start; width:fit-content; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:0.01em; background:#fff7ed; color:#c2410c; }
.sh-badge-gray   { display:inline-flex; align-items:center; gap:5px; align-self:flex-start; width:fit-content; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:0.01em; background:#f1f5f9; color:#64748b; }
.sh-badge-green::before  { content:''; width:6px; height:6px; border-radius:50%; background:#22c55e; flex-shrink:0; }
.sh-badge-orange::before { content:''; width:6px; height:6px; border-radius:50%; background:#f97316; flex-shrink:0; }
.sh-badge-gray::before   { content:''; width:6px; height:6px; border-radius:50%; background:#94a3b8; flex-shrink:0; }
.sh-availability-note {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: -2px;
}
.sh-pagination { display:flex; justify-content:center; gap:6px; margin-top:24px; }
.sh-pagination a, .sh-pagination span { padding:6px 14px; border-radius:8px; font-size:13px; border:1px solid var(--hub-line); color:var(--hub-muted); text-decoration:none; }
.sh-pagination a:hover { background:#f8fafc; }
.sh-pagination .current { background:var(--hub-dark); color:#fff; border-color:var(--hub-dark); }
.sh-search-inline { width:100%; max-width:320px; padding:8px 14px; border:1px solid var(--hub-line); border-radius:10px; font-size:14px; outline:none; }
.sh-search-inline:focus { border-color:var(--hub-accent); }
.sh-breadcrumb { font-size:14px; color:var(--hub-muted); margin-bottom:8px; }
.sh-breadcrumb a { color:var(--hub-muted); text-decoration:none; }
.sh-breadcrumb a:hover { color:var(--hub-text); }
.sh-empty-msg { text-align:center; color:var(--hub-muted); padding:40px 0; font-size:15px; }
@media (max-width: 600px) {
  .sh-product-grid { grid-template-columns: repeat(2, 1fr); gap:10px; }
  .sh-products-title { font-size:18px; }
}

/* ── Страница «Каталог»: хлебные крошки + сетка ─── */
.shop-main--catalog {
  padding-top: 8px;
}

@media (min-width: 981px) {
  .shop-main.shop-main--catalog {
    width: min(var(--hub-content-max), calc(100% - 32px));
  }
}

/* Хлебные крошки: div + role (не ol/li — Tailwind CDN может перебивать списки) */
.sh-bc-nav {
  margin: 0 0 16px;
  max-width: 100%;
}
.sh-bc-nav .sh-bc {
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  /* Как .sh-logo-tagline в шапке */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #64748b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 252, 0.96) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 2px 10px rgba(15, 23, 42, 0.05),
    0 8px 24px rgba(15, 23, 42, 0.04);
}
.sh-bc__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.sh-bc__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  margin: -4px -6px;
  border-radius: 10px;
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}
.sh-bc__link:hover {
  color: var(--mm-orange);
  background: rgba(255, 69, 33, 0.06);
}
.sh-bc__link:focus-visible {
  outline: 2px solid rgba(255, 69, 33, 0.35);
  outline-offset: 2px;
}
.sh-bc__icon {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.16s ease;
}
.sh-bc__link:hover .sh-bc__icon {
  color: var(--mm-orange);
}
.sh-bc__sep {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
  flex-shrink: 0;
  user-select: none;
  line-height: 0;
}
.sh-bc__sep svg {
  display: block;
}
.sh-bc__current {
  padding: 5px 4px;
  margin: -4px 0;
  border-radius: 8px;
  color: #2c3441;
  font-weight: 600;
  background: none;
  box-shadow: none;
}

@media (min-width: 640px) {
  .sh-bc-nav {
    margin-bottom: 18px;
  }
  .sh-bc-nav .sh-bc {
    padding: 11px 18px;
    gap: 8px 12px;
    font-size: 13px;
    border-radius: 16px;
  }
}

.sh-catalog-grid-wrap {
  margin-top: 0;
}
.sh-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: stretch;
  padding: 0 0 120px;
}
.sh-catalog-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.sh-catalog-tile-visual {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}
.sh-catalog-grid .sh-catalog-card.sh-group-card {
  width: 100%;
  height: auto;
  aspect-ratio: 146 / 176;
  max-height: none;
}
.sh-catalog-grid .sh-catalog-card.sh-group-card img,
.sh-catalog-grid .sh-catalog-card.sh-group-card .sh-group-card-empty {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.sh-catalog-tile-title {
  margin-top: 6px;
  width: 100%;
  max-width: 220px;
  padding: 0 2px;
}

@media (min-width: 640px) {
  .sh-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
}
@media (min-width: 900px) {
  .sh-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px 10px;
    max-width: 100%;
  }
  .sh-catalog-tile-visual {
    max-width: 200px;
  }
}
@media (max-width: 599px) {
  .sh-catalog-grid .sh-catalog-card.sh-group-card:hover {
    transform: translateY(-4px) scale(1.03);
  }
}
