/* ============================================================
   ARYX — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f3f3f3;
  --bg-soft:     #ececec;
  --photo-bg:    #dad7d2;   /* студийный серый как на фото товара */
  --white:       #ffffff;
  --txt1:        #1c1c1e;
  --txt2:        #636366;
  --txt3:        #aeaeb2;
  --accent:      #e8735a;
  --accent-lite: #fdeae5;
  --dark-sec:    #2c3441;
  --mid-sec:     #5a6b7d;
  --nav-h:       72px;
  --safe-b:      env(safe-area-inset-bottom, 0px);
  --r-card:      16px;
  --r-pill:      50px;
  --shadow:      0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --transition:  .28s cubic-bezier(.4,0,.2,1);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--txt1);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Карусели товара — отрубить выделение/перетаскивание картинок при свайпе */
.product-img-wrap, .pd-carousel-wrap, .cart-img, .fav-img,
.product-photo, .pd-photo, .mini-photo {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.product-photo, .pd-photo, .mini-photo, .brand-card-logo {
  pointer-events: none;
}

/* ---------- App Shell ---------- */
#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Pages ---------- */
.page {
  position: absolute;
  inset: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 8px);
  background: var(--bg);
  transform: translateX(100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  will-change: transform;
  z-index: 1;
  pointer-events: none;
}

.page.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.page.slide-out-left {
  transform: translateX(-30%);
  opacity: .4;
  z-index: 1;
  pointer-events: none;
}

/* home page doesn't slide left on forward nav */
#page-home.slide-out-left {
  transform: translateX(-20%);
  opacity: .5;
}

/* ---------- Bottom Navigation ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 20px rgba(0,0,0,.08);
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  color: var(--txt3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2px;
  transition: color .18s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item.active { color: var(--accent); }

.nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}
.nav-badge:empty, .nav-badge[data-count="0"] { display: none; }

/* ---------- Page Header ---------- */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 8px;
}
.page-header h1 { font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.back-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.back-btn svg { width: 20px; height: 20px; }

/* ============================================================
   HOME PAGE
   ============================================================ */
#page-home {
  background: var(--bg);
}

.home-logo-area {
  padding: 28px 20px 20px;
  text-align: center;
}

.rs-logo {
  display: inline-block;
  font-size: 60px;
  font-weight: 900;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -6px;
  line-height: 1;
  color: var(--txt1);
  margin-bottom: 2px;
}

/* ARYX Logo */
.aryx-logo {
  display: inline-block;
  font-size: 46px;
  font-weight: 900;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 8px;
  line-height: 1;
  color: var(--txt1);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rs-brand-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--txt1);
  margin-bottom: 2px;
}
.rs-brand-sub {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--txt2);
}
.rs-brand-since {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--txt3);
  margin-top: 2px;
}

