/* ============ Shopifly — витрина ============
   Брейкпоинты: телефон < 640px, планшет 640–1023px, ПК ≥ 1024px */
:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --ink: #2b2129;
  --ink-2: #5b4f58;
  --muted: #8d828a;
  --line: #ece4dc;
  --soft: #f4ede6;
  --accent: #7a3b5e;
  --accent-ink: #ffffff;
  --accent-soft: #f3e7ee;
  --gold: #b8894a;
  --sale: #c0392b;
  --ok: #2e7d5b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 33, 41, .04), 0 8px 24px rgba(43, 33, 41, .06);
  --hdr-h: 64px;
  --tab-h: 64px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* токены шаблонов витрины (см. «Шаблоны витрины» в конце файла) */
  --on-ink: #ffffff;
  --hdr-bg: rgba(251, 248, 244, .9);
  --tab-bg: rgba(255, 255, 255, .96);
  --overlay: rgba(30, 20, 28, .4);
  --hero-bg: linear-gradient(135deg, #f6ece4, #efe1ea);
  --hero-ink: var(--ink);
  --hero-ink-2: var(--ink-2);
  --err-bg: #fdecea;
  --ok-soft: #e3f3eb;
  --warn: #c27c0e;
  --h-font: var(--serif);
  --h-weight: 600;
  --h-ls: -.01em;
  --h-tt: none;
  --logo-font: 700 26px/1 var(--serif);
  --logo-ls: .02em;
  --logo-tt: none;
  --btn-radius: 999px;
  --card-border: 1px solid var(--line);
  --card-ratio: 1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; flex: none; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 20px; padding-bottom: 48px; outline: none; }
h1, h2, h3 { font-family: var(--h-font); font-weight: var(--h-weight); line-height: 1.1; margin: 0; letter-spacing: var(--h-ls); text-transform: var(--h-tt); }
.muted { color: var(--muted); }

