:root{
  --bg:#eae0c2;
  --card:#ffffff;
  --text:#1a1a1a;
  --muted:#737373;
  --line:#e5e5e5;

  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.05);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.10);

  --accent:#f97316;
  --accent-hover:#ea580c;
  --accent2: var(--accent);
  --accent2-hover: var(--accent-hover);
  --focus: rgba(249,115,22,.15);

  --radius:18px;
  --radius-lg:12px;
  --max: 1800px;
  --gap: 16px;

  /* Catalog card sizing (можно менять вручную):
     - --catalog-cols: сколько карточек в ряд (desktop)
     - --catalog-card-h: высота карточки
  */
  --catalog-cols: 4;
  --catalog-card-h: 520px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

html{ overflow-y: scroll; scrollbar-gutter: stable; }

/* Utility */
.hidden{ display:none !important; }


/* Тёмная тема */
body.dark-theme {
  --bg: #0b0b0b;
  --card: #262626;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  --line: #404040;
  --accent2: var(--accent);
  --accent2-hover: var(--accent-hover);
  
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.2);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.4);
}

body.dark-theme .topbar {
  background: rgba(26,26,26,.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: #404040;
}

body.dark-theme .topbar.scrolled {
  background: rgba(26,26,26,.95);
}

body.dark-theme .search,
body.dark-theme .iconbtn,
body.dark-theme .topLink {
  background: #262626;
}

body.dark-theme .search:focus-within {
  background: #2d2d2d;
}

body.dark-theme .iconbtn:hover {
  background: #2d2d2d;
}

body.dark-theme .topLink:hover {
  background: #2d2d2d;
}

body.dark-theme .hero,
body.dark-theme .miniCarousel,
body.dark-theme .tile,
body.dark-theme .card,
body.dark-theme .partnerCard,
body.dark-theme .reg-card {
  background: #262626;
}

body.dark-theme .reg-field input {
  background: #1a1a1a;
  color: #e5e5e5;
}

body.dark-theme .tabs {
  background: #262626;
}

body.dark-theme .tab.active {
  background: #ff8c1a;
  color: #111;
}

body.dark-theme .nearSummary {
  background: #262626;
}

body.dark-theme .nearSummary:hover {
  background: #2d2d2d;
}

body.dark-theme .stats-section {
  border-color: #333;
}

body.dark-theme .footer-enhanced {
  background: #0d0d0d;
  border-top-color: #404040;
}


/* Dark theme tweaks */
body.dark-theme #quickCats .tile strong{ color:#fff; }

/* Точки навигации под мини-слайдером: тёмная тема */
body.dark-theme .miniDotsBelow .miniDot{
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.22);
}
body.dark-theme .miniDotsBelow .miniDot.isActive{
  background: rgba(255,255,255,.92);
}

/* Center the 'Почему совместные покупки?' section heading */
.features-section .section-head{
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Минималистичный горизонтальный тумблер переключения темы */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-left: 8px;
  padding: 0;
  flex-shrink: 0;
}

/* Ползунок */
.theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: all var(--transition-base);
}

/* Состояние тёмной темы */
body.dark-theme .theme-toggle {
  background: var(--card);
  border-color: var(--line);
}

body.dark-theme .theme-toggle::before {
  left: calc(100% - 23px);
  background: var(--accent);
}

.theme-toggle:hover {
  border-color: var(--muted);
}

body.dark-theme .theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle:active::before {
  width: 24px;
}

body.dark-theme .theme-toggle:active::before {
  left: calc(100% - 27px);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Grainy noise texture for light theme only */
body:not(.dark-theme) {
  background-color: #FDF5E6;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

a{
  color:inherit;
  text-decoration:none;
  transition: color var(--transition-fast);
}
button, input, select {
  font: inherit;
  transition: all var(--transition-fast);
}

/* Make native form controls respect dark theme (prevents white number inputs in Chromium) */
body{ color-scheme: light; }
body.dark-theme{ color-scheme: dark; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 20px; }
.small{ font-size:13px; }
.muted{ color:var(--muted); }

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.animate-in {
  animation: fadeIn 0.5s ease-out;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 8px;
}

.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom:1px solid var(--line);
  box-shadow: 0 4px 24px rgba(15,23,42,.04);
  transition: all var(--transition-base);
}

.topbar.scrolled {
  box-shadow: 0 8px 32px rgba(15,23,42,.08);
  background: rgba(255,255,255,.95);
}

.topbar-row{
  display:flex; align-items:center; gap:14px;
  padding:12px 0;
  position: relative;
}
.logo{
  display:flex; align-items:center; gap:12px;
  font-weight:900; letter-spacing:.3px;
  white-space:nowrap;
  transition: transform var(--transition-fast);
}
.logo:hover {
  transform: scale(1.02);
}
.mark{
  width:52px; height:52px; border-radius:14px;
  background: var(--gradient-primary);
  box-shadow: 0 4px 12px rgba(245,158,11,.25);
  transition: all var(--transition-base);
}
.mark:hover {
  box-shadow: 0 6px 16px rgba(245,158,11,.35);
  transform: translateY(-1px);
}

/* Лого-картинка вместо градиентного "mark" */
.logoMark{
  display:block;
  background: transparent;
  border: 1px solid var(--line);
  object-fit: cover;
  transition: all var(--transition-base);
}
.logoMark:hover {
  border-color: var(--accent);
}

/* Быстрые бренд-разделы в топбаре */
.topLinks{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left: 10px;
  margin-right: 10px;
}


.topLinks.plain{
  gap: 30px;
}

.topLink{
  display:inline-flex;
  align-items:center;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border:1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  text-decoration:none;
  gap: 8px;
  background: #fff;
  transition: all var(--transition-fast);
  position: relative;
}

/* ============================
   Topbar links: "plain text" вариант (только где nav.topLinks.plain)
   ============================ */
.topLinks.plain .topLink{
  height:auto;
  padding: 6px 2px;
  border:0;
  background: transparent;
  border-radius: 0;
  font-weight: 800;
  text-decoration:none;
}

.topLinks.plain .topLink::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.topLinks.plain .topLink:hover{
  color: var(--accent);
}
.topLinks.plain .topLink:hover::before{
  transform: scaleX(1);
}

/* иконки в plain-варианте скрываем — оставляем чистый текст */
.topLinks.plain .topLinkIcon{ display:none; }

/* Оранжевое подчёркивание с анимацией */
.topLink::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.topLink:hover{
  color: var(--accent);
}
.topLink:hover::before{
  transform: scaleX(1);
}


/* Бейджи для кнопок брендов */
.topLink::after {
  content: attr(data-badge);
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(249,115,22,.3);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.topLink:hover::after {
  opacity: 1;
  transform: translateY(0);
}


/* plain: бейджи (подсказки) показываем снизу по центру, а не сверху */
.topLinks.plain .topLink::after{
  top: auto;
  right: auto;
  left: 50%;
  bottom: -26px;
  transform: translate(-50%, 4px);
}
.topLinks.plain .topLink:hover::after{
  transform: translate(-50%, 0);
}
/* No badges for Men/Women/Kids buttons */
.topLink.men::after,
.topLink.women::after,
.topLink.kids::after{ display:none; }

.topLinkIcon{
  display:inline-flex;
  width: 22px;
  height: 22px;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  line-height: 1;
}

.topLink:hover{
  background: var(--bg);
  border-color: var(--muted);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.topLink.kofesko:hover{ border-color: #7a4b2a; color: #7a4b2a; }
.topLink.alfit:hover{ border-color: #1a7f37; color: #1a7f37; }
.topLink.reni:hover{ border-color: #0b2a6f; color: #0b2a6f; }

/* Segmented catalog buttons (Men/Women/Kids) */
.topLink.men:hover,
.topLink.women:hover,
.topLink.kids:hover{
  border-color: var(--accent2);
  color: var(--accent2);
}

/* Segments (men/women/kids) */
.topLink.men:hover,
.topLink.women:hover,
.topLink.kids:hover{
  border-color: rgba(249,115,22,.85);
  color: rgba(249,115,22,.95);
}

/* кнопка меню брендов (мобилка) */
.topMenuBtn{
  display:none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.topMenuBtn:hover{ transform: translateY(-1px); }
.topMenuBtn:active{ transform: translateY(0); }

@media (max-width: 980px){
  .topLinks{ display:none; }
  .topMenuBtn{ display:inline-flex; align-items:center; justify-content:center; }

  /* bottom-sheet меню */
  .topLinks.isOpen{
    display:flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    z-index: 60;
    animation: sheetUp .18s ease both;
  }

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

  .topLinks.isOpen .topLink{
    height: 46px;
    justify-content: flex-start;
  }

  .topLink::before{ left: 44px; right: 16px; }

  /* В мобильном меню бейджи показываем справа, всегда видимыми */
  .topLinks.isOpen .topLink::after{
    position: static;
    transform: none;
    opacity: 1;
    margin-left: auto;
    font-size: 10px;
    padding: 4px 10px;
  }
  
  .topLinks.isOpen .topLink:hover::after{
    transform: none;
  }
}

/* подложка для bottom-sheet */
.topSheetBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(12,18,27,.35);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.topSheetBackdrop.isOpen{ opacity: 1; pointer-events: auto; }

/* ---------- Mini carousel (главная) ---------- */
.miniCarouselWrap{
  position: relative;
  width: 100%;
}

.miniCarousel{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 480px;
}

.miniSlide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
}

.miniSlide.isActive{ opacity: 1; }

.miniSlideBg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.miniSlide picture, .miniSlide img{
  width: 100%;
  height: 100%;
  display:block;
}

.miniSlide img{
  object-fit: cover;
  object-position: center top;
}

.miniSlideOverlay{
  position:absolute;
  inset: 0;
  /* Уже не "во всю ширину": затемнение аккуратно слева под текст */
  background: linear-gradient(90deg, rgba(0,0,0,.48), transparent 45%);
}

.miniSlideText{
  position:absolute;
  left: 48px;
  bottom: 48px;
  right: 48px;
  max-width: 600px;
  color: #fff;
}

.miniSlideText h2{
  margin: 0 0 12px 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.miniSlideText p{
  margin: 0 0 20px 0;
  font-size: 16px;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.miniSlideCta{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  transition: all var(--transition-base);
}

.miniSlideCta:hover{
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
}

/* Точки навигации ПОД слайдером */
.miniDotsBelow{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}

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

.miniDot{
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.28);
  background: rgba(0,0,0,.16);
  cursor:pointer;
  transition: all var(--transition-base);
}

.miniDot.isActive{
  background: rgba(0,0,0,.75);
  transform: scale(1.25);
}

/* На тёмной теме — точки светлые */
body.dark-theme .miniDot{
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.28);
}
body.dark-theme .miniDot.isActive{
  background: rgba(255,255,255,.9);
}

/* Стрелочки навигации - внутри карусели */
.miniArrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 64px;
  height: 64px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  user-select: none;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

.miniArrow.prev{
  left: 24px;
}

.miniArrow.next{
  right: 24px;
}

.miniArrow:hover{
  opacity: .85;
}

@media (max-width: 720px){
  .miniCarousel{ min-height: 360px; }
  .miniSlideOverlay{ background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); }
  .miniSlideText{ left: 24px; bottom: 24px; right: 24px; }
  .miniSlideText h2{ font-size: 28px; }
  .miniArrow{ width: 46px; height: 46px; font-size: 26px; }
  .miniArrow.prev{ left: 16px; }
  .miniArrow.next{ right: 16px; }
  .miniDotsBelow{ margin-top: 8px; }
  .miniDot{ width: 10px; height: 10px; }
}

.tabs{
  display:flex; gap:6px; align-items:center;
  padding:4px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
}
.tab{
  border:0; background:transparent;
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  color:var(--muted);
}
.tab.active{
  background:#ff8c1a;
  color:#111;
}

.search{
  flex:1;
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  min-width: 240px;
}
.search input{
  border:0; outline:0; width:100%;
  font-size:14px;
  background: transparent;
  color: var(--text);
}
.search input::placeholder{
  color: rgba(0,0,0,.45);
}
body.dark-theme .search input{
  color:#f5f5f5;
}
body.dark-theme .search input::placeholder{
  color: rgba(255,255,255,.55);
}

.search:focus-within{
  border-color: rgba(251,133,0,.45);
  box-shadow: 0 0 0 4px var(--focus);
}

.actions{ display:flex; gap:8px; align-items:center; }

.iconbtn{
  border:1px solid var(--line);
  background:#fff;
  width:42px; height:42px;
  border-radius:14px;
  cursor:pointer;
  display:grid; place-items:center;
  transition:.12s;
  position:relative;
}
.iconbtn:hover{ background:#fafbfc; }
.badge{
  position:absolute; top:-6px; right:-6px;
  min-width:18px; height:18px;
  padding:0 5px;
  border-radius:999px;
  background: var(--text);
  color:#fff;
  font-size:11px;
  display:grid; place-items:center;
  border:2px solid #fff;
}

main{ padding: 18px 0 60px; }

/* Home hero */
.hero{
  /* Без границ, фон как у страницы */
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  position: relative;
}

/* Визуальный фон hero: строгая геометрия + мягкий акцент */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 12% 18%, rgba(249,115,22,.22), transparent 60%),
    radial-gradient(700px 420px at 92% 28%, rgba(0,0,0,.06), transparent 62%),
    repeating-linear-gradient(135deg,
      rgba(0,0,0,.045) 0px,
      rgba(0,0,0,.045) 1px,
      transparent 1px,
      transparent 14px);
  opacity: .9;
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  right:-140px;
  top:-160px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(249,115,22,.26), rgba(249,115,22,.08) 55%, transparent 70%);
  filter: blur(2px);
  pointer-events:none;
}

body.dark-theme .hero::before{
  background:
    radial-gradient(900px 420px at 12% 18%, rgba(249,115,22,.22), transparent 60%),
    radial-gradient(700px 420px at 92% 28%, rgba(255,255,255,.08), transparent 62%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 1px,
      transparent 1px,
      transparent 14px);
  opacity: .9;
}

/* Пользователь попросил: фон блока как у страницы (без декоративных слоёв) */
.hero::before,
.hero::after{
  display: none !important;
}
.hero-inner{
  padding:64px 48px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:48px;
  align-items:center;
}
.hero-wide{ grid-template-columns: 1fr; }
.hero-split{ grid-template-columns: 1fr 400px; gap: 48px; }
.hero-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.hero-kicker .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(249,115,22,.16);
}

.hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 22px;
}
.hbadge{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px) saturate(140%);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}
.hbadge::before{
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(249,115,22,.18);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}
.hbadge:first-child{
  border-color: rgba(249,115,22,.35);
  background: rgba(249,115,22,.10);
}
body.dark-theme .hbadge{
  background: rgba(26,26,26,.55);
}

