/* ═══════════════════════════════════════
   MAISON DE LUXE — style.css
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

/* ── RESET & VARS ── */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --gold-dark: #9A7A45;
  --dark: #0C0B09;
  --dark2: #161410;
  --cream: #F5F0E8;
  --cream2: #EDE7DC;
  --text: #1A1814;
  --muted: #8A8070;
  --border: rgba(201,169,110,0.2);
  --border2: rgba(201,169,110,0.4);
  --success: #3D6B4E;
  --tr: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html, body { height: 100%; background: #0C0B09; overflow: hidden; }

/* ── APP SHELL ── */
#app {
  font-family: 'Montserrat', sans-serif;
  width: 390px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#app[data-product-opening="true"] .product-card,
#app[data-product-opening="true"] .catalog-card {
  pointer-events: none;
  opacity: 0.62;
  transform: none !important;
}

#app[data-product-opening="true"] .product-card .add-btn,
#app[data-product-opening="true"] .product-card .fav-btn,
#app[data-product-opening="true"] .catalog-card .add-btn,
#app[data-product-opening="true"] .catalog-card .fav-btn {
  pointer-events: none;
}

/* ── SCREENS ── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(28px);
  bottom: 0;
}
.screen.active { opacity: 1; pointer-events: all; transform: translateX(0); }
.screen.exit   { opacity: 0; transform: translateX(-28px); }
.screen.slide-right        { transform: translateX(100%); }
.screen.slide-right.active { transform: translateX(0); }
.screen.slide-right.exit   { transform: translateX(100%); }

#product-opening-overlay {
  position: absolute;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 11, 9, 0.18);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

#product-opening-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.product-opening-sheet {
  min-width: 220px;
  max-width: 280px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(12, 11, 9, 0.9);
  border: 1px solid rgba(201, 169, 110, 0.18);
  box-shadow: 0 18px 44px rgba(12, 11, 9, 0.28);
  color: #fff;
  text-align: center;
}

.product-opening-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, 0.2);
  border-top-color: var(--gold);
  animation: product-opening-spin 0.75s linear infinite;
}

.product-opening-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.product-opening-subtitle {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

#product-opening-overlay.is-slow .product-opening-sheet {
  border-color: rgba(201, 169, 110, 0.28);
}

@keyframes product-opening-spin {
  to { transform: rotate(360deg); }
}

/* ── SCROLL AREA ── */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* Отступ снизу на главных экранах — чтобы контент не прятался за bottom-nav */
#screen-home .scroll-area,
#screen-catalog .scroll-area,
#screen-cart .scroll-area,
#screen-wishlist .scroll-area,
#screen-profile .scroll-area {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

#screen-home.is-loading-gate .scroll-area {
  opacity: 0;
  pointer-events: none;
}

#screen-home.is-loading-gate::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 24;
  background: var(--cream);
  pointer-events: all;
}

#screen-home.is-loading-gate::before {
  content: 'Загружаем коллекцию';
  position: absolute;
  left: 50%;
  top: calc(42% + 102px);
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

#screen-home.is-loading-gate .home-ready-logo,
#screen-home.is-loading-gate .home-ready-orbit {
  display: flex;
}

.home-ready-logo {
  display: none;
  position: absolute;
  width: 124px;
  height: 124px;
  left: 50%;
  top: 42%;
  z-index: 25;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.62), rgba(255,255,255,0.2) 58%, rgba(201,169,110,0.05)),
    var(--cream2);
  box-shadow: 0 18px 42px rgba(30, 24, 16, 0.08);
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--gold);
  pointer-events: none;
}

.home-ready-logo span {
  position: relative;
  z-index: 1;
}

.home-ready-logo img {
  position: absolute;
  inset: 12px;
  z-index: 2;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  border-radius: 50%;
}

.home-ready-orbit {
  display: none;
  position: absolute;
  width: 164px;
  height: 164px;
  left: 50%;
  top: 42%;
  z-index: 26;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-ready-orbit > div {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.46);
  animation: spin 1.2s linear infinite;
}

.home-ready-orbit > div::before {
  content: '';
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.16);
}

.home-ready-orbit > div::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(201,169,110,0.7);
}

/* ══════════════════════════════
   SPLASH
══════════════════════════════ */
#screen-splash {
  background: linear-gradient(160deg, #C8400A 0%, #8B1A00 60%, #3D0A00 100%);
  align-items: center;
  justify-content: center;
  transform: none;
}
#screen-splash.active { transform: none; }

/* Floating brand logos */
.splash-logos-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.brand-float {
  position: absolute;
  color: var(--gold);
  opacity: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.15em;
  animation: floatUp linear infinite;
  white-space: nowrap;
  user-select: none;
}

