/* ============================================================
   NewMe — BOUTIQUE MAISON (мир: архитектура люкс-бьюти-бутика)
   Камень-травертин + пудровая роза/мов + шампань-хайрлайны.
   Типографика: Bodoni Moda (кутюр-дидон) + Hanken Grotesk.
   Мотивы: арки, витринные ниши, рифлёное стекло, терраццо.
   Палитра сохранена по просьбе клиента (розовая семья).
   ============================================================ */

/* Fixel Text (MacPaw, SIL OFL 1.1 — см. /static/fonts/Fixel-OFL.txt) — заголовки блоков, как у makeup */
@font-face {
  font-family: "Fixel Text";
  src: url("/static/fonts/FixelText-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Поверхности (чёрно-белая палитра) */
  --stone:      #f4f4f4;   /* основной фон */
  --stone-2:    #e9e9e9;   /* глубже — чередующиеся полосы */
  --pearl:      #ffffff;   /* витрина / карточка */
  --white:      #ffffff;
  --vitrine:    #141414;   /* тёмная контрастная ниша */

  /* Чернила и текст */
  --ink:        #141414;
  --ink-soft:   #4d4d4d;
  --ink-faint:  #8a8a8a;
  --line:       rgba(0, 0, 0, 0.11);
  --line-2:     rgba(0, 0, 0, 0.18);

  /* Акценты — оттенки серого вместо цветной семьи */
  --rose:       #7a7a7a;
  --rose-deep:  #565656;
  --mauve:      #9a9a9a;
  --wine:       #141414;   /* главный акцент — чёрный (кнопки/текст) */
  --wine-ink:   #000000;
  --sage:       #8a8a8a;
  --sale:       #d4142a;   /* цена/бейдж скидки */
  --ok:         #1f8a4c;   /* «есть в наличии» */

  /* «Металл» — нейтральный серый */
  --champ:      #8f8f8f;
  --champ-hi:   #c4c4c4;
  --champ-line: rgba(0, 0, 0, 0.22);
  --sheen: linear-gradient(120deg, #d0d0d0 0%, #9a9a9a 42%, #e2e2e2 60%, #8a8a8a 100%);

  --terrazzo: url('/static/img/texture/terrazzo.svg');
  --fluted: repeating-linear-gradient(90deg,
      rgba(255,255,255,0.60) 0 1px,
      rgba(255,255,255,0.10) 1px 7px,
      rgba(0,0,0,0.04) 7px 8px);

  --font-display: "Bodoni Moda", "Times New Roman", Georgia, serif;
  --font-ui: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --font-accent: var(--font-display);

  /* Совместимость со старыми ссылками на переменные (админка, инлайны) */
  --accent: var(--wine);
  --accent-deep: var(--wine);
  --gold: var(--champ);
  --grad: linear-gradient(120deg, #1a1a1a, #000000);
  --grad-soft: linear-gradient(120deg, #efefef, #e6e6e6);
  --bg: var(--stone);
  --bg-soft: #efefef;
  --bg-cream: var(--stone-2);
  --r-xl: 20px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --arch: 220px 220px 8px 8px;   /* верхняя арка ниши */
  --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 20px 48px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.18);
  --inset: inset 0 2px 14px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background-color: var(--stone);   /* ровный фон, без текстуры-«терраццо» */
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* Легибельность дидона на крупных кеглях: гасим ультратонкие штрихи
   (фиксируем оптический размер и насыщенность вместо волосяных линий). */
.logo, .logo b,
h1, h2, h3, h4,
.brand-card .b-name, .promo-card .quote, .promo-card h3,
.section-head h2, .hero-copy h1, .hero-copy h1 em, .auth-card h1 {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 24, "wght" 600;
}
.hero-copy h1, .hero-copy h1 em, .section-head h2 {
  font-variation-settings: "opsz" 26, "wght" 620;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* Служебная тонкая метка (НЕ кикер над заголовком — используется как подпись/плашка) */
.eyebrow {
  font-family: var(--font-ui);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--wine);
}

.section { padding-top: 40px; padding-bottom: 40px; position: relative; }

/* Заголовок раздела как витринная «табличка»: тонкая линия + крупный дидон */
.section-head { max-width: 720px; margin: 0 auto 22px; text-align: center; }
.section-head h2 { font-size: 17.85px; margin: 0 0 8px; font-weight: 600; }  /* на 5% больше описания (17px) */
.section-head p { color: var(--ink-soft); font-size: 17px; max-width: 560px; margin: 0 auto; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left p { margin-left: 0; }

/* ─────────── Кнопки — кутюр ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border-radius: 2px; font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
              background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
  white-space: nowrap; position: relative;
}
.btn-primary { background: var(--ink); color: var(--stone-2); }
.btn-primary:hover { background: var(--wine-ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--wine); color: #f2f2f2; }
.btn-accent:hover { background: var(--wine-ink); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(0,0,0,0.28); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); background: rgba(255,255,255,0.4); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 11.5px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─────────── Масштаб / хедер ─────────── */
.topbar { background: var(--ink); color: #f2f2f2; text-align: center; font-size: 12px; letter-spacing: 0.02em; padding: 7px 16px; line-height: 1.4; }
.header-left { display: none; }
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 248, 248, 0.86);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--champ-line);
}
.header-top { display: flex; align-items: center; gap: 28px; height: 82px; }
.logo { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: 0.01em; line-height: 1; position: relative; }
.logo b { font-weight: 600; color: var(--wine); font-style: italic; }
.logo span {
  font-family: var(--font-ui); font-size: 9.5px; letter-spacing: 0.5em; font-weight: 700;
  color: var(--champ); display: block; margin-top: 3px; text-transform: uppercase;
}
/* Логотип-картинка в шапке */
.logo-img { display: inline-flex; align-items: center; }
.logo-img img { height: 54px; width: auto; display: block; }

.nav { display: flex; gap: 30px; margin-left: 10px; }
.nav a { font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color 0.3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--sheen); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.search { flex: 1; max-width: 360px; position: relative; margin-left: auto; }
.search input {
  width: 100%; padding: 12px 18px 12px 44px; border: 1px solid var(--line-2);
  border-radius: 2px; background: rgba(255,255,255,0.5); transition: 0.3s; font-size: 13.5px;
}
.search input:focus { outline: none; border-color: var(--champ); background: #fff; }
.search .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.search input::-webkit-search-cancel-button { display: none; }
.search-close, .icon-btn.search-toggle { display: none; }

/* Подсказки поиска */
.search-drop { position: absolute; top: calc(100% + 6px); left: 0; width: max(100%, 440px); right: auto; z-index: 60;
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  max-height: min(70vh, 560px); overflow-y: auto; padding: 6px 0; }
.search-drop[hidden] { display: none; }
.sd-fix { padding: 8px 16px 6px; font-size: 12.5px; color: var(--ink-faint); }
.sd-fix b { color: var(--ink); font-weight: 600; }
.sd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
.sd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.sd-chip span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.sd-chip:hover, .sd-chip.is-active { border-color: var(--ink); }
.sd-item { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 8px 16px; }
.sd-item:hover, .sd-item.is-active { background: var(--stone); }
.sd-item img { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.sd-brand { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.sd-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.3; }
.sd-name mark, .sd-chip mark { background: none; color: inherit; font-weight: 700; }
.sd-price { font-size: 13.5px; font-weight: 600; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.sd-price s { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-faint); }
.sd-price.is-sale { color: var(--sale); }
.sd-all { display: block; padding: 11px 16px 8px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.sd-all:hover, .sd-all.is-active { text-decoration: underline; text-underline-offset: 3px; }
.sd-empty { padding: 18px 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.sd-empty a { color: var(--ink); text-decoration: underline; }
.search-fix { color: var(--ink-faint); }
.search-fix b { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 2px; display: grid; place-items: center; color: var(--ink); transition: 0.3s; }
.icon-btn:hover { background: rgba(255,255,255,0.55); color: var(--wine); }
.badge {
  position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 5px;
  background: var(--wine); color: #fff; border-radius: 20px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; letter-spacing: 0;
}
#adminLink { margin-left: 8px; }

/* Переключатель языка */
.lang-switch { display: flex; border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden; margin-right: 8px; }
.lang-switch button { padding: 7px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft); transition: 0.25s; }
.lang-switch button + button { border-left: 1px solid var(--line-2); }
.lang-switch button.active { background: var(--ink); color: var(--stone-2); }
.lang-switch button:hover:not(.active) { color: var(--wine); }

/* ─────────── HERO — витрина с карточками товаров ─────────── */
.hero { position: relative; overflow: hidden; background: var(--stone); border-bottom: 1px solid var(--champ-line); }
.hero-inner {
  position: relative; max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center;
  min-height: min(84vh, 660px);
}
.hero-slider { position: relative; min-height: 360px; }
.hero-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transition: opacity 1.1s var(--ease); pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { display: inline-block; margin-bottom: 22px; }
.hero-copy h1 {
  font-size: clamp(44px, 5.2vw, 76px); line-height: 1.0; margin: 0 0 22px;
  font-weight: 500; letter-spacing: -0.02em; max-width: 12ch;
}
.hero-copy h1 em { font-style: italic; color: var(--wine); }
.hero-copy p { font-size: 18px; color: var(--ink-soft); max-width: 400px; margin-bottom: 36px; line-height: 1.7; }

/* Витрина справа: арка-подложка + две карточки товаров */
.hero-showcase { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; gap: 26px; padding: 40px 10px; }
.hero-showcase .card { position: relative; z-index: 1; width: min(48%, 236px); margin: 0; box-shadow: var(--shadow-md); }
.hero-showcase .card:nth-child(1) { transform: translateY(-24px); }
.hero-showcase .card:nth-child(2) { transform: translateY(24px); }
.hero-showcase .card:hover { transform: translateY(-30px); }
.hero-showcase .card:nth-child(2):hover { transform: translateY(18px); }
/* Баннер-картинка: перекрывает текст и витрину, кликабелен, ведёт по ссылке */
.hero-image { position: absolute; inset: 0; z-index: 6; display: block; opacity: 0; pointer-events: none;
  transition: opacity 0.8s var(--ease); overflow: hidden; }
.hero-image.show { opacity: 1; pointer-events: auto; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Высота блока = пропорции картинки (--hero-ar задаёт JS по реальному размеру),
   поэтому баннер целиком виден на любом экране и ничего не обрезается */
.hero-inner.has-image { min-height: 0; aspect-ratio: var(--hero-ar, 2.5); }
.hero-inner.has-image .hero-slider,
.hero-inner.has-image .hero-showcase { position: absolute; inset: 0; min-height: 0; }
/* Под баннером-картинкой скрываем текст и витрину — не мелькают и нет кнопки «Смотреть» */
.hero-inner.has-image .hero-slider,
.hero-inner.has-image .hero-showcase { opacity: 0 !important; pointer-events: none; }
/* Витрина hero не проигрывает reveal при каждом переключении */
.hero-showcase .card { opacity: 1; }
.hero-dots { position: absolute; bottom: 26px; left: 32px; display: flex; gap: 12px; z-index: 8; }
.hero-dots button { width: 26px; height: 2px; background: var(--line-2); transition: 0.4s; }
.hero-dots button.active { background: var(--wine); }

/* ─────────── Полоса преимуществ ─────────── */
.perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--pearl); border: 1px solid var(--champ-line); border-radius: 2px;
  margin-top: 44px; position: relative; z-index: 5; box-shadow: var(--shadow-sm); overflow: hidden;
}
.perk { display: flex; gap: 15px; align-items: center; padding: 26px 28px; border-right: 1px solid var(--line); }
.perk:last-child { border-right: none; }
.perk .p-ico { width: 40px; height: 40px; display: grid; place-items: center; color: var(--wine); flex-shrink: 0; }
.perk .p-ico svg { width: 26px; height: 26px; }
.perk h4 { font-family: var(--font-ui); font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.perk span { font-size: 12.5px; color: var(--ink-soft); }

/* ─────────── Категории — витрины-таблички ─────────── */
/* Категории — по центру, сколько бы их ни было */
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cat-grid .cat-card { flex: 0 1 170px; }
@media (max-width: 640px) { .cat-grid .cat-card { flex-basis: calc(50% - 6px); } }
.cat-card {
  text-align: center; padding: 18px 10px 14px; border-radius: 60px 60px 4px 4px;
  background: var(--pearl); border: 1px solid var(--line); transition: 0.55s var(--ease); position: relative;
}
.cat-card:hover { border-color: var(--champ-line); box-shadow: var(--shadow-md); transform: translateY(-5px); background: #fff; }
.cat-card .c-ico { font-family: var(--font-display); font-size: 22px; color: var(--wine); margin-bottom: 6px; font-style: italic; }
.cat-card h4 { font-family: var(--font-ui); font-size: 13px; font-weight: 700; }
.cat-card span { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.02em; }

/* ─────────── Карточка товара — продуктовая логика ───────────
   Фото → рейтинг → бренд/название → категория → наличие → цена → «Купить».
   Цена — гротеск с табличными цифрами (дидон на цифрах нечитаем). */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.acc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 780px) { .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card {
  background: #fff; border: 1px solid #e3e3e3; position: relative;
  display: flex; flex-direction: column; height: 100%;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { border-color: #cfcfcf; box-shadow: 0 10px 28px rgba(0,0,0,0.09); }
.card-media {
  position: relative; display: block; aspect-ratio: 1/1; background: #fff; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 2; pointer-events: none; }
.tag { font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 4px 8px; line-height: 1.2; text-transform: uppercase; }
.tag.new { background: var(--ink); color: #fff; }
.tag.sale { background: var(--sale); color: #fff; }
.tag.hit { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 16px 16px; text-align: left; }
.card-rating { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); min-height: 18px; margin-bottom: 8px; }
.card-rating--empty .stars { color: #d6d6d6; }
.stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.card-reviews { color: var(--ink-faint); }
.card-title { display: block; line-height: 1.35; }
.card-title:hover .card-name { color: var(--ink-soft); }
.card-brand { display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.12em; color: var(--ink); text-transform: uppercase; font-weight: 800; }
.card-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--font-ui); font-size: 14px; font-weight: 400; color: var(--ink); margin-top: 3px;
  min-height: calc(14px * 1.35 * 2); letter-spacing: 0;
}
.card-cat { font-size: 12px; color: var(--ink-faint); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { margin-top: auto; padding-top: 12px; }
.card-stock { font-size: 12px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.card-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card-stock.on { color: var(--ok); }
.card-stock.off { color: var(--ink-faint); }
.card-price { display: flex; flex-direction: column; justify-content: flex-end; min-height: 34px; margin-bottom: 10px; }
.card-price-old { display: flex; align-items: center; gap: 8px; line-height: 1.2; }
.price {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums; color: var(--ink); line-height: 1.15; white-space: nowrap;
}
.price-old { font-family: var(--font-ui); font-size: 12px; font-weight: 400; color: var(--ink-faint); text-decoration: line-through; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-price.is-sale .price, .product-price.is-sale .price { color: var(--sale); }
.card-buy { padding: 13px 10px; font-size: 12.5px; white-space: normal; line-height: 1.2; }
.card-buy:disabled { letter-spacing: 0.04em; }
@media (max-width: 780px) { .card-buy { font-size: 11.5px; padding: 12px 6px; letter-spacing: 0.06em; } }
.card.is-oos .card-media img { opacity: 0.55; }

/* ─────────── Блоки главной: ритм и карусели как у makeup ───────────
   96px между блоками, заголовок по центру, тонкие стрелки справа. */
.home-block { padding: 48px 0; position: relative; }
.home-block--cats { padding-top: 40px; }
.home-block--bg { background: var(--stone-2); }
.hb-head { position: relative; text-align: center; margin-bottom: 24px; min-height: 32px; padding: 0 90px; }
.hb-head h2 { font-family: "Fixel Text", var(--font-ui); font-variation-settings: normal; font-size: 26px; font-weight: 600; letter-spacing: 0; line-height: 1.25; }
.hb-head p { font-size: 14px; color: var(--ink-faint); margin-top: 4px; }
.pd-head { text-align: left; padding: 0; }
.hb-arrows { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 14px; }
.hb-arrows[hidden] { display: none; }
.hb-btn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); transition: opacity 0.2s, transform 0.2s; }
.hb-btn:hover:not(:disabled) { transform: translateX(calc(var(--d, 1) * 2px)); }
.hb-btn[data-dir="-1"] { --d: -1; }
.hb-btn:disabled { opacity: 0.25; cursor: default; }
/* Видно 5 карточек (всего до 20, листаются стрелками); меньше — на узких экранах */
.hb-track {
  --per: 5; --gap: 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 4px 0 12px; margin: -4px 0 -12px;   /* место под тень карточки при наведении */
}
.hb-track::-webkit-scrollbar { display: none; }
.hb-track > .card { scroll-snap-align: start; }
@media (max-width: 1240px) { .hb-track { --per: 4; } }
@media (max-width: 1000px) { .hb-track { --per: 3; } }
@media (max-width: 780px) {
  .home-block { padding: 28px 0; }
  .hb-head { padding: 0; }
  .hb-head h2 { font-size: 20px; }
  .hb-arrows { display: none; }
  .hb-track { --gap: 12px; grid-auto-columns: 44%; }   /* 2 карточки + край третьей — видно, что можно листать */
}
@media (min-width: 560px) and (max-width: 780px) {
  .hb-track { grid-auto-columns: 30%; }   /* большие телефоны / маленькие планшеты: 3 + край */
}

/* ─────────── Оформление заказа (логика makeup) ───────────
   Слева: 1 «Личные данные» → «Далее» → 2 «Информация о доставке».
   Справа: «Ваш заказ» с товарами; на телефоне — сворачиваемая плашка сверху. */
.co-layout { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 48px; align-items: start; }
.co-main { min-width: 0; max-width: 640px; }
.co-auth { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.co-auth a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.co-tabs { display: flex; gap: 36px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.co-tab { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-size: 18px; font-weight: 500; color: var(--ink-faint); transition: color 0.2s, border-color 0.2s; }
.co-tab span { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.co-tab:hover { color: var(--ink-soft); }
.co-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.co-tab.is-active span { background: var(--ink); border-color: var(--ink); color: #fff; }
.co-tab.is-done { color: var(--ink-soft); }
.co-tab.is-done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.co-prefill { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 22px; font-size: 13.5px; line-height: 1.45;
  background: #eef7f1; color: #1d5c37; border: 1px solid #cfe7d8; }
.co-prefill svg { flex-shrink: 0; margin-top: 1px; }
.co-prefill[hidden], .co-add[hidden] { display: none; }
.co-pane { display: none; }
.co-pane.is-active { display: block; animation: coOpen 0.35s var(--ease); }
@keyframes coOpen { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.co-next { min-width: 220px; }
.co-contact { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 22px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.co-contact b { display: block; font-weight: 600; }
.co-contact span { display: block; color: var(--ink-soft); word-break: break-word; }
.co-link { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; }
.co-link:hover { color: var(--ink); }
.co-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.co-tiles { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-bottom: 20px; }
.co-tiles--col { grid-template-columns: minmax(0,1fr); }
.co-tile { cursor: pointer; }
.co-tile input { position: absolute; opacity: 0; pointer-events: none; }
.co-tile-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); background: #fff; transition: 0.2s; height: 100%; }
.co-tile-box > svg { flex-shrink: 0; color: var(--ink-soft); }
.co-tile-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.co-tile-box b { display: block; font-size: 14px; font-weight: 600; }
.co-tile-box small { display: block; font-size: 12px; color: var(--ink-faint); }
.co-tile:hover .co-tile-box { border-color: var(--ink-soft); }
.co-tile input:checked + .co-tile-box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.co-tile input:checked + .co-tile-box > svg { color: var(--ink); }
.co-tile input:focus-visible + .co-tile-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.co-note { font-size: 12.5px; margin: -6px 0 22px; }
.co-add { display: block; font-size: 15px; color: var(--ink); margin: 4px 0 18px; }
.co-add:hover { text-decoration: underline; text-underline-offset: 3px; }
.co-place { margin-top: 8px; padding: 17px; }
.field.is-error input { border-color: var(--sale); }
.field-err { color: var(--sale); font-size: 12.5px; margin-top: 6px; }

.co-cart { background: #fff; border: 1px solid var(--line); position: sticky; top: 100px; }
.co-cart-head { width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 22px 24px 16px; text-align: left; cursor: default; }
.co-cart-title { flex: 1; font-size: 18px; font-weight: 600; }
.co-cart-title em { font-style: normal; font-size: 13px; font-weight: 400; color: var(--ink-faint); margin-left: 6px; }
.co-cart-total { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-cart-chev { display: none; transition: transform 0.25s; align-self: center; }
.co-cart-body { padding: 0 24px 22px; }
.co-item { display: grid; grid-template-columns: 76px minmax(0,1fr) 28px; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.co-item-img { width: 76px; height: 76px; display: block; }
.co-item-img img { width: 100%; height: 100%; object-fit: contain; }
.co-item-name { display: block; font-size: 14px; line-height: 1.35; }
.co-item-name:hover { color: var(--ink-soft); }
.co-item-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.co-item-unit { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.co-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.co-item-sum { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-item-del { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-faint); }
.co-item-del:hover { color: var(--sale); }
.co-totals { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; }
.co-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-soft); }
.co-totals > div > span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.co-totals .co-minus { color: var(--sale); }
.co-totals .co-grand { color: var(--ink); font-size: 17px; font-weight: 600; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.co-totals .co-grand span:first-child { font-weight: 500; }

@media (max-width: 1100px) {
  .co-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .co-main { max-width: none; }
  .co-cart { order: -1; position: static; }
  .co-cart-head { cursor: pointer; padding: 16px; align-items: center; }
  .co-cart-chev { display: block; }
  .co-cart.is-open .co-cart-chev { transform: rotate(180deg); }
  .co-cart-body { display: none; padding: 0 16px 16px; }
  .co-cart.is-open .co-cart-body { display: block; }
  .co-cart-title, .co-cart-total { font-size: 16px; }
}
@media (max-width: 640px) {
  .co-tabs { gap: 20px; }
  .co-tab { font-size: 15px; gap: 8px; text-align: left; line-height: 1.25; }
  .co-tab span { flex-shrink: 0; }
  .co-tab span { width: 22px; height: 22px; font-size: 12px; }
  .co-next { width: 100%; }
  .co-tiles { gap: 8px; }
  .co-tile-box { padding: 12px; gap: 10px; }
  .co-item { grid-template-columns: 60px minmax(0,1fr) 28px; gap: 12px; }
  .co-item-img { width: 60px; height: 60px; }
}

/* ─────────── Дозамовлення ─────────── */
.addon-modal .cm-head h3 { font-size: 20px; }
.ad-intro { padding: 18px 24px 4px; font-size: 15px; line-height: 1.55; }
.ad-intro p { margin: 0 0 6px; }
.ad-intro .muted { font-size: 13px; }
.addon-modal .ad-recs { border-top: 0; padding-top: 12px; }
.addon-modal .cm-rec .btn.is-added { border-color: var(--ok); color: var(--ok); }
.ad-foot { position: sticky; bottom: 0; }
.ad-cart { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.ad-cart b { color: var(--ink); }
.ad-go.is-disabled { pointer-events: none; opacity: 0.45; }
.co-addon { margin: 12px 0 0; padding: 10px 12px; background: #eef7f1; color: #1d5c37; font-size: 13px; line-height: 1.45; }
.od-addon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding: 12px 14px; background: #eef7f1; color: #1d5c37; font-size: 14px; }
.od-addon span { flex: 1; min-width: 200px; }
@media (max-width: 640px) { .ad-intro { padding: 14px 16px 2px; } }

/* ─────────── Мобильное меню (☰) ─────────── */
html.mnav-lock { overflow: hidden; }
.mnav { position: fixed; inset: 0; z-index: 1400; }
.mnav[hidden] { display: none; }
.mnav-overlay { position: absolute; inset: 0; background: rgba(20,20,20,0.45); opacity: 0; transition: opacity 0.25s; }
.mnav-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(100%, 420px); background: #fff;
  display: flex; flex-direction: column; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s var(--ease); }
.mnav.open .mnav-overlay { opacity: 1; }
.mnav.open .mnav-panel { transform: none; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.mnav-head .logo-img img { height: 36px; }
.mnav-x { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.mnav-list { padding: 10px 0; }
.mnav-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px;
  font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.mnav-list a svg { color: var(--ink-faint); flex-shrink: 0; }
.mnav-list a:active { background: var(--stone); }
.mnav-list .mnav-sale { color: var(--sale); }
.mnav-list .mnav-count { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ink-faint); }
.mnav-foot { margin-top: auto; background: var(--stone); padding: 14px 20px 24px; display: grid; gap: 2px; }
.mnav-foot a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 15px; color: var(--ink-soft); }
.mnav-foot a:first-child { color: var(--ink); font-weight: 600; }

/* ─────────── Попап корзины ─────────── */
html.no-scroll { overflow: hidden; }
.cart-modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.cm-overlay { position: absolute; inset: 0; background: rgba(20,20,20,0.5); opacity: 0; transition: opacity 0.25s; }
.cm-panel {
  position: relative; width: 100%; max-width: 820px; max-height: calc(100vh - 96px); overflow-y: auto;
  background: #fff; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.cart-modal.open .cm-overlay { opacity: 1; }
.cart-modal.open .cm-panel { opacity: 1; transform: none; }
.cm-head { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cm-head h3 { font-family: var(--font-ui); font-size: 18px; font-weight: 700; letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.cm-head h3 svg { color: var(--ok); flex-shrink: 0; }
.cm-x { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-soft); flex-shrink: 0; }
.cm-x:hover { color: var(--ink); background: var(--stone); }
.cm-items { padding: 4px 24px; }
.cm-empty { padding: 24px 0; text-align: center; }
.cm-item { display: grid; grid-template-columns: 72px 1fr auto 110px 32px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cm-item:last-child { border-bottom: none; }
.cm-item.oos { opacity: 0.6; }
.cm-thumb { width: 72px; height: 72px; display: block; }
.cm-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cm-name { display: block; font-size: 14px; line-height: 1.35; margin: 2px 0 4px; }
.cm-name:hover { color: var(--ink-soft); }
.cm-unit { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cm-line { text-align: right; }
.cm-line .price { font-size: 14px; }
.cm-del { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-faint); }
.cm-del:hover { color: var(--sale); }
.qty-sm button { width: 34px; height: 36px; font-size: 16px; }
.qty-sm span { width: 30px; font-size: 14px; }
.cm-summary { padding: 16px 24px 22px; background: var(--stone); border-top: 1px solid var(--line); }
.cm-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.cm-total .price { font-size: 16px; margin-left: 6px; }
.cm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cm-checkout.is-disabled { pointer-events: none; opacity: 0.5; }
.cm-to-cart { display: block; text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }
.cm-to-cart:hover { color: var(--ink); }
.cm-recs { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cm-recs h4 { font-family: var(--font-ui); font-size: 16px; font-weight: 700; letter-spacing: 0; margin-bottom: 14px; }
.cm-rec-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 4); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.cm-rec { display: flex; flex-direction: column; border: 1px solid #e3e3e3; padding: 10px; scroll-snap-align: start; }
.cm-rec-media { position: relative; display: block; aspect-ratio: 1/1; margin-bottom: 8px; }
.cm-rec-media img { width: 100%; height: 100%; object-fit: contain; }
.cm-rec-media .tag { position: absolute; top: 0; left: 0; }
.cm-rec-title { display: block; line-height: 1.3; margin-bottom: 8px; }
.cm-rec-title .card-brand { font-size: 10px; }
.cm-rec-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; min-height: calc(12.5px * 1.3 * 2); }
.cm-rec .card-price { margin: auto 0 8px; min-height: 0; }
.cm-rec .price { font-size: 13px; }
.cm-rec .price-old { font-size: 11px; }
@media (max-width: 640px) {
  .cart-modal { padding: 0; align-items: flex-end; }
  .cm-panel { max-height: 92vh; transform: translateY(40px); }
  .cm-head { padding: 14px 16px; }
  .cm-head h3 { font-size: 16px; }
  .cm-items, .cm-summary, .cm-recs { padding-left: 16px; padding-right: 16px; }
  .cm-item { grid-template-columns: 60px 1fr auto; grid-template-areas: "t i d" "t q l"; gap: 8px 12px; align-items: start; }
  .cm-line { align-self: center; }
  .cm-thumb { grid-area: t; width: 60px; height: 60px; }
  .cm-info { grid-area: i; } .cm-qty { grid-area: q; } .cm-line { grid-area: l; } .cm-del { grid-area: d; }
  .cm-actions { grid-template-columns: 1fr; }
  .cm-actions .btn-ghost { order: 2; }
  .cm-rec-row { grid-auto-columns: 42%; }
}

/* ─────────── Бренды ─────────── */
.brand-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.brand-card {
  display: grid; place-items: center; padding: 40px 18px; background: var(--pearl);
  border: 1px solid var(--line); border-radius: 2px; transition: 0.5s var(--ease); text-align: center;
}
.brand-card:hover { background: #fff; box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--champ-line); }
.brand-card .b-name { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.01em; font-style: italic; }
.brand-card span { font-size: 11px; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ─────────── Промо / витрина-цитата ─────────── */
.promo-split { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 0; border: 1px solid var(--champ-line); border-radius: 2px; overflow: hidden; }
.promo-card { position: relative; min-height: 380px; display: flex; align-items: center; padding: 60px; color: #f7ecef; overflow: hidden; }
.promo-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #3a2730, #241f26); z-index: 0; }
.promo-card::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid var(--champ-line); z-index: 0; }
.promo-card > * { position: relative; z-index: 1; }
.promo-card.sage { color: var(--ink); border-left: 1px solid var(--champ-line); }
.promo-card.sage::before { background: var(--stone-2); }
.promo-card.sage::after { border-color: var(--line-2); }
.promo-card .quote { font-family: var(--font-display); font-style: italic; font-size: 34px; line-height: 1.28; max-width: 340px; }
.promo-card h3 { color: #f7ecef; font-size: 44px; max-width: 360px; margin-bottom: 14px; font-weight: 500; }
.promo-card p { max-width: 330px; opacity: 0.85; margin-bottom: 26px; }

/* ─────────── Блог ─────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { background: var(--pearl); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: 0.5s var(--ease); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: var(--champ-line); }
.post-card .cover { aspect-ratio: 16/10; background: var(--stone); width: 100%; object-fit: cover; }
.post-card .p-body { padding: 26px; }
.post-tag { font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.24em; color: var(--champ); text-transform: uppercase; font-weight: 700; }
.post-card h3 { font-size: 25px; margin: 10px 0 12px; font-weight: 500; }
.post-card p { color: var(--ink-soft); font-size: 14.5px; }
.post-meta { font-size: 12px; color: var(--ink-faint); margin-top: 16px; letter-spacing: 0.04em; }

/* ─────────── Newsletter — тёмная витрина ─────────── */
.newsletter { position: relative; background: var(--vitrine); color: #f2f2f2; border-radius: 2px; padding: 60px 80px; text-align: center; overflow: hidden; border: 1px solid var(--champ-line); }
.newsletter::before { content: ""; position: absolute; left: 50%; top: -1px; transform: translateX(-50%); width: 340px; height: 170px; border: 1px solid var(--champ-line); border-bottom: none; border-radius: 200px 200px 0 0; opacity: 0.5; }
.newsletter > * { position: relative; z-index: 1; }
.newsletter .eyebrow { color: var(--champ-hi); }
.newsletter h2 { font-size: clamp(40px, 5vw, 62px); color: #fdf6f8; font-weight: 500; margin-top: 6px; }
.newsletter .muted { color: #cbbcc2 !important; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 26px auto 0; }
.newsletter input { flex: 1; padding: 16px 22px; border-radius: 2px; border: 1px solid var(--champ-line); background: rgba(255,255,255,0.06); color: #fff; }
.newsletter input::placeholder { color: #b9a9b0; }
.newsletter input:focus { outline: none; border-color: var(--champ-hi); background: rgba(255,255,255,0.1); }

/* ─────────── Футер ─────────── */
.footer { background: var(--vitrine); color: #c9bcc2; margin-top: 100px; padding: 78px 0 32px; border-top: 1px solid var(--champ-line); }
.footer h4 { font-family: var(--font-ui); color: #fff; font-size: 11px; letter-spacing: 0.2em; margin-bottom: 20px; text-transform: uppercase; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; }
.footer a { color: #b3a5ab; font-size: 14px; display: block; padding: 6px 0; transition: 0.3s; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; font-size: 30px; }
.footer .logo b { color: var(--champ-hi); font-style: italic; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); margin-top: 50px; padding-top: 26px; display: flex; justify-content: space-between; font-size: 12.5px; color: #8b7f85; flex-wrap: wrap; gap: 10px; letter-spacing: 0.03em; }

/* ─────────── Каталог ─────────── */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: 104px; background: var(--pearl); border: 1px solid var(--champ-line); border-radius: 2px; padding: 28px; }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-family: var(--font-ui); font-size: 11px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: color 0.2s; }
.filter-opt input { accent-color: var(--wine); width: 15px; height: 15px; }
.filter-opt:hover { color: var(--ink); }
.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs input { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; }
.catalog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--champ-line); }
.catalog-top .count { color: var(--ink-soft); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.sort-select { padding: 11px 18px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; font-size: 13px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 52px; }
.pagination button { width: 44px; height: 44px; border-radius: 2px; border: 1px solid var(--line-2); font-weight: 600; transition: 0.3s; font-size: 14px; }
.pagination button:hover { border-color: var(--wine); color: var(--wine); }
.pagination button.active { background: var(--ink); color: var(--stone-2); border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 2px; font-size: 13px; margin: 0 8px 8px 0; }
.chip button { color: var(--wine); font-weight: 800; }

/* ─────────── Товар ─────────── */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: start; }
.gallery-wrap { display: flex; gap: 14px; align-items: flex-start; }
.gallery-main { flex: 1; min-width: 0; border-radius: 8px; overflow: hidden; background: var(--stone); aspect-ratio: 1/1; border: none; box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 12px; margin-top: 0; flex: 0 0 auto; }
.gallery-thumbs button { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: var(--stone); transition: 0.3s; }
.gallery-thumbs button img, .gallery-thumbs button video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button .thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; background: rgba(0,0,0,0.28); pointer-events: none; }
.gallery-thumbs button.active { border-color: var(--champ); }
.product-info { padding-top: 8px; }
/* Карточка товара справа — как у makeup: бренд, название гротеском,
   подпись, рейтинг/код, варианты, цена ~26px, наличие, кнопка, условия. */
.product-info { max-width: 520px; }
.pi-brand { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.pi-brand:hover { color: var(--ink-soft); }
h1.pi-name { font-family: var(--font-ui); font-variation-settings: normal; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; margin: 6px 0 4px; }
.pi-sub { font-size: 14px; color: var(--ink-faint); }
.pi-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 4px; font-size: 13px; color: var(--ink-soft); }
.pi-rating { display: inline-flex; align-items: center; gap: 8px; }
.pi-rating:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.pi-sku { color: var(--ink-faint); }
.pi-buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.product-price { display: flex; flex-direction: column; gap: 2px; }
.product-price .price { font-size: 26px; font-weight: 700; }
.pi-old { display: flex; align-items: center; gap: 8px; }
.pi-old .price-old { font-size: 15px; }
.pi-old .tag { font-size: 11px; padding: 2px 6px; }
.pi-buy .card-stock { margin: 0 0 6px; font-size: 13px; }
.pi-perks { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.pi-perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-faint); line-height: 1.4; }
.pi-perks li > img, .pi-perks li > svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-soft); margin-top: 1px; }
.pi-perks b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
/* Оптовые цены и живой расчёт */
.bulk-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.bulk-tiers span { font-size: 12.5px; color: var(--ink-soft); background: var(--pearl); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.bulk-tiers em { font-style: normal; color: #cc2b2b; font-weight: 700; }
.bulk-calc { font-size: 14px; margin: -12px 0 0; color: var(--ink-soft); }
.bulk-calc:empty { display: none; }
.bulk-calc b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.bulk-calc .save { color: #cc2b2b; font-weight: 700; font-size: 14px; margin-left: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden; }
.qty button { width: 44px; height: 50px; font-size: 18px; color: var(--ink); transition: 0.2s; }
.qty button:hover { background: var(--stone); }
.qty span { width: 44px; text-align: center; font-weight: 700; }
.product-actions { display: flex; gap: 12px; margin: 18px 0 24px; align-items: stretch; }
.product-actions .btn { padding-top: 16px; padding-bottom: 16px; }
.attr-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.attr-table td { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.attr-table td:first-child { color: var(--ink-soft); width: 45%; }
.attr-table td:last-child { font-weight: 600; }
/* Варианты товара (объём / цвет) */
.variant-group { margin: 20px 0 0; }
.v-label { font-size: 14px; color: var(--ink-soft); margin-bottom: 11px; }
.v-label b { color: var(--ink); font-weight: 700; }
.v-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.v-pill { min-width: 64px; text-align: center; padding: 12px 20px; border: 1.5px solid var(--line-2);
  border-radius: 12px; font-weight: 600; color: var(--ink); transition: 0.25s; background: #fff; }
.v-pill:hover { border-color: var(--champ); }
.v-pill.active { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.v-pill.out { color: var(--ink-faint); text-decoration: line-through; }
.v-swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.v-swatch { width: 46px; height: 46px; border-radius: 13px; background: var(--sw, #ccc); position: relative;
  box-shadow: inset 0 0 0 1.5px rgba(43,37,48,0.12); border: 2px solid transparent; transition: 0.25s; }
.v-swatch:hover { transform: translateY(-1px); }
.v-swatch.active { outline: 2px dashed var(--wine); outline-offset: 3px; }
.v-swatch.out::after { content: ""; position: absolute; inset: 0; border-radius: 13px;
  background: linear-gradient(to top right, transparent 45%, var(--ink-soft) 45%, var(--ink-soft) 55%, transparent 55%); }

/* Вкладки товара — как у makeup: обычный регистр, чёрное подчёркивание активной */
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line-2); margin: 56px 0 28px; }
.tabs button { position: relative; padding: 14px 0; font-family: "Fixel Text", var(--font-ui); font-size: 17px; font-weight: 600;
  letter-spacing: 0; color: var(--ink-faint); white-space: nowrap; transition: color 0.2s; }
.tabs button:hover { color: var(--ink-soft); }
.tabs button.active { color: var(--ink); }
.tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
@media (max-width: 640px) {
  .tabs { margin-top: 36px; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .tabs button { font-size: 15px; flex-shrink: 0; }
}

/* Описание: читабельный текст, нормальные абзацы и списки */
.tab-pane .desc-text { max-width: 760px; font-size: 15px; line-height: 1.65; color: var(--ink); white-space: pre-line; }
.tab-pane .desc-text.is-html { white-space: normal; }   /* текст из редактора — переносы задают теги */
.desc-text p { margin: 0 0 12px; }
.desc-text h2, .desc-text h3, .desc-text h4 { font-family: var(--font-ui); font-variation-settings: normal; font-size: 16px; font-weight: 700; margin: 18px 0 8px; letter-spacing: 0; line-height: 1.4; }
.desc-text ul, .desc-text ol { margin: 0 0 12px; padding-left: 20px; }
.desc-text ul { list-style: disc; }
.desc-text li { margin: 0 0 6px; padding-left: 2px; }
.desc-text li::marker { color: var(--ink-faint); }
.desc-text strong, .desc-text b { font-weight: 600; }
.collapsible { position: relative; }
.collapsible.clamped { max-height: 200px; overflow: hidden; }
.collapsible.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
  background: linear-gradient(rgba(244,244,244,0), var(--stone)); pointer-events: none; }
.read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 0;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--ink); background: none; border: none; cursor: pointer; }
.read-more::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.read-more.is-open::after { transform: translateY(2px) rotate(-135deg); }
.read-more:hover { color: var(--ink-soft); }
.review { padding: 24px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-author { font-weight: 700; }
.review-date { font-size: 12px; color: var(--ink-faint); margin-left: auto; }

/* Кнопка удаления своего отзыва */
.rv-del { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink-faint); cursor: pointer; transition: 0.2s; }
.rv-del svg { width: 15px; height: 15px; }
.rv-del:hover { color: #111111; border-color: rgba(0,0,0,0.18); background: #f0f0f0; }

/* Медиа внутри опубликованного отзыва */
.rv-media { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rv-m { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--stone); border: 1px solid var(--champ-line); display: block; }
.rv-m img, .rv-m video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.rv-m:hover img, .rv-m:hover video { transform: scale(1.06); }
.rv-m .thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; background: rgba(0,0,0,0.3); pointer-events: none; }

/* Виджет выбора оценки звёздами */
.star-input { display: inline-flex; gap: 6px; }
.star-input .star { padding: 0; border: none; background: none; cursor: pointer; line-height: 0; }
.star-input .star svg { width: 34px; height: 34px; fill: var(--line-2); transition: fill 0.15s var(--ease), transform 0.15s var(--ease); }
.star-input .star:hover svg { transform: scale(1.12); }
.star-input .star.on svg { fill: var(--champ); }

/* Красивое окно загрузки фото/видео для отзыва */
.rv-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 26px 18px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--pearl); color: var(--ink-soft); cursor: pointer; transition: 0.25s var(--ease); }
.rv-drop:hover { border-color: var(--champ); background: #fff; }
.rv-drop.drag { border-color: var(--champ); background: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,0.10); }
.rv-drop.loading { opacity: 0.6; pointer-events: none; }
.rv-drop-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--champ-line); color: var(--champ); }
.rv-drop-ico svg { width: 22px; height: 22px; }
.rv-drop-txt { font-size: 14px; }
.rv-drop-txt b { color: var(--accent-deep, var(--champ)); font-weight: 700; }
.rv-drop-sub { font-size: 11px; letter-spacing: 0.04em; }
.rv-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rv-prev { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--stone); border: 1px solid var(--champ-line); }
.rv-prev img, .rv-prev video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-prev .thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; background: rgba(0,0,0,0.3); pointer-events: none; }
.rv-prev-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; line-height: 20px; cursor: pointer; padding: 0; z-index: 2; }
.rv-prev-x:hover { background: #111111; }

/* ─────────── Корзина / оформление ─────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
/* ─────────── Корзина (как у makeup) ─────────── */
.cart-h1 { font-family: "Fixel Text", var(--font-ui); font-variation-settings: normal; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 22px; }
.cart-h1 span { font-family: var(--font-ui); font-size: 16px; font-weight: 400; color: var(--ink-faint); margin-left: 6px; }
.cart-page .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
.cart-list { background: #fff; border: 1px solid var(--line); padding: 0 24px; }
.ci { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 110px auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: 0; }
.ci-img { width: 96px; height: 96px; display: block; background: #fff; }
.ci-img img { width: 100%; height: 100%; object-fit: contain; }
.ci-name { display: block; font-size: 15px; line-height: 1.35; margin: 3px 0 2px; }
.ci-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.ci-sub { font-size: 12.5px; color: var(--ink-faint); }
.ci-unit { margin-top: 6px; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ci-unit s { color: var(--ink-faint); margin-right: 6px; }
.ci-unit.is-sale { color: var(--sale); }
.ci-sum { text-align: right; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ci-del { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: 13px; padding: 6px; }
.ci-del span { display: none; }
.ci-del:hover { color: var(--sale); }
.ci.is-off .ci-img, .ci.is-off .ci-info { opacity: 0.5; }
.cart-off-head { padding: 18px 0 4px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.cart-sum { background: #fff; border: 1px solid var(--line); padding: 24px; position: sticky; top: 100px; }
.cart-sum .acc-title { margin-bottom: 14px; }
.cs-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--ink-soft); }
.cs-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.cs-minus { color: var(--sale); }
.cs-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: "Fixel Text", var(--font-ui); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-go { margin-top: 18px; padding: 16px; }
.cs-promo-toggle { display: block; margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.cs-promo-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-promo { margin-top: 14px; }
.cs-promo[hidden], .cs-promo-toggle[hidden] { display: none; }
.cs-promo-msg { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 6px; }
.cs-promo-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.cs-promo-note a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.cs-back { display: block; margin-top: 14px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.cs-back:hover { color: var(--ink); }
.cart-bar { display: none; }
@media (max-width: 1100px) { .cart-page .cart-layout { grid-template-columns: minmax(0, 1fr); } .cart-sum { position: static; } }
@media (max-width: 640px) {
  .cart-h1 { font-size: 24px; margin-bottom: 16px; }
  .cart-list { padding: 0 14px; }
  .ci { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info del" "img qty sum"; gap: 10px 12px; align-items: start; padding: 16px 0; }
  .ci-img { grid-area: img; width: 72px; height: 72px; }
  .ci-info { grid-area: info; } .ci-qty { grid-area: qty; } .ci-sum { grid-area: sum; align-self: center; font-size: 15px; } .ci-del { grid-area: del; padding: 0 0 0 6px; }
  .cart-sum { padding: 18px 16px; }
  /* итог и кнопка закреплены внизу экрана */
  .cart-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-2); box-shadow: 0 -6px 20px rgba(0,0,0,0.06); }
  .cart-bar span { display: block; font-size: 12px; color: var(--ink-faint); }
  .cart-bar b { font-size: 18px; font-variant-numeric: tabular-nums; }
  .cart-bar .btn { flex: 1; max-width: 220px; padding: 14px; }
  body.has-cart-bar .footer { padding-bottom: 90px; }
}
.cart-layout > * { min-width: 0; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .thumb { width: 100px; height: 100px; border-radius: 8px; overflow: hidden; background: var(--stone); border: none; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary { background: var(--pearl); border: 1px solid var(--champ-line); border-radius: 2px; padding: 32px; position: sticky; top: 104px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; font-size: 22px; font-weight: 600; font-family: var(--font-display); color: var(--ink); }
.promo-input { display: flex; gap: 8px; margin: 16px 0; }
.promo-input input { flex: 1; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; transition: 0.3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--champ); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Автодополнение города / списки отделений */
.np-drop { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line-2);
  border-top: none; z-index: 30; max-height: 240px; overflow-y: auto; box-shadow: var(--shadow-md); }
.np-drop div { padding: 11px 15px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.np-drop div:last-child { border-bottom: none; }
.np-drop div:hover { background: var(--stone); color: var(--wine); }

/* ─────────── Авторизация ─────────── */
.auth-wrap { display: grid; place-items: center; padding: 70px 20px; min-height: 74vh; }
.auth-card { width: 100%; max-width: 460px; background: var(--pearl); border: 1px solid var(--champ-line); border-radius: 2px; padding: 48px; box-shadow: var(--shadow-md); position: relative; }
.auth-card::before { content: ""; position: absolute; left: 50%; top: -1px; transform: translateX(-50%); width: 180px; height: 90px; border: 1px solid var(--champ-line); border-bottom: none; border-radius: 120px 120px 0 0; opacity: 0.6; }
.auth-card h1 { font-size: 38px; text-align: center; margin-bottom: 8px; font-weight: 500; }
.auth-card .sub { text-align: center; color: var(--ink-soft); margin-bottom: 30px; font-size: 14.5px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-faint); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border: 1px solid var(--line-2); border-radius: 2px; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; transition: 0.3s; background: #fff; }
.google-btn:hover { border-color: var(--champ); background: var(--stone); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.auth-foot a { color: var(--wine); font-weight: 700; }

/* ─────────── Личный кабинет ─────────── */
.account-layout { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
/* Заголовки кабинета — тем же гротеском, что и заголовки блоков (Fixel), без дидона */
.acc-hello { font-family: "Fixel Text", var(--font-ui); font-variation-settings: normal; font-size: 30px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 6px; }
.acc-title { font-family: "Fixel Text", var(--font-ui); font-variation-settings: normal; font-size: 20px; font-weight: 600;
  letter-spacing: 0; line-height: 1.3; }
.empty .acc-title { font-size: 22px; }
@media (max-width: 640px) { .acc-hello { font-size: 24px; } .acc-title { font-size: 18px; } }
.account-nav { background: var(--pearl); border: 1px solid var(--champ-line); border-radius: 2px; padding: 16px; position: sticky; top: 104px; }
.account-nav button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 16px; border-radius: 2px; font-weight: 600; font-size: 13px; color: var(--ink-soft); transition: 0.3s; letter-spacing: 0.02em; }
.account-nav button:hover { background: var(--stone); color: var(--ink); }
.account-nav button.active { background: var(--vitrine); color: #f2f2f2; }
.order-card { border: 1px solid var(--line); border-radius: 2px; padding: 24px; margin-bottom: 18px; background: var(--pearl); }
.order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.status-pill { padding: 6px 14px; border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.status-new { background: #ededed; color: #333; }
.status-processing { background: #dedede; color: #222; }
.status-shipped { background: #cfcfcf; color: #111; }
.status-delivered { background: #141414; color: #fff; }
.status-cancelled { background: #f0f0f0; color: #888; }
.status-pending { background: #e6e6e6; color: #333; }
.status-pending { background: #fff4e0; color: #8a5300; }
.status-delivered { background: #e6f4ec; color: var(--ok); }

/* ─────────── Мои заказы: карточка + подробности ─────────── */
.order-card { padding: 0; background: #fff; overflow: hidden; }
.order-card.is-open { border-color: var(--line-2); }
.od-head { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title pill" "thumbs sum" "toggle toggle";
  gap: 12px 16px; align-items: center; padding: 18px 20px; text-align: left; cursor: pointer; }
.od-head:hover { background: #fcfcfc; }
.od-title { grid-area: title; display: flex; flex-direction: column; gap: 2px; }
.od-title b { font-size: 16px; font-weight: 700; }
.od-title span { font-size: 13px; color: var(--ink-faint); }
.od-head .status-pill { grid-area: pill; justify-self: end; }
.od-thumbs { grid-area: thumbs; display: flex; gap: 6px; align-items: center; min-width: 0; }
.od-thumbs img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.od-more { font-size: 13px; color: var(--ink-faint); padding-left: 4px; }
.od-sum { grid-area: sum; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.od-sum span { font-size: 12.5px; color: var(--ink-faint); }
.od-sum b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.od-toggle { grid-area: toggle; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.od-toggle svg { transition: transform 0.25s; }
.order-card.is-open .od-toggle svg { transform: rotate(180deg); }
.od-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }

.od-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 6px; padding: 0; counter-reset: s; }
.od-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }
.od-steps li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.od-steps li:first-child::before { display: none; }
.od-steps li span { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.od-steps li.done, .od-steps li.cur { color: var(--ink); }
.od-steps li.done::before, .od-steps li.cur::before { background: var(--ok); }
.od-steps li.done span { background: var(--ok); border-color: var(--ok); }
.od-steps li.cur span { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(31,138,76,0.15); }
.od-steps li.cur { font-weight: 700; }
.od-cancel { margin: 18px 0 4px; padding: 12px 14px; background: var(--stone); font-size: 14px; color: var(--ink-soft); }
.od-cancel a { color: var(--ink); text-decoration: underline; }

.od-ttn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; padding: 12px 14px; background: var(--stone); font-size: 14px; }
.od-ttn span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-faint); }
.od-ttn b { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.od-link { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.od-link:hover { color: var(--ink); }

.od-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; margin-top: 18px; }
.od-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.od-item img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.od-item-info { font-size: 14px; line-height: 1.35; }
.od-item-info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.od-item-info span { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.od-item b { font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.od-totals { padding-top: 10px; font-size: 14px; }
.od-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink-soft); }
.od-totals .od-minus { color: var(--sale); }
.od-totals .od-grand { color: var(--ink); font-weight: 700; font-size: 16px; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.od-info { margin: 0; font-size: 14px; line-height: 1.5; }
.od-info dt { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 14px; }
.od-info dt:first-child { margin-top: 0; }
.od-info dd { margin: 4px 0 0; word-break: break-word; }
.od-paystate { color: #8a5300; font-weight: 600; font-size: 13px; }
.od-paystate.ok { color: var(--ok); }
.od-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.od-actions .od-link { margin-left: auto; }
@media (max-width: 640px) {
  .od-head { padding: 16px; }
  .od-body { padding: 4px 16px 16px; }
  .od-grid { grid-template-columns: 1fr; gap: 20px; }
  .od-steps li { font-size: 11px; }
  .od-thumbs img { width: 38px; height: 38px; }
  .od-thumbs img:nth-child(n+4) { display: none; }
  .od-actions .btn { flex: 1; }
  .od-actions .od-link { margin-left: 0; }
}

/* Выбор товаров к баннеру (админка) */
.bn-sel { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bn-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 13px; max-width: 100%; }
.bn-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.bn-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.bn-chip button { border: none; background: none; cursor: pointer; color: var(--ink-faint); font-size: 13px; padding: 0 4px; }
.bn-chip button:hover { color: #111111; }
.bn-drop { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-md); max-height: 300px; overflow: auto; }
.bn-drop:empty { display: none; }
.bn-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.bn-opt:last-child { border-bottom: none; }
.bn-opt:hover { background: var(--pearl); }
.bn-opt img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--stone); }
.bn-opt-n { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-opt-p { font-weight: 700; font-size: 13px; color: var(--ink); flex: 0 0 auto; }
.bn-img-prev { position: relative; display: inline-block; }
.bn-img-prev img { width: 340px; max-width: 100%; aspect-ratio: 5/2; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); display: block; background: var(--stone); }
.bn-img-prev button { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; cursor: pointer; }
.bn-img-prev button:hover { background: #111; }

/* ─────────── Пусто ─────────── */
.empty { text-align: center; padding: 90px 20px; }
.empty .e-ico { display: inline-flex; margin-bottom: 18px; color: var(--champ); }
.empty .e-ico svg { width: 54px; height: 54px; }
.empty h3 { font-size: 32px; margin-bottom: 10px; font-weight: 500; }
.empty p { color: var(--ink-soft); margin-bottom: 26px; }

/* ─────────── Тосты ─────────── */
.toast-wrap { position: fixed; bottom: 28px; right: 28px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--vitrine); color: #f2f2f2; padding: 15px 22px; border-radius: 2px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; align-items: center; gap: 11px; animation: toastIn 0.5s var(--ease); max-width: 340px; }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--champ); flex-shrink: 0; }
.toast.success::before { background: var(--sage); }
.toast.error::before { background: var(--rose); }
@keyframes toastIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─────────── Пуш о скидке (Telegram) ─────────── */
.nm-push-ov { position: fixed; inset: 0; background: rgba(43,37,48,0.5); backdrop-filter: blur(6px);
  z-index: 3000; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity 0.3s var(--ease); }
.nm-push-ov.show { opacity: 1; }
.nm-push { position: relative; background: var(--pearl); border: 1px solid var(--champ-line); border-radius: 2px;
  max-width: 448px; width: 100%; padding: 50px 42px 40px; text-align: center; box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97); transition: transform 0.45s var(--ease); overflow: hidden; }
.nm-push-ov.show .nm-push { transform: none; }
.nm-push::before { content: ""; position: absolute; left: 50%; top: -1px; transform: translateX(-50%);
  width: 220px; height: 110px; border: 1px solid var(--champ-line); border-bottom: none; border-radius: 150px 150px 0 0; opacity: 0.55; }
.nm-push > * { position: relative; z-index: 1; }
.nm-push-badge { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: var(--wine);
  color: #f2f2f2; display: grid; place-items: center; font-family: var(--font-display); font-size: 27px; font-weight: 600;
  box-shadow: 0 14px 32px rgba(0,0,0,0.30); font-variation-settings: "opsz" 24, "wght" 600; }
.nm-push h3 { font-size: 33px; margin-bottom: 12px; font-weight: 500; }
.nm-push p { color: var(--ink-soft); font-size: 15px; max-width: 330px; margin: 0 auto; line-height: 1.6; }
.nm-push-code { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 24px 0 8px; }
.nm-push-code span { font-family: var(--font-display); font-size: 27px; letter-spacing: 2px; color: var(--wine);
  border: 1px dashed var(--champ); padding: 9px 20px; border-radius: 2px; font-variation-settings: "opsz" 24, "wght" 600; }
.nm-push-code button { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.nm-push-code button:hover { color: var(--wine); }
.nm-push-note { font-size: 13px !important; margin-top: 8px !important; }
.nm-push-cta { margin-top: 24px; }
.nm-push-x { position: absolute; top: 14px; right: 16px; font-size: 26px; line-height: 1; color: var(--ink-faint);
  width: 34px; height: 34px; z-index: 2; }
.nm-push-x:hover { color: var(--wine); }

/* ─────────── Хлебные крошки ─────────── */
.crumbs { font-size: 11px; color: var(--ink-soft); padding: 26px 0; letter-spacing: 0.1em; text-transform: uppercase; }
.crumbs a:hover { color: var(--wine); }

/* ─────────── Появление / утилиты ─────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.mt-0 { margin-top: 0; } .flex { display: flex; } .between { justify-content: space-between; }
.center { text-align: center; } .muted { color: var(--ink-soft); } .gap { gap: 12px; } .wrap { flex-wrap: wrap; }
.spinner { width: 38px; height: 38px; border: 2px solid var(--line-2); border-top-color: var(--wine); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 70px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────── Адаптив ─────────── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-row { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout, .cart-layout, .account-layout, .product-layout { grid-template-columns: 1fr; }
  .filters, .summary, .account-nav { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(2) { border-right: none; }
  .perk { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-split { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .nav, .search { display: none; }
  /* Шапка как у makeup: ☰ и поиск слева, логотип по центру, кабинет и корзина справа */
  .header { --hdr-h: 64px; }
  .header-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; height: 64px; padding: 0 8px; }
  .header-left { display: flex; align-items: center; }
  .header-top > .logo { justify-self: center; }
  .header-actions { justify-self: end; gap: 0; }
  .header-actions .icon-cart { order: 2; }
  .header-actions #adminLink { display: none !important; }
  .logo-img img { height: 40px; }
  .topbar { font-size: 11.5px; padding: 6px 12px; }
  /* Телефон: лупа в шапке открывает строку поиска на всю ширину */
  .icon-btn.search-toggle { display: grid; }
  .header.search-open .search { display: block; position: absolute; left: 0; right: 0; top: 0; height: 100%; max-width: none;
    margin: 0; padding: 0 12px; background: var(--stone); z-index: 70; display: flex; align-items: center; }
  .header.search-open .search .ico { left: 27px; }
  .header.search-open .search input { font-size: 16px; padding-right: 44px; background: #fff; }
  .header.search-open .search-close { display: grid; place-items: center; position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%); width: 36px; height: 36px; color: var(--ink-soft); }
  .search-drop { position: fixed; left: 0; right: 0; width: auto; top: var(--hdr-h, 82px); max-height: calc(100vh - var(--hdr-h, 82px));
    border-left: 0; border-right: 0; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 34px 20px 18px; }
  .hero-inner.has-image { min-height: 0; padding: 0; }
  .hero-dots { left: 16px; bottom: 12px; }
  .hero-slider { min-height: 280px; }
  .hero-copy { padding: 0; }
  .hero-showcase { padding: 6px 0 28px; gap: 14px; }
  .hero-showcase::before, .hero-showcase::after { display: none; }
  .hero-showcase .card { transform: none !important; width: min(46%, 210px); }
  .products-grid, .blog-grid, .brand-row { grid-template-columns: repeat(2, 1fr); }
  .newsletter { padding: 40px 24px; }
  .newsletter form { flex-direction: column; }
  .section { padding-top: 30px; padding-bottom: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .perks { margin-top: 28px; }
}
@media (max-width: 470px) {
  .products-grid, .brand-row { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 18px; }
  .perks { grid-template-columns: 1fr; }
  .perk { border-right: none; }
}