.home-hero {
  margin: 0 16px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 440px;
  background: linear-gradient(170deg, #2c3441 0%, #1a1f28 60%, #0f1318 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Decorative large text inside hero */
.home-hero-bg-text {
  position: absolute;
  top: 20px;
  left: -10px;
  right: -10px;
  font-size: 120px;
  font-weight: 900;
  font-family: Georgia, serif;
  letter-spacing: -8px;
  line-height: 1;
  color: rgba(255,255,255,.06);
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

/* Silhouette figures */
.home-hero-figures {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding-bottom: 120px;
}
.hero-figure {
  width: 80px;
  height: 220px;
  border-radius: 40px 40px 0 0;
  opacity: .18;
}
.hero-figure-1 { background: linear-gradient(180deg,#fff 0%,#aaa 100%); }
.hero-figure-2 { background: linear-gradient(180deg,#ccc 0%,#666 100%); height: 200px; }

.home-hero-content {
  position: relative;
  padding: 24px 24px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 100%);
}
.home-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
}
.home-hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
  margin-bottom: 20px;
}
.home-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--txt1);
  border: none;
  border-radius: var(--r-pill);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.home-hero-btn:active { transform: scale(.97); }

/* ============================================================
   SHOP PAGE
   ============================================================ */
#page-shop { background: var(--bg); }

.shop-header {
  padding: 20px 20px 0;
}
.shop-header h1 { font-size: 32px; font-weight: 700; letter-spacing: -.5px; }

/* Gender Tabs */
.gender-tabs {
  display: flex;
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 4px;
  margin: 16px 20px;
  box-shadow: var(--shadow);
}
.gender-tab {
  flex: 1;
  border: none;
  background: none;
  border-radius: var(--r-pill);
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--txt3);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.gender-tab.active {
  background: var(--white);
  color: var(--txt1);
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

/* Shop Sections (Accordions) */
.shop-sections { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }

.shop-section { border-radius: var(--r-card); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }

.section-header {
  display: flex;
  align-items: stretch;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 130px;
  position: relative;
  overflow: hidden;
  transition: opacity .15s;
}
.section-header:active { opacity: .85; }

.section-header.dark { background: var(--dark-sec); }
.section-header.mid  { background: var(--mid-sec); }
.section-header.light { background: var(--white); }

.section-header-left {
  flex: 1;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.section-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-header.light .section-icon-wrap {
  background: rgba(0,0,0,.06);
}
.section-icon-wrap svg { width: 20px; height: 20px; }
.section-header.dark .section-icon-wrap svg,
.section-header.mid .section-icon-wrap svg { color: #fff; }
.section-header.light .section-icon-wrap svg { color: var(--txt1); }

.section-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.section-header.light .section-title h3 { color: var(--txt1); }
.section-title p {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
  line-height: 1.4;
}
.section-header.light .section-title p { color: var(--txt2); }

/* Collage on right side of section header */
.section-collage {
  width: 140px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
}
.collage-cell {
  overflow: hidden;
  position: relative;
}

/* Big decorative letter on collage */
.collage-letter {
  position: absolute;
  bottom: -8px;
  right: -4px;
  font-size: 72px;
  font-weight: 900;
  font-family: Georgia, serif;
  letter-spacing: -4px;
  color: rgba(255,255,255,.15);
  pointer-events: none;
  line-height: 1;
}
.section-header.light .collage-letter { color: rgba(0,0,0,.06); }

/* Chevron indicator */
.section-chevron {
  position: absolute;
  bottom: 14px;
  right: 16px;
  width: 20px; height: 20px;
  color: rgba(255,255,255,.5);
  transition: transform var(--transition);
}
.section-header.light .section-chevron { color: var(--txt3); }
.shop-section.open .section-chevron { transform: rotate(180deg); }

/* Section expandable content */
.section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
  background: var(--white);
}
.shop-section.open .section-content {
  max-height: 3000px;
}

.category-all-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.category-all-item:active { background: var(--bg); }
.category-all-item svg { width: 22px; height: 22px; color: var(--txt2); flex-shrink: 0; }
.category-all-item span { font-size: 16px; font-weight: 500; color: var(--txt1); }

.category-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.category-list-item:last-child { border-bottom: none; }
.category-list-item:active { background: var(--bg); }
.category-list-item svg.cat-icon { width: 22px; height: 22px; color: var(--txt2); flex-shrink: 0; }
.category-list-item span { flex: 1; font-size: 16px; color: var(--txt1); }
.category-list-item svg.arrow { width: 16px; height: 16px; color: var(--txt3); flex-shrink: 0; }

/* Brand list inside accordion */
.brand-section-label {
  padding: 14px 20px 6px 4px;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--txt1);
  letter-spacing: .5px;
}
.brand-all-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.brand-all-row svg { width: 20px; height: 20px; color: var(--txt2); }
.brand-all-row span { font-size: 16px; font-weight: 500; color: var(--txt1); }
.brand-row {
  padding: 13px 20px;
  font-size: 16px;
  color: var(--txt1);
  border-bottom: 1px solid var(--bg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.brand-row:last-child { border-bottom: none; }
.brand-row:active { background: var(--bg); }

/* ============================================================
   CATALOG PAGE
   ============================================================ */
#page-catalog { background: var(--bg); }

/* Шапка каталога (заголовок + фильтры) прилипает при скролле */
.catalog-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}
.catalog-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.catalog-header h1 { font-size: 28px; font-weight: 700; flex: 1; }

.catalog-toolbar {
  display: flex;
  gap: 10px;
  padding: 0 20px 14px;
}
.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: none;
  border-radius: var(--r-pill);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt1);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .12s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.toolbar-btn:active { transform: scale(.97); }
.toolbar-btn svg { width: 18px; height: 18px; }
.toolbar-btn.dark { background: var(--txt1); color: var(--white); }

/* Sort dropdown */
.sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 50;
  min-width: 220px;
  transform: scale(.95) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s, opacity .2s;
  transform-origin: top right;
}
.sort-dropdown.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sort-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 15px;
  color: var(--txt1);
  border-bottom: 1px solid var(--bg);
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.sort-option:last-child { border-bottom: none; }
.sort-option:active { background: var(--bg); }
.sort-option svg { width: 18px; height: 18px; color: var(--txt2); flex-shrink: 0; }
.sort-option.active { color: var(--accent); }
.sort-option.active svg { color: var(--accent); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.product-card:active { transform: scale(.97); box-shadow: 0 1px 6px rgba(0,0,0,.08); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.product-img-wrap:active { cursor: grabbing; }
.product-img-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-img-brand-ghost {
  position: absolute;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -3px;
  color: rgba(255,255,255,.13);
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

/* Center icon/letter inside product card */
.product-img-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.product-img-initial {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: Georgia, serif;
  color: rgba(255,255,255,.85);
}
.product-img-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.product-fav-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 5;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s;
}
.product-fav-btn:active { transform: scale(.88); }
.product-fav-btn svg { width: 20px; height: 20px; fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.8; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.product-fav-btn.active svg { fill: #e8735a; stroke: #e8735a; filter: none; }

.product-img-dots {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.product-img-dots .dot {
  width: 5px; height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.5);
  transition: width .25s cubic-bezier(.4,0,.2,1), background .25s;
}
.product-img-dots .dot.active {
  width: 16px;
  background: rgba(255,255,255,.95);
}

/* Carousel arrows */
.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.75);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  color: #1c1c1e;
}
.pd-arrow-left  { left: 10px; }
.pd-arrow-right { right: 10px; }
.pd-arrow:active { opacity: 0.6; }

/* Photo display in cards */
.product-img-bg.has-photo {
  background: var(--photo-bg);
  overflow: hidden;
  display: block;
  position: relative;
}
.card-track {
  display: flex;
  height: 100%;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  background: var(--photo-bg);   /* фон на треке: mix-blend не теряется при transform */
}
.product-photo {
  flex: none;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  mix-blend-mode: multiply;   /* белый/светлый фон фото растворяется в --photo-bg */
}
.pd-slide-photo { overflow: hidden; background: var(--photo-bg); }
.pd-photo {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  mix-blend-mode: multiply;
}
.mini-photo {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  mix-blend-mode: multiply;
}
.cart-img.has-photo,
.fav-img.has-photo { background: var(--photo-bg); }

.product-card-info {
  padding: 10px 12px 12px;
}
.product-card-top   { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.product-card-brand { font-size: 15px; font-weight: 700; color: var(--txt1); }
.product-card-name  { font-size: 12px; color: var(--txt2); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-price { font-size: 14px; font-weight: 700; color: var(--txt1); white-space: nowrap; }
.product-card-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.product-card-size  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: var(--bg);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--txt1);
  font-weight: 500;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
#page-product {
  background: var(--bg);
  padding-bottom: 0;
}

.product-detail-scroll {
  overflow-y: auto;
  height: 100%;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 80px);
  -webkit-overflow-scrolling: touch;
}

.product-detail-img-area {
  position: relative;
  background: var(--photo-bg);
  overflow: hidden;
}
.product-detail-img-bg {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-detail-brand-ghost {
  position: absolute;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -6px;
  color: rgba(255,255,255,.1);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
.product-detail-initial {
  position: relative;
  z-index: 1;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  font-family: Georgia, serif;
  color: rgba(255,255,255,.9);
}
.product-detail-dots {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.product-detail-dots .dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: rgba(0,0,0,.18);
  transition: width .25s cubic-bezier(.4,0,.2,1), background .25s;
}
.product-detail-dots .dot.active {
  width: 22px;
  background: var(--txt1);
}

/* Product mini-logo top-left of detail page */
.product-detail-logo {
  position: absolute;
  top: 14px; left: 16px;
  z-index: 5;
}
.product-detail-logo .rs-mini { font-size: 18px; font-weight: 900; font-family: Georgia, serif; color: rgba(0,0,0,.5); letter-spacing: -1px; }
.product-detail-logo .rs-mini-label { font-size: 7px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(0,0,0,.4); }

.product-detail-info {
  padding: 20px 20px 0;
  background: var(--bg);
}
/* Хлебные крошки (по умолчанию скрыты на мобиле, видны на ПК) */
.pd-breadcrumbs {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--txt3);
  margin-bottom: 16px;
}
.pd-breadcrumbs .crumb {
  color: var(--txt2);
  cursor: pointer;
  white-space: nowrap;
}
.pd-breadcrumbs .crumb:hover { color: var(--accent); }
.pd-breadcrumbs .crumb.current { color: var(--txt1); font-weight: 600; cursor: default; }
.pd-breadcrumbs .crumb-sep { color: var(--txt3); }
.product-detail-brand { font-size: 26px; font-weight: 800; color: var(--txt1); }
.product-detail-name  { font-size: 15px; color: var(--txt2); margin-top: 2px; }
.product-detail-price { font-size: 28px; font-weight: 800; color: var(--txt1); margin-top: 10px; }

.product-detail-section { margin-top: 20px; }
.product-detail-section-label {
  font-size: 14px;
  color: var(--txt2);
  margin-bottom: 10px;
}

/* Color swatches */
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color .15s, transform .15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.color-swatch.active {
  border-color: var(--txt1);
  transform: scale(1.1);
}
.color-swatch.active::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
}

/* Size pills */
.size-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.size-pill {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1.5px solid var(--bg);
  font-size: 14px;
  font-weight: 500;
  color: var(--txt1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.size-pill.active {
  background: var(--txt1);
  color: var(--white);
  border-color: var(--txt1);
}
.size-pill:active { transform: scale(.95); }

/* Селектор хвата (клюшки) — текстовые пилюли Левый/Правый */
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.hand-pill {
  min-width: 44px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1.5px solid var(--bg);
  font-size: 14px;
  font-weight: 500;
  color: var(--txt1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.hand-pill.active {
  background: var(--txt1);
  color: var(--white);
  border-color: var(--txt1);
}
.hand-pill:active { transform: scale(.95); }

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

.product-detail-desc {
  padding: 20px;
  background: var(--bg);
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.6;
}

/* ---- Product Detail Carousel ---- */
.pd-carousel-wrap {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  touch-action: pan-y;
  cursor: grab;
}
.pd-carousel-wrap:active { cursor: grabbing; }

.pd-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  background: var(--photo-bg);   /* фон на треке: mix-blend не теряется при transform */
}

.pd-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.pd-slide-ghost {
  position: absolute;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -6px;
  color: rgba(255,255,255,.1);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.pd-slide-initial {
  position: relative;
  z-index: 1;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  font-family: Georgia, serif;
  color: rgba(255,255,255,.9);
}

/* Cart image thumbnail with dots */
.cart-img {
  width: 90px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.cart-img:active { cursor: grabbing; }
.cart-img-dots {
  position: absolute;
  bottom: 5px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 3px;
}
.cart-img-dots .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }
.cart-img-dots .dot.active { background: rgba(255,255,255,.9); }

/* Product Detail Action Bar */
.product-action-bar {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg);
  z-index: 10;
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
#page-product:not(.active) .product-action-bar { display: none; }

.action-bar-back {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.action-bar-back svg { width: 20px; height: 20px; }

.add-to-cart-btn {
  flex: 1;
  height: 48px;
  border-radius: var(--r-pill);
  background: var(--txt1);
  color: var(--white);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.add-to-cart-btn:active { transform: scale(.97); }
.add-to-cart-btn.in-cart { background: var(--accent); }
.add-to-cart-btn.disabled {
  background: #c8c5c0;
  color: #fff;
  cursor: not-allowed;
}
.add-to-cart-btn.disabled:active { transform: none; }
.add-to-cart-btn svg { width: 18px; height: 18px; }

.action-bar-fav,
.action-bar-share {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.action-bar-fav svg, .action-bar-share svg { width: 20px; height: 20px; }
.action-bar-fav.active svg { color: var(--accent); fill: var(--accent); }

/* ============================================================
   FAVORITES PAGE
   ============================================================ */
#page-favorites { background: var(--bg); }

.favorites-list { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }

.fav-card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
}

.fav-img {
  width: 90px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.fav-img:active { cursor: grabbing; }
.fav-img-initial {
  font-size: 16px;
  font-weight: 700;
  font-family: Georgia, serif;
  color: rgba(255,255,255,.8);
}
.fav-img-dots {
  position: absolute;
  bottom: 5px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 3px;
}
.fav-img-dots .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }
.fav-img-dots .dot.active { background: rgba(255,255,255,.9); }

.fav-info { flex: 1; min-width: 0; }
.fav-brand { font-size: 20px; font-weight: 800; color: var(--txt1); }
.fav-price { font-size: 20px; font-weight: 800; color: var(--txt1); float: right; }
.fav-name  { font-size: 13px; color: var(--txt2); margin-top: 2px; }

.fav-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fav-label { font-size: 13px; color: var(--txt2); }

.fav-color-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.1);
}
.fav-color-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.fav-color-check svg { width: 12px; height: 12px; }

.fav-size-pill {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 13px;
  color: var(--txt2);
  cursor: pointer;
}
.fav-size-pill.active {
  background: var(--txt2);
  color: var(--white);
}

.fav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.fav-add-cart-btn {
  flex: 1;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.fav-add-cart-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.fav-add-cart-btn.active {
  background: var(--txt1);
  color: var(--white);
}

.fav-heart-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fdeae5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s;
}
.fav-heart-btn:active { transform: scale(.88); }
.fav-heart-btn svg { width: 20px; height: 20px; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}
.empty-icon-wrap {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.empty-icon-wrap svg { width: 42px; height: 42px; color: var(--txt3); }
.empty-title { font-size: 18px; font-weight: 600; color: var(--txt1); margin-bottom: 6px; }
.empty-desc  { font-size: 14px; color: var(--txt2); line-height: 1.5; }

/* ============================================================
   CART PAGE
   ============================================================ */
#page-cart { background: var(--bg); }

.cart-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }

.cart-card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  gap: 12px;
  position: relative;
}

.cart-img-initial { font-size: 16px; font-weight: 700; font-family: Georgia, serif; color: rgba(255,255,255,.8); }

.cart-info { flex: 1; min-width: 0; }
.cart-brand { font-size: 18px; font-weight: 800; }
.cart-price { font-size: 18px; font-weight: 800; float: right; }
.cart-name  { font-size: 13px; color: var(--txt2); margin-top: 2px; }

.cart-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cart-meta-label { font-size: 13px; color: var(--txt2); }
.cart-color-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; }
.cart-color-dot svg { width: 11px; height: 11px; color: #fff; }

.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.qty-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--txt1);
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.qty-btn:active { background: var(--txt3); }
.qty-value { font-size: 16px; font-weight: 600; min-width: 24px; text-align: center; }
.cart-delete {
  position: absolute;
  bottom: 14px; right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--txt3);
  -webkit-tap-highlight-color: transparent;
}
.cart-delete svg { width: 20px; height: 20px; }

.cart-total-bar {
  padding: 16px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total-label { font-size: 15px; color: var(--txt2); }
.cart-total-amount { font-size: 18px; font-weight: 800; }

.checkout-btn {
  margin: 8px 16px 16px;
  width: calc(100% - 32px);
  height: 54px;
  border-radius: var(--r-pill);
  background: var(--txt1);
  color: var(--white);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.checkout-btn:active { transform: scale(.98); }
.checkout-btn svg { width: 20px; height: 20px; }

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
#page-account { background: var(--bg); }

.account-menu-card {
  margin: 8px 16px;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.account-menu-item:last-child { border-bottom: none; }
.account-menu-item:active { background: var(--bg); }
.account-menu-item span { flex: 1; font-size: 17px; color: var(--txt1); }
.account-menu-item svg.arrow { width: 16px; height: 16px; color: var(--txt3); }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
#page-profile { background: var(--bg); }

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  position: relative;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg,#a18cd1,#6c63ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.profile-name { font-size: 16px; font-weight: 600; }
.profile-tg { font-size: 13px; color: var(--txt2); margin-top: 2px; }
.profile-edit-btn {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-fields { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }

.profile-field {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.profile-field-label { font-size: 13px; color: var(--txt2); margin-bottom: 4px; }
.profile-field-value { font-size: 15px; font-weight: 500; color: var(--txt1); display: flex; align-items: center; gap: 8px; }
.copy-btn { background: none; border: none; cursor: pointer; color: var(--txt3); -webkit-tap-highlight-color: transparent; }
.copy-btn svg { width: 16px; height: 16px; }

/* ============================================================
   ADDRESSES PAGE
   ============================================================ */
.add-address-btn {
  margin: 16px;
  width: calc(100% - 32px);
  height: 54px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s, transform .1s;
}
.add-address-btn:active { transform: scale(.98); }

/* ============================================================
   ORDERS PAGE
   ============================================================ */
/* Uses empty-state styles */

/* ============================================================
   SEARCH PAGE
   ============================================================ */
#page-search { background: var(--bg); }

.search-bar-wrap {
  padding: 16px 16px 12px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.search-bar svg { width: 20px; height: 20px; color: var(--txt3); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 16px;
  color: var(--txt1);
  outline: none;
  caret-color: var(--accent);
}
.search-input::placeholder { color: var(--txt3); }
.search-clear {
  width: 20px; height: 20px;
  background: var(--txt3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transition: opacity .15s;
}
.search-clear.visible { opacity: 1; }
.search-clear svg { width: 10px; height: 10px; color: #fff; }

.search-results { padding: 0 16px; }
.search-results-label { font-size: 13px; color: var(--txt2); padding: 4px 0 12px; }

/* ============================================================
   FILTER MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.filter-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  z-index: 201;
  padding: 20px 20px calc(var(--safe-b) + 20px);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  max-height: 80vh;
  overflow-y: auto;
}
.filter-modal.open { transform: translateX(-50%) translateY(0); }

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.filter-modal-header h2 { font-size: 24px; font-weight: 700; }
.filter-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.filter-close svg { width: 16px; height: 16px; }

.filter-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: var(--r-card);
  margin-bottom: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.filter-item:active { background: #e8e8ed; }
.filter-item svg.fi { width: 22px; height: 22px; color: var(--txt2); flex-shrink: 0; }
.filter-item span { flex: 1; font-size: 16px; color: var(--txt1); }
.filter-item svg.arrow { width: 16px; height: 16px; color: var(--txt3); }

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.filter-clear-btn {
  flex: 1;
  height: 50px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--txt1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.filter-apply-btn {
  flex: 1;
  height: 50px;
  border-radius: var(--r-pill);
  background: var(--accent);
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s;
}
.filter-apply-btn:active { opacity: .85; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--txt1);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 300;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 40px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE (desktop centering)
   ============================================================ */
@media (min-width: 480px) {
  .bottom-nav { border-left: 1px solid rgba(0,0,0,.05); border-right: 1px solid rgba(0,0,0,.05); }
  #app { box-shadow: 0 0 60px rgba(0,0,0,.15); }
}

/* ============================================================
   LOADING OVERLAY (Airtable)
   ============================================================ */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(242,242,247,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#loading-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(0,0,0,.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-size: 14px;
  color: var(--txt2);
  font-weight: 500;
}

/* ============================================================
   SCROLLBAR (hide on mobile-look)
   ============================================================ */
.page::-webkit-scrollbar,
.product-detail-scroll::-webkit-scrollbar,
.filter-modal::-webkit-scrollbar { display: none; }

/* ============================================================
   SHOP — "Скоро будет" заглушка для женской категории
   ============================================================ */
.shop-coming-soon {
  display: none;
  margin: 40px 20px;
  padding: 56px 32px;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  text-align: center;
}
.shop-coming-soon.visible { display: block; }
.shop-coming-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: var(--accent-lite);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.shop-coming-icon svg { width: 28px; height: 28px; }
.shop-coming-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--txt1);
  margin-bottom: 8px;
}
.shop-coming-desc {
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.5;
}

/* ============================================================
   HOME v2 (планшет/ПК) — текст + большое фото справа + 3 фичи
   ============================================================ */
.home-hero-v2 { display: none; }
.home-features { display: none; }

@media (min-width: 768px) {
  /* Скрываем мобильный hero */
  #page-home .home-hero { display: none; }
  .home-logo-area { display: none; }

  .home-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px 0;
    min-height: 560px;
  }
  .home-hero-v2-left {
    padding-top: 20px;
  }
  .home-hero-v2-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
    color: var(--txt1);
    margin-bottom: 28px;
  }
  .home-hero-v2-desc {
    font-size: 16px;
    line-height: 1.55;
    color: var(--txt2);
    margin-bottom: 56px;
    max-width: 460px;
  }
  .home-hero-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--white);
    border: 1px solid #e6e6eb;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--txt1);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
  }
  .home-hero-v2-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
  .home-hero-v2-btn svg { width: 16px; height: 16px; }

  .home-hero-v2-right {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .home-hero-v2-img {
    width: 100%;
    max-width: 760px;
    height: auto;
    max-height: 640px;
    object-fit: contain;
    object-position: bottom;
    /* белый фон картинки смешиваем с серым фоном сайта */
    mix-blend-mode: multiply;
  }

  /* Value-prop карточки */
  .home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 48px auto;
    padding: 0 48px;
  }
  .home-feature {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 28px 28px 32px;
  }
  .home-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt2);
    margin-bottom: 56px;
  }
  .home-feature-icon svg { width: 22px; height: 22px; }
  .home-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--txt1);
    margin-bottom: 8px;
  }
  .home-feature-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--txt2);
  }
}

@media (min-width: 1200px) {
  .home-hero-v2-title { font-size: 64px; }
}

/* ============================================================
   TOP HEADER (планшет/ПК) — скрыт на мобиле
   ============================================================ */
.top-header { display: none; }
.top-search-dropdown { display: none; }
.menu-overlay { display: none; }
.drawer-backdrop { display: none; }
.drawer-close { display: none; }

/* ============================================================
   RIGHT DRAWER (корзина / избранное) — только планшет/ПК
   ============================================================ */
@media (min-width: 768px) {
  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 2040;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .drawer-backdrop.open { opacity: 1; visibility: visible; }

  /* page-cart / page-favorites превращаются в правую панель под шапкой */
  #page-cart, #page-favorites {
    display: block !important;
    position: fixed !important;
    top: var(--top-header-h) !important;
    right: 0;
    bottom: 0;
    left: auto;
    width: 460px;
    max-width: 92vw;
    height: calc(100vh - var(--top-header-h));
    transition: transform .32s cubic-bezier(.4,0,.2,1) !important;
    opacity: 1 !important;
    z-index: 2050;
    background: var(--white);
    box-shadow: -10px 0 50px rgba(0,0,0,.18);
    overflow-y: auto;
    padding: 0 0 24px;
    border-radius: 0;
  }
  /* закрыто — уезжает вправо; применяется только когда НЕ открыто */
  #page-cart:not(.drawer-open),
  #page-favorites:not(.drawer-open) { transform: translateX(110%) !important; }
  #page-cart.drawer-open,
  #page-favorites.drawer-open {
    transform: translateX(0) !important;
    /* перебиваем .page { pointer-events: none } — иначе клики проходили на backdrop */
    pointer-events: auto !important;
  }
  /* Когда панели закрыты — не ловят клики (но видимый backdrop не нужен под ними) */
  #page-cart:not(.drawer-open),
  #page-favorites:not(.drawer-open) { pointer-events: none !important; }

  /* Заголовок панели */
  #page-cart .page-header,
  #page-favorites .page-header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 16px;
  }
  .drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: none;
    background: var(--bg-soft, #f4f4f6);
    border-radius: 50%;
    cursor: pointer;
    color: var(--txt1);
  }
  .drawer-close:hover { background: #e6e6eb; }
  .drawer-close svg { width: 18px; height: 18px; }

  /* Внутренние списки — нормальная ширина внутри панели */
  #page-cart .cart-list, #page-favorites .favorites-list { padding: 0 20px; }

  /* Низ корзины (сумма + оплата) — прижать к низу панели */
  #page-cart .cart-total-bar {
    position: sticky;
    bottom: 0;
    background: var(--white);
    margin-top: auto;
  }
}