@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(110vh) rotate(var(--rot)); }
  8%   { opacity: var(--max-op); }
  88%  { opacity: var(--max-op); }
  100% { opacity: 0; transform: translateY(-60px) rotate(var(--rot)); }
}

/* Center content */
.splash-center {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo с кольцом */
.splash-logo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 32px;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.splash-orbit-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.4);
  animation: spin 24s linear infinite;
}

.splash-orbit-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 0.5px solid rgba(201,169,110,0.15);
}

.splash-orbit-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  top: -2.5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(201,169,110,0.6);
}

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

.splash-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.splash-tagline {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 44px;
}

.splash-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.5);
  background: transparent;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 14px 44px;
  cursor: pointer;
  transition: color 0.4s;
}
.splash-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.splash-btn:hover::before { transform: scaleX(1); }
.splash-btn:hover { color: var(--dark); }
.splash-btn span { position: relative; z-index: 1; }

/* ══════════════════════════════
   HOME BRAND HEADER
══════════════════════════════ */
.home-brand-header {
  background: var(--cream);
  padding: 16px 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}

/* ══════════════════════════════
   HEADER (legacy, kept for reference)
══════════════════════════════ */
.app-header {
  background: var(--cream);
  padding: 18px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}
.header-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.03em;
  cursor: pointer;
}
.header-right { display: flex; gap: 16px; align-items: center; }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  position: relative;
  transition: color 0.2s;
}
.icon-btn:hover { color: var(--gold); }

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.cart-badge.show { opacity: 1; transform: scale(1); }

/* ══════════════════════════════
   BOTTOM NAV
══════════════════════════════ */
.bottom-nav {
  background: var(--cream);
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0 env(safe-area-inset-bottom, 16px);
  flex-shrink: 0;
  z-index: 100;
  position: relative;
  margin-top: auto;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 10px;
  transition: all 0.2s;
}
.nav-label {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-btn.active .nav-label { color: var(--gold); }
.nav-btn.active svg { stroke: var(--gold) !important; color: var(--gold); }
.nav-btn svg { transition: stroke 0.2s; stroke: var(--muted); }

/* ══════════════════════════════
   HOME — HERO BANNER SLIDER
   Контейнер адаптируется под высоту изображения
══════════════════════════════ */
.hero-slides { width: 100%; position: relative; }
.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
  cursor: pointer;
}
.hero-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}
.hero-slide-img { width: 100%; display: block; }
.hero-slide-skeleton,
.hero-slide-skeleton.active {
  cursor: default;
  pointer-events: none;
}
.skel.hero-skel-media {
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.hero-skel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,11,9,0.22) 0%, rgba(12,11,9,0.04) 62%, transparent 100%);
  pointer-events: none;
}
.hero-skel-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}
.skel.hero-skel-eyebrow {
  width: 148px;
  height: 9px;
  margin-bottom: 8px;
  border-radius: 4px;
}
.skel.hero-skel-title {
  width: min(72%, 260px);
  height: 28px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.skel.hero-skel-cta {
  width: 128px;
  height: 28px;
  border-radius: 4px;
}
.hero-slide-bg { position: relative; min-height: 200px; }
.hero-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-content { position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2; }
.hero-eyebrow {
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before { content: ''; display: block; width: 16px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 7px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.hero-cta:hover::before { transform: scaleX(1); }
.hero-cta:hover { border-color: var(--gold); color: var(--dark); }
.hero-cta span { position: relative; z-index: 1; }
.hero-dots {
  position: absolute;
  bottom: 10px;
  right: 20px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.hero-dot {
  width: 14px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.hero-dot.active { background: var(--gold); width: 22px; }
.hero-dot-skel {
  cursor: default;
  pointer-events: none;
  opacity: 0.65;
}

.home-media-slot { padding: 0 16px; }
.home-media-banner,
.home-media-banner-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream2);
}
.home-media-banner-placeholder { display: block; }
.home-media-banner-skel {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
.home-media-banner-skel-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
}
.home-media-banner-skel-eyebrow {
  width: 110px;
  height: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.home-media-banner-skel-title {
  width: min(68%, 240px);
  height: 28px;
  margin-bottom: 12px;
  border-radius: 4px;
}
.home-media-banner-skel-cta {
  width: 112px;
  height: 28px;
  border-radius: 6px;
}
.home-media-banner { cursor: default; }
.home-media-banner[onclick] { cursor: pointer; }
.home-media-banner.is-media-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cream2) 25%, #e8e0d4 50%, var(--cream2) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s infinite linear;
  pointer-events: none;
}
.home-media-banner.is-media-loading::before { z-index: 0; }
.home-media-banner-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: opacity 0.18s ease;
}
.home-media-banner-media.is-loading {
  opacity: 0.18;
}
.home-media-banner-media[data-media-type="video"] {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.home-media-banner-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(10,10,10,0.48) 0%, rgba(10,10,10,0.16) 45%, rgba(10,10,10,0) 70%);
  pointer-events: none;
}
.home-media-banner-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
}
.home-media-banner-eyebrow {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 6px;
}
.home-media-banner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 10px;
}
.home-media-banner-title em { font-style: italic; color: var(--gold); }
.home-media-banner-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 7px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  position: relative;
  overflow: hidden;
}
.home-media-banner-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.home-media-banner-cta:hover::before { transform: scaleX(1); }
.home-media-banner-cta:hover { border-color: var(--gold); color: var(--dark); }
.home-media-banner-cta span { position: relative; z-index: 1; }

