/* OGIZ — витрина. Мобильная вёрстка по умолчанию, дальше расширяем. */
@font-face {
  font-family: Onest; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Палитра OGIZ: #9C0C58 · #EE1C8B · #F14BA3 · #FBD0E7 */
  --brand: #ee1c8b;
  --brand-d: #9c0c58;
  --brand-l: #f14ba3;
  --blush: #fbd0e7;
  --pink: #ee1c8b;
  --grad: linear-gradient(115deg, #9c0c58 0%, #d1137a 42%, #ee1c8b 72%, #f14ba3 100%);
  --grad-btn: linear-gradient(115deg, #d1137a 0%, #ee1c8b 55%, #f14ba3 100%);
  --grad-soft: linear-gradient(135deg, #fff0f7, #fbd0e7);
  --bg: #fbf5f8;
  --card: #fff;
  --text: #2a1320;
  --text-2: #5a3a4c;
  --muted: #977787;
  --line: #f4e3ec;
  --soft: #fdebf4;
  --sale: #e0107a;
  --ok: #129447;
  --warn: #df5d0c;
  --r: 16px;
  --sh: 0 1px 2px rgb(90 10 50 / .04), 0 4px 16px rgb(90 10 50 / .06);
  --sh-lg: 0 12px 40px rgb(120 10 70 / .16);
  --dock-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gut: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 15px/1.45 Onest, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + var(--safe-b));
  -webkit-tap-highlight-color: transparent;
}
body.has-bar { padding-bottom: calc(var(--dock-h) + var(--safe-b) + 70px); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.i {
  width: 1.25em; height: 1.25em; flex: none; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.page { flex: 1; padding-top: 14px; padding-bottom: 24px; }

@view-transition { navigation: auto; }
.top { view-transition-name: top; }
.dock { view-transition-name: dock; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--grad); color: #fff;
  box-shadow: 0 2px 18px rgb(120 8 60 / .22);
}
.top-in { display: flex; align-items: center; gap: 10px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 3px 10px rgb(80 0 40 / .18);
}
.logo-mark img { width: 34px; height: 34px; }
.logo-word { display: none; font-weight: 800; font-size: 23px; letter-spacing: .04em; }
.top-catalog, .top-nav { display: none; }

.search {
  position: relative; flex: 1; min-width: 0; height: 44px;
  display: flex; align-items: center;
  background: #fff; border-radius: 13px; color: var(--text);
  transition: box-shadow .2s;
}
.search:focus-within { box-shadow: 0 0 0 3px rgb(255 255 255 / .35); }
.search-ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 0 40px 0 42px; font-size: 16px; border-radius: 13px;
}
.search input::placeholder { color: #b097a5; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 6px; width: 32px; height: 32px; border-radius: 9px;
  display: none; place-items: center; color: var(--muted);
}
.search-clear:hover { background: var(--soft); }
.search.has-text .search-clear { display: grid; }

.suggest {
  position: fixed; left: 0; right: 0; top: 62px; z-index: 40;
  background: #fff; color: var(--text);
  border-radius: 0 0 18px 18px; box-shadow: var(--sh-lg);
  padding: 8px; max-height: calc(100vh - 140px); overflow: auto; overscroll-behavior: contain;
}
.sg-title { font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 8px 4px; text-transform: uppercase; letter-spacing: .05em; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; }
.sg-item:hover, .sg-item.act { background: var(--soft); }
.sg-img { width: 44px; height: 44px; border-radius: 11px; overflow: hidden; flex: none; background: #fbf6f9; }
.sg-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sg-img .ph .i { width: 26px; height: 26px; }
.sg-item .cat-ic { width: 36px; height: 36px; border-radius: 11px; }
.sg-item .cat-ic .i { width: 20px; height: 20px; }
.sg-name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-name mark { background: none; color: var(--brand); font-weight: 700; }
.sg-price { font-weight: 700; white-space: nowrap; font-size: 14px; }
.sg-all { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 11px; margin-top: 4px; color: var(--brand); font-weight: 600; border-radius: 12px; }
.sg-all:hover { background: var(--soft); }
.sg-empty { padding: 16px 8px; color: var(--muted); text-align: center; }

/* ---------- Нижнее меню ---------- */
.dock {
  position: fixed; z-index: 35; left: 0; right: 0; bottom: 0;
  height: calc(var(--dock-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; justify-content: space-around;
  background: rgb(255 255 255 / .94);
  -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px);
  border-top: 1px solid var(--line);
}
.dock-a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #a08a96; font-size: 11px; font-weight: 500; transition: color .15s, background .15s;
}
.dock-a .i { width: 26px; height: 26px; }
.dock-a.on { color: var(--brand); font-weight: 700; }
.dock-a:active .dock-ic { transform: scale(.9); }
.dock-ic { position: relative; display: grid; place-items: center; transition: transform .15s; }
.badge {
  position: absolute; top: -5px; left: 15px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--sale); color: #fff; border: 2px solid #fff;
  font: 700 11px/16px Onest, system-ui, sans-serif; text-align: center;
}
.badge.pop { animation: pop .4s; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 12px;
  font-weight: 600; font-size: 14px; white-space: nowrap; user-select: none;
  transition: filter .15s, transform .1s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn .i { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 16px; border-radius: 14px; padding: 0 22px; }
.btn-grad { background: var(--grad-btn); color: #fff; box-shadow: 0 4px 14px -4px rgb(210 20 120 / .5); }
.btn-grad:hover { filter: brightness(1.08); }
.btn-muted { background: #f3eef1; color: var(--muted); cursor: default; }
.btn-muted:active { transform: none; }
.btn-ghost { background: var(--soft); color: var(--brand); }
.btn-ghost:hover { background: #fbd0e7; }

.stepper { display: flex; align-items: center; height: 40px; background: var(--soft); border-radius: 12px; }
.stepper button { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: var(--brand); border-radius: 12px; }
.stepper button:hover { background: rgb(238 28 139 / .1); }
.stepper button:disabled { color: #e5c9d8; background: none; cursor: default; }
.stepper .i { width: 20px; height: 20px; stroke-width: 2.2; }
.stepper-n { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.stepper-n b { font-size: 15px; }
.stepper-n small { font-size: 10px; color: var(--muted); }
.stepper-lg { height: 50px; border-radius: 14px; }
.stepper-lg button { width: 50px; height: 50px; border-radius: 14px; }
.stepper-lg .stepper-n b { font-size: 17px; }
.stepper-lg .stepper-n small { font-size: 11px; }

/* ---------- Баннеры ---------- */
.banners { margin: 0 calc(var(--gut) * -1) 16px; }
.banners-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gut); scrollbar-width: none;
}
.banners-track::-webkit-scrollbar, .cats-row::-webkit-scrollbar, .row-scroll::-webkit-scrollbar,
.chips::-webkit-scrollbar, .quick::-webkit-scrollbar, .toolbar::-webkit-scrollbar, .gal-track::-webkit-scrollbar { display: none; }
.banner {
  position: relative; overflow: hidden; flex: 0 0 88%; scroll-snap-align: center;
  min-height: 156px; padding: 20px; border-radius: 22px; color: #fff;
  display: flex; align-items: flex-end;
}
.banner::before {
  content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  right: -70px; top: -90px; background: rgb(255 255 255 / .13);
}
.banner::after {
  content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  right: 90px; bottom: -70px; background: rgb(255 255 255 / .08);
}
.banner-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; max-width: 72%; }
.banner-txt b { font-size: 22px; line-height: 1.15; font-weight: 800; }
.banner-txt > span:not(.banner-cta) { font-size: 14px; opacity: .92; }
.banner-cta {
  align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: rgb(255 255 255 / .22); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s;
}
.banner:hover .banner-cta { background: rgb(255 255 255 / .32); }
.banner-cta .i { width: 18px; height: 18px; transition: transform .2s; }
.banner:hover .banner-cta .i { transform: translateX(3px); }
.banner-ic { position: absolute; right: 6px; top: 50%; transform: translateY(-50%) rotate(-8deg); opacity: .28; }
.banner-ic .i { width: 124px; height: 124px; stroke-width: 1.2; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #ecd3e0; transition: width .25s, background .25s; }
.dots i.on { width: 18px; background: var(--brand); }

/* Цветовые темы категорий и баннеров */
.t-raspberry { background: linear-gradient(135deg, #9c0c58, #ee1c8b); }
.t-pink { background: linear-gradient(135deg, #e0107a, #f77ab8); }
.t-blush { background: linear-gradient(135deg, #f14ba3, #ffadd3); }
.t-magenta, .t-fuchsia, .t-violet { background: linear-gradient(135deg, #b3128f, #f062c8); }
.t-rose { background: linear-gradient(135deg, #e11d48, #ff7fa0); }
.t-coral, .t-sunset { background: linear-gradient(135deg, #f0306a, #ffa07a); }
.t-berry, .t-purple { background: linear-gradient(135deg, #7e1459, #d0469a); }
.t-plum, .t-indigo, .t-sky { background: linear-gradient(135deg, #6b1d66, #b65bb0); }

/* ---------- Категории ---------- */
.cats-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78px; gap: 8px;
  overflow-x: auto; margin: 0 calc(var(--gut) * -1) 6px; padding: 2px var(--gut) 8px; scrollbar-width: none;
}
.cats-row-center { justify-content: center; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.cat-ic {
  position: relative; overflow: hidden; flex: none;
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 18px -8px rgb(160 10 80 / .55), inset 0 1px 0 rgb(255 255 255 / .35);
  transition: transform .2s;
}
.cat-ic::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 28% 18%, rgb(255 255 255 / .38), transparent 58%);
}
.cat-ic .i { position: relative; z-index: 1; width: 32px; height: 32px; stroke-width: 1.6; }
.cat:hover .cat-ic { transform: translateY(-2px) scale(1.04); }
.cat-name { font-size: 12px; line-height: 1.2; font-weight: 500; color: var(--text-2); }

.quick { display: flex; gap: 8px; overflow-x: auto; margin: 2px calc(var(--gut) * -1) 6px; padding: 2px var(--gut) 4px; scrollbar-width: none; }
.quick-a {
  flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px;
  border-radius: 999px; background: #fff; box-shadow: var(--sh); font-weight: 600; font-size: 14px;
  transition: transform .15s;
}
.quick-a:hover { transform: translateY(-1px); }
.quick-a .i { color: var(--pink); width: 18px; height: 18px; }

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background: #fff; border-radius: 18px; box-shadow: var(--sh);
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.cat-card .cat-ic { width: 54px; height: 54px; border-radius: 17px; }
.cat-card .cat-ic .i { width: 28px; height: 28px; }
.cat-card-txt b { display: block; font-size: 16px; line-height: 1.25; }
.cat-card-txt small { color: var(--muted); font-size: 13px; }
.cat-subs { font-size: 12px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Секции ---------- */
.sec { margin: 22px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sec-head h2 { margin: 0; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.sec-head h2 .i { color: var(--pink); width: 22px; height: 22px; }
.sec-head a { flex: none; display: flex; align-items: center; gap: 2px; color: var(--brand); font-weight: 600; font-size: 14px; }
.sec-head a .i { width: 18px; height: 18px; }
.sec-title { font-size: 20px; font-weight: 800; margin: 22px 0 12px; }
.page-title { font-size: 24px; line-height: 1.2; font-weight: 800; margin: 2px 0 14px; }
.page-title small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; line-height: 1.5; }
.hint .i { color: var(--brand); width: 18px; height: 18px; margin: -2px 6px 0 0; }

.perks { display: grid; gap: 8px; margin: 22px 0; }
.perk { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: var(--r); box-shadow: var(--sh); }
.perk > .i { width: 42px; height: 42px; padding: 9px; border-radius: 13px; background: var(--grad-soft); color: var(--brand); }
.perk b { display: block; font-size: 15px; }
.perk span { font-size: 13px; color: var(--muted); }

/* ---------- Сетка и карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.row-scroll {
  grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 8px; scroll-padding: 0 var(--gut);
}
.row-scroll > * { scroll-snap-align: start; }

.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s; }
.card-img { position: relative; display: block; aspect-ratio: 1; background: #fbf7f9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 22%, hsl(var(--h) 100% 98%), hsl(calc(var(--h) + 28) 85% 91%));
  color: hsl(var(--h) 72% 55%);
}
.ph .i { width: 44%; height: 44%; stroke-width: 1.15; transition: transform .35s; }
.tags { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 8px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; }
.tag .i { width: 12px; height: 12px; }
.tag-hit { background: linear-gradient(135deg, #ff7a45, #ee1c8b); }
.tag-new { background: linear-gradient(135deg, #9c0c58, #d1137a); }
.off { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; }
.off-inline { position: static; font-size: 14px; padding: 4px 10px; border-radius: 10px; }

.fav {
  position: absolute; z-index: 2; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #7d6572;
  background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform .15s;
}
.fav .i { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity .2s, transform .25s; }
.fav .h-f { color: var(--sale); opacity: 0; transform: scale(.4); }
.fav.on .h-f { opacity: 1; transform: none; }
.fav.on .h-o { opacity: 0; }
.fav:active { transform: scale(.86); }
.fav.pulse .h-f { animation: heart .45s; }
.fav-lg { top: 12px; right: 12px; width: 46px; height: 46px; box-shadow: var(--sh); }
.fav-lg .i { width: 25px; height: 25px; }
.fav-inline { position: static; width: 34px; height: 34px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.fav-inline:hover { background: var(--soft); }

.card-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 11px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; }
.price b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.price b.sale { color: var(--sale); }
.price s { font-size: 13px; color: var(--muted); white-space: nowrap; }
.price-lg b { font-size: 30px; }
.price-lg s { font-size: 16px; }
.card-name { font-size: 14px; line-height: 1.3; color: var(--text-2); min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-name:hover { color: var(--brand); }
.stock { font-size: 12px; font-weight: 500; }
.stock-low { color: var(--warn); }
.stock-out { color: var(--muted); }
.buy { margin-top: auto; padding-top: 7px; }

.more {
  display: flex; align-items: center; gap: 8px; margin: 18px auto 0; height: 46px; padding: 0 24px;
  border-radius: 14px; background: #fff; box-shadow: var(--sh); font-weight: 600;
}
.more span { color: var(--muted); font-weight: 500; }
.more:hover { color: var(--brand); }
.more.loading { opacity: .6; pointer-events: none; }

/* ---------- Каталог, фильтры ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a:hover { color: var(--brand); }
.crumbs .i { width: 15px; height: 15px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cat-head .cat-ic { width: 48px; height: 48px; border-radius: 15px; }
.cat-head .cat-ic .i { width: 26px; height: 26px; }
.cat-head .page-title { margin: 0; }
.chips, .toolbar { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 10px; padding: 2px var(--gut); }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: #f5bcd9; }
.chip .i { width: 18px; height: 18px; color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.on .i { color: #fff; }
.sort {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.sort .i { width: 18px; height: 18px; color: var(--brand); }
.sort .i:last-child { color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.sort select { appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: transparent; font-weight: 500; cursor: pointer; padding: 0 2px; }
.toolbar-count { flex: none; margin-left: auto; padding-left: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- Страница товара ---------- */
.pp { display: grid; gap: 16px; }
.pp-gallery { position: relative; min-width: 0; }
.gal { position: relative; overflow: hidden; background: #fff; margin: 0 calc(var(--gut) * -1); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-item { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; display: grid; place-items: center; }
.gal-item img { width: 100%; height: 100%; object-fit: contain; }
.gal .dots { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; }
.gal .tags { left: 12px; top: 12px; }
.gal-thumbs { display: none; }
.pp-info { min-width: 0; }
.pp-title { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.pp-buybox { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border-radius: 20px; box-shadow: var(--sh); }
.pp-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-save { margin-top: -6px; color: var(--sale); font-weight: 600; font-size: 14px; }
.pp-stock { font-size: 14px; font-weight: 600; }
.pp-stock span { display: inline-flex; align-items: center; gap: 6px; }
.pp-stock .ok { color: var(--ok); }
.pp-stock .no { color: var(--muted); }
.pp-perks { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.pp-perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.pp-perks .i { width: 22px; height: 22px; color: var(--brand); }
.pp-perks small { display: block; font-size: 12px; color: var(--muted); }
.pp-sec { margin-top: 22px; }
.pp-sec h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.specs { margin: 0; display: grid; gap: 9px; }
.specs div { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.specs dt { flex: 1 1 50%; min-width: 0; display: flex; align-items: baseline; gap: 6px; color: var(--muted); }
.specs dt::after { content: ''; flex: 1; min-width: 12px; border-bottom: 1px dotted #e3cbd8; }
.specs dd { flex: 1 1 50%; margin: 0; font-weight: 500; }
.pp-desc p { margin: 0 0 10px; line-height: 1.6; color: var(--text-2); }

.pp-bar, .cart-bar {
  position: fixed; z-index: 34; left: 0; right: 0; bottom: calc(var(--dock-h) + var(--safe-b));
  display: flex; align-items: center; gap: 12px; padding: 10px var(--gut);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(90 10 50 / .06);
}
.pp-bar .price { flex-direction: column; align-items: flex-start; gap: 0; flex: none; }
.pp-bar .price b { font-size: 20px; line-height: 1.1; }
.pp-bar .buy { flex: 1; margin: 0; padding: 0; }
.pp-bar .btn, .pp-bar .stepper { height: 48px; }
.pp-bar .stepper button { height: 48px; width: 48px; }
.cart-bar { justify-content: space-between; }
.cart-bar small { display: block; font-size: 12px; color: var(--muted); }
.cart-bar b { font-size: 20px; font-weight: 800; }

/* ---------- Корзина, оформление ---------- */
.box { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--sh); }
.box-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.box-title .i { color: var(--brand); }
.cart, .co, .order { display: grid; gap: 12px; }
.cart-list, .co-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.free { display: flex; align-items: center; gap: 12px; }
.free > .i { width: 38px; height: 38px; padding: 7px; border-radius: 12px; background: var(--soft); color: var(--brand); }
.free > div { flex: 1; font-size: 14px; }
.bar { display: block; height: 6px; margin-top: 7px; border-radius: 3px; background: #f7e4ee; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad); transition: width .4s; }
.ci-box { padding-top: 4px; padding-bottom: 4px; }
.ci-box .box-title { margin: 12px 0 0; }
.ci { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ci:last-child { border-bottom: 0; }
.ci-img { grid-row: span 2; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #fbf7f9; display: block; }
.ci-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ci-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 3px; font-size: 14px; line-height: 1.35; }
a.ci-name:hover { color: var(--brand); }
.ci-main .price b { font-size: 16px; }
.ci-each { font-size: 12px; color: var(--muted); }
.ci-actions { display: flex; gap: 2px; margin: 4px 0 0 -8px; }
.ci-del { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #a08a96; }
.ci-del:hover { color: var(--sale); background: #fdeef4; }
.ci-qty { grid-column: 2; max-width: 190px; }
.ci-qty .buy { padding: 0; }
.ci-off { opacity: .6; }
.ci-sum { font-weight: 700; white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--text-2); }
.sum-row.sale span:last-child { color: var(--sale); font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.sum-total b { font-size: 24px; font-weight: 800; }
.sum-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.fields { display: grid; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fffbfd; font-size: 16px; outline: 0; resize: vertical;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgb(238 28 139 / .13); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; height: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: .15s;
}
.seg-opt .i { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--muted); }
.seg-opt b { font-size: 15px; }
.seg-opt small { font-size: 13px; color: var(--muted); }
.seg-opt input:checked + span { border-color: var(--brand); background: var(--soft); }
.seg-opt input:checked + span .i { color: var(--brand); }
.seg-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgb(238 28 139 / .25); }
.area-note {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; padding: 11px 13px;
  border-radius: 12px; background: var(--grad-soft); color: var(--brand-d); font-size: 14px; font-weight: 600; line-height: 1.35;
}
.area-note .i { color: var(--brand); width: 20px; height: 20px; }
.fields-addr { margin-bottom: 4px; }
.places { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.places li { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-d); font-size: 13px; font-weight: 500; }
.places .i { width: 15px; height: 15px; color: var(--brand); }
.pp-perks small a { color: var(--brand); font-weight: 600; }
.co-pickup { display: none; }
.co:has(input[name=delivery][value=pickup]:checked) .co-courier { display: none; }
.co:has(input[name=delivery][value=pickup]:checked) .co-pickup { display: block; }
.radios { display: grid; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: .15s; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.alert { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: #fff0f5; color: #b0124f; font-size: 14px; font-weight: 500; }
.co-items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.co-item { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #fbf7f9; }
.co-item img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.co-item b { position: absolute; right: 3px; bottom: 3px; padding: 0 5px; border-radius: 6px; background: var(--text); color: #fff; font-size: 11px; }
.co-more { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--brand); font-weight: 700; }

/* ---------- Заказ и профиль ---------- */
.done { text-align: center; padding: 20px 12px 18px; }
.done-ic {
  width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 12px 30px -8px rgb(210 20 120 / .55);
  animation: popin .55s cubic-bezier(.2, 1.4, .4, 1);
}
.done-ic .i { width: 44px; height: 44px; stroke-width: 2.6; }
.done h1 { margin: 0 0 6px; font-size: 26px; }
.done p { max-width: 440px; margin: 0 auto; color: var(--text-2); }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; font-size: 14px; color: var(--muted); }
.order .ci { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
.order .ci-img { grid-row: auto; width: 64px; height: 64px; }
.kv { display: grid; gap: 10px; margin: 0 0 12px; }
.kv div { display: grid; gap: 2px; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 0; font-size: 14px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-violet { background: #fde3f0; color: #b00d65; }
.pill-blue { background: #e6eeff; color: #2d52c8; }
.pill-amber { background: #fff2df; color: #b9540b; }
.pill-green { background: #e2f6e9; color: #0f7d3c; }
.pill-gray { background: #f3eef1; color: #7a6270; }
.orders { display: grid; gap: 8px; }
.order-card { display: grid; gap: 6px; padding: 14px 16px; background: #fff; border-radius: 16px; box-shadow: var(--sh); transition: box-shadow .2s; }
.order-card:hover { box-shadow: var(--sh-lg); }
.oc-top, .oc-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oc-bottom span { font-size: 13px; color: var(--muted); }
.me { display: flex; align-items: center; gap: 14px; }
.me > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me span { font-size: 14px; color: var(--muted); }
.me form { margin: 0; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 22px; font-weight: 800; }
.auth { max-width: 440px; margin: 6px auto 0; text-align: center; }
.auth-ic { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.auth-ic .i { width: 32px; height: 32px; }
.auth h1 { margin: 0 0 4px; font-size: 24px; }
.auth p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.auth .fields { text-align: left; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; padding: 4px; border-radius: 13px; background: #f6eef2; }
.tabs a { padding: 9px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tabs a.on { background: #fff; color: var(--text); box-shadow: var(--sh); }
.links { margin-top: 16px; padding: 6px; }
.links a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; font-weight: 500; }
.links a:hover { background: var(--soft); }
.links .i { color: var(--brand); }
.links .i:last-child { margin-left: auto; color: var(--muted); }
.muted-box { color: var(--muted); }
.muted-box a { color: var(--brand); font-weight: 600; }
.info { display: grid; gap: 12px; }
.info p { margin: 0 0 8px; color: var(--text-2); }
.info a { color: var(--brand); font-weight: 600; }

.empty { text-align: center; padding: 44px 16px; }
.empty-ic { width: 90px; height: 90px; margin: 0 auto 16px; border-radius: 28px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); }
.empty-ic .i { width: 44px; height: 44px; stroke-width: 1.5; }
.empty h2 { margin: 0 0 6px; font-size: 20px; }
.empty p { max-width: 380px; margin: 0 auto 18px; color: var(--muted); }

/* ---------- Подвал ---------- */
.foot { margin-top: 12px; padding: 28px 0 6px; background: #fff; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.foot-in { display: grid; gap: 20px; }
.foot-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--text); }
.foot-brand p { max-width: 360px; margin: 8px 0 0; color: var(--muted); }
.foot-links, .foot-contacts { display: grid; gap: 9px; align-content: start; }
.foot-links a:hover, .foot-contacts a:hover { color: var(--brand); }
.foot-contacts a, .foot-contacts span { display: flex; align-items: center; gap: 8px; }
.foot-contacts .i { color: var(--brand); }
.foot-copy { padding-top: 20px; padding-bottom: 8px; font-size: 12px; color: var(--muted); }

/* ---------- Уведомление ---------- */
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: calc(var(--dock-h) + var(--safe-b) + 14px);
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px);
  padding: 11px 16px; border-radius: 14px; background: #2a1320; color: #fff;
  font-size: 14px; font-weight: 500; box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast .i { color: #f9a8d4; }
.toast a { margin-left: 4px; color: #fbcfe8; font-weight: 700; white-space: nowrap; }
body.has-bar .toast { bottom: calc(var(--dock-h) + var(--safe-b) + 84px); }

@keyframes pop { 50% { transform: scale(1.35); } }
@keyframes heart { 0% { transform: scale(.5); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes popin { from { transform: scale(.3); opacity: 0; } }

/* ---------- Планшеты ---------- */
@media (min-width: 560px) {
  .logo-word { display: block; }
}
@media (min-width: 640px) {
  :root { --gut: 20px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .row-scroll { grid-template-columns: none; grid-auto-columns: 31%; }
  .banner { flex-basis: 62%; min-height: 176px; padding: 26px; }
  .banner-txt b { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .gal { margin: 0; border-radius: 22px; box-shadow: var(--sh); }
  .ci { grid-template-columns: 96px minmax(0, 1fr) 176px; }
  .ci-img { grid-row: auto; width: 96px; height: 96px; }
  .ci-qty { grid-column: auto; }
  .co .fields { grid-template-columns: 1fr 1fr; }
  .suggest { position: absolute; top: calc(100% + 8px); border-radius: 18px; max-height: 70vh; }
  .info { grid-template-columns: 1fr 1fr; }
}

/* ---------- Компьютер ---------- */
@media (min-width: 900px) {
  body, body.has-bar { padding-bottom: 0; }
  .top-in { height: 72px; gap: 14px; }
  .suggest { top: calc(100% + 10px); }
  .top-catalog {
    display: flex; align-items: center; gap: 8px; flex: none; height: 46px; padding: 0 18px;
    border-radius: 13px; background: rgb(255 255 255 / .18); font-weight: 600;
    transition: background .15s;
  }
  .top-catalog:hover { background: rgb(255 255 255 / .28); }
  .search { height: 46px; }
  .page { padding-top: 20px; }

  /* На компьютере нижнего меню нет: кнопки переезжают в шапку */
  .dock { display: none; }
  .top-nav { display: flex; gap: 2px; flex: none; }
  .top-a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 76px; height: 56px; padding: 0 8px; border-radius: 13px;
    font-size: 12px; font-weight: 500; color: rgb(255 255 255 / .92); transition: background .15s;
  }
  .top-a .i { width: 26px; height: 26px; }
  .top-a:hover, .top-a.on { background: rgb(255 255 255 / .16); color: #fff; }
  .top-a .badge { border-color: #d1137a; }
  .toast, body.has-bar .toast { bottom: 28px; }

  .banners { margin: 0 0 20px; }
  .banners-track { padding: 0; gap: 14px; }
  .banner { flex-basis: calc((100% - 28px) / 3); min-height: 196px; }
  .banners .dots { display: none; }
  .cats-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); overflow: visible; margin: 0 0 12px; padding: 0; gap: 14px 8px; }
  .cats-row .cat-ic { width: 72px; height: 72px; border-radius: 22px; }
  .cats-row .cat-ic .i { width: 36px; height: 36px; }
  .cats-row .cat-name { font-size: 13px; }
  .quick, .chips, .toolbar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .row-scroll { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .row-scroll > :nth-child(n+5) { display: none; }
  .card:hover { box-shadow: var(--sh-lg); }
  .card:hover .card-img img, .card:hover .ph .i { transform: scale(1.04); }
  .card-body { padding: 11px 12px 13px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .cat-card { padding: 18px; }

  .page-title { font-size: 30px; }
  .pp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .pp-gallery { position: sticky; top: 92px; }
  .gal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .gal-thumbs button { width: 68px; height: 68px; padding: 4px; border-radius: 13px; background: #fff; border: 2px solid transparent; box-shadow: var(--sh); }
  .gal-thumbs button.on { border-color: var(--brand); }
  .gal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
  .pp-title { font-size: 26px; }
  .pp-bar, .cart-bar { display: none; }

  .cart, .co, .order { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  .cart-sum, .co-sum { position: sticky; top: 92px; }
  .foot-in { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .row-scroll { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .row-scroll > :nth-child(5) { display: flex; }
}
@media (hover: none) {
  .card:hover .card-img img, .card:hover .ph .i { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