/* ============================================================
   BRANDS GRID
   ============================================================ */
.brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px 24px;
}
.brand-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.brand-card-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  background: var(--white);
  z-index: 2;
}
.brand-card-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--txt2);
  padding: 16px;
  line-height: 1.15;
  background: linear-gradient(135deg, #f8f8fa, #e8e8ec);
}
/* "Другое" — карточка-объединитель для прочих категорий */
.brand-card-ghost.brand-card-misc {
  color: var(--txt1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 24px;
  background: var(--white);
}

/* ============================================================
   TABLET / DESKTOP (>= 768px)
   ============================================================ */
@media (min-width: 768px) {
  :root { --top-header-h: 72px; }

  html, body { overflow: auto; }

  #app {
    max-width: none;
    width: 100%;
    height: 100dvh;
    padding-top: var(--top-header-h);
  }

  /* Pages start below the header. На десктопе показываем только активную
     (без боковых трансформов чтоб не было горизонтального скролла #app). */
  .page {
    top: var(--top-header-h);
    padding-bottom: 32px;
    transform: none !important;
    transition: opacity .2s;
    display: none;
  }
  .page.active   { display: block; opacity: 1; }
  .page.slide-out-left { display: none; opacity: 0; }
  #app { overflow: clip; }

  /* Hide mobile bottom-nav */
  .bottom-nav { display: none !important; }

  /* Top header — серый, без бордера, выше оверлея */
  .top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-header-h);
    background: var(--bg);
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
    z-index: 2100;
  }
  /* Поиск в шапке — на сером фоне делаем белым чтоб выделялся */
  .top-search-wrap { background: var(--white); }
  .top-icon-btn { background: var(--white); }
  .top-icon-btn:hover { background: #e9e9ec; }
  .top-nav-left {
    display: flex;
    gap: 28px;
    justify-self: start;
  }
  .top-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--txt1);
    text-decoration: none;
    cursor: pointer;
    transition: color .15s;
    background: none;
    border: none;
    padding: 8px 4px;
    font-family: inherit;
  }
  .top-nav-link:hover { color: var(--accent); }

  .top-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    line-height: 1;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  .top-logo-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 3px;
    transition: font-size .35s cubic-bezier(.4,0,.2,1), letter-spacing .35s;
  }
  .top-logo-sub {
    font-size: 8.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--txt2);
    margin-top: 3px;
    transition: font-size .35s cubic-bezier(.4,0,.2,1);
  }
  /* На главной вверху — крупный лого, выступает ниже шапки */
  .top-header.logo-large .top-logo { transform: translateY(26px); }
  .top-header.logo-large .top-logo-text { font-size: 46px; letter-spacing: 6px; }
  .top-header.logo-large .top-logo-sub { font-size: 12px; letter-spacing: 3px; margin-top: 5px; }

  /* Вырез под лого когда открыт оверлей (как у Rill Stuff):
     шапка становится белой и под лого свисает белый закруглённый язычок,
     сливающийся с белой панелью оверлея */
  .top-header.menu-active { background: var(--white); }
  .top-header.menu-active .top-logo { transform: none; }
  .top-header.menu-active .top-logo-text { font-size: 22px; letter-spacing: 3px; }
  .top-header.menu-active .top-logo-sub { font-size: 8.5px; letter-spacing: 2px; margin-top: 3px; }
  .top-header.menu-active::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 44px;
    background: var(--white);
    border-bottom-left-radius: 120px;
    border-bottom-right-radius: 120px;
    pointer-events: none;
  }

  .top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
  }
  .top-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
    height: 40px;
    background: var(--bg);
    border-radius: var(--r-pill);
    padding: 0 14px;
    transition: width .2s;
  }
  .top-search-wrap:focus-within { width: 360px; }
  .top-search-icon {
    width: 18px;
    height: 18px;
    color: var(--txt2);
    flex-shrink: 0;
  }
  .top-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--txt1);
    padding: 0 8px;
    width: 100%;
  }
  .top-search-input::placeholder { color: var(--txt3); }
  .top-search-clear {
    display: none;
    width: 20px;
    height: 20px;
    border: none;
    background: var(--txt3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
  }
  .top-search-clear svg { width: 12px; height: 12px; }
  .top-search-clear.visible { display: inline-flex; }

  .top-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1100;
    padding: 8px;
  }
  .top-search-dropdown.open { display: block; }
  .top-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s;
  }
  .top-search-row:hover { background: var(--bg); }
  .top-search-row-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--bg);
    flex-shrink: 0;
    object-fit: cover;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--txt2);
  }
  .top-search-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .top-search-row-brand {
    font-size: 12px;
    color: var(--txt2);
    font-weight: 500;
  }
  .top-search-row-name {
    font-size: 13px;
    color: var(--txt1);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-search-row-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--txt1);
    margin-left: 8px;
    white-space: nowrap;
  }
  .top-search-empty {
    padding: 16px;
    text-align: center;
    color: var(--txt2);
    font-size: 13px;
  }
  .top-search-footer {
    border-top: 1px solid var(--bg);
    margin-top: 6px;
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
  }

  .top-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--txt1);
    transition: background .15s;
  }
  .top-icon-btn:hover { background: #e6e6eb; }
  .top-icon-btn svg { width: 18px; height: 18px; }
  .top-icon-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: white;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
  }
  .top-icon-badge.visible { display: inline-flex; }

  /* Wider catalog grid */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 32px 32px;
    max-width: 1400px;
    margin: 0 auto;
  }

  /* Шапка каталога прилипает к верху скролл-контейнера (он уже под фикс-шапкой);
     заголовок слева, фильтры справа в одной строке */
  .catalog-sticky {
    top: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 32px;
  }
  .catalog-sticky .catalog-header {
    flex: 0 1 auto;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .catalog-sticky .catalog-toolbar {
    flex: 0 0 auto;
    padding: 0;
    margin: 0 0 0 auto;   /* прижать к правому краю */
  }
  .page-header, .search-bar-wrap {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  .catalog-header h1, .page-header h1 { font-size: 30px; }

  /* Shop / cart / fav / account — center the cards */
  .shop-sections, .favorites-list, .cart-list, .account-menu-card,
  .profile-fields, .profile-avatar-row {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Product detail — two-column layout */
  #page-product .product-detail-scroll {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px 48px;
    height: auto;
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 40px;
    align-items: stretch;   /* колонки одной высоты → action bar к низу картинки */
  }
  #page-product .product-detail-img-area {
    position: sticky;
    top: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--photo-bg);
    align-self: start;
  }
  /* Карусель — не квадрат, а вписанная по высоте; картинка целиком */
  #page-product .pd-carousel-wrap {
    aspect-ratio: 4 / 5;
    max-height: 620px;
  }
  #page-product .product-detail-info,
  #page-product .product-detail-desc {
    padding: 0;
  }
  /* Правая колонка — flex: описание растягивается, action bar пинится к низу */
  #page-product .product-detail-info {
    display: flex;
    flex-direction: column;
  }
  #page-product .product-detail-desc { margin-top: 22px; }
  /* Футер ARYX — во всю ширину под колонками */
  #page-product .pd-footer {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 32px;
    border-top: 1px solid #ececef;
  }

  /* Action bar — внизу правой колонки (на уровне низа картинки) */
  .product-action-bar {
    position: static !important;
    transform: none !important;
    width: auto;
    max-width: none;
    margin-top: auto;     /* прижать к низу flex-колонки */
    padding-top: 24px;
    box-shadow: none;
    background: transparent;
    display: flex;
    gap: 10px;
  }
  /* Хлебные крошки — видны на ПК */
  .pd-breadcrumbs { display: flex !important; }
  /* Футер ARYX занимает обе колонки внизу */
  .pd-footer { grid-column: 1 / -1; }

  /* Hero на главной — растянуть, второй лого скрыть (он уже есть в top-header) */
  .home-hero {
    max-width: 1000px;
    margin: 32px auto 48px;
    min-height: 480px;
  }
  .home-logo-area { display: none; }

  /* Hide the mobile search page since search lives in header */
  #page-search { display: none !important; }

  /* Accordion-секции магазина не нужны на десктопе (всё в оверлее) */
  .shop-sections { display: none !important; }
  .shop-header { display: none; }
  /* Заглушку "Скоро" (Женщинам) центрируем по контенту */
  #page-shop .shop-coming-soon { max-width: 700px; margin: 60px auto; }
}