/* UTP BANNER SLIDER */
.utp-slider {
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
  background: var(--dark2);
  position: relative;
}
.utp-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.utp-slide {
  min-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex-shrink: 0;
}
.utp-slide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}
.utp-slide-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-align: center;
  line-height: 1.6;
}
.utp-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.utp-dot {
  width: 14px;
  height: 1.5px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.utp-dot.active { background: var(--gold); width: 22px; }

/* ══════════════════════════════
   INFO BLOCKS (в скролле)
══════════════════════════════ */
.info-blocks-section {
  padding: 20px 0 20px 22px;
}

.info-blocks-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 22px;
}
.info-blocks-row::-webkit-scrollbar { display: none; }

.info-block {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background: var(--dark);
  display: block;
}

.info-block-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), filter 0.4s;
}
.info-block:hover .info-block-img {
  transform: scale(1.06);
  filter: brightness(0.45);
}

.info-block-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 10px 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  letter-spacing: 0.02em;
}

/* ══════════════════════════════
   SECTION
══════════════════════════════ */
.section { padding: 24px 22px; }

/* Skeleton shimmer */
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel {
  background: linear-gradient(90deg, var(--cream2) 25%, #e8e0d4 50%, var(--cream2) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s infinite linear;
  border-radius: 6px;
}
.skel-section { padding: 24px 22px; }
.skel-title {
  width: 140px;
  height: 22px;
  margin-bottom: 18px;
  border-radius: 4px;
}
.skel-row {
  display: flex;
  gap: 14px;
  overflow: hidden;
  padding: 4px 0;
}
.skel-card { flex-shrink: 0; }
.skel-img {
  width: 158px;
  height: 158px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.skel-line {
  height: 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.skel-line-short { width: 80px; }
.skel-line-long  { width: 130px; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
}
.section-link {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.divider { height: 0.5px; background: var(--border); margin: 0 22px; }

/* ══════════════════════════════
   PRODUCT CARDS (horizontal row)
══════════════════════════════ */
.products-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -22px;
  padding: 4px 22px;
}
.products-row::-webkit-scrollbar { display: none; }

.product-card {
  min-width: 158px;
  flex-shrink: 0;
  cursor: pointer;
}
.product-img-wrap {
  width: 158px;
  height: 158px;
  background: var(--cream2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap { transform: translateY(-3px); }
.product-img-wrap svg { transition: transform 0.4s ease; }
.product-card:hover .product-img-wrap svg { transform: scale(1.06); }

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}
.fav-btn:hover { background: #fff; transform: scale(1.1); }
.fav-btn.active svg path { stroke: #D4537E; fill: #D4537E; }

.product-tag {
  position: absolute;
  left: 10px;
  background: var(--dark);
  color: var(--gold);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
}
.product-tag:first-of-type { top: 10px; }
.product-tag:nth-of-type(2) { top: 32px; }
.product-tag:nth-of-type(3) { top: 54px; }
.product-tag:nth-of-type(4) { top: 76px; }

/* Теги в детальной карточке */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.detail-tag {
  display: inline-block;
  background: var(--dark);
  color: var(--gold);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.product-brand {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 13px; font-weight: 600; color: var(--text); }

.add-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all 0.25s;
  flex-shrink: 0;
}
.add-btn:hover { background: var(--gold); color: var(--dark); transform: scale(1.1); }
.add-btn.added { background: var(--gold); color: var(--dark); }

/* ══════════════════════════════
   CATALOG
══════════════════════════════ */

/* Gender toggle row */
.cat-gender-row {
  display: flex;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.cat-gender-btn {
  flex: 1;
  padding: 12px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.cat-gender-btn.active { color: var(--text); border-bottom-color: var(--gold); }

.catalog-home-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 16px 8px;
}
.catalog-home-tab {
  height: 38px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.catalog-home-tab.active {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(201, 169, 110, 0.08);
}

.brand-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 8px 16px 20px;
}
.brand-home-card {
  border: none;
  background: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.brand-home-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--cream2);
}
.brand-home-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 500;
  color: var(--muted);
}
.brand-home-card-name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* Category cards list (home screen) */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px;
}
.cat-card {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.cat-card:active { transform: scale(0.97); }
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.cat-card-img {
  width: 100%;
  aspect-ratio: 1200/506;
  object-fit: cover;
  display: block;
}
.cat-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1200/506;
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Category view (product grid screen) */
.catalog-cat-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.cat-view-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.cat-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.15s;
}
.cat-back-btn:hover { background: var(--cream2); }
.cat-view-title {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: center;
}
/* Единый стиль для иконок в заголовке категории (поиск, фильтр, сортировка) */
.cat-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.cat-icon-btn:hover { background: var(--cream2); color: var(--gold); }

.filter-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 14px;
  height: 14px;
  background: var(--gold);
  color: var(--dark);
  font-size: 8px;
  font-weight: 700;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

/* Строка поиска */
.cat-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
  background: var(--cream);
}
.cat-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--text);
  outline: none;
}
.cat-search-bar input::placeholder { color: var(--muted); }
.cat-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}