/* ---------- visibility helpers ---------- */
.only-d { display: none !important; }
@media (min-width: 1024px) { .only-d { display: flex !important; } .only-mt { display: none !important; } }
@media (max-width: 639px) { .hide-m { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: var(--btn-radius); border: 1px solid transparent; font-weight: 600; white-space: nowrap; transition: .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-primary:disabled { background: color-mix(in srgb, var(--accent) 35%, var(--bg)); cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; flex: none;
}
.icon-btn:hover { background: var(--soft); }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.badge:empty { display: none; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40; background: var(--hdr-bg);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; gap: 4px 8px; padding-top: 8px; padding-bottom: 10px; }
#menuBtn { grid-area: menu; margin-left: -8px; }
.logo { grid-area: logo; font: var(--logo-font); letter-spacing: var(--logo-ls); text-transform: var(--logo-tt); justify-self: center; }
.hdr-actions { grid-area: actions; display: flex; margin-right: -8px; }
.search { grid-area: search; position: relative; }
.search input {
  width: 100%; height: 42px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: var(--surface);
  padding: 0 16px 0 42px; outline: none; transition: border-color .15s; -webkit-appearance: none;
}
.search input:focus { border-color: var(--accent); }
.search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search-ic svg { width: 18px; height: 18px; }
@media (min-width: 640px) {
  .hdr-in { grid-template-columns: auto auto 1fr auto; grid-template-areas: "menu logo search actions"; gap: 12px; padding-top: 10px; }
  .logo { justify-self: start; }
  .search { max-width: 420px; justify-self: end; width: 100%; }
}
@media (min-width: 1024px) {
  .hdr-in { grid-template-columns: auto 1fr minmax(220px, 300px) auto; grid-template-areas: "logo nav search actions"; height: var(--hdr-h); padding: 0 16px; gap: 24px; }
  .topnav { grid-area: nav; gap: 22px; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; min-width: 0; }
  .topnav a { color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
  .topnav a:hover, .topnav a.on { color: var(--ink); border-color: var(--gold); }
}

/* ---------- mobile tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--tab-bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tab-h); font-size: 11px; color: var(--muted); font-weight: 600; }
.tabbar a.on { color: var(--accent); }
.tabbar .badge { top: 6px; right: calc(50% - 22px); }
body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--bg); overflow-y: auto;
  transform: translateX(-100%); transition: transform .28s ease; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px;
}
.drawer.right .drawer-panel { left: auto; right: 0; transform: translateX(100%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 24px; }
.menu-list { display: flex; flex-direction: column; }
.menu-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.menu-list a span { color: var(--muted); font-size: 13px; }
.menu-contacts { margin-top: auto; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
body.lock { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 20px; background: var(--hero-bg); color: var(--hero-ink); border-radius: 24px; padding: 28px 20px; overflow: hidden;
}
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 700; }
.hero h1 { font-size: clamp(34px, 7vw, 60px); margin: 10px 0 12px; }
.hero p { color: var(--hero-ink-2); margin: 0 0 22px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero > * { min-width: 0; }
.hero-art { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; aspect-ratio: 4 / 3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.hero-art img:first-child { grid-row: span 2; }
@media (min-width: 640px) { .hero { padding: 40px; } }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 56px; gap: 40px; } }

/* ---------- sections ---------- */
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 36px); }
.sec-head a { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover img { transform: scale(1.05); }
.cat span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px; background: linear-gradient(transparent, rgba(30, 20, 28, .55)); color: #fff; font-weight: 600; font-size: 13px; }
.cat small { display: block; font-weight: 500; opacity: .85; font-size: 11px; }
@media (min-width: 640px) { .cats { gap: 14px; } .cat span { font-size: 15px; padding: 30px 14px 14px; } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(6, 1fr); } }

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.perk svg { color: var(--gold); width: 26px; height: 26px; flex: none; }
.perk b { display: block; font-size: 14px; }
.perk span { font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) { .perks { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 400px) { .perks { grid-template-columns: 1fr; } }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .with-filters .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .with-filters .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* лента на телефоне листается свайпом */
@media (max-width: 639px) {
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 46%; scroll-snap-align: start; }
}

.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: var(--card-border); transition: box-shadow .2s, transform .2s; }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow); transform: translateY(-2px); } }
.card-img { position: relative; aspect-ratio: var(--card-ratio); background: var(--soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card.oos .card-img img { opacity: .55; filter: grayscale(.4); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.b { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--ink); letter-spacing: .02em; }
.b-new { background: var(--ink); color: var(--on-ink); }
.b-hit { background: var(--gold); color: #fff; }
.b-sale { background: var(--sale); color: #fff; }
.fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--surface) 90%, transparent); display: grid; place-items: center; color: var(--ink-2); transition: .15s; }
.fav svg { width: 20px; height: 20px; }
.fav.on { color: var(--sale); }
.fav.on svg path { fill: currentColor; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-name { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 16px; display: flex; flex-direction: column; line-height: 1.2; }
.price s { font-weight: 500; font-size: 12px; color: var(--muted); }
.price.sale { color: var(--sale); }
.btn-cart { height: 40px; width: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; transition: .15s; }
.btn-cart svg { width: 19px; height: 19px; }
.btn-cart span { display: none; }
.btn-cart.in { background: var(--accent-soft); color: var(--accent); }
.oos-label { font-size: 12px; color: var(--muted); }
@media (min-width: 1024px) {
  .card-body { padding: 14px 16px 16px; }
  .card-name { font-size: 15px; }
  .price { font-size: 17px; }
}

/* ---------- catalog ---------- */
.page-title { font-size: clamp(30px, 5vw, 44px); margin-bottom: 4px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.catalog { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 250px 1fr; gap: 32px; } .chips { display: none; } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.toolbar .count { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 400px) { .toolbar .count { display: none; } .toolbar-r { flex: 1; } .toolbar-r .select { flex: 1; min-width: 0; } }
.toolbar-r { display: flex; gap: 8px; }
.select { height: 40px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d828a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding: 0 34px 0 14px; -webkit-appearance: none; appearance: none; font-size: 14px; }
.filter-btn { height: 40px; padding: 0 14px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: var(--surface); display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; }
.filter-btn svg { width: 18px; height: 18px; }
.filters { display: flex; flex-direction: column; gap: 22px; }
.filters h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.f-list { display: flex; flex-direction: column; gap: 2px; }
.f-list button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 10px; display: flex; justify-content: space-between; font-weight: 500; }
.f-list button:hover { background: var(--soft); }
.f-list button.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.f-list button span { color: var(--muted); font-size: 13px; }
.f-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input { width: 100%; height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); padding: 0 14px; outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--accent); }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.more { display: flex; justify-content: center; margin-top: 24px; }
.empty { text-align: center; padding: 56px 16px; color: var(--ink-2); }
.empty svg { width: 52px; height: 52px; color: var(--gold); margin: 0 auto 12px; }
.empty h3 { font-size: 28px; margin-bottom: 8px; color: var(--ink); }
.empty p { margin: 0 0 20px; }