/* ============================================================
   DESKTOP LARGE (>= 1200px) — 5 columns
   ============================================================ */
@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================================
   BRANDS GRID — wider on tablet/PC
   ============================================================ */
@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 32px 32px;
    max-width: 1400px;
    margin: 0 auto;
  }
  .brand-card-name { font-size: 20px; }
}
@media (min-width: 1200px) {
  .brands-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1600px) {
  .brands-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================================
   MEGA-MENU OVERLAY (общий для Новинки/Бренды/Категории)
   ============================================================ */
@media (min-width: 768px) {
  .menu-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: var(--top-header-h);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s;
  }
  .menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .menu-panel {
    background: var(--white);
    width: 100%;
    min-height: calc(100vh - var(--top-header-h));
    display: grid;
    grid-template-columns: 380px 1fr;
    padding: 28px 48px 56px;
    gap: 56px;
    position: relative;
    overflow-y: auto;
  }
  .menu-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--txt1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  .menu-close:hover { background: var(--bg); }
  .menu-close svg { width: 20px; height: 20px; }

  .menu-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 8px;
    max-height: calc(100vh - var(--top-header-h) - 40px);
    overflow-y: auto;
  }
  .menu-sidebar::-webkit-scrollbar { width: 4px; }
  .menu-sidebar::-webkit-scrollbar-thumb { background: #e6e6eb; border-radius: 2px; }

  /* Row — общий стиль строки бокового меню */
  .menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: background .15s;
    font-size: 15px;
    font-weight: 500;
    color: var(--txt1);
    user-select: none;
  }
  .menu-row:hover { background: var(--bg); }
  .menu-row.expanded { background: var(--bg); font-weight: 600; }
  .menu-row-icon {
    width: 20px;
    height: 20px;
    color: var(--txt2);
    flex-shrink: 0;
  }
  .menu-row-icon svg { width: 100%; height: 100%; }
  .menu-row-text { flex: 1; }
  .menu-row-arrow {
    width: 14px;
    height: 14px;
    color: var(--txt3);
    transition: transform .2s;
  }
  .menu-row.expanded > .menu-row-arrow { transform: rotate(90deg); }
  .menu-row.expanded.lvl-root > .menu-row-arrow { transform: rotate(180deg); }
  .menu-row.lvl-root { font-size: 16px; font-weight: 600; }
  .menu-row.lvl-2 { padding-left: 44px; font-size: 14px; }
  .menu-row.lvl-3 { padding-left: 68px; font-size: 13.5px; color: var(--txt2); font-weight: 500; }
  .menu-row.lvl-3:hover { color: var(--txt1); }

  .menu-sub {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .menu-sub.open { display: flex; }

  /* Right content */
  .menu-content { padding-top: 8px; min-width: 0; }
  .menu-content-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--txt1);
  }
  .menu-collections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .menu-coll-card {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 60vh;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s;
    background: linear-gradient(135deg, #d8c5a8, #a8917a);
  }
  .menu-coll-card:hover { transform: translateY(-3px); }
  .menu-coll-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    /* Плавное затухание левого края → фон проступает под текстом */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%);
  }
  .menu-coll-body {
    z-index: 2;
    max-width: 55%;
  }
  .menu-coll-btn { z-index: 2; }
  .menu-coll-body {
    position: absolute;
    inset: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--txt1);
  }
  .menu-coll-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.15;
    color: var(--txt1);
    text-shadow: 0 1px 2px rgba(255,255,255,.6);
  }
  .menu-coll-desc {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(28,28,30,.78);
    max-width: 80%;
    text-shadow: 0 1px 2px rgba(255,255,255,.5);
  }
  .menu-coll-btn {
    position: absolute;
    left: 28px;
    bottom: 28px;
    background: var(--white);
    color: var(--txt1);
    border: none;
    border-radius: var(--r-pill);
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
  }
  .menu-coll-btn:hover { background: #f8f8fa; }
}