/* Модал фильтров */
.filter-sheet {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Специфичность 0-2-0 — перебивает .modal-sheet (0-1-0) независимо от порядка */
.modal-sheet.filter-sheet {
  height: 85vh;
  padding: 12px 0 0;
}
.filter-scroll-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.filter-scroll-body::-webkit-scrollbar { display: none; }
.filter-loading {
  min-height: 220px;
  align-items: center;
  justify-content: center;
  padding: 34px 22px;
}
.filter-scroll-body.is-loading > .filter-section,
.filter-scroll-body.is-loading > #filter-attrs {
  display: none !important;
}
.filter-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(201,169,110,0.22);
  border-top-color: var(--gold);
  animation: spin 0.75s linear infinite;
}
.filter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 16px;
}
.filter-reset-btn {
  font-size: 11px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  padding: 4px 0;
  transition: color 0.15s;
}
.filter-reset-btn:hover { color: var(--text); }
.filter-section {
  padding: 0 22px 18px;
  border-bottom: 0.5px solid var(--border);
}
.filter-section:last-child { border-bottom: none; }
.filter-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Коллапсируемые секции (атрибуты) */
.filter-section--collapsible {
  padding-bottom: 0;
}
.filter-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  text-align: left;
}
.filter-section-header .filter-section-title {
  flex: 1;
  margin-bottom: 0;
}
.filter-section-count {
  min-width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--dark);
  font-size: 9px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.filter-section-arrow {
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.filter-section-body {
  display: none;
  padding-bottom: 14px;
}
.filter-section-body.open {
  display: block;
}
.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fchip {
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s, border-color 0.15s, color 0.15s;
  will-change: opacity, transform;
}
.fchip.active { background: var(--dark); border-color: var(--dark); color: var(--gold); }
.fchip.is-hiding {
  opacity: 0;
  transform: scale(0.86);
  pointer-events: none;
}
.fchip.is-hidden {
  display: none;
}

/* Цветовые свотчи */
.filter-colors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fcolor {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease, margin 0.2s ease;
  overflow: hidden;
  will-change: opacity, transform;
}
.fcolor.is-hiding {
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
}
.fcolor.is-hidden {
  display: none;
}
.fcolor-swatch {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--border2);
  transition: box-shadow 0.15s;
  flex-shrink: 0;
}
/* Галочка — скрыта по умолчанию */
.fcolor-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity 0.15s;
}
.fcolor-swatch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -62%) rotate(45deg);
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transition: opacity 0.15s;
}
/* Активное состояние */
.fcolor.active .fcolor-swatch {
  box-shadow: 0 0 0 2.5px var(--gold), 0 0 0 4.5px var(--cream);
}
.fcolor.active .fcolor-swatch::after { opacity: 1; }
.fcolor.active .fcolor-swatch::before { opacity: 1; }
.fcolor-name { display: none; }
.filter-modal-footer {
  padding: 16px 22px;
  padding-bottom: calc(16px + 68px + env(safe-area-inset-bottom, 0px));
  background: var(--cream);
  border-top: 0.5px solid var(--border);
  flex-shrink: 0;
}
.filter-apply-btn {
  width: 100%;
  padding: 14px;
  background: var(--dark);
  color: var(--gold);
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.filter-apply-btn:hover { opacity: 0.85; }

/* Subcategory chips */
.subcat-chips-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.subcat-chips-bar::-webkit-scrollbar { display: none; }
.subcat-chip {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.subcat-chip.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--gold);
}

