/* ============================
   BRAND — минимализм ч/б
   ============================ */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #666;
  --line: #e5e5e5;
  --accent: #0a0a0a;
  --soft-bg: #f4f4f4;
  --font-display: 'Bebas Neue', 'Helvetica Neue', Impact, sans-serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --max: 1440px;
  --gutter: clamp(16px, 3vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================
   Бегущая строка сверху
   ============================ */
.marquee {
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  padding-left: 40px;
}
.marquee-track span { white-space: nowrap; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================
   Шапка
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--gutter);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header > .logo { justify-self: start; }
.header > .nav { justify-self: center; }
.header > .header-actions { justify-self: end; }
.logo {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav > a,
.nav > .nav-item > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  transition: opacity 0.2s;
  line-height: 1;
}
.nav a:hover { opacity: 0.55; }
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14px;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 20px; }

.header-actions { display: flex; gap: 16px; align-items: center; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.2s;
  box-sizing: border-box;
  line-height: 1;
}
.cart-btn:hover { background: var(--fg); color: #fff; border-color: var(--fg); }
.cart-btn svg { display: block; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--fg);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  pointer-events: none;
}
.cart-btn:hover .cart-count { background: #fff; color: var(--fg); }

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px; height: 28px;
  justify-content: center;
  align-items: center;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--fg); }

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  height: calc(100vh - 84px);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(80,80,80,0.6) 0%, transparent 50%),
    linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  background-size: cover;
  background-position: center;
}
/* Если задано фоновое изображение — поверх градиента-заглушки */
.hero-bg[data-has-image="true"] {
  background: var(--hero-bg-image, none) center/cover no-repeat;
}
.hero-bg[data-has-image="true"]::before {
  /* убираем сетку если есть фото */
  display: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 var(--gutter);
  animation: heroIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 20px);
  max-width: 540px;
  margin: 0 auto 40px;
  font-weight: 300;
  opacity: 0.92;
  letter-spacing: 0.01em;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.6;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================
   Кнопки
   ============================ */
.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: #fff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid #fff;
  border-radius: 999px;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: #fff; }
.hero .btn-primary:hover { background: transparent; color: #fff; border-color: #fff; }

section.about-band .btn-outline,
section.cta .btn-primary { /* контекстные */ }

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--fg);
  border-radius: 999px;
  transition: all 0.25s;
}
.btn-outline:hover { background: var(--fg); color: #fff; }

/* в светлых секциях primary инвертируется */
.categories .btn-primary,
.best-sellers .btn-primary,
.cta .btn-primary {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}
.categories .btn-primary:hover,
.cta .btn-primary:hover {
  background: transparent;
  color: var(--fg);
}

/* ============================
   Band (крутится текст)
   ============================ */
.band {
  background: var(--fg);
  color: #fff;
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0.02em;
}
.band-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  padding-left: 60px;
}

/* ============================
   Пустой hero (без текста)
   ============================ */
.hero-title-empty:empty { display: none; }
.hero-sub:empty { display: none; margin-bottom: 0; }
.hero-content:has(.hero-title-empty:empty) { gap: 0; }

/* ============================
   Блок из трёх видео под hero
   ============================ */