/* ============================================================
   AUTH / PROFILE / ADDRESSES
   ============================================================ */
/* Bottom-sheet модалка (логин, адрес) */
.sheet-modal {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(110%);
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  z-index: 3200;
  padding: 20px 20px calc(24px + var(--safe-b));
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 88vh;
  overflow-y: auto;
}
.sheet-modal.open { transform: translateX(-50%) translateY(0); }
.sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-header h2 { font-size: 22px; font-weight: 800; }
.sheet-close {
  width: 34px; height: 34px; border: none; background: var(--bg);
  border-radius: 50%; cursor: pointer; color: var(--txt1);
  display: flex; align-items: center; justify-content: center;
}
.sheet-close svg { width: 16px; height: 16px; }
.sheet-desc { font-size: 13px; color: var(--txt2); margin-bottom: 18px; line-height: 1.45; }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; color: var(--txt2); margin-bottom: 6px; letter-spacing: .2px; }
.form-field input {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1.5px solid #e6e6eb; border-radius: 12px;
  background: var(--white); font-size: 15px; color: var(--txt1);
  outline: none; transition: border-color .15s;
  -webkit-appearance: none;
}
.form-field input:focus { border-color: var(--txt1); }
.form-row { display: flex; gap: 10px; }
.form-row .form-field { flex: 1; }