/* Product grid */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 16px;
}
.catalog-card {
  cursor: pointer;
  transition: transform 0.3s ease;
  min-width: 0;
}
.catalog-virtual-spacer {
  grid-column: 1 / -1;
  pointer-events: none;
}
.catalog-card:hover { transform: translateY(-3px); }
.catalog-card:active { transform: scale(0.97); }
.catalog-img {
  width: 100%;
  aspect-ratio: 5/8;
  background: var(--cream2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.catalog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.catalog-img svg { transition: transform 0.4s ease; }
.catalog-card:hover .catalog-img svg { transform: scale(1.08); }
.catalog-card .product-brand {
  min-height: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-card .product-name {
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-card .product-color-meta {
  min-height: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-card .product-footer {
  min-height: 28px;
}

/* Sort btn (used in sort modal trigger) */
.sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.sort-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ══════════════════════════════
   PRODUCT DETAIL
══════════════════════════════ */
#screen-detail {
  transform: translateX(100%);
}
#screen-detail.active  { transform: translateX(0); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s; opacity: 1; }
#screen-detail.exit    { transform: translateX(100%); }

.detail-header {
  padding: 18px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.detail-footer {
  background: var(--cream);
  padding: 14px 22px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid var(--border);
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}
.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.back-btn:hover { color: var(--text); }

.detail-img-area {
  background: var(--cream2);
  height: auto;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 0.5px solid var(--border);
}
.detail-img-area svg { width: 200px; height: 200px; }
.detail-color-picker-block {
  background: var(--cream);
  border-bottom: 0.5px solid var(--border);
}

/* Галерея */
.detail-gallery {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.detail-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  z-index: 1;
}
.detail-gallery-track.is-virtual {
  display: flex;
  will-change: transform;
}
.detail-media-skeleton {
  width: 100%;
  height: 100%;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(201,169,110,0.08) 0%, rgba(201,169,110,0.02) 100%),
    var(--cream2);
}
.detail-gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.detail-gallery-frame {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease;
  will-change: opacity, transform;
}
.detail-gallery-frame.is-loading {
  opacity: 0.28;
  transform: scale(0.995);
}
.detail-gallery.is-swiping .detail-gallery-frame {
  transition: none;
}
.detail-gallery.is-media-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  z-index: 3;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.56);
  border-top-color: var(--gold);
  box-shadow: 0 2px 10px rgba(20,16,10,0.18);
  animation: spin 0.75s linear infinite;
  pointer-events: none;
}
.detail-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.detail-gallery-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(26,24,20,0.25);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.detail-gallery-dot.active {
  background: var(--text);
  transform: scale(1.3);
}

.detail-colors-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  background: transparent;
  flex-shrink: 0;
  min-height: 52px;
}
.detail-colors-row::-webkit-scrollbar { display: none; }
.color-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 7px;
  flex-shrink: 0;
  cursor: pointer;
}
.color-dot-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.color-dot.active .color-dot-circle { border-color: var(--gold); transform: scale(1.1); }
.detail-color-name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 22px 6px;
  background: transparent;
  min-height: 20px;
}
.detail-variant-attrs {
  display: none;
  background: transparent;
  padding: 8px 0 10px;
  flex-shrink: 0;
}
.detail-variant-attrs.show {
  display: block;
}
.detail-variant-group + .detail-variant-group {
  margin-top: 9px;
}
.detail-variant-title {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 22px 7px;
}
.detail-variant-attrs .detail-options-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 20px 2px;
  margin-bottom: 0;
}
.detail-variant-attrs .detail-options-row::-webkit-scrollbar { display: none; }
.detail-variant-attrs .detail-option-btn {
  flex: 0 0 auto;
}

.detail-body { padding: 20px 22px; }
.detail-brand {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.detail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 5px;
}
.detail-sub { font-size: 11px; color: var(--muted); margin-bottom: 18px; letter-spacing: 0.04em; }
.detail-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.detail-price { font-size: 24px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.detail-price-usd { font-size: 13px; color: var(--muted); font-weight: 400; }

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.spec-item {
  background: rgba(201,169,110,0.04);
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 10px 12px;
}
.spec-label { font-size: 7.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.spec-val { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 400; color: var(--text); line-height: 1.2; }

.detail-desc { font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 24px; letter-spacing: 0.02em; }

/* Skeleton loader */
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border) 25%, #f0ece4 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  display: block;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.detail-actions { display: flex; flex-direction: column; gap: 12px; }
.detail-fav-row { display: flex; gap: 12px; }

/* Variant options selector */
.detail-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.detail-option-btn {
  min-width: 68px;
  padding: 8px 14px 9px;
  border: 0.5px solid var(--border2);
  border-radius: 3px;
  background: transparent;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.detail-option-btn:hover { border-color: var(--gold); }
.detail-option-btn.active {
  border-color: var(--gold);
  background: rgba(201,169,110,0.07);
}
.detail-opt-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
  white-space: nowrap;
}
.detail-opt-val {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  transition: color 0.25s;
  white-space: nowrap;
}
.detail-option-btn.active .detail-opt-label { color: var(--gold-dark); }
.detail-option-btn.active .detail-opt-val  { color: var(--gold-dark); }

.detail-fav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s;
  color: var(--muted);
}
.detail-fav:hover { border-color: var(--gold); color: var(--gold); }
.detail-fav.active { background: var(--dark); border-color: var(--dark); color: var(--gold); }