.hero-videos {
  padding: 0;
  margin: 0;
  max-width: 100vw;
  background: transparent;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  width: 100%;
  background: #000;
}
.hero-video {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0a0a0a;
  overflow: hidden;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s;
}
.hero-video:hover .video-controls,
.hero-video.touched .video-controls { opacity: 1; }
.video-btn {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.video-btn:hover { background: rgba(0, 0, 0, 0.75); transform: scale(1.05); }
.video-btn:active { transform: scale(0.95); }
.video-btn svg { display: block; }

@media (max-width: 768px) {
  .hero-videos-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-video { aspect-ratio: 16 / 22; }
  .video-controls { opacity: 1; } /* на мобилке hover нет — показываем всегда */
}

/* ============================
   Секции — общее
   ============================ */
section {
  padding: 80px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--fg);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.view-all {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.view-all:hover { opacity: 0.55; }

/* ============================
   Категории
   ============================ */
/* ============================
   Категории на главной (референс: xpodium.com.au)
   ============================ */
.categories { padding: 80px 0 40px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.cat-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Затемнение поверх фото — важно для читаемости белого текста */
  filter: brightness(0.65) grayscale(0.1);
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.cat-card:hover .cat-img { transform: scale(1.06); }
.cat-card:hover { color: #fff; }
.cat-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 32px);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  z-index: 2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.cat-arrow {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, border-color 0.2s;
  color: #fff;
  font-size: 18px;
}
.cat-card:hover .cat-arrow {
  opacity: 1;
  transform: translateY(0);
}
.cat-card:hover .cat-arrow {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* Скрытая категория — заглушка "TO BE ANNOUNCED" */
.cat-card-hidden {
  cursor: default;
  pointer-events: none;
}
.cat-card-hidden .cat-img { filter: brightness(0.35) grayscale(0.5); }
.cat-card-hidden .cat-arrow { display: none; }
.cat-placeholder {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 24px;
  text-align: center;
  white-space: nowrap;
}

/* Заглушка TO BE ANNOUNCED на странице каталога */
body[data-cat-hidden="true"] .shop-grid,
body[data-cat-hidden="true"] .filters {
  display: none !important;
}
body[data-cat-hidden="true"] .shop-body {
  display: block !important;
  text-align: center;
}
body[data-cat-hidden="true"] .shop-body::before {
  content: var(--cat-placeholder, "TO BE ANNOUNCED");
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 0.04em;
  color: var(--fg);
  padding: 120px 0;
  width: 100%;
}

/* ============================
   Сетка товаров
   ============================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.25s;
}
.product-card:hover { transform: translateY(-4px); }
.product-img {
  aspect-ratio: 1;
  background: var(--soft-bg);
  overflow: hidden;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
  display: block;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
}
.product-price {
  font-size: 15px;
  font-weight: 700;
}
.product-colors {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.product-color {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

/* ============================
   About band
   ============================ */
.about-band {
  background: var(--fg);
  color: #fff;
  max-width: none;
  margin: 80px 0;
  padding: 100px var(--gutter);
}
.about-content { max-width: 880px; margin: 0 auto; }
.about-band .section-label { color: #aaa; border-bottom-color: #fff; }
.about-band h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
  font-weight: 400;
}
.about-band p {
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 640px;
  margin-bottom: 40px;
  opacity: 0.85;
  font-weight: 300;
}
.about-band .btn-outline {
  color: #fff;
  border-color: #fff;
}
.about-band .btn-outline:hover { background: #fff; color: var(--fg); }

/* ============================
   Features
   ============================ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.feature {
  padding: 48px 32px;
  text-align: left;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: none; }
.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.feature-text {
  font-size: 13px;
  color: var(--muted);
}

/* ============================
   CTA
   ============================ */
.cta {
  text-align: center;
  padding: 120px var(--gutter);
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 400;
}
.cta p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* ============================
   Footer
   ============================ */
.footer {
  background: var(--fg);
  color: #fff;
  padding: 80px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 16px;
}
.footer-brand p { opacity: 0.7; font-size: 14px; max-width: 280px; }
.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.6;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 0.5; }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* ============================
   Корзина (drawer)
   ============================ */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 200;
}
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(460px, 100%);
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 201;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
}
.cart-close { font-size: 22px; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  width: 80px; height: 80px;
  background: var(--soft-bg);
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.cart-item-info { min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.cart-item-meta { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}
.qty button {
  width: 26px; height: 26px;
  font-size: 14px;
  font-weight: 600;
}
.qty span { min-width: 22px; text-align: center; font-size: 12px; }
.cart-item-right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cart-item-price { font-size: 13px; font-weight: 700; }
.cart-item-remove { font-size: 11px; color: var(--muted); text-decoration: underline; }
.cart-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 22px;
}
.cart-checkout {
  width: 100%;
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}
.cart-checkout:hover:not(:disabled) { background: transparent; color: var(--fg); }
.cart-checkout:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.cart-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ============================
   Страница каталога
   ============================ */
.shop-head {
  padding: 48px var(--gutter) 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.shop-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  margin-bottom: 12px;
}
.shop-subtitle { color: var(--muted); }

.shop-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 20px var(--gutter) 100px;
  max-width: var(--max);
  margin: 0 auto;
}
.filters {
  position: sticky;
  top: 100px;
  height: fit-content;
  font-size: 13px;
}
.filter-group { margin-bottom: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.filter-group:first-child { border-top: none; padding-top: 0; }
.filter-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-list label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.filter-list label:hover { opacity: 0.6; }
.filter-list input[type="checkbox"], .filter-list input[type="radio"] {
  accent-color: var(--fg);
  width: 14px; height: 14px;
}
.filter-count { color: var(--muted); font-size: 11px; margin-left: auto; }

.shop-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.shop-count { font-size: 13px; color: var(--muted); }
.shop-sort {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-family: inherit;
  background: #fff;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
}
.shop-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

/* ============================
   Карточка товара (модалка)
   ============================ */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-modal.open { display: flex; }
.product-modal-inner {
  background: #fff;
  width: 100%;
  max-width: 1100px;
  height: 700px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.product-modal-inner > .pm-gallery {
  overflow: hidden;
  height: 100%;
}
.product-modal-inner > .pm-info {
  overflow-y: auto;
  height: 100%;
}
.pm-img {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  background: var(--soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
  position: relative;
  overflow: hidden;
}
.pm-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pm-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  z-index: 2;
  font-size: 16px;
}
.pm-gallery {
  display: flex;
  flex-direction: column;
  background: var(--soft-bg);
  position: relative;
  height: 100%;
  min-height: 0;
}
.pm-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 12px 16px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  background: #fff;
  border-top: 1px solid var(--line);
}
.pm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, transform 0.15s;
  color: #111;
  line-height: 1;
  padding: 0 0 3px 0;
}
.pm-nav:hover { background: #fff; }
.pm-nav:active { transform: translateY(-50%) scale(0.94); }
.pm-prev { left: 16px; }
.pm-next { right: 16px; }

.pm-thumb {
  flex: 0 0 64px;
  height: 64px;
  background: var(--soft-bg);
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
  scroll-snap-align: start;
}
.pm-thumb:hover { opacity: 0.9; }
.pm-thumb.active { border-color: var(--fg); opacity: 1; }
.pm-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pm-info { padding: 48px 40px; }
.pm-brand {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pm-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  margin-bottom: 16px;
  word-break: break-word;
  hyphens: auto;
}
.pm-price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}
.pm-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--muted);
}
.pm-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.pm-options[data-group="size"] {
  display: flex;
  flex-wrap: wrap;
}
.pm-options[data-group="size"] .pm-option {
  min-width: 50px;
  text-align: center;
}
.pm-option {
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-option:hover { border-color: var(--fg); }
.pm-option.selected { background: var(--fg); color: #fff; border-color: var(--fg); }
.pm-add {
  width: 100%;
  padding: 16px;
  background: var(--fg);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid var(--fg);
  transition: all 0.2s;
  margin-top: 8px;
}
.pm-add:hover { background: transparent; color: var(--fg); }

/* ============================
   Адаптив
   ============================ */
@media (max-width: 1024px) {
  .product-grid, .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { aspect-ratio: 4 / 5; padding: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { border-right: none; border-bottom: 1px solid var(--line); }
  .feature:nth-child(odd) { border-right: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr 1fr; }
  .shop-body { grid-template-columns: 1fr; }
  .filters { position: static; }
}

@media (max-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
  }
  .nav { display: none; }
  .burger { display: flex; }
  .nav.mobile-open {
    display: flex;
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    z-index: 99;
  }
  .nav.mobile-open .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: none;
    padding-left: 16px;
  }
  .hero h1 { font-size: clamp(64px, 18vw, 140px); }
  .product-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }

  /* Категории на мобилке — 2×2, квадратные карточки */
  .category-grid { gap: 2px; }
  .cat-card { aspect-ratio: 1 / 1.1; padding: 20px; }
  .cat-label { font-size: clamp(14px, 4vw, 22px); }
  .cat-arrow { width: 32px; height: 32px; opacity: 1; transform: none; margin-bottom: 8px; }

  /* Модалка товара на мобилке */
  .product-modal { padding: 0; align-items: stretch; }
  .product-modal-inner {
    grid-template-columns: 1fr;
    height: 100vh;
    max-height: 100vh;
    max-width: none;
    overflow-y: auto;
  }
  .product-modal-inner > .pm-gallery,
  .product-modal-inner > .pm-info {
    max-height: none;
    height: auto;
    overflow: visible;
  }
  .pm-img {
    height: 60vh;
    max-height: 60vh;
    padding: 8%;
  }
  .pm-nav { width: 36px; height: 36px; font-size: 18px; }
  .pm-prev { left: 10px; }
  .pm-next { right: 10px; }
  .pm-thumbs { padding: 8px 12px 12px; gap: 4px; }
  .pm-thumb { flex: 0 0 52px; height: 52px; }
  .pm-info { padding: 24px; }
  .pm-close { top: 12px; right: 12px; }
  .pm-options {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .about-band h2 { font-size: 40px; }
  .band { font-size: 32px; }
}