.sheet-submit {
  width: 100%; height: 52px; margin-top: 8px;
  background: var(--txt1); color: var(--white); border: none;
  border-radius: var(--r-pill); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform .15s;
}
.sheet-submit:active { transform: scale(.98); }
.form-cancel {
  flex: 1; height: 52px; background: var(--bg); color: var(--txt1);
  border: none; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; cursor: pointer;
}

/* Auth-промпт на странице аккаунта */
.auth-prompt { text-align: center; padding: 48px 24px; }
.auth-prompt-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent-lite); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.auth-prompt-icon svg { width: 34px; height: 34px; }
.auth-prompt-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.auth-prompt-desc { font-size: 14px; color: var(--txt2); line-height: 1.5; margin-bottom: 24px; }
.auth-prompt-btn {
  min-width: 200px; height: 52px; padding: 0 32px;
  background: var(--txt1); color: var(--white); border: none;
  border-radius: var(--r-pill); font-size: 15px; font-weight: 700; cursor: pointer;
}
.auth-prompt-btn:active { transform: scale(.98); }

/* Карточка пользователя на аккаунте */
.account-user-card {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 16px; padding: 18px;
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.account-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--txt1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; flex-shrink: 0;
}
.account-user-name { font-size: 18px; font-weight: 700; }
.account-user-sub { font-size: 13px; color: var(--txt2); margin-top: 2px; }

