/* ============================================================
   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); }
/* На узких экранах три кнопки в строку — поджимаем отступы, чтобы ничего не срезалось */
@media (max-width: 430px) {
  .catalog-toolbar { gap: 7px; padding-left: 14px; padding-right: 14px; }
  .toolbar-btn { padding: 10px 12px; font-size: 13px; gap: 6px; }
  .toolbar-btn svg { width: 16px; height: 16px; }
  .gender-dropdown { left: 14px; }
}

/* 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); }
/* Выбор пола — тот же выпадающий список, но прижат влево, под свою кнопку */
.gender-dropdown { right: auto; left: 20px; min-width: 190px; transform-origin: top left; }

/* ===== Каталог с боковой панелью фильтров (только ПК) ===== */
.catalog-side { display: none; }
@media (min-width: 1024px) {
  .catalog-layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 0 20px;
  }
  .catalog-layout .product-grid { padding-left: 0; padding-right: 0; }
  .catalog-side {
    display: block;
    position: sticky;
    top: calc(var(--top-header-h) + 12px);
    max-height: calc(100vh - var(--top-header-h) - 28px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  /* Панель фильтров, переехавшая из модалки в колонку */
  .filter-modal.as-side {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    max-height: none;
    height: auto;
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    margin: 0;
    inset: auto;
  }
  /* .filter-modal.open ниже по файлу возвращает translateX(-50%) — гасим явно,
     иначе панель уезжает на пол-ширины влево и обрезается */
  .filter-modal.as-side,
  .filter-modal.as-side.open { transform: none; padding: 0; }
  .filter-modal.as-side .filter-modal-header { display: none; }   /* заголовок и крестик не нужны */
  .filter-modal.as-side .filter-body { max-height: none; overflow: visible; padding: 14px 16px; }
  .filter-modal.as-side .filter-actions { position: static; padding: 10px 16px 16px; border-top: 1px solid var(--bg); }
  .filter-modal.as-side .filter-apply-btn { display: none; }      /* на ПК фильтры применяются сразу */
  .filter-modal.as-side .filter-clear-btn { width: 100%; }
  /* Всё это есть в боковой панели — в тулбаре не дублируем */
  .catalog-toolbar .toolbar-btn.filters-btn,
  .catalog-toolbar #gender-btn,
  .catalog-toolbar #sort-btn { display: none; }
  .catalog-toolbar { padding-bottom: 0; }

  /* Сортировка — такой же сворачиваемый блок, как «Бренды» и «Категории» */
  .side-sort { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 0 16px; margin-bottom: 12px; }
  .side-sort .filt-opts { flex-direction: column; gap: 2px; }
  .side-sort-opt {
    display: block; width: 100%; text-align: left; border: none; background: none; cursor: pointer;
    padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--txt2);
  }
  .side-sort-opt:hover { background: var(--bg); }
  .side-sort-opt.on { background: var(--bg); color: var(--txt1); font-weight: 600; }

  /* Выбор пола над «Категориями» */
  .side-gender {
    background: var(--white);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    padding: 6px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .side-gender button {
    border: none; background: none; cursor: pointer;
    padding: 10px 6px; border-radius: 50px;
    font-size: 13.5px; font-weight: 600; color: var(--txt2);
    transition: background .15s, color .15s;
  }
  .side-gender button.on { background: var(--txt1); color: var(--white); }
}
.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-type  { display: block; font-size: 10.5px; font-weight: 600; color: var(--txt3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-brand { display: block; 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 { display: block; margin-top: 7px; font-size: 15px; font-weight: 700; color: var(--txt1); white-space: nowrap; }

/* ПК: бренд + цена в одну строку (на мобильных цена с новой строки) */
@media (min-width: 768px) {
  .product-card-info { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 6px; }
  .product-card-type  { grid-column: 1 / -1; grid-row: 1; }
  .product-card-brand { grid-column: 1; grid-row: 2; }
  .product-card-price { grid-column: 2; grid-row: 2; justify-self: end; margin-top: 0; font-size: 14px; }
  .product-card-name   { grid-column: 1 / -1; grid-row: 3; }
  .product-card-colors { grid-column: 1 / -1; grid-row: 4; }
  .product-card-sizes  { grid-column: 1 / -1; grid-row: 5; }
}
.product-card-colors { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 13px; }
.product-card-swatch {
  width: 27px; height: 27px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: inset 0 0 0 2px #fff;
  transition: transform .12s;
}
.product-card-swatch.on { outline: 2px solid var(--txt1); outline-offset: 2px; }
.product-card-swatch:hover { transform: scale(1.12); }
.product-card-swatch.single { cursor: default; }
.product-card-swatch.single:hover { transform: none; }
.product-card-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.product-card-size  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 13px;
  background: var(--bg);
  border-radius: var(--r-pill);
  font-size: 13px;
  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; }

/* На десктопе показываем полосу прокрутки страницы справа */
@media (min-width: 768px) {
  .page { scrollbar-width: thin; scrollbar-color: #c4c4cc transparent; }
  .page::-webkit-scrollbar { display: block; width: 12px; height: 12px; }
  .page::-webkit-scrollbar-track { background: transparent; }
  .page::-webkit-scrollbar-thumb {
    background: #c4c4cc;
    border-radius: 8px;
    border: 3px solid var(--bg);
    background-clip: padding-box;
  }
  .page::-webkit-scrollbar-thumb:hover { background: #a6a6b0; background-clip: padding-box; }
}

/* ============================================================
   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;
    /* серый фон уже запечён в PNG — multiply не нужен (ломался на Safari/Mac) */
  }

  /* 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; }
.pd-sizetbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.pd-sizetbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.pd-sizetbl th, .pd-sizetbl td { padding: 8px 10px; text-align: center; border-bottom: 1px solid rgba(0,0,0,.08); white-space: nowrap; }
.pd-sizetbl thead th { font-weight: 700; color: var(--txt1); background: var(--bg); }
.pd-sizetbl td { color: var(--txt2); }
.pd-sizetbl td:first-child { font-weight: 700; color: var(--txt1); }
.pd-acc-note { margin: 10px 0 16px; font-size: 12px; line-height: 1.5; color: var(--txt3); }
@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; }

/* ---- «Поделиться» и «Во весь экран» — только в Telegram Mini App ---- */
.action-bar-share { display: none; }
body.tg-app .action-bar-share { display: flex; }
#btn-fullscreen { display: none; }
body.tg-app #btn-fullscreen { display: flex; }

/* ===== Safe-area сверху: iPhone «остров»/чёлка + шапка Telegram =====
   Сдвигаем страницу через top (а не padding) — иначе ломается position:sticky
   у шапки каталога. Только на мобильных; десктоп не трогаем. */
@media (max-width: 767px) {
  .page { top: env(safe-area-inset-top, 0px); }
  body.tg-app .page { top: calc(env(safe-area-inset-top, 0px) + var(--tg-header, 0px)); }
}

/* ===== Мобильный hero — фон с моделями (как на ПК) ===== */
@media (max-width: 767px) {
  .home-hero {
    background:
      linear-gradient(180deg, rgba(18,22,28,.28) 0%, rgba(15,19,24,.55) 55%, rgba(12,15,19,.9) 100%),
      url("../main page img.png?v=20260713a") center 16%/cover no-repeat;
  }
  .home-hero-bg-text { display: none; }
}

/* ===== Новинки на главной (карусель, как у Rill Stuff) ===== */
.home-new { margin-top: 28px; }
.home-new-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; margin-bottom: 14px; }
.home-new-title { font-size: 22px; font-weight: 800; color: var(--txt1); letter-spacing: -.5px; }
.home-new-all { border: none; background: var(--white); color: var(--txt1); font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--r-pill); box-shadow: var(--shadow); cursor: pointer; flex-shrink: 0; }
.home-new-wrap { position: relative; }
.home-new-track { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.home-new-track::-webkit-scrollbar { display: none; }
.home-new-track .product-card { flex: 0 0 calc((100% - 14px) / 2); scroll-snap-align: start; }

/* Стрелки навигации (только ПК) */
.home-new-arrow { display: none; }
.home-new-arrow svg { width: 22px; height: 22px; }
@media (min-width: 768px) {
  .home-new { max-width: 1400px; margin: 36px auto 0; }
  .home-new-head { padding: 0 48px; }
  .home-new-track { padding: 4px 48px 14px; gap: 20px; scroll-padding-left: 48px; }
  .home-new-track .product-card { flex: 0 0 calc((100% - 60px) / 4); }
  .home-new-arrow {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 38%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: #fff; box-shadow: var(--shadow-lg); color: var(--txt1);
    cursor: pointer; z-index: 5; transition: background .15s, color .15s;
  }
  .home-new-arrow:hover { background: var(--txt1); color: #fff; }
  .home-new-arrow.prev { left: 22px; }
  .home-new-arrow.next { right: 22px; }
}
@media (min-width: 1200px) {
  .home-new-track .product-card { flex: 0 0 calc((100% - 80px) / 5); }
}

/* ===== NEW бейдж на карточке ===== */
.card-new-badge { position: absolute; top: 10px; left: 10px; z-index: 3; background: rgba(20,22,28,.92); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; }
.card-last-badge { position: absolute; bottom: 10px; left: 10px; z-index: 3; background: #c0392b; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .3px; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; box-shadow: 0 2px 6px rgba(192,57,43,.35); }
.pd-last-badge { display: inline-block; margin-left: 8px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .2px; padding: 3px 11px; border-radius: 999px; vertical-align: middle; }

@media (max-width: 767px) { .home-hero-figures { display: none; } }

/* ===== Плавающая кнопка «во весь экран» (только десктопный Telegram Mini App) ===== */
#tg-fs-btn { display: none; }
body.tg-desktop #tg-fs-btn {
  display: flex; align-items: center; justify-content: center;
  position: fixed; top: 8px; right: 14px; z-index: 9999;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.5); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .15s;
}
body.tg-desktop #tg-fs-btn:hover { background: rgba(0,0,0,.78); }
body.tg-desktop #tg-fs-btn svg { width: 18px; height: 18px; }

/* ===== Доставка в карточке товара (средняя стоимость по весу) ===== */
.pd-deliv-avg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 14px; color: var(--txt2); }
.pd-deliv-avg:last-of-type { border-bottom: none; }
.pd-deliv-avg b { color: var(--txt1); font-weight: 700; white-space: nowrap; }
.pd-deliv-note { font-size: 11px; color: var(--txt3); margin-top: 8px; }

/* ===== Подвал сайта с юр. ссылками ===== */
.site-foot { padding: 30px 20px calc(var(--nav-h) + var(--safe-b) + 28px); text-align: center; }
.site-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 12px; }
.site-foot-links a { color: var(--txt2); text-decoration: none; font-size: 13px; }
.site-foot-links a:hover { color: var(--txt1); }
.site-foot-req { font-size: 12px; color: var(--txt3); margin-top: 4px; }
@media (min-width: 768px) { .site-foot { padding-bottom: 44px; } }

/* ===== Баннер согласия на cookie ===== */
#cookie-banner {
  display: none; position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-b) + 10px);
  width: min(680px, calc(100% - 24px)); z-index: 4000;
  background: var(--white); box-shadow: var(--shadow-lg); border-radius: 14px;
  padding: 13px 15px; align-items: center; gap: 12px;
}
.cookie-text { font-size: 12.5px; color: var(--txt2); line-height: 1.4; flex: 1; }
.cookie-text a { color: var(--txt1); }
.cookie-ok { flex-shrink: 0; border: none; background: var(--txt1); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: var(--r-pill); cursor: pointer; }
@media (min-width: 768px) { #cookie-banner { bottom: 18px; } }

/* ===== Рабочие фильтры (аккордеон) ===== */
.filter-body { overflow-y: auto; max-height: 62vh; -webkit-overflow-scrolling: touch; }
.filt-sec { border-bottom: 1px solid rgba(0,0,0,.07); }
.filt-sec:last-child { border-bottom: none; }
.filt-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--txt1); }
.filt-head svg { width: 18px; height: 18px; color: var(--txt3); transition: transform .2s; }
.filt-sec.open .filt-head svg { transform: rotate(180deg); }
.filt-opts { display: none; flex-wrap: wrap; gap: 8px; padding: 2px 4px 16px; }
.filt-sec.open .filt-opts { display: flex; }
.filt-chip { border: 1.5px solid #e2e2e7; background: var(--white); border-radius: var(--r-pill); padding: 7px 14px; font-size: 13px; color: var(--txt2); cursor: pointer; transition: all .12s; }
.filt-chip.on { border-color: var(--txt1); background: var(--txt1); color: #fff; }
.filt-color { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #e2e2e7; background: var(--white); border-radius: var(--r-pill); padding: 5px 12px 5px 6px; font-size: 13px; color: var(--txt2); cursor: pointer; transition: all .12s; }
.filt-color.on { border-color: var(--txt1); }
.filt-dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; }
.filt-color.on .filt-dot { box-shadow: 0 0 0 2px var(--txt1); }

/* категории/размеры — мягкие кнопки (≈80%) + кнопка «Размеры» с бордером */
.filt-soft { opacity: .8; }
.filt-soft.on { opacity: 1; }
.filt-sizebtn { border: 1.5px solid var(--txt1); background: var(--white); color: var(--txt1); border-radius: var(--r-pill); padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.filt-sizebtn.on { background: var(--txt1); color: #fff; }
.filt-sizes { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.filt-hint { font-size: 13px; color: var(--txt3); }

/* Категории в столбик + «Размеры» справа */
.filt-cats { display: flex; gap: 16px; align-items: flex-start; width: 100%; }
.filt-cat-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex-shrink: 0; }
.filt-cat-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.filt-cat-right .filt-sizes { margin-top: 0; }

/* Категории — строчками с разделителями, у каждой своя кнопка «Размеры» */
.filt-catlist { width: 100%; }
.filt-catrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid rgba(0,0,0,.07); }
.filt-catname { background: none; border: none; padding: 0; font-size: 15px; color: var(--txt2); cursor: pointer; text-align: left; }
.filt-catname.on { color: var(--txt1); font-weight: 700; }
.filt-szbtn { flex-shrink: 0; border: 1px solid #dcdce0; background: var(--white); border-radius: var(--r-pill); padding: 5px 13px; font-size: 12px; color: var(--txt2); cursor: pointer; }
.filt-szbtn.on { border-color: var(--txt1); color: var(--txt1); font-weight: 600; }
.filt-szrow { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 12px; }

/* Наоборот: рамка у категорий, у «Размеры» — стрелка вниз */
.filt-catrow { border-bottom: none; padding: 6px 2px; }
.filt-catname { border: 1.5px solid #e2e2e7; background: var(--white); border-radius: var(--r-pill); padding: 8px 16px; font-size: 14px; color: var(--txt2); font-weight: 400; }
.filt-catname.on { border-color: var(--txt1); background: var(--txt1); color: #fff; font-weight: 600; }
.filt-szbtn { border: none; background: none; color: var(--txt2); display: inline-flex; align-items: center; gap: 5px; padding: 6px 2px; font-weight: 500; }
.filt-szbtn.on { color: var(--txt1); font-weight: 600; }
.szchev { width: 14px; height: 14px; transition: transform .2s; }
.filt-szbtn.on .szchev { transform: rotate(180deg); }

/* Фильтр по цене — ползунок «от–до» */
.filt-price { width: 100%; padding: 8px 6px 4px; }
.filt-price-head { display: flex; justify-content: space-between; margin-bottom: 16px; }
.filt-price-val { font-size: 14px; font-weight: 700; color: var(--txt1); }
.filt-price-slider { position: relative; height: 28px; }
.filt-price-track { position: absolute; top: 12px; left: 0; right: 0; height: 4px; background: #e2e2e7; border-radius: 2px; }
.filt-price-fill { position: absolute; top: 12px; height: 4px; background: var(--txt1); border-radius: 2px; }
.filt-price-slider input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.filt-price-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--txt1); cursor: pointer; box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.filt-price-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--txt1); cursor: pointer; }

/* Подсказки города в форме адреса */
.addr-sug { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 50; margin-top: 4px; background: var(--white); border: 1px solid #e2e2e7; border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; }
.addr-sug-item { padding: 11px 14px; font-size: 14px; color: var(--txt1); cursor: pointer; }
.addr-sug-item:hover { background: var(--bg); }

/* Калькулятор СДЭК в карточке */
.pd-cdek { display: flex; gap: 8px; margin-top: 10px; }
.pd-cdek-city { flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid #e2e2e7; border-radius: 12px; font-size: 14px; }
.pd-cdek-city:focus { outline: none; border-color: var(--txt1); }
.pd-cdek-btn { flex-shrink: 0; border: none; background: var(--txt1); color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pd-cdek-res:not(:empty) { margin-top: 10px; }

/* ===== Страница оформления заказа ===== */
.checkout-wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 40px; }
.co-sec { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.co-title { font-size: 13px; font-weight: 700; color: var(--txt3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.co-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.co-item:last-child { border-bottom: none; }
.co-item-img { width: 54px; height: 54px; border-radius: 10px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--photo-bg); }
.co-item-img.has-photo { background: #fff; }
.co-item-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.co-item-img span { font-weight: 800; color: #fff; font-size: 20px; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-name { font-size: 14px; color: var(--txt1); line-height: 1.3; }
.co-item-meta { font-size: 12px; color: var(--txt3); margin-top: 3px; }
.co-item-price { font-size: 14px; font-weight: 700; color: var(--txt1); white-space: nowrap; }
.co-addr { font-size: 14px; color: var(--txt1); line-height: 1.4; }
.co-deliv { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #f7f7fa; border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.co-deliv:last-child { margin-bottom: 0; }
.co-deliv.on { border-color: var(--txt1); background: #fff; }
.co-deliv-radio { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c7c7cc; position: relative; }
.co-deliv.on .co-deliv-radio { border-color: var(--txt1); }
.co-deliv.on .co-deliv-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--txt1); }
.co-deliv-label { flex: 1; font-size: 14px; color: var(--txt1); }
.co-deliv-note2 { color: var(--txt3); font-size: 12px; }
.co-deliv-cost { font-size: 14px; font-weight: 700; color: var(--txt1); white-space: nowrap; }
.co-summary { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.co-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--txt2); padding: 5px 0; }
.co-row b { color: var(--txt1); }
.co-total-row { border-top: 1px solid rgba(0,0,0,.08); margin-top: 6px; padding-top: 12px; font-size: 17px; }
.co-total-row b { font-size: 20px; font-weight: 800; }
.checkout-wrap .checkout-btn { display: flex; position: static; width: 100%; max-width: none; left: auto; right: auto; bottom: auto; transform: none; margin: 0; }

/* Переключатель пола в меню (Мужское/Женское) */
.menu-gender { display:flex; gap:8px; margin-bottom:14px; }
.menu-gender-btn { flex:1; padding:9px 0; border:1px solid #d9d9de; background:#fff; border-radius:10px; font-size:13px; font-weight:600; color:#555; cursor:pointer; letter-spacing:.3px; transition:.15s; }
.menu-gender-btn:hover { border-color:#111; }
.menu-gender-btn.on { background:#111; color:#fff; border-color:#111; }

/* Переключатель пола сверху витрины (мобилка) */
.home-gender { display:flex; gap:8px; padding:0 16px; margin:4px 0 16px; }
.home-gender-btn { flex:1; padding:11px 0; border:1px solid #d9d9de; background:#fff; border-radius:12px; font-size:14px; font-weight:600; color:#555; cursor:pointer; letter-spacing:.3px; transition:.15s; -webkit-tap-highlight-color:transparent; }
.home-gender-btn:active { transform:scale(.98); }
.home-gender-btn.on { background:#111; color:#fff; border-color:#111; }
@media (min-width:768px){ .home-gender { display:none; } }

/* Тёмная карточка коллекции (напр. Victoria's Secret) — светлый текст */
.menu-coll-card.coll-dark .menu-coll-name { color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.55); }
.menu-coll-card.coll-dark .menu-coll-desc { color:rgba(255,255,255,.82); text-shadow:0 1px 3px rgba(0,0,0,.55); }

/* Редакторские баннеры брендов на главной */
.home-brands { display:flex; flex-direction:column; margin-top:14px; }
.brand-story { display:grid; grid-template-columns:1fr 1fr; min-height:360px; }
.brand-story-text { padding:56px 48px; display:flex; flex-direction:column; justify-content:center; background:#f0efec; }
.brand-story-kicker { font-size:12px; letter-spacing:3px; text-transform:uppercase; color:#8f8f8f; margin-bottom:16px; }
.brand-story-title { font-size:34px; font-weight:700; letter-spacing:1px; margin-bottom:18px; color:#1c1c1e; line-height:1.1; }
.brand-story-desc { font-size:15px; line-height:1.7; color:#565656; max-width:460px; margin-bottom:30px; }
.brand-story-btn { align-self:flex-start; padding:14px 36px; border:1px solid #a5a5a5; border-radius:30px; background:transparent; color:#1c1c1e; font-size:12px; letter-spacing:2px; text-transform:uppercase; font-weight:600; cursor:pointer; transition:.18s; }
.brand-story-btn:hover { background:#141414; color:#fff; border-color:#141414; }
.brand-story-img { display:flex; align-items:center; justify-content:center; overflow:hidden; }
.brand-story-img img { width:100%; height:100%; object-fit:contain; }
.brand-story.reverse .brand-story-text { order:2; }
.brand-story.reverse .brand-story-img { order:1; }
@media (max-width:768px){
  .brand-story { grid-template-columns:1fr; }
  .brand-story-img { aspect-ratio:16/10; order:-1 !important; }
  .brand-story .brand-story-text { order:0 !important; padding:30px 22px; }
  .brand-story-title { font-size:26px; }
  .brand-story-desc { font-size:14px; }
}

/* Скрыть блок «Аутентичные товары / Доставка / Поддержка» (пока) */
.home-features { display:none !important; }

/* Плавный переход между текстовой и лого-половинами баннеров бренда */
.brand-story { background:#f0efec; }
.brand-story-text { background:transparent; }
.brand-story-img {
  -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%);
}
.brand-story.reverse .brand-story-img {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 28%, #000 100%);
          mask-image: linear-gradient(to left, transparent 0%, #000 28%, #000 100%);
}
@media (max-width:768px){
  .brand-story-img, .brand-story.reverse .brand-story-img {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
}

/* ===== Программа лояльности ===== */
.loy-back { border:none; background:none; font-size:14px; color:var(--txt2); padding:8px 0; cursor:pointer; }
.loy-card { background:var(--white); border-radius:var(--r-card); box-shadow:var(--shadow); padding:20px; margin-bottom:14px; }
.loy-title { font-size:16px; font-weight:700; margin-bottom:10px; }
.loy-desc { font-size:14px; color:var(--txt2); line-height:1.5; margin-bottom:12px; }
.loy-list { list-style:none; padding:0; margin:0 0 14px; font-size:14px; color:var(--txt1); }
.loy-list li { padding:5px 0; }
.loy-input { width:100%; padding:12px 14px; border:1px solid #e2e2e7; border-radius:10px; font-size:14px; margin-bottom:12px; text-transform:uppercase; }
.loy-hint { font-size:12.5px; color:var(--txt3); line-height:1.45; margin-top:8px; }
.loy-balance-label { font-size:13px; color:var(--txt3); }
.loy-balance { font-size:34px; font-weight:800; margin:4px 0 6px; }
.loy-balance span { font-size:16px; font-weight:600; color:var(--txt2); }
.loy-sub { font-size:12.5px; color:var(--txt3); }
.loy-ref-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:9px 0; border-top:1px solid var(--bg); font-size:13.5px; }
.loy-ref-row b { letter-spacing:1px; }
.loy-copy { margin-left:auto; border:none; background:var(--bg); padding:8px 14px; border-radius:8px; font-size:12.5px; font-weight:600; cursor:pointer; }
.loy-txn { display:flex; justify-content:space-between; padding:8px 0; border-top:1px solid var(--bg); font-size:13.5px; }
.loy-txn b.plus { color:#1a9c4b; } .loy-txn b.minus { color:#c0392b; }
.loy-co { margin-top:14px; }
.loy-co-bal { font-size:12.5px; color:var(--txt3); font-weight:400; }
.loy-spend-btn {
  width:100%; height:48px; margin:10px 0 4px;
  background:var(--bg); color:var(--txt1); border:1px solid #e2e2e7;
  border-radius:var(--r-pill); font-size:14.5px; font-weight:700; cursor:pointer;
}
.loy-spend-btn:active { transform:scale(.98); }
.loy-spend-btn.active { background:var(--txt1); color:var(--white); border-color:var(--txt1); }

/* ===== Бонусная карта в аккаунте (стиль Летуаль) ===== */
.bonus-card { position:relative; border-radius:18px; padding:22px 20px; margin:12px 16px; cursor:pointer;
  background:linear-gradient(120deg,#101014 0%,#26262e 55%,#3a3a46 100%); color:#fff; overflow:hidden;
  display:flex; align-items:center; justify-content:space-between; gap:14px; box-shadow:var(--shadow); }
.bonus-card::after { content:''; position:absolute; right:-40px; top:-60px; width:180px; height:180px;
  background:radial-gradient(circle,rgba(255,255,255,.14),transparent 70%); }
.bonus-amount { font-size:30px; font-weight:800; background:rgba(255,255,255,.12); padding:10px 18px; border-radius:14px; }
.bonus-meta { display:flex; gap:18px; font-size:12px; color:#c9c9d1; text-align:right; line-height:1.35; }
.bonus-meta b { color:#fff; font-size:15px; }
.bonus-card-join { flex-direction:column; align-items:flex-start; gap:6px; }
.bonus-join-t { font-size:18px; font-weight:800; }
.bonus-join-d { font-size:13px; color:#c9c9d1; }

/* ===== Кабинет: сайдбар (ПК) как у Летуаль ===== */
#acc-side { display:none; }
@media (min-width: 768px) {
  .acc-layout { display:grid; grid-template-columns:250px minmax(0,720px); gap:24px; max-width:1030px; margin:0 auto; padding:8px 24px 40px; align-items:start; }
  #acc-side { display:block; background:var(--white); border-radius:var(--r-card); box-shadow:var(--shadow); padding:10px; position:sticky; top:calc(var(--top-header-h) + 16px); }
  .acc-side-item { padding:12px 14px; border-radius:10px; font-size:14.5px; cursor:pointer; transition:background .12s; }
  .acc-side-item:hover { background:var(--bg); }
  .acc-side-item.on { background:var(--bg); font-weight:700; }
  .acc-side-sep { height:1px; background:var(--bg); margin:8px 6px; }
  .acc-side-exit { color:#c0392b; }
  .acc-mobile-menu { display:none !important; }  /* на ПК меню-список заменён сайдбаром */

  /* Гость (не вошёл): без сайдбара — один центрированный блок вместо пустой белой плашки */
  .acc-layout.acc-guest { display:block; max-width:480px; padding-top:64px; }

  /* На широкой ПК-колонке (720px) карточки без ограничения растягиваются на всю ширину
     (bonus-card — с огромным пустым разрывом из-за space-between) и съезжают друг относительно
     друга. Ограничиваем ОБЕ одинаково и убираем боковой margin — колонка уже даёт отступы сама. */
  .account-user-card, .bonus-card { max-width:440px; margin-left:0; margin-right:0; }
}
@media (max-width: 767px) { .acc-layout { display:block; } }

/* ===== Личные данные (стиль Летуаль) ===== */
.prof-sec { background:var(--white); border-radius:var(--r-card); box-shadow:var(--shadow); padding:18px 20px; margin-bottom:14px; }
.prof-cap { font-size:12px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--txt2); margin-bottom:10px; }
.prof-sub { font-size:12px; color:var(--txt3); }
.prof-line { display:flex; align-items:center; gap:10px; font-size:15px; padding:4px 0; }
.prof-line b { font-weight:600; }
.prof-ok { font-size:11.5px; color:#1a9c4b; background:rgba(26,156,75,.08); padding:3px 8px; border-radius:999px; }
.prof-empty { color:var(--txt3); }
.prof-pen { margin-left:auto; border:none; background:none; color:var(--accent); cursor:pointer; font-size:13px; display:flex; align-items:center; gap:4px; }
.prof-hint { font-size:12.5px; color:var(--txt3); margin-bottom:10px; }
.prof-gender { display:flex; gap:10px; }
.prof-gbtn { padding:10px 22px; border:1.5px solid #e2e2e7; border-radius:10px; background:var(--white); font-size:14px; cursor:pointer; transition:.15s; }
.prof-gbtn.on { border-color:#111; background:#111; color:#fff; font-weight:600; }
.acc-order { border-top:1px solid var(--bg); padding:10px 0; }
.acc-order-top { display:flex; justify-content:space-between; font-size:14px; }
.acc-order-sub { font-size:12.5px; color:var(--txt3); margin-top:3px; }

/* ===== Вход: SMS-код ===== */
.auth-or { display:flex; align-items:center; gap:12px; margin:14px 0; color:var(--txt3); font-size:12.5px; }
.auth-or::before, .auth-or::after { content:''; flex:1; height:1px; background:#e2e2e7; }
.sheet-submit-alt { background:var(--white) !important; color:var(--txt1) !important; border:1.5px solid #e2e2e7 !important; }
.auth-code-input { width:100%; text-align:center; font-size:32px; font-weight:700; letter-spacing:14px;
  padding:14px 0 14px 14px; border:1.5px solid #e2e2e7; border-radius:12px; margin:12px 0; }
.auth-code-input:focus { outline:none; border-color:#111; }