/* Счётчик корзины в тёмной теме */
body.dark-theme .badge {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  top: -8px;
  right: -8px;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
}

/* Форма регистрации на главной */
.hero-register{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.reg-card{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%;
  max-width: 360px;
}
.reg-card.reg-logged{ text-align: center; }
.reg-card.reg-logged .btn{ margin: 8px 4px 0; }
.reg-title{ margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.reg-sub{ margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.reg-form{ display: grid; gap: 12px; }
.reg-field label{ display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.reg-field input{
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  font-size: 15px;
}
.reg-field input:focus{ border-color: var(--accent2); box-shadow: 0 0 0 4px var(--focus); }
.reg-btn{ width: 100%; margin-top: 4px; }
.reg-err{ color: #b00020; font-size: 13px; display: none; margin-top: 4px; }
.reg-ok{ color: #1a7f37; font-size: 13px; display: none; margin-top: 4px; }
.reg-note{ margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.reg-note a{ color: var(--accent2); text-decoration: underline; }

@media (max-width: 800px) {
  .hero-split{ grid-template-columns: 1fr; }
  .hero-register{ margin-top: 16px; }
}

.hero h1{
  margin:0 0 20px;
  font-size:52px;
  line-height:1.1;
  letter-spacing:-.02em;
  font-weight: 700;
  color: var(--text);
}
.hero p{
  margin:0 0 32px;
  color:var(--muted);
  max-width: 55ch;
  font-size: 18px;
  line-height: 1.6;
}
.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  border:0; cursor:pointer;
  padding:18px 140px;
  border-radius:var(--radius);
  font-weight:600;
  letter-spacing:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  transition: all var(--transition-base);
  box-shadow: none;
}
.btn.primary{
  background: var(--accent);
  color:#fff;
}
.btn.primary:hover{
  background: var(--accent-hover);
}
#pgAdd.in-cart {
  background: #6b7280;
  border-color: #6b7280;
}
#pgAdd.in-cart:hover {
  background: #6b7280;
}
.btn.ghost{
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
}
.btn.ghost:hover{
  border-color: var(--accent);
  color: var(--accent);
}

.section{ margin-top:18px; }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin: 10px 0 10px;
}
.section-title{
  margin:0;
  font-size:18px;
  font-weight:950;
  letter-spacing:.1px;
}
.section-note{ margin:0; color:var(--muted); font-size:13px; }

/* ✅ Быстрый выбор: горизонтальная лента */
.tilesWrap{ position:relative; }
.tilesWrap::before,
.tilesWrap::after{
  content:"";
  position:absolute;
  top:0;
  bottom:10px;
  width:34px;
  pointer-events:none;
  z-index:2;
}
.tilesWrap::before{
  left:0;
  background: linear-gradient(90deg, var(--bg), rgba(244,246,249,0));
}
.tilesWrap::after{
  right:0;
  background: linear-gradient(270deg, var(--bg), rgba(244,246,249,0));
}
.tiles{
  display:flex;
  gap: var(--gap);
  overflow-x:auto;
  overflow-y:hidden;
  padding: 2px 2px 12px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.tiles.isDragging{ cursor: grabbing; }
.tiles::-webkit-scrollbar{ height:0px; }


/* tile */
.tile{
  border:1px solid var(--line);
  border-radius: 20px;
  background:#ffffff;
  padding:24px;
  transition:.12s transform;
  min-height: 120px;
  position:relative;
  overflow:hidden;
  text-align:left;
  appearance:none;
  -webkit-appearance:none;
}
.tile:hover{ transform: translateY(-2px); }
.tile:before{
  content:"";
  position:absolute; inset:-60px;
  background:
    radial-gradient(220px 140px at 20% 20%, rgba(255,183,3,.35), transparent 60%),
    radial-gradient(260px 160px at 85% 10%, rgba(251,133,0,.22), transparent 60%);
  opacity:.75;
  pointer-events:none;
}
.tile strong{ position:relative; display:block; font-size:16px; }
.tile span{ position:relative; display:block; margin-top:6px; color:var(--muted); font-size:13px; }
.tiles .tile{ flex:0 0 auto; width: 260px; min-height: 96px; }

/* ============================
   Популярные товары (full-width лента)
   ============================ */
.fullbleed{ width:100vw; margin-left: calc(50% - 50vw); }
.fullbleedSection{
  margin-top:18px;

  padding: 32px 0 40px;
}

.popHead{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding: 8px 0 20px;
}
.popTitle{
  text-align:center;
  font-size:28px;
  font-weight: 950;
  color: #ffffff;
}

.popTabs{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.popTab{
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  padding: 10px 20px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .18px;
  color: rgba(255,255,255,.65);
  cursor:pointer;
  border-radius: 24px;
  transition: all var(--transition-fast);
}
.popTab:hover{
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.25);
}
.popTab.isActive{
  background: #f97316;
  color: #FDF5E6;
  border-color: #f97316;
}

/* Светлая тема для блока популярных товаров */
body:not(.dark-theme) .fullbleedSection {
  background: transparent;
}

body:not(.dark-theme) .popTitle {
  color: #1a1a1a;
}

body:not(.dark-theme) .popTab {
  color: #000000;
}

body:not(.dark-theme) .popTab:hover {
  color: #000000;
  border-color: rgba(0,0,0,.25);
}

body:not(.dark-theme) .popTab.isActive {
  background: #f97316;
  color: #FDF5E6;
  border-color: #f97316;
}

.popStripWrap{
  position:relative;
  padding: 0 clamp(14px, 3vw, 28px) 12px;
}

.popStrip{
  display:flex;
  gap: 12px;
  overflow-x:auto;
  overflow-y:hidden;
  padding: 6px 54px 14px; /* место под стрелки */
  /* настройки wheel/инерции (читает home.js -> enableSmoothScrollerX)
     можно подстроить, не трогая JS */
  --scroll-wheel: 0.34;
  --scroll-wheel-shift: 0.55;
  --scroll-wheel-alt: 0.18;
  --scroll-impulse: 24;
  --scroll-maxv: 2.8;
  --scroll-friction: 0.0065;
  --scroll-stopv: 0.03;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
  overscroll-behavior-x: contain;
  /* mandatory даёт "рывки" при wheel/drag, поэтому делаем мягче */
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.popStrip.isDragging{ cursor: grabbing; }
.popStrip::-webkit-scrollbar{ height:0px; }

.popArrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 28px;
  line-height: 1;
  cursor:pointer;
  user-select:none;
}
.popArrow:hover{ border-color: rgba(0,0,0,.18); }
body.dark-theme .popArrow:hover{ border-color: rgba(255,255,255,.22); }
.popArrow.prev{ left: 10px; }
.popArrow.next{ right: 10px; }

@media (max-width: 720px){
  .popArrow{ display:none; }
  .popStrip{ padding-left: 8px; padding-right: 8px; }
}

.popCard{
  flex: 0 0 auto;
  width: 340px;
  height: 620px;
  border-radius: 20px;
  border: none;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow:hidden;
  scroll-snap-align: none;
  text-align:left;
  cursor:pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display:flex;
  flex-direction:column;
}
.popCard:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.popImg{
  flex: 0 0 75%;
  height: auto;
  background: rgba(0,0,0,.06);
  background-size: cover;
  background-position: 50% 50%;
}

body.dark-theme .popImg{
  background: rgba(255,255,255,.06);
}

.popBody{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  gap: 10px;
  background: var(--card);
}

.popDate{
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popName{
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
  flex: 1;
}

.popPriceRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.popPrice{
  font-weight: 950;
  font-size: 20px;
  line-height: 1.1;
  color: var(--text);
}

.popBtn{
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.popBtn:hover{
  background: var(--accent-hover);
}

@media (max-width: 420px){
  .popCard{ width: 232px; height: 380px; }
  .popImg{ flex: 0 0 58%; }
}

/* Catalog */
.catalogPage{ max-width: 1480px; margin: 0 auto; }

/* ============================
   Выбор партнёра (альбомы)
   ============================ */
.albumPicker{ padding: 4px 0 8px; }
.partnerGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 1100px){ .partnerGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){ .partnerGrid{ grid-template-columns: 1fr; } }

.partnerCard{
  text-align:left;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(12,18,27,.10);
  border-radius: 22px;
  padding: 16px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.partnerCard:hover{ transform: translateY(-2px); box-shadow: 0 18px 46px rgba(12,18,27,.14); border-color: rgba(0,0,0,.14); }
.partnerTop{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.partnerName{ font-weight:950; font-size:18px; letter-spacing:.2px; }
.partnerHint{ margin-top:6px; color:var(--muted); font-size:13px; }
.partnerBadge{
  border-radius: 999px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background:#fff;
  font-weight:950;
  font-size:12px;
  color: var(--muted);
  white-space:nowrap;
}
.partnerBar{ margin-top:12px; height:10px; border-radius:999px; background: rgba(2,6,23,.08); overflow:hidden; }
.partnerFill{ height:100%; width: var(--p, 0%); border-radius:999px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

.catalog-top{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  margin-bottom: 10px;
}
.crumbs{ color:var(--muted); font-size:13px; }

.catalog-controls{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  justify-content:flex-end;
}
.sort{ display:flex; align-items:center; gap:10px; }
.sort label{ display:none; }
.sort select{
  border:1px solid transparent;
  border-radius: 999px;
  padding:10px 12px;
  background: var(--bg);
  color: var(--text);
  font-weight:800;
  cursor:pointer;
}

/* catalog: minimal select without hard outline */
.catalog-controls-min .sort select{
  border-color: transparent;
  box-shadow: none;
  background: rgba(0,0,0,.03);
}
body.dark-theme .catalog-controls-min .sort select{
  background: rgba(255,255,255,.06);
}
.catalog-controls-min .sort select:focus{
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}
.filtersToggle{ display:none; }

.pillbar{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 10px;
  background:#fff;
  color:var(--muted);
  font-weight:800;
  font-size:13px;
  display:flex; gap:8px; align-items:center;
}
.pill button{
  border:0; background:transparent; cursor:pointer;
  color:var(--muted); font-weight:950;
}

.catalog{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items:start;
  margin-top: 14px;
}

/* Filters */
.filters{
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(12,18,27,.10);
  padding:16px;
}
.filter-head{
  margin-bottom:12px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(0,0,0,.06);
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}
.filter-head strong{ font-weight:950; }
.link{
  border:0; background:transparent;
  color: var(--muted);
  cursor:pointer;
  font-weight:800;
}
.group{
  border-top:0;
  margin-top:12px;
  padding-top:0;
  background: #fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding:12px;
}
.group .gtitle{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.2px;
  color: var(--muted);
  font-weight:950;
  text-transform: uppercase;
}

/* Категории списком */
.catList{ display:flex; flex-direction:column; gap:8px; }
.catItem{
  border:1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding:10px 12px;
  background:#fff;
  cursor:pointer;
  text-align:left;
  font-weight:900;
  color:var(--muted);
  transition:.12s transform, .12s background, .12s border-color;
}
.catItem:hover{ background:#fafbfc; color:var(--text); }
.catItem.active{
  color:var(--text);
  border-color: rgba(251,133,0,.45);
  background: linear-gradient(135deg, rgba(255,183,3,.18), rgba(251,133,0,.10));
  box-shadow: 0 0 0 4px var(--focus);
  transform: translateY(-1px);
}

.range{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.mini{
  border:1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding:10px 10px;
  background:#fff;
}
.mini input, .mini select{
  width:100%;
  border:0; outline:0;
  font-size:14px;
  background:transparent;
}
.mini:focus-within{
  border-color: rgba(251,133,0,.45);
  box-shadow: 0 0 0 4px var(--focus);
}

/* =========================
   CATALOG FILTERS — MINIMAL
   (flat, no "cabbage" layers)
   ========================= */

/* Panel = светлый фон для белой темы */
.catalog .filters{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: 18px;
}

/* Header */
.catalog .filters .filter-head{
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.catalog .filters .filter-head strong{
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
}
.catalog .filters .link{
  color: rgba(0,0,0,.60);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.catalog .filters .link:hover{ color: var(--accent); }

/* Groups = no inner cards */
.catalog .filters .group{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  margin-top: 0;
}
.catalog .filters .group + .group{
  border-top: 1px solid rgba(0,0,0,.08);
  margin-top: 12px;
  padding-top: 14px;
}
.catalog .filters .group .gtitle{
  color: rgba(0,0,0,.70);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

/* Category buttons = flat pills */
.catalog .filters .catItem{
  background: transparent;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  color: rgba(0,0,0,.85);
  box-shadow: none;
  transform: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}
.catalog .filters .catItem:hover{
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.20);
}
.catalog .filters .catItem.active{
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
  transform: none;
  color: #fff;
  font-weight: 700;
}

/* Price inputs = no extra wrapper layers */
.catalog .filters .mini{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.catalog .filters .mini input,
.catalog .filters .mini select{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.03);
  color: #1a1a1a;
  font-size: 14px;
}
.catalog .filters .mini input::placeholder{
  color: rgba(0,0,0,.40);
}
.catalog .filters .mini:focus-within{
  border-color: transparent;
  box-shadow: none;
}
.catalog .filters .mini input:focus,
.catalog .filters .mini select:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
  background: rgba(255,255,255,.05);
}

/* grid cards */
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

/* catalog: чуть уже (больше колонок) */
.catalogPage .grid{
  grid-template-columns: repeat(var(--catalog-cols), 1fr);
}

/* Блок новинок на главной - уже и по центру */
.home-new-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.home-new-grid .p {
  height: 420px;
}

.home-new-grid .img {
  height: 260px;
  aspect-ratio: auto;
}

/* партнёры (выбор альбома) */
.albumGrid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}
.albumCard{ height: 300px; }
.albumImg{ height: 210px; position:relative; }
.albumBadge{
  position:absolute;
  top:10px;
  left:10px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  letter-spacing:.3px;
  color:#0b0f14;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

/* card */
.p{
  border:1px solid var(--line);
  background: var(--card);
  /* no glow / no shadow */
  box-shadow: none;
  border-radius: 20px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height: 360px;
  transition: all var(--transition-base);
  position:relative;
  cursor: pointer;
}

/* catalog: длиннее карточки (высота регулируется переменной) */
.catalogPage .p{ height: var(--catalog-card-h); }
.p::before {
  /* removed glow layer */
  content: none;
}
.p:hover{
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.img{
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  background-color: #fafbfc;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,.35);
  font-size: 13px;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-slow);
}
.p:hover .img {
  transform: none;
}
.pinfo{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
  min-height: 0;
  position: relative;
  z-index: 2;
  background: var(--card);
  overflow: hidden;
}

/* Категория товара (оранжевая сверху) */
.pcategory{
  font-size:11px;
  font-weight:700;
  letter-spacing:0.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.pname{
  margin:0;
  font-weight:700;
  font-size:16px;
  line-height:1.4;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text);
  transition: color var(--transition-fast);
  flex-shrink: 0;
  position: relative;
  width: 100%;
}

.pname > span {
  display: inline-block;
  white-space: nowrap;
}

.pname.has-overflow {
  cursor: pointer;
}

.pname.has-overflow > span {
  padding-right: 100%;
}

.p:hover .pname {
  color: var(--accent2);
}

.pname.has-overflow:hover > span {
  animation: scroll-text 8s linear infinite;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.pprice{
  margin-top:0;
  font-weight:800;
  letter-spacing:.2px;
  font-size: 18px;
  color: var(--accent2);
  flex-shrink: 0;
}
.psizes{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  font-size:12px;
  font-weight:500;
  color: var(--muted);
  flex-shrink: 0;
}
.size-badge{
  display:inline-block;
  padding:3px 8px;
  border:1px solid var(--line);
  border-radius:6px;
  background: var(--card);
  color: var(--text);
  font-size:11px;
  font-weight:500;
}
.psub{
  margin-top:auto;
  color:var(--muted);
  font-size:13px;
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow:hidden;
}

/* Кнопка "Добавить в корзину" в карточке товара */
.add-to-cart-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  z-index: 10;
  position: relative;
  flex-shrink: 0;
}

.add-to-cart-btn:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* Состояние "В корзине" - серая кнопка */
.add-to-cart-btn.in-cart {
  background: #6b7280;
  border-color: #6b7280;
  cursor: default;
}

.add-to-cart-btn.in-cart:hover {
  background: #6b7280;
  border-color: #6b7280;
  transform: none;
  box-shadow: none;
}

.add-to-cart-btn svg {
  flex-shrink: 0;
}

/* NEW badge
.newBadge{
  position:absolute;
  top:10px;
  left:10px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  letter-spacing:.3px;
  color:#ffbb00;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.384), rgba(0, 0, 0, 0.185));
  border:1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
  z-index:3;
}*/

/* Footer */
footer{
  border-top:1px solid var(--line);
  margin-top: 22px;
  padding: 16px 0;
  color:var(--muted);
}
.footrow{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.footlinks{ display:flex; gap:10px; flex-wrap:wrap; }

/* Cart page */
.cartLayout{
  display:grid;
  grid-template-columns: 1fr 390px;
  gap:18px;
  align-items:start;
  margin-top: 16px;
}
.cardLite{
  border:1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding:14px;
}
.cartList{ display:flex; flex-direction:column; gap:12px; }
.cartItem{
  display:grid;
  grid-template-columns: 110px 1fr auto;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius: 18px;
  padding:12px;
  background: var(--card);
}
.cartThumb{
  height:90px;
  border-radius: 14px;
  border:1px solid var(--line);
  background:#f7f8fa;
  background-size:cover;
  background-position: 50% 15%;
  display:grid; place-items:center;
  color: rgba(0,0,0,.42);
  font-size:12px;
  text-align:center;
  padding:8px;
}
.cartTitle{ margin:0; font-weight:950; }
.cartMeta{ margin-top:4px; color:var(--muted); font-size:13px; }
.cartRight{ display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.qty{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--line);
  border-radius: 999px;
  padding:6px 8px;
}
.qty button{
  width:34px; height:34px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--card);
  cursor:pointer;
}
.qty input{
  width:42px;
  border:0; outline:0;
  text-align:center;
  font-weight:900;
}
.remove{
  border:1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:900;
  color:var(--muted);
}
.remove:hover{ background:#fafbfc; }
.sumRow{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.cartActions{ margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }

/* Product page + Lightbox (как было) */
.productPage{ max-width: 1240px; margin: 0 auto; }
.productCrumbs{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 8px 0 12px;
  flex-wrap:wrap;
}
.productGrid{
  display:grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0;
  align-items:start;
}
.pgCard{
  background:#fff;
  border:1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding:14px;
}

/* === Product page: gallery without background (minimal) === */
.pgCard.pgCardGallery{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
body.dark-theme .pgCard.pgCardGallery{
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Remove inner "panels" in gallery area */
.pgCard.pgCardGallery .pgMain{
  background: transparent;
  border: none;
  border-radius: 0;
}
.pgCard.pgCardGallery .pgThumbsWrap{
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Keep nice rounding only on the image itself */
.pgCard.pgCardGallery .pgMainImg{
  border-radius: 18px;
}

/* Tighten spacing a bit */
.pgCard.pgCardGallery .pgGallery{
  gap: 14px;
}
.pgMain{
  height: clamp(520px, 78vh, 860px);
  background: transparent;
  border:none;
  border-radius:0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: zoom-in;
}
.pgMainImg{
  width:100%;
  height:100%;
  object-fit: contain;
  border-radius: inherit;
}
.pgThumbsWrap{
  margin-top:12px;
  background: transparent;
  border:none;
  padding:0;
}
.pgThumbs{
  display:flex;
  gap:10px;
  margin-top: 12px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.pgThumbs::-webkit-scrollbar{ height:10px; }
.pgThumbs::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.14); border-radius: 999px; }
.pgThumb{
  width:72px;
  height:72px;
  border-radius: 14px;
  background: transparent 50% 0%/cover no-repeat;
  cursor:pointer;
  flex:0 0 auto;
  opacity:.6;
}
.pgThumb.isActive{
  outline:2px solid var(--accent);
  outline-offset:2px;
  opacity:1;
}
.pgTitleRow{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.pgTitle{ margin:0; font-size:22px; font-weight:950; letter-spacing:-.2px; }
.pgPrice{ margin-top:8px; font-size:20px; font-weight:950; }
.pgBlock{ margin-top:12px; }
.pgBlockTitle{
  font-weight:950;
  font-size:12px;
  letter-spacing:.3px;
  text-transform: uppercase;
  color:#3c4043;
  margin-bottom:8px;
}
.pgSpec{
  display:grid;
  gap:6px;
  color:#273040;
  background: rgba(255,183,3,.10);
  border:1px solid rgba(251,133,0,.20);
  border-radius: 18px;
  padding:12px;
}
.pgDesc{
  white-space:pre-wrap;
  line-height:1.45;
  color:#2b3442;
  background:#f8f9fb;
  border:1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding:12px;
  word-break: break-word;
}
/* Сворачиваемое описание */
.pgDesc.isCollapsed{
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.pgDesc.isCollapsed::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(248,249,251,0), rgba(248,249,251,1));
  pointer-events: none;
}
.pgDescToggle{
  display: none;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent2);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s ease, transform .12s ease;
}
.pgDescToggle:hover{
  background: rgba(251,133,0,.08);
  transform: translateY(-1px);
}
.pgDescToggle.isVisible{
  display: inline-block;
}
.pgFields{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.pgField label{
  display:block;
  margin-bottom:6px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.3px;
  color:#3c4043;
  text-transform:uppercase;
}
.pgField select{
  width:100%;
  border:1px solid #dcdcdc;
  border-radius: 14px;
  padding:10px 12px;
  background:#fff;
}
.pgField.isDisabled{ opacity:.55; }
.pgActions{
  margin-top:14px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.pgAdded{
  color:#1b7f2a;
  font-weight:900;
  opacity:0;
  transition: opacity .25s ease;
  padding: 8px 14px;
  background: rgba(27,127,42,.08);
  border-radius: 999px;
  font-size: 14px;
}
.pgAdded.isVisible{ opacity:1; }

.imgLB{
  position:fixed; inset:0;
  background: rgba(0,0,0,.65);
  display:none;
  align-items: center;
  justify-content: center;
  padding:18px;
  z-index: 99999;
}
.imgLB.isOpen{ display:flex; }
.imgLB__card{
  width:min(980px, 100%);
  max-height: 90vh;
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  position:relative;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
  margin: auto;
}
.imgLB__close{
  position:absolute;
  top:10px; right:12px;
  width:40px; height:40px;
  border-radius:999px;
  border:0;
  background:#f2f2f2;
  font-size:26px;
  cursor:pointer;
}
.imgLB__img{
  display:block;
  width:100%;
  height:auto;
  max-height: 82vh;
  object-fit: contain;
  background:#111;
}
.imgLB__hint{
  padding:10px 12px;
  font-size:12px;
  color:#444;
  background:#fafafa;
  border-top:1px solid #eee;
}

/* Similar products section */
.similarProducts{
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.similarProducts .section-title{
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 20px;
  color: var(--text);
}
.similarGrid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.similarGrid .p{
  height: 380px;
}
.similarGrid .img{
  height: 220px;
}

/* responsive */
@media (max-width: 1060px){
  .catalog{ grid-template-columns: 1fr; }
  .filters{ position:relative; top:auto; }
  .grid{ grid-template-columns: repeat(3, 1fr); }
  .catalogPage{ --catalog-cols: 3; }
  .albumGrid{ grid-template-columns: repeat(3, 1fr); }
  .cartLayout{ grid-template-columns: 1fr; }
  .productGrid{ grid-template-columns: 1fr; }
  .pgMain{ height: 420px; }
  .tiles .tile{ width: 240px; }
  .similarGrid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px){
  .tabs{ display:none; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .catalogPage{ --catalog-cols: 2; --catalog-card-h: 450px; }
  .albumGrid{ grid-template-columns: repeat(2, 1fr); }
  .filtersToggle{ display:inline-flex; }
  .filters{ display:none; }
  .filters.open{ display:block; }
  .pgFields{ grid-template-columns: 1fr; }
  .tilesWrap::before, .tilesWrap::after{ width: 26px; }
  .tiles .tile{ width: 220px; }
  .similarGrid{ grid-template-columns: repeat(2, 1fr); }
  .similarGrid .p{ height: 360px; }
  .similarGrid .img{ height: 200px; }
}


/* ===========================
   Табло набора альбомов
   =========================== */

.fillBoard{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.fillItem{
  --p: 0;
  --status: rgba(148,163,184,1);
  --statusSoft: rgba(148,163,184,.20);

  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
  border-radius: 22px;
  padding:14px 14px 12px;
  cursor:pointer;
  text-align:left;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  position:relative;
  overflow:hidden;
}

.fillItem::before{
  content:"";
  position:absolute; inset:-60px;
  background:
    radial-gradient(260px 160px at 18% 20%, var(--statusSoft), transparent 60%),
    radial-gradient(260px 160px at 90% 0%, rgba(255,183,3,.10), transparent 60%);
  pointer-events:none;
}

.fillItem:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0,0,0,.12);
}

.fillTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  position:relative;
}

.fillName{
  font-weight:950;
  letter-spacing:.1px;
  line-height:1.15;
  font-size:15px;
  margin:0;
}

.fillMeta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  min-width: 86px;
}

.fillPct{
  font-weight:950;
  font-size:14px;
}

.fillTag{
  font-size:12px;
  font-weight:900;
  color: #0b0f14;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.fillDot{
  width:10px; height:10px;
  border-radius:999px;
  background: var(--status);
  box-shadow: 0 0 0 4px var(--statusSoft);
}

.fillBar{
  margin-top:12px;
  position:relative;
}

.fillTrack{
  height: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.06);
  position:relative;
  overflow:hidden;
}

.fillFill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--status), rgba(255,255,255,.10));
  transition: width .65s cubic-bezier(.22, 1, .36, 1);
}

.fillKnob{
  position:absolute;
  top:50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(0,0,0,.14);
  box-shadow: 0 10px 18px rgba(12,18,27,.14);
  transition: left .65s cubic-bezier(.22, 1, .36, 1);
}

.fillTicks{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  font-size:11px;
  color: var(--muted);
  opacity:.85;
}

.fillNote{
  margin-top:10px;
  color: var(--muted);
  font-size:12px;
  position:relative;
}

/* статусы */
.fillItem.status-high{
  --status: rgba(22,163,74,1);
  --statusSoft: rgba(22,163,74,.18);
}
.fillItem.status-mid{
  --status: rgba(245,158,11,1);
  --statusSoft: rgba(245,158,11,.18);
}
.fillItem.status-low{
  --status: rgba(148,163,184,1);
  --statusSoft: rgba(148,163,184,.20);
}

/* анимация появления прогресса */
.fillBoard.isReady .fillFill{ width: calc(var(--p) * 1%); }
.fillBoard.isReady .fillKnob{ left: calc(var(--p) * 1%); }

@media (prefers-reduced-motion: reduce){
  .fillFill, .fillKnob{ transition:none; }
}

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


/* ===========================
   ТОП-3 + раскрытие всех альбомов
   =========================== */

.nearWrap{
  display:flex;
  justify-content:center;
  margin-top: 8px;
}

.nearCard{
  width: min(920px, 100%);
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 14px;
  overflow:hidden;
  position:relative;
}

.nearCard::before{
  content:"";
  position:absolute; inset:-70px;
  background:
    radial-gradient(280px 180px at 18% 18%, rgba(255,183,3,.22), transparent 60%),
    radial-gradient(340px 200px at 88% 0%, rgba(251,133,0,.14), transparent 60%);
  pointer-events:none;
  opacity:.9;
}

.nearHead{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

.nearTitle{
  margin:0;
  font-size:18px;
  font-weight:950;
  letter-spacing:.1px;
}
.nearSub{
  margin:6px 0 0;
  color: var(--muted);
  font-size:13px;
}

/* список топ-3 */
.nearList{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.nearRow{
  border:1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background:#fff;
  padding:12px;
  cursor:pointer;
  transition:.14s transform, .14s box-shadow, .14s border-color;
}
.nearRow:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0,0,0,.12);
}

.nearRowTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.nearName{
  font-weight:950;
  line-height:1.15;
}

.nearRight{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.nearPct{
  font-weight:950;
}

/* ========================================
   СЕКЦИИ: Преимущества и Статистика
   ======================================== */

/* Секция преимуществ */
.features-section {
  margin: 48px 0 0;
  padding: 32px 0;
}

.features-section .section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Секция отзывов */
.testimonials-section {
  margin-top: 48px;
  padding: 48px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 72px;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
  opacity: 0.5;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--text);
}

.testimonial-role {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.testimonial-rating {
  color: var(--accent);
  font-size: 16px;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all var(--transition-base);
  z-index: 100;
}

.fab:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.fab:active {
  transform: scale(0.95);
}

.fabBadge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.chatWidget {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 340px;
  max-width: calc(100vw - 48px);
  height: 420px;
  max-height: calc(100vh - 140px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-hover);
  z-index: 101;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.dark-theme .chatWidget {
  background: rgba(26,26,26,0.96);
  border-color: rgba(255,255,255,0.12);
}

.chatHead {
  padding: 12px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

body.dark-theme .chatHead { border-bottom-color: rgba(255,255,255,0.12); }

.chatTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
}

.chatDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245,158,11,.18);
}

.chatClose {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

body.dark-theme .chatClose { border-color: rgba(255,255,255,0.12); }

.chatBody {
  flex: 1;
  padding: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatMsg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.03);
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

body.dark-theme .chatMsg {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.chatMsg.me {
  margin-left: auto;
  background: rgba(245,158,11,0.16);
  border-color: rgba(245,158,11,0.28);
}

.chatMeta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.chatForm {
  padding: 10px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
}

body.dark-theme .chatForm { border-top-color: rgba(255,255,255,0.12); }

.chatInput {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: transparent;
  color: var(--text);
}

body.dark-theme .chatInput { border-color: rgba(255,255,255,0.12); }

.chatSend {
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

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

.chatHint {
  padding: 0 12px 12px;
  font-size: 12px;
  color: var(--muted);
}

/* Улучшенный footer */
.footer-enhanced {
  margin-top: 64px;
  padding: 48px 0 24px;
  background: #1a1a1a;
  color: #e5e5e5;
  border-top: 1px solid var(--line);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
}

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

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.socials {
  display: flex;
  gap: 12px;
}

.social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-weight: 700;
  font-size: 14px;
}

.social:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

/* Статистика */
.stats-section {
  margin-top: 48px;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  transition: transform var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

/* Улучшенная адаптивность */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-inner {
    padding: 32px 20px;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .fab {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-number {
    font-size: 36px;
  }
}

.nearDot{
  width:10px; height:10px;
  border-radius:999px;
  background: var(--status);
  box-shadow: 0 0 0 4px var(--statusSoft);
}

.nearTrack{
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.06);
  overflow:hidden;
}

.nearFill{
  height:100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--status), rgba(255,255,255,.12));
  transition: width .55s cubic-bezier(.22, 1, .36, 1);
}

.nearHint{
  margin-top:8px;
  font-size:12px;
  color: var(--muted);
}

/* details раскрытие */
.nearDetails{
  position:relative;
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 10px;
}

.nearSummary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  user-select:none;
  font-weight:950;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  transition:.12s background;
}
.nearSummary:hover{ background:#fafbfc; }

.nearSummary::-webkit-details-marker{ display:none; }

.nearArrow{
  font-size:22px;
  line-height:1;
  transform: rotate(90deg);
  transition: transform .18s ease;
  opacity:.8;
}

.nearDetails[open] .nearArrow{
  transform: rotate(-90deg);
}

.nearAll{
  margin-top: 12px;
}


.nearRow.isReady .nearFill{ width: calc(var(--p) * 1%); }

@media (max-width: 720px){
  .nearCard{ padding: 12px; }
}

/* ---------------- pagination (catalog) ---------------- */
.catalog-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:10px 0 14px;flex-wrap:wrap;}
.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:1;min-width:300px;}
.pager .pagerInfo{color:var(--muted);font-size:13px;white-space:nowrap;}
.pager .pagerBtns{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
.pager .pbtn{border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:12px;padding:8px 12px;cursor:pointer;box-shadow:var(--shadow-soft);transition:transform .12s ease, border-color .12s ease;}
.pager .pbtn:hover{transform:translateY(-1px);}
.pager .pbtn.active{border-color:var(--accent2);}
.pager .pbtn:disabled{opacity:.5;cursor:not-allowed;transform:none;}

.sort-wrapper{display:flex;align-items:center;gap:8px;white-space:nowrap;}
.sort-label{color:var(--muted);font-size:13px;font-weight:500;}
.sort-select{border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:8px;padding:8px 12px;cursor:pointer;box-shadow:var(--shadow-soft);transition:border-color .12s ease;font-size:13px;}
.sort-select:hover{border-color:var(--accent2);}
.sort-select:focus{outline:none;border-color:var(--accent2);box-shadow:0 0 0 3px var(--focus);}

@media (max-width: 720px){
  .catalog-controls{flex-direction:column;align-items:stretch;}
  .pager{flex-direction:column;align-items:stretch;min-width:auto;}
  .pager .pagerBtns{justify-content:center;}
  .sort-wrapper{justify-content:space-between;}
  .sort-select{flex:1;}
}

/* ===========================
   Форма оформления заказа
   =========================== */
.checkoutForm{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkoutTitle{
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 950;
}

.authStatus{
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  display: none;
}
.authStatus.show{ display: block; }
.authStatus.logged{
  background: rgba(22,163,74,.12);
  border: 1px solid rgba(22,163,74,.25);
  color: #166534;
}
.authStatus.guest{
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.25);
  color: #92400e;
}

.formField{
  margin-bottom: 12px;
}

.formField label{
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .3px;
  color: #697781;
  text-transform: uppercase;
}

.formField input,
.formField textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.formField input:focus,
.formField textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}

.formField textarea{
  resize: vertical;
  min-height: 60px;
}

.checkoutError{
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.25);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}

.checkoutSuccess{
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22,163,74,.12);
  border: 1px solid rgba(22,163,74,.25);
  color: #166534;
  font-size: 13px;
  font-weight: 600;
}

#checkoutBtn:disabled{
  opacity: 0.7;
  cursor: not-allowed;
}

/* Форма оформления заказа — тёмная тема */
body.dark-theme .checkoutForm{
  border-top-color: rgba(255,255,255,.12);
}
body.dark-theme .checkoutTitle{
  color: #fff;
}
body.dark-theme .formField label{
  color: rgba(255,255,255,.70);
}
body.dark-theme .formField input,
body.dark-theme .formField textarea{
  background: var(--card);
  color: #fff;
  border-color: rgba(255,255,255,.14);
}
body.dark-theme .formField input:focus,
body.dark-theme .formField textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}
body.dark-theme .formField input::placeholder,
body.dark-theme .formField textarea::placeholder{
  color: rgba(255,255,255,.40);
}


/* Top links: in light theme text uses --text; in dark keep maximum contrast */
body.dark-theme .topLinks .topLink,
body.dark-theme .topLinks .topLink span{
  color: #fff;
}


.miniDotsHost{ position: absolute; inset: 0; pointer-events: none; }
.miniDotsHost .miniDots{ pointer-events: auto; }



/* --- Product page: dark theme card background --- */
body.dark-theme .pgCard{
  background: var(--bg);
  border-color: rgba(255,255,255,.12);
}
body.dark-theme .pgMain{
  border-color: rgba(255,255,255,.14);
  background-color: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
}

/* --- Product page: dark theme fields + desc (fix white backgrounds) --- */
body.dark-theme .pgBlockTitle{ color: rgba(255,255,255,.75); }
body.dark-theme .pgField label{ color: rgba(255,255,255,.75); }
body.dark-theme .pgField select{
  background: var(--bg);
  color:#fff;
  border-color: rgba(255,255,255,.16);
}
body.dark-theme .pgField select:focus{
  outline: none;
  border-color: rgba(251,133,0,.55);
  box-shadow: 0 0 0 4px rgba(251,133,0,.14);
}
body.dark-theme .pgSpec{
  color:#fff;
  background: rgba(251,133,0,.10);
  border-color: rgba(251,133,0,.26);
}
body.dark-theme .pgDesc{
  color: rgba(255,255,255,.90);
  background: var(--bg);
  border-color: rgba(255,255,255,.12);
}
body.dark-theme .pgDesc.isCollapsed::after{
  background: linear-gradient(to bottom, rgba(11,11,12,0), rgba(11,11,12,1));
}
body.dark-theme .pgDescToggle{
  background: var(--bg);
  border-color: rgba(255,255,255,.14);
  color: var(--accent2);
}
body.dark-theme .pgDescToggle:hover{
  background: rgba(251,133,0,.12);
}
body.dark-theme .pgThumbsWrap{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
body.dark-theme .pgThumb{
  border-color: rgba(255,255,255,.14);
  background-color: rgba(255,255,255,.08);
}
body.dark-theme .pgThumbs::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
}

/* Make product page look less "multi-layered" (subtle internal blocks) */
.pgSpec,
.pgDesc{
  box-shadow: none;
}

/* --- Product page: thumbnails column on the left --- */
.pgGallery{
  display:flex;
  gap:14px;
  background: transparent;
  padding:0;
  border:none;
}
.pgThumbsWrap{
  margin-top:0;
  width:96px;
  /*
    Fix: the left edge of thumbnails could look "cut" because the first thumb
    sat flush to the container edge (and the active outline/rounded corner had
    no breathing room). Add a small left inset.
  */
  /* extra left breathing room so active outline isn't clipped */
  padding:10px 10px 10px 16px;
  flex:0 0 auto;
  overflow:visible;
}
.pgThumbs{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:0;
  overflow-y:auto;
  overflow-x:visible;
  padding-right: 10px;
  /* keep first thumb away from the edge (outline + outline-offset) */
  padding-left: 8px;
  max-height: clamp(520px, 78vh, 860px);
  -webkit-overflow-scrolling: touch;
}
.pgThumbs::-webkit-scrollbar{ width:10px; height:auto; }
.pgThumb{ width:72px; height:72px; }

@media (max-width: 720px){
  .pgGallery{ flex-direction:column; }
  .pgThumbsWrap{ width:auto; }
  .pgThumbs{
    flex-direction:row;
    overflow-x:auto;
    overflow-y:visible;
    max-height:none;
    padding-right: 0;
    padding-bottom: 2px;
  }
  .pgThumbs::-webkit-scrollbar{ height:10px; width:auto; }
}

/* --- Catalog: dark theme filter + controls backgrounds --- */
body.dark-theme .filters{
  background:#0b0b0c;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.40);
}
body.dark-theme .filter-head{
  border-bottom-color: rgba(255,255,255,.10);
}
body.dark-theme .filters .gtitle,
body.dark-theme .filters strong{
  color:#fff;
}
body.dark-theme .filters .link{
  color: rgba(255,255,255,.78);
}
body.dark-theme .filters input,
body.dark-theme .filters select{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color:#fff;
}
body.dark-theme .filters input::placeholder{ color: rgba(255,255,255,.50); }

/* Catalog controls container becomes dark, but labels stay white */
body.dark-theme .catalog-controls{
  background: var(--bg);
  padding:10px 12px;
}
body.dark-theme .catalog-controls .crumbs{
  color:#fff;
}
body.dark-theme .catalog-controls select{
  background: #1a1a1a;
  border-color: rgba(255,255,255,.14);
  color:#fff;
}
body.dark-theme .catalog-controls-min .sort select{
  border-color: transparent;
}


/* --- Catalog/Topbar: keep logo visible on all widths --- */
.logo{ flex:0 0 auto; }
@media (max-width: 980px){
  .topbar-row{ flex-wrap:wrap; }
  .tabs{ flex: 1 1 360px; min-width: 260px; }
  .search{ flex: 1 1 360px; min-width: 220px; }
}


/* =========================
   DARK THEME – FILTER PANEL
========================= */

.theme-dark .filters,
.theme-dark .filters-card,
.theme-dark .filter-box {
  background: #111 !important;
  color: #fff;
  border-color: rgba(255,255,255,0.08);
}

/* кнопки / пункты фильтра */
.theme-dark .filters button,
.theme-dark .filters .filter-item,
.theme-dark .filters .filter-option {
  background: #1a1a1a;
  color: #fff;
  border-color: rgba(255,255,255,0.1);
}

.theme-dark .filters .filter-item.active {
  background: #222;
  border-color: #ff9a3c;
  color: #fff;
}

/* =========================
   DARK THEME – ALBUM CHIP
========================= */

.theme-dark .album-chip,
.theme-dark .album-pill,
.theme-dark .catalog-album {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15);
}

/* крестик в "Альбом: Натали" */
.theme-dark .album-chip button,
.theme-dark .album-pill button {
  color: #fff;
  opacity: 0.7;
}

.theme-dark .album-chip button:hover {
  opacity: 1;
}

/* =========================
   DARK THEME – CATALOG CONTROLS
========================= */

.theme-dark .catalog-controls {
  background: #111;
  border-color: rgba(255,255,255,0.1);
}

/* названия (Сортировка, На странице) */
.theme-dark .catalog-controls label,
.theme-dark .catalog-controls .label {
  color: #fff;
}

/* селекты */
.theme-dark .catalog-controls select {
  background: #1a1a1a;
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}
.theme-dark .catalog-controls-min .sort select {
  border-color: transparent;
}


/* === FIX: dark theme filter groups + pills (catalog) === */
body.dark-theme .filters .group{
  background:#1a1a1a;
  
}
body.dark-theme .filters .group .gtitle{
  color: rgba(255,255,255,.70);
}

body.dark-theme .catItem{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
}
body.dark-theme .catItem:hover{
  background: rgba(255,255,255,.10);
  color:#fff;
}
body.dark-theme .catItem.active{
  background: #ff8c1a;
  color:#111;
  border-color: rgba(255,140,26,.90);
  box-shadow: 0 0 0 4px rgba(255,140,26,.22);
}

body.dark-theme .pill{
  background:#111214;
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
}
body.dark-theme .pill button{
  color: rgba(255,255,255,.75);
}
body.dark-theme .pill button:hover{
  color:#fff;
}

/* Dark background for catalog controls block itself (labels stay white) */
body.dark-theme .catalog-controls{
  background: var(--bg);
  padding:10px 12px;
}
body.dark-theme .catalog-controls label,
body.dark-theme .catalog-controls .muted,
body.dark-theme .catalog-controls .small{
  color:#fff;
}

/* =========================
   FINAL OVERRIDE: keep catalog filters minimal in DARK THEME
   (prevents old "layered" rules from overriding earlier block)
   ========================= */
body.dark-theme .catalog .filters{
  background: #1a1a1a;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
body.dark-theme .catalog .filters .filter-head strong{
  color: #fff;
}
body.dark-theme .catalog .filters .link{
  color: rgba(255,255,255,.60);
}
body.dark-theme .catalog .filters .link:hover{
  color: var(--accent);
}
body.dark-theme .catalog .filters .group .gtitle{
  color: rgba(255,255,255,.70);
}
body.dark-theme .catalog .filters .catItem{
  background: transparent;
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}
body.dark-theme .catalog .filters .catItem:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.20);
}
body.dark-theme .catalog .filters .catItem.active{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.dark-theme .catalog .filters .mini input,
body.dark-theme .catalog .filters .mini select{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
body.dark-theme .catalog .filters .mini input::placeholder{
  color: rgba(255,255,255,.40);
}
body.dark-theme .catalog .filters .mini input:focus,
body.dark-theme .catalog .filters .mini select:focus{
  background: rgba(255,255,255,.05);
  border-color: var(--accent);
}



/* ===== Catalog controls: minimal (only sorting) ===== */
.catalog-controls-min{
  justify-content:flex-end;
  gap:8px;
}
.catalog-controls-min .sort{ gap:8px; }
.catalog-controls-min .sort select{
  background: var(--bg);
  color: var(--text);
  border: 1px solid transparent;
  box-shadow: none;
}
body.dark-theme .catalog-controls-min .sort select{
  background: rgba(255,255,255,.06);
  border-color: transparent;
}



/* ============================
   Home HERO v3 (AI design integration)
   ============================ */

.topbar-glass{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
body.dark-theme .topbar-glass{
  background: rgba(26,26,26,.70);
  border-bottom-color: rgba(255,255,255,.08);
}

.topbar-row-v3{ gap: 14px; }

.logo-v3{
  display:flex; align-items:center; gap:10px;
  font-weight: 800;
  letter-spacing: .4px;
}
.logoMarkWrap{
  width: 40px; height: 40px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--accent), rgba(249,115,22,.55));
  box-shadow: 0 10px 24px rgba(249,115,22,.20);
  overflow:hidden;
}
.logo-v3 .logoMark{ width: 22px; height: 22px; filter: brightness(0) invert(1); opacity:.95; }
.logoText{ display:none; }
@media (min-width: 520px){ .logoText{ display:inline; } }

.topLinks-v3{ display:none; gap:8px; }
@media (min-width: 980px){ .topLinks-v3{ display:flex; } }

.topLinks-v3 .topLink{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.04);
  font-weight: 600;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
body.dark-theme .topLinks-v3 .topLink{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.06);
}
.topLinks-v3 .topLink:hover{ transform: translateY(-1px); background: rgba(0,0,0,.06); }
body.dark-theme .topLinks-v3 .topLink:hover{ background: rgba(255,255,255,.08); }

.topMenuBtn-v3{
  border-radius: 999px;
  width: 44px; height: 44px;
  display:flex; align-items:center; justify-content:center;
}

.search-v3{
  flex: 1;
  max-width: 740px;
  position: relative;
  border-radius: 999px;
  padding-left: 40px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.04);
}
body.dark-theme .search-v3{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.06);
}
.search-v3 input{
  width:100%;
  background: transparent;
  padding: 12px 14px;
  border: 0;
  outline: none;
  color: var(--text);
}
.searchIcon{
  position:absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  font-size: 16px;
}
.actions-v3{ gap: 10px; }
.theme-toggle-v3, .iconbtn-v3{
  width: 44px; height: 44px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
}
.iconbtn-v3{ gap:8px; padding:0 14px; width:auto; }
.badge-v3{ margin-left:6px; }

/* HERO */
.heroV3{
  margin-top: 18px;
  border-radius: 28px;
  overflow: hidden;

}
body:not(.dark-theme) .heroV3{
  background: transparent;
  border-color: rgba(0,0,0,.06);
}

.heroV3-inner{ padding: 28px; }
@media (min-width: 900px){ .heroV3-inner{ padding: 42px; } }

.heroV3-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  min-height: 620px;
}
@media (min-width: 980px){
  .heroV3-grid{ grid-template-columns: 7fr 5fr; gap: 34px; }
}

.heroBadge{
  display:inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.22);
}
.heroTitle{
  margin: 14px 0 0;
  font-size: clamp(36px, 5vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #fff;
}
body:not(.dark-theme) .heroTitle{ color: #0b0b0b; }

.heroTitleAccent{
  background: linear-gradient(90deg, var(--accent), #ffb15c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroLead{
  margin-top: 14px;
  max-width: 660px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
}
body:not(.dark-theme) .heroLead{ color: rgba(0,0,0,.60); }

.heroActions{ margin-top: 18px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; }

.btnV3{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.10);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  user-select:none;
}
.btnV3.primary{
  background: var(--accent);
  color:#fff;
  border-color: rgba(0,0,0,.10);
}
.btnV3.primary:hover{ transform: translateY(-1px); background: var(--accent-hover); }
.btnV3.ghost{
  background: rgba(255,255,255,.06);
  color:#fff;
}
body:not(.dark-theme) .btnV3.ghost{
  background: rgba(0,0,0,.04);
  color:#111;
  border-color: rgba(0,0,0,.08);
}
.btnV3.ghost:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
body:not(.dark-theme) .btnV3.ghost:hover{ background: rgba(0,0,0,.06); }

.btnV3.wide{ width: 100%; }
.btnV3.danger{
  width: 46px; height: 46px; padding: 0;
  border-radius: 14px;
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.22);
  color: #ef4444;
}
.btnV3.danger:hover{ background: rgba(239,68,68,.18); transform: translateY(-1px); }

.heroAccount{ margin-top: 22px; max-width: 640px; }

.accCard{
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
body:not(.dark-theme) .accCard{
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.08);
}
.accHead{ display:flex; gap:14px; align-items:center; }
.accIcon{
  width: 46px; height: 46px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  color: #22c55e;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.22);
}
.accIcon.ok{ color:#22c55e; }
.accKicker{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
}
body:not(.dark-theme) .accKicker{ color: rgba(0,0,0,.55); }
.accTitle{ font-size: 18px; font-weight: 900; color:#fff; }
body:not(.dark-theme) .accTitle{ color:#111; }
.accUser{ color: var(--accent); }

.accSub{ margin: 10px 0 14px; color: rgba(255,255,255,.72); }
body:not(.dark-theme) .accSub{ color: rgba(0,0,0,.62); }

.accForm{ display:flex; flex-direction:column; gap: 10px; }
.accField{ display:flex; flex-direction:column; gap:6px; }
.accField span{ font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65); }
body:not(.dark-theme) .accField span{ color: rgba(0,0,0,.60); }
.accField input{
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
body:not(.dark-theme) .accField input{
  background: rgba(255,255,255,.85);
  border-color: rgba(0,0,0,.10);
  color: #111;
}
.accField input:focus{
  outline:none;
  border-color: rgba(249,115,22,.55);
  box-shadow: 0 0 0 4px rgba(249,115,22,.18);
}

.accMsg{ display:none; margin-top: 6px; font-size: 13px; font-weight: 700; }
.accMsg.err{ color: #f87171; }
.accMsg.ok{ color: #34d399; }
.accNote{ margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.65); }
body:not(.dark-theme) .accNote{ color: rgba(0,0,0,.55); }
.accNote a{ color: var(--accent); font-weight: 800; }

.accLogged .accSub{ display:none; }
.accActions{ margin-top: 14px; display:flex; gap:10px; align-items:center; }
.accActions .btnV3.ghost{ flex: 1; }

/* right side floating cards */
.heroV3-right{ position: relative; height: 520px; }
@media (min-width: 980px){ .heroV3-right{ height: 640px; } }

.floatCard{
  position:absolute;
  width: 220px;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: none;
  transform: translateZ(0);
  animation: float 6s ease-in-out infinite;
}
body.dark-theme .floatCard{
  background: rgba(30,30,30,.92);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(0,0,0,.50);
}
.floatCard .fcImg{
  height: 130px;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,.06);
  margin-bottom: 10px;
}
body.dark-theme .floatCard .fcImg{ background: rgba(255,255,255,.06); }
.fcImg img{ width:100%; height:100%; object-fit: cover; display:block; }

.fcBrand{ font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .10em; margin-bottom: 6px; }
.brand-green{ color: #22c55e; }
.brand-orange{ color: #fb923c; }
.brand-pink{ color: #ec4899; }

.fcName{ font-size: 13px; font-weight: 800; line-height: 1.25; color: #111; }
body.dark-theme .fcName{ color:#fff; }

.fcPrice{ margin-top: 8px; font-weight: 900; color: var(--accent); }
.fcPrice.big{ font-size: 18px; }
.fcRow{ margin-top: 8px; display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.fcOld{ font-size: 12px; opacity: .55; text-decoration: line-through; }

.floatCard.c1{ top: 10px; right: 28px; transform: rotate(3deg); animation-duration: 6.2s; }
.floatCard.c2{ top: 45%; left: -10px; transform: translateY(-50%) rotate(-6deg); width: 250px; animation-duration: 4.4s; }
.floatCard.c3{ bottom: 10px; right: 0; transform: rotate(2deg); animation-duration: 3.4s; }

.heroBubble{
  position:absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 150px; height: 150px;
  border-radius: 999px;
  background: rgba(249,115,22,.95);
  border: 4px solid rgba(255,255,255,.92);
  box-shadow: none;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#fff;
  text-align:center;
}
body.dark-theme .heroBubble{ border-color: rgba(26,26,26,.92); }
.hbBig{ font-size: 34px; font-weight: 1000; line-height: 1; }
.hbSmall{ margin-top: 6px; font-size: 11px; letter-spacing:.12em; text-transform: uppercase; font-weight: 900; opacity: .95; }

@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}

/* mobile: hide floating scene if too tight */
@media (max-width: 560px){
  .heroV3-grid{ min-height: unset; }
  .heroV3-right{ display:none; }
}


/* catalog: segmented buttons (Men/Women/Kids) */
.topLink.men .topLinkIcon,
.topLink.women .topLinkIcon,
.topLink.kids .topLinkIcon{ display:none; }

.topLink.men,
.topLink.women,
.topLink.kids{ gap: 0; padding-left: 16px; padding-right: 16px; }

.topLink.isActive{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.topLink.isActive::before{ display:none; }


/* === Product page: make gallery larger & remove empty gutter between gallery and info === */
.productGrid{ align-items: start; }
.pgCard.pgCardGallery{ margin-right: 0; }

/* Keep a subtle separation without empty background strip */
.productGrid > .pgCard:not(.pgCardGallery){ margin-left: 14px; }

@media (max-width: 980px){
  .productGrid{ grid-template-columns: 1fr; gap: 14px; }
  .productGrid > .pgCard:not(.pgCardGallery){ margin-left: 0; }
}


/* --- Home: "Новинки" hover accent --- */
#homeNewGrid .p{
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
#homeNewGrid .p:hover{
  transform: translateY(-2px);
  border-color: rgba(245,158,11,.55);
  box-shadow: 0 10px 28px rgba(245,158,11,.18);
}
body.dark-theme #homeNewGrid .p:hover{
  box-shadow: 0 12px 34px rgba(245,158,11,.22);
}


/* Failsafe: catalog always shows product title */
.catalogPage .pname{ display:-webkit-box; }


/* Новинки: оранжевый акцент при наведении */
.home-new-grid .p{
  position: relative;
}
.home-new-grid .p:hover{
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(245,158,11,.35);
}
.home-new-grid .p:hover .pname{
  color: var(--accent);
}
.home-new-grid .p:hover .pprice{
  color: var(--accent);
}
.home-new-grid .p::after{
  content:"";
  position:absolute;
  left:12px; right:12px;
  bottom:12px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,.95), transparent);
  opacity:0;
  transform: translateY(4px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  pointer-events:none;
}
.home-new-grid .p:hover::after{
  opacity:1;
  transform: translateY(0);
}


/* header icons */
.icon-svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
  stroke: #000;
  transition: stroke 0.2s ease;
}

body.dark-theme .icon-svg {
  stroke: #fff;
}

.iconbtn,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}



/* ===== FIX: ordersList dark theme ===== */

.ordersList {
  background: #ffffff;
}

html.dark .ordersList {
  background: #1a1a1a;
}

html.dark .orderCard {
  background: #202020;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

html.dark .orderMeta,
html.dark .orderDate,
html.dark .orderInfo {
  color: #9ca3af;
}


/* ===== Кнопка "Смотреть все товары" в блоке Новинки ===== */
.seeAllCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(255,183,3,0.10));
  border: 2px dashed rgba(245,158,11,0.35);
  border-radius: 16px;
  padding: 24px 16px;
  min-height: 280px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.seeAllCard:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(255,183,3,0.20));
  border-color: rgba(245,158,11,0.65);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,158,11,0.18);
}

.seeAllCard .pImg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245,158,11,0.12);
  color: rgba(245,158,11,1);
}