.detail-add {
  flex: 1;
  height: 50px;
  background: var(--dark);
  border: none;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.detail-add::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.detail-add:hover::before { transform: scaleX(1); }
.detail-add:hover { color: var(--dark); }
.detail-add span { position: relative; z-index: 1; }
.detail-add.added { background: var(--gold); color: var(--dark); }

/* Price-on-request button in detail */
.ask-price-btn {
  flex: 1;
  height: 50px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}
.ask-price-btn:hover { background: var(--gold); color: var(--dark); }

/* ══════════════════════════════
   CART
══════════════════════════════ */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cart-empty-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--text); }
.cart-empty-sub { font-size: 12px; color: var(--muted); text-align: center; max-width: 220px; line-height: 1.7; }

.cart-list { padding: 16px 22px; }
.cart-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cart-item-img,
.co-item-thumb,
.order-item-thumb {
  background: var(--cream2);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-img img,
.co-item-thumb img,
.order-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-img {
  width: 78px;
  aspect-ratio: 3 / 4;
}
.cart-item-brand { font-size: 8px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.cart-item-name { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.cart-item-meta { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.cart-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text);
  font-weight: 300;
  transition: all 0.2s;
}
.qty-btn:hover { background: var(--dark); color: var(--gold); border-color: var(--dark); }
.qty-val { font-size: 14px; font-weight: 500; color: var(--text); min-width: 14px; text-align: center; }
.cart-item-price { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.cart-remove {
  position: absolute;
  top: 16px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s;
}
.cart-remove:hover { color: #D4537E; }

.cart-summary { padding: 18px 22px; border-top: 0.5px solid var(--border); }
/* Доп. отступ снизу у cart-summary — чтобы не скрывался за bottom-nav */
#cart-summary { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.cart-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.04em; }
.cart-row.total { font-size: 16px; font-weight: 600; color: var(--text); margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--border); }

/* ══════════════════════════════
   CHECKOUT
══════════════════════════════ */
#screen-checkout { transform: translateX(100%); }
#screen-checkout.active { transform: translateX(0); }
#screen-checkout.exit   { transform: translateX(100%); }

.checkout-section { padding: 20px 22px; border-bottom: 0.5px solid var(--border); }
.checkout-section-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.form-field { margin-bottom: 12px; }
.form-label { font-size: 10px; font-weight: 500; color: var(--muted); margin-bottom: 5px; letter-spacing: 0.04em; display: block; }
.form-input {
  width: 100%;
  border: 0.5px solid var(--border2);
  border-radius: 6px;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--text);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.delivery-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 13px 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.delivery-option.selected { border-color: var(--gold); background: rgba(201,169,110,0.06); }
.delivery-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.delivery-option.selected .delivery-radio { border-color: var(--gold); }
.delivery-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}
.delivery-option.selected .delivery-radio::after { background: var(--gold); }
.delivery-name { font-size: 13px; font-weight: 500; color: var(--text); }
.delivery-price { font-size: 11px; color: var(--muted); }

.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payment-option {
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 13px 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.payment-option.selected { border-color: var(--gold); background: rgba(201,169,110,0.06); }
.payment-icon { font-size: 20px; margin-bottom: 4px; }
.payment-name { font-size: 10px; font-weight: 500; color: var(--text); }

.checkout-submit {
  width: calc(100% - 44px);
  margin: 20px 22px;
  height: 52px;
  background: var(--dark);
  border: none;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.checkout-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.checkout-submit:hover::before { transform: scaleX(1); }
.checkout-submit:hover { color: var(--dark); }
.checkout-submit span { position: relative; z-index: 1; }

/* ══════════════════════════════
   PROFILE
══════════════════════════════ */
.profile-hero {
  background: var(--dark);
  padding: 32px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(201,169,110,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: #fff; }
.profile-tier {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-tier::before, .profile-tier::after { content: ''; display: block; width: 14px; height: 1px; background: var(--gold); opacity: 0.5; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid rgba(201,169,110,0.15);
  margin-top: 4px;
  width: 100%;
}
.stat-item { padding: 14px 10px; text-align: center; border-right: 0.5px solid rgba(201,169,110,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--gold); display: block; }
.stat-label { font-size: 7.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); display: block; margin-top: 2px; }

/* Bonus & Referral cards */
.promo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 22px; }
.promo-card {
  background: var(--dark);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(201,169,110,0.08);
}
.promo-label { font-size: 8px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.promo-value { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; color: #fff; }
.promo-sub { font-size: 9px; color: rgba(255,255,255,0.4); margin-top: 3px; }

.menu-list { padding: 4px 0; }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.menu-item:hover { background: rgba(201,169,110,0.04); }
.menu-item-left { display: flex; align-items: center; gap: 13px; }
.menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.menu-item-label { font-size: 13px; font-weight: 500; color: var(--text); }
.menu-item-sub { font-size: 10px; color: var(--muted); margin-top: 1px; }
.menu-arrow { color: var(--muted); }

/* ══════════════════════════════
   WISHLIST
══════════════════════════════ */
.wishlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 22px;
}
.screen-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  width: 100%;
}
.screen-loader::after {
  content: '';
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wishlist-empty { padding: 48px 22px; text-align: center; }
.wishlist-empty-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--text); margin-bottom: 10px; }
.wishlist-empty-sub { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ══════════════════════════════
   ORDERS HISTORY
══════════════════════════════ */
#orders-list { padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }

.order-card {
  background: var(--dark);
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid var(--border);
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px 12px;
  border-bottom: 0.5px solid rgba(245,240,232,0.1);
}
.order-card-num { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: #F5F0E8; }
.order-card-date { font-size: 10px; color: rgba(245,240,232,0.45); margin-top: 3px; letter-spacing: 0.04em; }
.order-status-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0.5px solid;
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}

.order-items { padding: 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.order-item { display: flex; align-items: center; gap: 10px; }
.order-item-thumb { width: 48px; aspect-ratio: 3 / 4; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-brand { font-size: 8px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1px; }
.order-item-name { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: #F5F0E8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.order-item-qty { font-size: 10px; color: rgba(245,240,232,0.45); }
.order-item-price { font-size: 13px; font-weight: 600; color: #F5F0E8; }

.order-summary {
  padding: 10px 18px 14px;
  border-top: 0.5px solid rgba(245,240,232,0.1);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.order-summary-row { display: flex; justify-content: space-between; font-size: 11px; color: rgba(245,240,232,0.5); letter-spacing: 0.03em; }
.order-discount span:last-child { color: #7EC8A4; }
.order-total { font-size: 14px; font-weight: 600; color: #F5F0E8; margin-top: 4px; padding-top: 8px; border-top: 0.5px solid rgba(245,240,232,0.12); }

/* ══════════════════════════════
   CHECKOUT SUMMARY
══════════════════════════════ */
.co-section { background: var(--dark); }

#co-items { margin-bottom: 4px; }
.co-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 0.5px solid rgba(245,240,232,0.08); }
.co-item-thumb { width: 42px; aspect-ratio: 3 / 4; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-brand { font-size: 8px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.co-item-name { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: #F5F0E8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.co-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.co-item-qty { font-size: 10px; color: rgba(245,240,232,0.45); }
.co-item-price { font-size: 14px; font-weight: 600; color: #F5F0E8; }

.co-promo-wrap { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.co-promo-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 18px;
  background: transparent;
  border: 0.5px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.co-promo-btn:active { opacity: 0.7; }
.co-promo-result { font-size: 11px; letter-spacing: 0.03em; margin-top: 8px; }

.co-totals { border-top: 0.5px solid rgba(245,240,232,0.12); padding-top: 14px; margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.co-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(245,240,232,0.5); letter-spacing: 0.03em; }
.co-discount span:last-child { color: #7EC8A4; }
.co-total { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; color: #F5F0E8; padding-top: 10px; border-top: 0.5px solid rgba(245,240,232,0.12); margin-top: 2px; }

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
#toast {
  position: fixed;
  bottom: 90px;
  left: 16px;
  right: 16px;
  transform: translateY(14px);
  background: var(--dark);
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid rgba(201,169,110,0.3);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  z-index: 999;
  white-space: normal;
  text-align: center;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.toast-error { color: #e07070; border-color: rgba(224,112,112,0.3); }

/* ══════════════════════════════
   SEARCH OVERLAY
══════════════════════════════ */
#search-overlay {
  position: absolute;
  inset: 0;
  background: var(--cream);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}
#search-overlay.show { opacity: 1; pointer-events: all; }
.search-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0.5px solid var(--border);
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--cream2);
  border-radius: 100px;
  padding: 10px 16px;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.search-input::placeholder { color: var(--muted); }
.search-cancel { background: none; border: none; cursor: pointer; font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--gold); }
.search-suggestions { padding: 20px 22px; overflow-y: auto; }
.search-tag { font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.suggestion-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.suggestion-chip {
  padding: 7px 14px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
}
.suggestion-chip:hover { background: var(--dark); border-color: var(--dark); color: var(--gold); }

/* ══════════════════════════════
   SORT MODAL
══════════════════════════════ */
.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(12,11,9,0.5);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-sheet {
  width: 100%;
  background: var(--cream);
  border-radius: 16px 16px 0 0;
  padding: 20px 22px calc(32px + 68px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.show .modal-sheet { transform: translateY(0); }
.modal-handle { width: 36px; height: 3px; background: var(--border2); border-radius: 100px; margin: 0 auto 20px; }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--text); margin-bottom: 16px; }
.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}
.sort-option:hover { color: var(--gold); }
.sort-option.active { color: var(--gold); font-weight: 500; }
.sort-check { display: none; }
.sort-option.active .sort-check { display: block; }
.sort-option:last-child { border-bottom: none; }

/* ══════════════════════════════
   ADAPTIVE
══════════════════════════════ */

/* Base: app на весь экран вместо жёстких 390px */
#app {
  width: 100%;
  max-width: 480px;
}

/* UTP slide тянется по ширине контейнера */
.utp-slide {
  min-width: 100%;
}

/* Hero масштабируется */
@media (max-height: 700px) {
  .hero-title { font-size: 30px; }
}

/* Маленькие телефоны (320px–359px) */
@media (max-width: 359px) {
  .app-header { padding: 14px 14px 10px; }
  .header-logo { font-size: 17px; }

  .top-block-label { font-size: 9px; padding: 6px 4px 0; }
  .top-block { height: 90px; }

  .hero-title { font-size: 28px; }
  .hero-slide-content { padding: 0 18px 24px; }

  .section { padding: 18px 14px; }
  .section-title { font-size: 20px; }
  .divider { margin: 0 14px; }

  .product-card { min-width: 136px; }
  .product-img-wrap { width: 136px; height: 136px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 11px; }

  .catalog-grid { padding: 14px; gap: 10px; }

  .detail-name { font-size: 22px; }
  .detail-price { font-size: 20px; }
  .detail-specs { grid-template-columns: 1fr 1fr; gap: 8px; }

  .cart-list { padding: 12px 14px; }
  .cart-summary { padding: 14px; }
  .checkout-submit { width: calc(100% - 28px); margin: 16px 14px; }
  .checkout-section { padding: 16px 14px; }

  .profile-hero { padding: 24px 14px 20px; }
  .promo-cards { padding: 14px; }
  .menu-item { padding: 13px 14px; }
}

/* Средние телефоны (360px–389px) */
@media (min-width: 360px) and (max-width: 389px) {
  .app-header { padding: 16px 18px 12px; }

  .top-block { height: 100px; }
  .top-block-label { font-size: 10px; }

  .hero-title { font-size: 33px; }

  .product-card { min-width: 148px; }
  .product-img-wrap { width: 148px; height: 148px; }

  .section { padding: 20px 18px; }
  .divider { margin: 0 18px; }

  .catalog-grid { padding: 16px 18px; }
  .cart-list { padding: 14px 18px; }
  .cart-summary { padding: 16px 18px; }
  .checkout-submit { width: calc(100% - 36px); margin: 18px 18px; }
  .checkout-section { padding: 18px 18px; }
  .menu-item { padding: 14px 18px; }
  .promo-cards { padding: 16px 18px; }
  .profile-hero { padding: 28px 18px 24px; }
}

/* Стандарт (390px–429px) — без изменений, всё уже под него */

/* Большие телефоны (430px+, iPhone Pro Max, Android XL) */
@media (min-width: 430px) {
  .hero-title { font-size: 42px; }

  .top-block { height: 125px; }
  .top-block-label { font-size: 12px; }

  .product-card { min-width: 175px; }
  .product-img-wrap { width: 175px; height: 175px; }
  .product-name { font-size: 16px; }
  .product-price { font-size: 14px; }

  .section { padding: 28px 26px; }
  .section-title { font-size: 26px; }
  .divider { margin: 0 26px; }

  .catalog-grid { padding: 22px 26px; gap: 16px; }
  .detail-name { font-size: 32px; }
  .detail-price { font-size: 28px; }

  .cart-list { padding: 18px 26px; }
  .cart-summary { padding: 20px 26px; }
  .checkout-submit { width: calc(100% - 52px); margin: 22px 26px; }
  .checkout-section { padding: 22px 26px; }
  .menu-item { padding: 17px 26px; }
  .promo-cards { padding: 20px 26px; }
  .profile-hero { padding: 36px 26px 30px; }
}

/* Планшеты (600px+) — два экрана рядом */
@