/* ---------- product page ---------- */
.pp { display: grid; gap: 20px; }
@media (min-width: 768px) { .pp { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } }
@media (min-width: 1024px) { .pp { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.gallery { display: grid; gap: 10px; }
@media (min-width: 768px) { .gallery { position: sticky; top: 90px; } }
.g-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; background: var(--soft); }
.g-main::-webkit-scrollbar { display: none; }
.g-main img { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
.g-thumbs { display: flex; gap: 8px; }
.g-thumbs button { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--soft); }
.g-thumbs button.on { border-color: var(--accent); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-dots { display: flex; justify-content: center; gap: 6px; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.g-dots i.on { background: var(--accent); }
@media (min-width: 768px) { .g-dots { display: none; } }
@media (max-width: 767px) { .g-thumbs { display: none; } .pp { margin: -20px -16px 0; } .pp > .info { padding: 0 16px; } .g-main { border-radius: 0; } }
.info h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 6px 0 12px; }
.pp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 28px; font-weight: 700; }
.pp-price s { font-size: 18px; color: var(--muted); font-weight: 500; }
.pp-price .b { font-size: 13px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin: 10px 0 20px; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.no { color: var(--muted); }
.buy { display: flex; gap: 10px; align-items: center; }
.buy .btn-primary { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--surface); height: 48px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 20px; color: var(--ink-2); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; font-size: 18px; }
.fav-lg { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.fav-lg.on { color: var(--sale); }
.fav-lg.on svg path { fill: currentColor; }
.props { margin-top: 28px; border-top: 1px solid var(--line); }
.props > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.props h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.props p { margin: 0; color: var(--ink-2); white-space: pre-line; }
.mini-perks { display: grid; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.mini-perks div { display: flex; gap: 10px; align-items: center; }
.mini-perks svg { width: 20px; height: 20px; color: var(--gold); }
/* липкая кнопка покупки на телефоне */
@media (max-width: 639px) {
  .buy-sticky { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 30; padding: 10px 16px; background: var(--hdr-bg); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .has-sticky { padding-bottom: 80px; }
}

/* ---------- cart / checkout ---------- */
.two-col { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 360px; gap: 32px; align-items: start; } .summary { position: sticky; top: 90px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
@media (min-width: 640px) { .panel { padding: 24px; } }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.cl-top { display: flex; justify-content: space-between; gap: 8px; }
.cl-name { font-weight: 600; line-height: 1.3; }
.cl-unit { font-size: 13px; color: var(--muted); }
.cl-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.cl-sum { font-weight: 700; }
.x-btn { border: 0; background: none; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; margin: -6px -6px 0 0; }
.x-btn:hover { background: var(--soft); color: var(--sale); }
.x-btn svg { width: 18px; height: 18px; }
.cl-warn { font-size: 12px; color: var(--sale); margin-top: 4px; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 110px 1fr; } .cart-line img { width: 110px; height: 110px; } }
.summary h3 { font-size: 26px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); gap: 10px; }
.sum-row.total { color: var(--ink); font-weight: 700; font-size: 20px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 16px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.hint b { color: var(--accent); }
.progress { height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

.form { display: grid; gap: 16px; }
.form h3 { font-size: 24px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field .req { color: var(--sale); }
.row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .opts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.opt { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 12px 44px; cursor: pointer; background: var(--surface); transition: border-color .15s; }
.opt input { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.opt b { display: block; font-size: 14px; }
.opt span { font-size: 12px; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.err { color: var(--sale); font-size: 14px; background: var(--err-bg); padding: 10px 12px; border-radius: 10px; }
.mini-line { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.mini-line img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.mini-line div { flex: 1; min-width: 0; }
.mini-line .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

.success { max-width: 560px; margin: 24px auto; text-align: center; }
.success .ok-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.success .ok-ic svg { width: 38px; height: 38px; }
.success h1 { font-size: 40px; margin-bottom: 10px; }
.success .num { font: 700 30px var(--h-font); color: var(--accent); }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; font-size: 14px; color: var(--ink-2); }
.ftr-in { display: grid; gap: 24px; }
.ftr h4 { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
.ftr a:hover { color: var(--accent); }
.ftr-links { display: grid; gap: 6px; }
.ftr .logo { font-size: 28px; display: inline-block; margin-bottom: 6px; }
.ftr-copy { font-size: 12px; color: var(--muted); }
@media (min-width: 640px) { .ftr-in { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- toast & skeleton ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 80; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold); text-decoration: underline; white-space: nowrap; }
@media (min-width: 640px) { .toast { bottom: 24px; } }
.skel { background: linear-gradient(90deg, var(--soft), var(--surface), var(--soft)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.skel-card { aspect-ratio: .72; }

/* ---------- карта в оформлении ---------- */
.field .sub { font-weight: 500; font-size: 12px; color: var(--muted); }
.addr { display: grid; gap: 10px; }
.addr > label { margin-bottom: 0; }
.map-search { position: relative; }
.map-search .input { padding-left: 42px; }
.ms-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.ms-ic svg { width: 18px; height: 18px; }
.ms-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; max-height: 280px; overflow-y: auto; }
.ms-results button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ms-results button:last-child { border-bottom: 0; }
.ms-results button:hover { background: var(--soft); }
.ms-results svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.ms-empty { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.map-box { position: relative; height: 280px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--soft); isolation: isolate; z-index: 0; }
@media (min-width: 640px) { .map-box { height: 340px; } }
#map { position: absolute; inset: 0; }
.map-err { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.map-locate { position: absolute; right: 10px; bottom: 28px; z-index: 1000; width: 46px; height: 46px; border-radius: 12px; border: 0; background: #fff; color: #333; box-shadow: 0 2px 6px rgba(0,0,0,.25); display: grid; place-items: center; transition: color .15s; }
.map-locate:hover { color: #000; }
.map-locate svg { width: 24px; height: 24px; }
.map-locate.on { color: #2f7cf6; }
.map-locate.busy svg { animation: locpulse 1s ease-in-out infinite; color: #2f7cf6; }
@keyframes locpulse { 50% { opacity: .3; transform: scale(.85); } }
.pin { background: none; border: 0; }
.pin i { position: absolute; left: 3px; top: 0; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,.3); border: 3px solid #fff; }
.pin::after { content: ''; position: absolute; left: 13px; bottom: -2px; width: 8px; height: 4px; border-radius: 50%; background: rgba(0,0,0,.25); }
.place { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--soft); }
.place-ic { color: var(--muted); display: flex; }
.place-ic svg { width: 22px; height: 22px; }
.place b { display: block; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--ink-2); }
.place small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.place.set { background: var(--accent-soft); }
.place.set .place-ic { color: var(--accent); }
.place.set b { color: var(--ink); }

/* ---------- язык ---------- */
.lang-btn { font: 700 12px/1 var(--sans, inherit); letter-spacing: .04em; }
.lang-switch { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--soft); margin: 4px 0; }
.lang-switch button { border: 0; background: none; font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; color: inherit; cursor: pointer; }
.lang-switch button.on { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.drawer-panel .lang-switch { margin: 14px 0 4px; }

/* подкатегории */
.drawer a.sub, nav a.sub, a.sub { padding-left: 28px; font-size: .94em; opacity: .85; }
.filters button.sub, button.sub:not(.chip) { padding-left: 26px; font-size: .94em; }
.chip.sub { border-style: dashed; }

/* варианты товара: размер, цвет */
.vopt { margin: 14px 0 4px; }
.vopt-name { font-size: 14px; color: var(--muted, #777); margin-bottom: 8px; }
.vopt-name b { color: var(--ink, #222); }
.vopt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.vval { min-width: 46px; padding: 9px 14px; border: 1.5px solid var(--line, #e5e0da); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.vval:hover { border-color: var(--ink, #222); }
.vval.on { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.vval.na { color: #aaa; text-decoration: line-through; border-style: dashed; }
.vval.na.on { background: #999; border-color: #999; color: #fff; }
#buyBtn:disabled { opacity: .55; }

/* поделиться товаром */
.pp-title { display: flex; align-items: flex-start; gap: 12px; }
.pp-title h1 { flex: 1; min-width: 0; }
.share-btn { flex: 0 0 auto; width: 42px; height: 42px; margin-top: 4px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.share-btn:hover { border-color: var(--ink); }
.share-btn svg { width: 19px; height: 19px; }

/* промокод на оформлении */
.promo-box { margin: 12px 0 2px; }
.promo-in { display: flex; gap: 8px; }
.promo-in .input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-on { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 12px; border: 1.5px dashed #6bb38a; border-radius: 12px; background: var(--ok-soft); font-size: 14px; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sum-row.disc span:last-child { color: #23784a; font-weight: 600; }

/* онлайн-оплата */
.opt-online b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #2fa36b; vertical-align: middle; }
.pay-ok { display: inline-block; margin: 6px 0 4px; padding: 8px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.pay-wait { margin: 6px 0 10px; color: var(--warn); font-weight: 600; }
.pay-btn { margin-bottom: 14px; }

/* зона доставки на оформлении */
.zone-field { margin-bottom: 14px; }
.zone-field select { width: 100%; }

/* ---- отзывы ---- */
.stars { display: inline-flex; gap: 1px; color: #f2b01e; vertical-align: -2px; }
.stars i { position: relative; display: inline-block; width: 16px; height: 16px; color: color-mix(in srgb, var(--muted) 30%, transparent); }
.stars i .i { width: 16px; height: 16px; display: block; }
.stars i::after { content: ''; position: absolute; inset: 0; width: var(--f); overflow: hidden;
  background: #f2b01e; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.7 6.3.9-4.6 4.4 1.1 6.3L12 17.1l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9L12 2.8Z'/%3E%3C/svg%3E") left / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.7 6.3.9-4.6 4.4 1.1 6.3L12 17.1l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9L12 2.8Z'/%3E%3C/svg%3E") left / 16px 16px no-repeat; }
.stars.sm i, .stars.sm i .i { width: 14px; height: 14px; }
.stars.sm i::after { -webkit-mask-size: 14px 14px; mask-size: 14px 14px; }
.card-rate { display: flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--muted); margin-top: -2px; }
.card-rate .i { width: 14px; height: 14px; color: #f2b01e; }
.card-rate b { color: var(--ink); font-weight: 700; }
.pp-rate { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; margin: 2px 0 8px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.pp-rate b { color: var(--ink); }
.pp-rate span { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.sec-head h2 small { font-family: var(--sans); font-size: .5em; font-weight: 600; color: var(--muted); vertical-align: middle; }
.revs { display: grid; gap: 20px; }
@media (min-width: 900px) { .revs { grid-template-columns: 300px 1fr; gap: 40px; align-items: start; } .rev-sum { position: sticky; top: 90px; } }
.rev-sum { display: grid; gap: 14px; align-content: start; }
.rev-avg { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.rev-avg b { grid-row: span 2; font: 700 44px/1 var(--h-font); }
.rev-avg span { font-size: 13px; color: var(--muted); }
.rev-dist { display: grid; gap: 5px; font-size: 13px; }
.rev-dist div { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 8px; }
.rev-dist span { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); }
.rev-dist span .i { width: 12px; height: 12px; color: #f2b01e; }
.rev-dist i { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.rev-dist u { display: block; height: 100%; background: #f2b01e; border-radius: 3px; }
.rev-dist em { font-style: normal; color: var(--muted); text-align: right; }
.rev-list { display: grid; gap: 12px; align-content: start; }
.rev-list > .btn { justify-self: start; }
.rev { background: var(--surface); border: var(--card-border); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; }
.rev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.rev-head time { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.rev-ok { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ok); }
.rev-ok .i { width: 13px; height: 13px; }
.rev p { margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); }
.rev-reply { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 13.5px; }
.rev-reply b { font-size: 12.5px; color: var(--accent); }
.rev-form { display: grid; gap: 12px; }
.rev-form h3 { font-size: 20px; }
.rate-pick { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.rate-pick label { cursor: pointer; }
.rate-pick input { position: absolute; opacity: 0; pointer-events: none; }
.rate-pick span { display: block; color: color-mix(in srgb, var(--muted) 35%, transparent); transition: color .12s, transform .12s; }
.rate-pick span .i { width: 34px; height: 34px; }
.rate-pick label:hover span, .rate-pick label:hover ~ label span, .rate-pick label:has(input:checked) span, .rate-pick label:has(input:checked) ~ label span { color: #f2b01e; }
.rate-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.rate-pick label:active span { transform: scale(.9); }
.rv-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.rev-form textarea { resize: vertical; min-height: 96px; }
.rev-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rev-thanks { display: flex; gap: 12px; align-items: flex-start; }
.rev-thanks > .i { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.rev-thanks p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Telegram Mini App ---------- */
.tg-phone { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tg-phone::before { content: "✈ "; }

/* ================= Шаблоны витрины =================
   Шаблон выбирается в админке (Настройки → Оформление), сервер ставит <html data-theme="…">.
   «Бутик» (boutique) — оформление по умолчанию выше; остальные переопределяют токены и пару деталей.
   Цвет кнопок (--accent) продавец задаёт сам — он поверх шаблона. */

/* ---- Минимал: белый, строгий, квадратные формы — одежда, обувь, бренды ---- */
:root[data-theme="minimal"] {
  --bg: #ffffff; --surface: #ffffff; --ink: #111111; --ink-2: #444444; --muted: #8a8a8a; --line: #e6e6e6; --soft: #f4f4f4;
  --accent: #111111; --accent-soft: #f0f0f0; --gold: #111111;
  --radius: 2px; --radius-sm: 2px; --btn-radius: 2px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .06);
  --hdr-bg: rgba(255, 255, 255, .94); --overlay: rgba(0, 0, 0, .35);
  --hero-bg: #f4f4f4;
  --h-font: var(--sans); --h-weight: 800; --h-ls: -.02em;
  --logo-font: 800 20px/1 var(--sans); --logo-ls: .22em; --logo-tt: uppercase;
  --card-border: 0; --card-ratio: 3 / 4;
}
[data-theme="minimal"] .hero { border-radius: 0; }
[data-theme="minimal"] .eyebrow { letter-spacing: .24em; }
[data-theme="minimal"] .card-body { padding-left: 2px; padding-right: 2px; }
[data-theme="minimal"] .card-name { font-weight: 500; }
[data-theme="minimal"] .b { border-radius: 0; }
[data-theme="minimal"] .btn-cart { border-radius: 2px; }
[data-theme="minimal"] .sec-head h2, [data-theme="minimal"] .page-title { text-transform: uppercase; letter-spacing: .04em; font-size: clamp(20px, 3vw, 28px); }
[data-theme="minimal"] .cat { border-radius: 0; }
[data-theme="minimal"] .vval { border-radius: 0; }

/* ---- Маркет: яркий и крупный — электроника, товары для дома, всё для всех ---- */
:root[data-theme="market"] {
  --bg: #f2f3f5; --surface: #ffffff; --ink: #1b1d21; --ink-2: #4a4f57; --muted: #868b94; --line: #e3e5e9; --soft: #eceef1;
  --accent: #ff5c00; --accent-soft: #fff0e6; --gold: #ffab00; --sale: #e5242b;
  --radius: 16px; --radius-sm: 12px; --btn-radius: 12px;
  --shadow: 0 6px 20px rgba(20, 24, 31, .08);
  --hdr-bg: #ffffff; --overlay: rgba(10, 12, 16, .45);
  --hero-bg: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #7a00ff));
  --hero-ink: #ffffff; --hero-ink-2: rgba(255, 255, 255, .88);
  --h-font: var(--sans); --h-weight: 800; --h-ls: -.02em;
  --logo-font: 800 24px/1 var(--sans); --logo-ls: -.02em;
  --card-border: 0;
}
[data-theme="market"] .hero .eyebrow { color: rgba(255, 255, 255, .85); }
[data-theme="market"] .hero .btn-primary { background: #fff; color: var(--ink); }
[data-theme="market"] .hero .btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
[data-theme="market"] .card { box-shadow: 0 1px 3px rgba(20, 24, 31, .06); }
[data-theme="market"] .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
[data-theme="market"] .price { font-size: 19px; font-weight: 800; flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
[data-theme="market"] .btn-cart { width: 100%; border-radius: 10px; height: 40px; font-weight: 700; font-size: 14px; }
[data-theme="market"] .btn-cart::after { content: attr(aria-label); }
[data-theme="market"] .btn-cart.in::after { content: '✓'; display: none; }
[data-theme="market"] .oos-label { text-align: center; padding: 10px 0; background: var(--soft); border-radius: 10px; }
[data-theme="market"] .b { border-radius: 6px; }
[data-theme="market"] .perk { border: 0; box-shadow: 0 1px 3px rgba(20, 24, 31, .06); }
[data-theme="market"] .card-cat { display: none; }

/* ---- Ночь: тёмный премиальный — парфюм, часы, электроника, подарки ---- */
:root[data-theme="night"] {
  --bg: #0f0f12; --surface: #18181d; --ink: #f3efe7; --ink-2: #c9c3b8; --muted: #8d877c; --line: #2b2a31; --soft: #212027;
  --accent: #d4af37; --accent-soft: rgba(212, 175, 55, .14); --gold: #d4af37; --sale: #ff6b5e; --ok: #4cc38a;
  --on-ink: #111111;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --hdr-bg: rgba(15, 15, 18, .9); --tab-bg: rgba(20, 20, 24, .96); --overlay: rgba(0, 0, 0, .6);
  --hero-bg: radial-gradient(120% 120% at 100% 0%, #2a2418 0%, #15151a 55%, #0f0f12 100%);
  --err-bg: rgba(255, 107, 94, .12); --ok-soft: rgba(76, 195, 138, .14); --warn: #f0b44c;
}
[data-theme="night"] .hero { border: 1px solid var(--line); }
[data-theme="night"] .b-hit { color: #111; }
[data-theme="night"] .card-img, [data-theme="night"] .g-main { background: #1f1e24; }
[data-theme="night"] .select { color-scheme: dark; }
[data-theme="night"] .input { color-scheme: dark; }
[data-theme="night"] .lang-switch button.on { box-shadow: none; }

/* ---- Эко: природные тона и мягкие формы — продукты, хендмейд, натуральная косметика ---- */
:root[data-theme="eco"] {
  --bg: #f5f2ea; --surface: #fffdf8; --ink: #27301f; --ink-2: #4d5845; --muted: #7f8776; --line: #e3dfd2; --soft: #ece8dc;
  --accent: #4f7a3a; --accent-soft: #e5eedd; --gold: #b07b2c;
  --radius: 22px; --radius-sm: 14px;
  --hdr-bg: rgba(245, 242, 234, .92);
  --hero-bg: linear-gradient(135deg, #e6eedb, #f3e8d4);
  --h-font: 'Lora', Georgia, serif; --h-weight: 600; --h-ls: 0;
  --logo-font: 700 24px/1 'Lora', Georgia, serif; --logo-ls: 0;
}
[data-theme="eco"] .hero { border-radius: 32px; }
[data-theme="eco"] .cat { aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
[data-theme="eco"] .cat img { border-radius: 50%; aspect-ratio: 1; height: auto; background: var(--soft); }
[data-theme="eco"] .cat span { display: block; position: static; background: none; color: var(--ink); text-align: center; padding: 8px 0 0; }
[data-theme="eco"] .cat small { color: var(--muted); }