.seeAllCard .pImg svg {
  width: 36px;
  height: 36px;
}

.seeAllCard .pName {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
}

.seeAllCard .pCategory {
  font-size: 13px;
  color: var(--muted);
}

.seeAllCard:hover .pName {
  color: var(--accent);
}

/* Тёмная тема */
body.dark-theme .seeAllCard {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(255,183,3,0.08));
  border-color: rgba(245,158,11,0.45);
}

body.dark-theme .seeAllCard:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.20), rgba(255,183,3,0.15));
  border-color: rgba(245,158,11,0.75);
  box-shadow: 0 10px 28px rgba(245,158,11,0.25);
}

body.dark-theme .seeAllCard .pImg {
  background: rgba(245,158,11,0.18);
}


/* ===== Кнопка "Наверх" ===== */
.scrollToTop {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all var(--transition-base);
  z-index: 100;
}

.scrollToTop.isVisible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scrollToTop:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.scrollToTop:active {
  transform: scale(0.95);
}

.scrollToTop svg {
  width: 24px;
  height: 24px;
}

/* Тёмная тема */
body.dark-theme .scrollToTop {
  border-color: #f97316;
  color: #f97316;
}

body.dark-theme .scrollToTop:hover {
  background: #f97316;
  color: #fff;
}


/* ===== FIXED CATALOG LAYOUT ===== */
.catalog {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  width: 100%;
}

.catalog > section {
  min-width: 0;
  width: 100%;
}

.grid {
  width: 100%;
  min-height: 400px;
}

/* ===== EMPTY STATE ===== */
.catalog-empty {
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.catalog-empty.hidden {
  display: none;
}

.empty-box {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 24px;
  margin-top: 10px;
}

/* ===== SKELETON LOADING ===== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(var(--catalog-cols), minmax(0, 1fr));
  gap: var(--gap);
}

.skeleton-card {
  height: var(--catalog-card-h);
  border-radius: var(--radius);
  background: linear-gradient(90deg,#eee 25%,#ddd 37%,#eee 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}


/* FIX: prevent empty skeleton space */
#skeletonGrid {
  display: none;
}

/* FIX: remove extra vertical gap */
.catalog > section {
  display: block;
}

.section-head {
  margin-bottom: 10px;
}

.catalog-controls {
  margin-bottom: 10px;
}

.grid {
  margin-top: 0;
}