.logout-btn {
  display: block; margin: 8px 16px; width: calc(100% - 32px);
  height: 50px; background: var(--white); color: var(--accent);
  border: none; border-radius: var(--r-card); box-shadow: var(--shadow);
  font-size: 15px; font-weight: 600; cursor: pointer;
}

/* Профиль — режим редактирования */
.profile-edit { padding: 16px; }
.profile-edit-actions { display: flex; gap: 10px; margin-top: 8px; }

/* Адреса */
.addr-cards { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px; }
.addr-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.addr-card-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--bg); color: var(--txt2);
  display: flex; align-items: center; justify-content: center;
}
.addr-card-icon svg { width: 20px; height: 20px; }
.addr-card-body { flex: 1; min-width: 0; }
.addr-card-line { font-size: 14px; font-weight: 600; color: var(--txt1); }
.addr-card-sub { font-size: 12px; color: var(--txt2); margin-top: 3px; }
.addr-card-del { border: none; background: none; color: var(--txt3); cursor: pointer; padding: 6px; }
.addr-card-del svg { width: 20px; height: 20px; }
.addr-card-del:hover { color: var(--accent); }

/* На ПК модалки центрируем, а не снизу */
@media (min-width: 768px) {
  .sheet-modal {
    bottom: auto; top: 50%; max-width: 440px;
    border-radius: 20px;
    transform: translate(-50%, -45%) scale(.96);
    opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .sheet-modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
}

/* Оверлеи auth/address — поверх шапки, дровера и меню */
#auth-overlay, #addr-overlay { z-index: 3150; }

/* ============================================================
   PRODUCT DESCRIPTION ACCORDION (Описание / Материалы / Доставка)
   ============================================================ */
.product-detail-desc { padding: 8px 20px 0; }
.pd-acc { border-top: 1px solid #e8e6e2; }
.pd-acc:last-child { border-bottom: 1px solid #e8e6e2; }
.pd-acc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px; cursor: pointer; user-select: none;
  font-size: 17px; font-weight: 600; color: var(--txt1);
}
.pd-acc-chev { width: 20px; height: 20px; color: var(--txt2); transition: transform .25s; flex-shrink: 0; }
.pd-acc.open .pd-acc-chev { transform: rotate(180deg); }
.pd-acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s cubic-bezier(.4,0,.2,1);
}
.pd-acc.open .pd-acc-body { max-height: 600px; }
.pd-acc-text { font-size: 14px; line-height: 1.6; color: var(--txt2); padding-bottom: 16px; }
.pd-acc-list { margin: 0 0 16px; padding-left: 20px; }
.pd-acc-list li { font-size: 14px; line-height: 1.7; color: var(--txt2); }
.pd-meta { padding-bottom: 18px; }
.pd-meta-row { display: flex; gap: 16px; font-size: 14px; padding: 5px 0; }
.pd-meta-row span { color: var(--txt3); min-width: 130px; }
.pd-meta-row b { color: var(--txt1); font-weight: 600; }
@media (min-width: 768px) { .product-detail-desc { padding: 0; } }

/* ---- Адрес доставки в корзине ---- */
.cart-addr-box { margin: 6px 0 0; padding: 14px; background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); }
.cart-addr-title { font-size: 14px; font-weight: 600; color: var(--txt1); margin-bottom: 10px; }
.cart-addr-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #f7f7fa; border: 1.5px solid transparent; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.cart-addr-row.sel { border-color: var(--txt1); background: #fff; }
.cart-addr-radio { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c7c7cc; position: relative; }
.cart-addr-row.sel .cart-addr-radio { border-color: var(--txt1); }
.cart-addr-row.sel .cart-addr-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--txt1); }
.cart-addr-line { font-size: 13px; color: var(--txt1); line-height: 1.35; }
.cart-addr-add { width: 100%; padding: 10px; border: 1.5px dashed #c7c7cc; border-radius: 10px; background: transparent; color: var(--txt2); font-size: 13px; font-weight: 500; cursor: pointer; }
.cart-addr-add:hover { border-color: var(--txt1); color: var(--txt1); }
.cart-addr-hint { font-size: 12px; color: var(--txt3); margin-top: 8px; }
