/*
  Стили витрины Tina. Один файл, без сборки. Цвета — переменные ниже (одобрены владельцем:
  бежевый, белый, бордовый + золото; итоговая сумма — зелёная).
  Сначала телефон, в конце — правки для больших экранов.
*/
:root {
  --burg: #5B1A20; --gold: #C8A064; --gold-2: #A7824A;
  --cream: #F4E9D8; --paper: #FBF7F1; --ink: #2A1215; --muted: #7A6A62; --line: #EADFD2;
  --green: #2E7D4F; --green-bg: #E6F4EC; --blue: #2D5F9A; --blue-bg: #E7EEF8;
  --amber: #9A6A00; --amber-bg: #FFF4D6; --red: #C0392B;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.4 var(--sans); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1100px; margin: 0 auto; }
.muted { color: var(--muted); }

/* Шапка */
.top { background: var(--cream); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.top .logo { color: var(--burg); margin-right: auto; display: flex; align-items: center; }
.top .logo svg { height: 19px; width: 72px; display: block; }
.top nav { display: none; gap: 18px; font-weight: 600; color: var(--burg); }
.lang { font-size: 12px; border: 1px solid var(--gold); border-radius: 12px; overflow: hidden; display: flex; }
.lang a { padding: 3px 8px; }
.lang a.on { background: var(--burg); color: var(--cream); font-weight: 600; }
.cart-link { position: relative; font-size: 20px; }
.cart-link em { position: absolute; top: -6px; right: -9px; background: var(--gold); color: #fff; font: 700 11px var(--sans); font-style: normal; border-radius: 9px; padding: 1px 5px; }
.crumbs { padding: 10px 14px; font-size: 14px; color: var(--muted); }

/* Секции */
.sec { padding: 14px; }
.sec h2 { font: 700 19px var(--serif); margin: 0 0 10px; color: var(--burg); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sec h2 a { font: 500 13px var(--sans); color: var(--gold-2); white-space: nowrap; }
.hello { margin: 6px 14px 0; font-size: 13px; color: var(--muted); text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 40px 14px; }

/* Главная: две большие карточки магазинов */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 14px 4px; }
.store { position: relative; border-radius: 16px; overflow: hidden; height: 190px; background: var(--cream); }
.store img { width: 100%; height: 100%; object-fit: cover; }
.store div { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(40,10,14,.85)); color: #fff; }
.store b { font: 700 20px var(--serif); display: block; }
.store small { opacity: .85; font-size: 12px; }

/* Карточки товаров */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.hscroll .p { flex: 0 0 150px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.p { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.p .ph { position: relative; aspect-ratio: 4/5; background: var(--cream); }
.p .ph img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.p .tag { position: absolute; left: 6px; top: 6px; }
.tag.stock { background: var(--green-bg); color: var(--green); }
.tag.pre { background: var(--blue-bg); color: var(--blue); }
.p .txt { padding: 8px 9px 10px; }
.p .t { font-size: 13px; line-height: 1.3; height: 34px; overflow: hidden; }
.p .pr { font-weight: 700; margin-top: 4px; color: var(--burg); }

/* Как заказать */
.steps { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; }
.step { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.step:last-child { border-bottom: none; }
.step i { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--burg); color: var(--cream); font: 700 13px/26px var(--sans); text-align: center; font-style: normal; }
.step small { display: block; color: var(--muted); font-size: 12px; }

/* Каталог */
.tabs { display: flex; margin: 10px 14px 0; background: var(--cream); border-radius: 12px; padding: 3px; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.tabs a.on { background: #fff; color: var(--burg); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.search { display: flex; margin: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.search input { flex: 1; border: none; padding: 11px 12px; font: 15px var(--sans); background: transparent; min-width: 0; }
.search button { border: none; background: none; padding: 0 14px; font-size: 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 4px; }
.chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.chip.on { background: var(--burg); color: #fff; border-color: var(--burg); }
.chips.small { margin-top: 8px; }
.chips.small .chip { font-size: 12px; padding: 4px 10px; }

/* Карточка товара */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--cream); }
.gallery > * { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4/5; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.pd { padding: 12px 14px 20px; }
.pd h1 { font: 700 21px/1.25 var(--serif); margin: 0 0 6px; }
.pd .price { font: 700 24px var(--sans); color: var(--burg); }
.pill { display: inline-block; font-size: 13px; padding: 5px 10px; border-radius: 8px; margin-top: 8px; }
.pill.pre { background: var(--blue-bg); color: var(--blue); }
.pill.stock { background: var(--green-bg); color: var(--green); }
.lbl { font-size: 13px; color: var(--muted); margin: 14px 0 6px; display: flex; justify-content: space-between; }
.lbl a { color: var(--gold-2); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: block; min-width: 46px; text-align: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; }
.opts input:checked + span { border: 2px solid var(--burg); color: var(--burg); padding: 8px 11px; }
.opts input:disabled + span { color: #c9bdb2; text-decoration: line-through; }
.btn { display: block; width: 100%; text-align: center; padding: 14px; border-radius: 12px; font: 700 16px var(--sans); border: none; }
.btn.main { background: var(--burg); color: #fff; margin-top: 16px; }
.btn.main:disabled { opacity: .5; }
.acc { border-top: 1px solid var(--line); margin-top: 16px; }
.acc details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.acc summary { font-weight: 600; list-style: none; display: flex; justify-content: space-between; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--gold-2); font-size: 18px; line-height: 1; }
.acc details[open] summary::after { content: "–"; }
.acc .body { margin-top: 8px; color: var(--muted); font-size: 14px; white-space: pre-line; }

/* Подвал с кнопками связи */
.foot { background: var(--burg); color: var(--cream); padding: 20px 14px 24px; font-size: 13px; text-align: center; margin-top: 20px; }
.foot .brand { color: var(--gold); margin-bottom: 12px; }
.foot .brand svg { height: 15px; width: 57px; }
.foot .links { margin-top: 6px; opacity: .85; }
.contacts { display: flex; justify-content: center; gap: 22px; margin-bottom: 18px; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--cream); font-size: 12px; background: none; border: none; padding: 0; }
.cbtn span { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font: 700 22px var(--sans); }
.cbtn.ig span { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.cbtn.imo span { background: #1C8CFF; font-size: 15px; }
.cbtn.wa span { background: #25A55F; }

/* Выезжающая снизу панель (imo, выбор Instagram) */
.sheet { position: fixed; inset: 0; background: rgba(20,10,10,.45); display: none; z-index: 50; }
.sheet.open { display: block; }
.sheet .panel { position: absolute; bottom: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 16px 22px; text-align: center; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.sheet p { margin: 0; color: var(--muted); font-size: 13px; }
.sheet .num { font: 700 22px var(--sans); margin: 4px 0 12px; }
.sheet .sbtn { display: block; width: 100%; padding: 13px; border-radius: 12px; font: 700 15px var(--sans); border: none; margin-top: 8px; }
.sbtn.copy { background: #1C8CFF; color: #fff; }
.sbtn.call { background: var(--cream); color: var(--burg); }
.sbtn.ig { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); color: #fff; }
.sbtn.close { background: none; color: var(--muted); font-weight: 500; }

/* Компьютер — вторым приоритетом */
@media (min-width: 760px) {
  .top nav { display: flex; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
  .stores { grid-template-columns: 1fr 1fr; gap: 16px; }
  .store { height: 320px; }
  .product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 14px; }
  .product-page .pd { padding-top: 0; }
  .gallery { border-radius: 14px; }
}

/* Корзина */
.cblock { margin: 12px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px 12px; }
.cblock h3 { font: 700 16px var(--serif); color: var(--burg); margin: 10px 0 4px; display: flex; justify-content: space-between; gap: 8px; }
.cblock h3 small { font: 400 12px var(--sans); color: var(--muted); }
.ci { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ci:last-of-type { border-bottom: none; }
.ci img, .ci .noimg { width: 62px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--cream); flex: 0 0 auto; }
.ci .n { flex: 1; font-size: 13px; min-width: 0; }
.ci .n b { display: block; font-size: 14px; }
.ci .n .tag { margin-top: 4px; }
.ci .pr { font-weight: 700; white-space: nowrap; }
.qty { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.qty select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 13px var(--sans); }
.qty .rm { border: none; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.opt { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 8px; cursor: pointer; font-size: 14px; }
.opt input { accent-color: var(--burg); width: 18px; height: 18px; }
.opt.on { border-color: var(--burg); background: #FCF6F4; }
.opt .grow { flex: 1; }
.opt small { display: block; color: var(--muted); font-size: 12px; }
.opt b { white-space: nowrap; }
select.city { width: 100%; padding: 12px; border-radius: 12px; border: 1.5px solid var(--burg); font: 600 15px var(--sans); background: #fff; color: var(--ink); margin-top: 6px; }
.cityres { margin-top: 8px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--cream); }
.cityres b { font-size: 16px; white-space: nowrap; }
.note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sum { margin: 12px 14px 0; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; padding: 4px 0; }
.total { margin: 12px 14px 0; border-radius: 16px; padding: 14px; background: var(--green-bg); border: 2px solid var(--green); color: var(--green); }
.total .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.total .big { font: 800 26px var(--sans); text-align: right; }
.total .usd { font: 700 16px var(--sans); text-align: right; }
.total .pre { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(46,125,79,.4); color: var(--ink); }
.total .pre b { color: var(--green); font-size: 20px; white-space: nowrap; }
.total small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sticky-buy { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--paper) 30%); padding: 14px; z-index: 5; }
.sticky-buy .btn.main { margin-top: 0; }

/* Оформление */
.closed { margin: 12px 14px 0; background: var(--amber-bg); color: var(--amber); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.form { padding: 4px 14px 0; }
.fl { display: block; font-size: 13px; color: var(--muted); margin-top: 12px; }
.fl span { color: var(--red); }
.in { width: 100%; margin-top: 5px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 16px var(--sans); color: var(--ink); }
.in:focus { outline: none; border-color: var(--burg); }
.err { color: var(--red); font-size: 13px; margin-top: 4px; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.times label { position: relative; }
.times input { position: absolute; opacity: 0; }
.times span { display: block; text-align: center; padding: 10px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; }
.times input:checked + span { border-color: var(--burg); color: var(--burg); font-weight: 600; background: #FCF6F4; }
.consent { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 14px; align-items: flex-start; }
.consent input { accent-color: var(--burg); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.mini { margin: 14px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.mini div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.mini .g { color: var(--green); font-weight: 700; }

/* Заказ принят */
.done { text-align: center; max-width: 460px; margin: 0 auto; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font: 700 34px/64px var(--sans); margin: 20px auto 10px; }
.done h1 { font: 700 22px var(--serif); color: var(--burg); }
.done .mini { text-align: left; }

/* «Как в прошлый раз» */
.remember-card { margin: 12px 14px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px; border-radius: 14px; background: #fff; border: 1.5px solid var(--gold); }
.remember-card[hidden], .last-city[hidden] { display: none; }
.remember-card .grow { flex: 1 1 200px; }
.remember-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.remember-card .rm { border: none; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.last-city { margin-top: 8px; border-color: var(--gold); color: var(--burg); }
.note.regions-pay { color: var(--blue); background: var(--blue-bg); border-radius: 8px; padding: 6px 8px; }

/* ── Карточка товара с ♡ ─────────────────────────────────────────── */
.p { position: relative; }
.p-link { display: block; color: inherit; }
.gallery-wrap { position: relative; }

/* ♡ со «всплеском» */
.heart { position: absolute; right: 7px; top: 7px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center; color: var(--burg); box-shadow: 0 1px 4px rgba(0,0,0,.15); cursor: pointer; z-index: 2; padding: 0; }
.heart.big { width: 42px; height: 42px; right: 12px; top: 12px; }
.heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .15s; }
.heart.big svg { width: 22px; height: 22px; }
.heart.on svg { fill: var(--burg); }
.heart.pop { animation: pop .45s ease-out; }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
.heart::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
.heart.pop::after { animation: ring .45s ease-out; }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ── Нижнее меню (вариант 2 «Кремовая капсула») — только на телефоне ── */
.tabbar { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 70px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 64px; background: #fff; border-top: 1px solid var(--line);
    align-items: center; padding: 0 6px env(safe-area-inset-bottom); gap: 4px; }
  .sticky-buy { bottom: 64px; }
}
.tabbar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: #8A7B73;
  white-space: nowrap; padding: 6px 2px; border-radius: 14px; position: relative; }
.tabbar a.on { color: var(--burg); background: var(--cream); font-weight: 600; }
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .badge { position: absolute; top: 1px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--gold); color: #fff;
  font: 700 9.5px/16px var(--sans); text-align: center; padding: 0 4px; }
.tabbar .badge[hidden] { display: none; }
.badge.bump { animation: bump .45s ease-out; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }
.wobble svg, .cart-link.wobble { animation: wobble .5s ease-in-out; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 55% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } }

/* Летящее мини-фото */
.flyer { position: fixed; z-index: 60; width: 56px; height: 70px; object-fit: cover; border-radius: 10px; pointer-events: none;
  background: var(--cream); box-shadow: 0 6px 16px rgba(0,0,0,.25); }

/* Плашка «Добавлено в корзину · Оформить →» */
.toast { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 50; max-width: 480px; margin: 0 auto; background: var(--ink); color: #fff;
  border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px;
  transform: translateY(20px); opacity: 0; transition: all .25s; pointer-events: none; }
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
.toast a { color: var(--gold); font-weight: 700; white-space: nowrap; }
@media (min-width: 760px) { .toast { bottom: 20px; } }
.form-error { color: var(--red); font-weight: 600; margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .heart.pop, .heart.pop::after, .badge.bump, .wobble svg, .cart-link.wobble { animation: none; }
  .toast { transition: none; }
}
.cart-link { display: inline-flex; color: var(--burg); }
.head-bag { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Выбор цвета и размера (static/js/variants.js) ─────────────────────────
   in — в наличии; pre — «под заказ» (мутный, но нажимается); off — нет (мутный, не нажимается) */
.vswatches { display: flex; flex-wrap: wrap; gap: 12px; }
.vsw { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: none; padding: 0; font: 12px var(--sans); color: var(--muted); cursor: pointer; max-width: 64px; }
.vsw i { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); display: block; position: relative;
  background-size: cover; background-position: center; font-style: normal; }
.vsw .txt-dot { background: var(--cream); color: var(--burg); font: 700 15px/34px var(--sans); text-align: center; }
.vsw span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 64px; }
.vsw.on { color: var(--burg); font-weight: 600; }
.vsw.on i { box-shadow: 0 0 0 2px var(--burg); }
.vsw.st-pre i, .vsizes .st-pre, .vtile.st-pre img, .vtile.st-pre i { opacity: .5; filter: grayscale(.5); }
.vsw.st-pre.on i, .vsizes .st-pre.on { opacity: .85; filter: none; }
.vsw.st-off { cursor: not-allowed; opacity: .4; filter: grayscale(.8); }
.vsw.st-off i::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #9b8f88; transform: rotate(45deg); }
.vsizes { display: flex; flex-wrap: wrap; gap: 8px; }
.vsz { min-width: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.vsz.on { border: 2px solid var(--burg); color: var(--burg); padding: 8px 11px; }
.vsz.st-off { color: #c9bdb2; text-decoration: line-through; cursor: not-allowed; }
.vsz em { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 1px; }
.vp-hint { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--blue-bg); color: var(--blue); font-size: 13.5px; }
.vp-hint::before { content: "✈ "; }

.vsheet { text-align: left; max-height: 85vh; overflow-y: auto; }
.vs-title { font: 700 17px var(--serif); color: var(--burg); margin: 0 0 10px; }
.vtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vsizes + .vtiles { margin-top: 14px; }
.vtile { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 6px 6px 8px; text-align: center; cursor: pointer; font: 12px var(--sans); color: var(--ink); }
.vtile img, .vtile i { display: block; width: 100%; height: 72px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.vtile b { display: block; font-weight: 600; }
.vtile small { display: block; font-size: 10.5px; color: var(--muted); }
.vtile.st-pre small { color: var(--blue); }
.vtile.on { border: 2px solid var(--burg); background: #FCF6F4; padding: 5.5px 5.5px 7.5px; }
.vtile.st-off { opacity: .45; filter: grayscale(.7); cursor: not-allowed; }
.vtile.st-off small { color: var(--red); }
.vs-add { background: var(--burg); color: #fff; margin-top: 14px; }
.vs-add:disabled { opacity: .5; }
.vp-ui .lbl, .vsheet .lbl { justify-content: flex-start; gap: 4px; }

/* <picture> — обёртка для лёгких WebP-копий фото (templates/includes/picture.html) */
picture { display: block; }
.p .ph picture, .store picture, .gallery picture { width: 100%; height: 100%; }
.ci picture { flex: 0 0 auto; }

/* Страницы «Доставка и оплата», «Возврат и обмен», «Контакты» */
.info h1 { font: 700 22px var(--serif); color: var(--burg); margin: 4px 0 10px; }
.info h2 { display: block; margin-top: 20px; }
.info-text p { margin: 0 0 10px; }
.rows { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; font-size: 14px; }
.rows > div { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.rows .pill { margin-top: 0; flex: 0 0 auto; }
.rows .way { padding-left: 6px; justify-content: space-between; }
.rows .way small, .rows p { color: var(--muted); }
.rows p { margin: 7px 0; font-size: 13px; }
.city-prices div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.city-prices div:last-child { border-bottom: none; }
.city-prices b { white-space: nowrap; color: var(--green); }
.info-hours { color: var(--muted); font-size: 14px; }
.contact-list { display: grid; gap: 8px; max-width: 420px; }
.contact-list .sbtn { display: block; width: 100%; padding: 13px; border-radius: 12px; font: 700 15px var(--sans); border: none; text-align: center; }
.sbtn.wa { background: #25A55F; color: #fff; }
.contact-list .num { font: 700 20px var(--sans); text-align: center; padding: 6px 0; }
.info-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0 0 14px; }
.info-links a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.returns-note a { text-decoration: underline; }

/* «Мои заказы» в корзине (макет brand/orders-history-mockup.html) */
.my-orders .ord { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.my-orders .h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.my-orders .h small { display: block; color: var(--muted); font-size: 12px; }
.my-orders .st { font-size: 12px; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.my-orders .st.wait { background: #FFF4DC; color: #8A5A00; }
.my-orders .st.go { background: var(--blue-bg); color: var(--blue); }
.my-orders .st.ok { background: var(--green-bg); color: var(--green); }
.my-orders .st.no { background: #F3E4E4; color: var(--red); }
.my-orders .thumbs { display: flex; gap: 6px; margin: 8px 0; overflow: hidden; }
.my-orders .thumbs img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.my-orders .osum { display: flex; justify-content: space-between; font-size: 14px; }
.my-orders .osum b { color: var(--burg); }
.my-orders .names { font-size: 13px; color: var(--muted); margin-top: 6px; }
.my-orders .bar { display: flex; gap: 4px; margin: 8px 0 2px; }
.my-orders .bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.my-orders .bar i.on { background: var(--green); }
.my-orders .hint { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 0; }

/* «Показать ещё» в каталоге */
.btn.more { display: block; margin: 18px auto 4px; max-width: 320px; text-align: center; background: #fff; color: var(--burg); border: 2px solid var(--burg); }
.btn.more.loading { opacity: .5; pointer-events: none; }

/* «Как на этом фото» — выбор варианта по фото карусели */
.photo-hint { background: #FFF7E6; border: 1px solid #F2D9A6; color: #7A5200; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 10px 0 0; }
.photo-pick { color: var(--green); font-weight: 700; font-size: 13px; }
.ci-photo { position: relative; }
.ci-photo span { position: absolute; left: 3px; bottom: 3px; background: var(--burg); color: #fff; font-size: 10px; border-radius: 6px; padding: 1px 5px; }

/* Бронь, вес декора, «Поделиться» (решения владельца 01.10.2026) */
.tag.busy { background: #FFF4DC; color: #8A5A00; }
.pill.busy { background: #FFF4DC; color: #8A5A00; }
.weight-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.share { margin-top: 10px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font: 600 14px var(--sans); color: var(--burg); cursor: pointer; }

/* Сезонный баннер на главной (pages.models.Banner) */
.banner { display: block; margin: 12px 14px 0; border-radius: 18px; padding: 18px 14px 14px; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 80% 0%, #7A2A31 0%, var(--burg) 45%, #3E1015 100%); }
.banner .garland { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 16px; }
.banner .snow i { position: absolute; color: var(--gold); opacity: .55; font-style: normal; font-size: 14px; }
.banner .bt { position: relative; display: block; font: 700 23px var(--serif); margin: 6px 0 4px; }
.banner .bt em { color: var(--gold); font-style: normal; }
.banner .bx { position: relative; display: block; font-size: 13px; opacity: .9; margin-bottom: 10px; }
.banner .bb { position: relative; display: inline-block; background: #ffffff1f; border: 1px solid #ffffff40; border-radius: 20px; padding: 3px 10px; font-size: 12px; }
.banner .bp { position: relative; display: flex; gap: 8px; margin-top: 10px; }
.banner .bp > span { flex: 1; aspect-ratio: 1 / 1.15; border-radius: 12px; overflow: hidden; border: 2px solid rgba(200,160,100,.6); background: #ffffff22; }
.banner .bp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner .bgo { position: relative; display: block; margin-top: 12px; background: var(--gold); color: #3E1015; text-align: center; border-radius: 12px; padding: 11px; font-weight: 800; }
@media (min-width: 900px) { .banner { max-width: 1072px; margin: 14px auto 0; } .banner .bp > span { aspect-ratio: 4 / 3; } }

/* Код с карточки (купон) в корзине */
.coupon-row { display: flex; gap: 8px; margin-top: 6px; }
.coupon-row .in { flex: 1; text-transform: uppercase; letter-spacing: 1px; }
.cblock.coupon .err { color: var(--red); font-size: 13px; margin-top: 6px; }
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sum .g { color: var(--green); font-weight: 700; }
.coupon-row .in { margin-top: 0; }

/* ── Отзывы (templates/pages/reviews.html) ── */
.rv-hero { text-align: center; padding: 6px 0 4px; }
.rv-hero h1 { font: 400 28px var(--serif); color: var(--burg); margin: 0; }
.rv-hero p { color: var(--muted); margin: 4px 0 0; }
.rv-stats { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.rv-stats span { background: var(--cream); color: var(--burg); border-radius: 14px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.rv-chips { display: flex; gap: 6px; justify-content: center; margin: 10px 0 12px; }
.rv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .rv-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (min-width: 1000px) { .rv-grid { grid-template-columns: repeat(5, 1fr); } }
.rv-card { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.rv-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: var(--cream); }
.reviews .more { display: block; margin: 14px auto 0; max-width: 360px; text-align: center; }
.rv-viewer { position: fixed; inset: 0; z-index: 100; background: rgba(20, 8, 10, .95); display: flex; flex-direction: column; justify-content: center; }
.rv-viewer[hidden] { display: none; }
.rv-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rv-strip::-webkit-scrollbar { display: none; }
.rv-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; justify-content: center; align-items: center; height: 82vh; }
.rv-slide img { max-width: 92%; max-height: 82vh; border-radius: 14px; object-fit: contain; }
.rv-close { position: absolute; top: 12px; right: 14px; z-index: 2; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }
.rv-count { color: #fff; opacity: .8; text-align: center; font-size: 14px; margin-top: 10px; }

/* Подписи под кнопками связи («менеджер», «владелец магазина») и надпись о безопасности оплаты */
.cbtn small { font-size: 10px; opacity: .75; margin-top: -3px; }
.safe-pay { font-size: 12px; color: var(--green); background: var(--green-bg); border-radius: 10px; padding: 7px 10px; margin: 8px 0 0; text-align: center; }

/* ── Подарок «Сотри и узнай» (templates/orders/gift_card.html) ── */
.gift-title { text-align: center; font: 700 17px var(--sans); color: var(--burg); margin: 18px 0 10px; }
.gift { max-width: 360px; margin: 0 auto 14px; }
.gift-card { position: relative; overflow: hidden; height: 240px; border-radius: 18px; color: var(--cream);
  background: radial-gradient(circle at 80% 0%, #7A2A31 0%, var(--burg) 45%, #3E1015 100%); box-shadow: 0 6px 16px rgba(62,16,21,.3); }
.gift-garland { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 18px; }
.gift-logo { position: absolute; top: 22px; left: 0; right: 0; text-align: center; font: 700 15px var(--serif); letter-spacing: 4px; color: var(--gold); }
.gift-prize { position: absolute; left: 22px; right: 22px; top: 52px; bottom: 40px; border-radius: 14px; background: var(--paper); color: var(--burg); user-select: none; -webkit-user-select: none;
  border: 1.5px dashed var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.gift-sum { font: 400 44px/1 var(--serif); } .gift-sum span { font-size: 18px; }
.gift-what { font-size: 12px; color: var(--muted); margin-top: 3px; }
.gift-code { margin-top: 8px; font: 700 16px Consolas, "Courier New", monospace; letter-spacing: 2px; background: var(--cream); border-radius: 8px; padding: 4px 10px; color: var(--ink); }
.gift.open .gift-code { user-select: all; -webkit-user-select: all; }
.gift-foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .5s; }
.gift.open .gift-foil { opacity: 0; pointer-events: none; }
.gift-site { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 11px; opacity: .85; }
.gift-reveal { display: block; margin: 6px auto 0; background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.gift.open .gift-reveal { display: none; }
.gift-notes { margin-top: 8px; }
.gift-note { font-size: 12px; color: var(--muted); margin: 0 0 6px; line-height: 1.35; }
.gift-note.wait { background: var(--cream); color: var(--burg); border-radius: 10px; padding: 7px 10px; }
.gift-note.ok { background: var(--green-bg); color: var(--green); border-radius: 10px; padding: 7px 10px; }
.gift-bit { position: absolute; top: -10px; width: 6px; height: 10px; border-radius: 2px; animation: gift-fall 1.6s ease-in forwards; }
@keyframes gift-fall { to { top: 260px; opacity: .2; } }
.mo-gift { display: block; margin: 8px 0 4px; background: var(--cream); color: var(--burg); border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: 13px; }
.gift-page .btn.main { display: block; max-width: 360px; margin: 10px auto 0; text-align: center; }

/* Оформление заказа: кнопка «Подтвердить заказ» стоит в конце формы, а не прилипает к низу экрана (просьба владельца) */
.sticky-buy.at-end { position: static; background: none; padding: 16px 0 8px; }
/* «Не звонить — лучше напишите» — последняя кнопка, на всю ширину */
.times label:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* «Доставку по Ашхабаду и в велаяты оплачиваете сами» — корзина и оформление (includes/local_delivery_note.html) */
.local-delivery-note { font-size: 12px; color: var(--burg); background: var(--cream); border-radius: 10px; padding: 7px 10px; margin: 8px 0; line-height: 1.35; }

/* Подарочный бокс: места и варианты по фото (templates/catalog/box_picker.html) */
.box-picker { margin: 4px 0 12px; }
.box-hint { background: var(--green-bg, #E6F4EC); color: var(--green, #2E7D4F); border-radius: 10px; padding: 8px 10px; font-size: 14px; margin: 0 0 10px; }
.box-slot { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 10px 10px; margin: 0 0 10px; }
.box-slot legend { font-weight: 700; color: var(--burg); padding: 0 4px; }
.box-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.box-opt { position: relative; text-align: center; font-size: 12px; color: var(--muted); cursor: pointer; }
.box-opt input, .box-size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box-opt img, .box-opt i { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; border: 2px solid transparent; background: var(--cream); }
.box-opt span { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-opt:has(input:checked) img, .box-opt:has(input:checked) i { border-color: var(--burg); }
.box-opt:has(input:checked) span { color: var(--burg); font-weight: 700; }
.box-opt:has(input:focus-visible) img { outline: 2px solid var(--gold); }
.box-sizes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.box-size { position: relative; cursor: pointer; }
.box-size b { display: block; min-width: 40px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-weight: 600; }
.box-size:has(input:checked) b { border: 2px solid var(--burg); color: var(--burg); padding: 5px 9px; }

/* Артикул на странице товара (нажал — скопирован) */
.article { display: inline-block; margin: 6px 6px 0 0; padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }

/* «Установить TINA на телефон» (templates/includes/install.html) */
.install-head { display: flex; gap: 12px; align-items: center; margin: 4px 0 12px; text-align: left; }
.install-head img { border-radius: 12px; flex: 0 0 52px; }
.install-head small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.install-ios { font-size: 14px; line-height: 1.5; text-align: left; margin: 0 0 10px; }
.install-link { display: block; margin: 0 auto 10px; background: none; border: 1px solid rgba(255,255,255,.35); color: inherit; border-radius: 10px; padding: 8px 14px; font: 600 14px var(--sans); cursor: pointer; }
.sbtn.go { background: var(--burg); color: #fff; }
.sheet .sbtn[hidden], .install-link[hidden], .install-ios[hidden] { display: none; }

/* Чат с магазином (templates/chat/*.html, static/js/chat.js) */
.chat-fab { position: fixed; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 40; background: var(--burg); color: #fff; border: 0; border-radius: 24px; padding: 11px 15px; font: 700 14px var(--sans); box-shadow: 0 6px 16px rgba(91,26,32,.35); cursor: pointer; }
.chat-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: #E0453A; border: 2px solid #fff; }
.chat-dot[hidden] { display: none; }
body.chat-on { overflow: hidden; }
.chat-sheet { position: fixed; inset: 0; z-index: 60; background: var(--paper, #FBF7F1); }
.chat-sheet[hidden] { display: none; }
.chat { display: flex; flex-direction: column; height: 100%; max-width: 640px; margin: 0 auto; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--burg); color: #fff; padding: 12px 14px; }
.chat-head small { display: block; opacity: .85; font-size: 12px; font-weight: 400; }
.chat-x { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-hello { color: var(--muted); text-align: center; font-size: 14px; margin: 20px 10px; }
.cm { max-width: 82%; padding: 8px 10px; border-radius: 14px; font-size: 15px; line-height: 1.35; word-wrap: break-word; }
.cm p { margin: 0; }
.cm.mine { align-self: flex-end; background: var(--burg); color: #fff; border-bottom-right-radius: 4px; }
.cm.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cm-meta { display: block; font-size: 11px; opacity: .65; margin-top: 3px; }
.cm-photo { display: block; max-width: 220px; max-height: 260px; border-radius: 10px; margin-bottom: 4px; }
.cm-product { display: flex; gap: 8px; align-items: center; background: #fff; color: var(--ink); border-radius: 10px; padding: 6px; text-decoration: none; margin-bottom: 2px; }
.cm.mine .cm-product { color: var(--ink); }
.cm-product img { width: 48px; height: 58px; object-fit: cover; border-radius: 7px; flex: 0 0 48px; }
.cm-product b { display: block; font-size: 13px; }
.cm-product small { color: var(--muted); font-size: 12px; }
.chat-phone { margin: 0 12px 8px; background: #E7F0FA; color: #2C5A8C; border-radius: 12px; padding: 9px 10px; font-size: 13px; }
.chat-phone[hidden] { display: none; }
.chat-phone form { display: flex; gap: 6px; margin-top: 6px; }
.chat-phone input { flex: 1; padding: 9px; border: 1px solid #c9d8ea; border-radius: 9px; font-size: 16px; }
.chat-phone button { background: var(--burg); color: #fff; border: 0; border-radius: 9px; padding: 0 14px; font-weight: 700; }
.chat-attach { display: flex; gap: 8px; align-items: center; margin: 0 12px 8px; background: #fff; border: 1px dashed var(--gold); border-radius: 12px; padding: 6px 8px; }
.chat-attach img { width: 44px; height: 54px; object-fit: cover; border-radius: 7px; }
.chat-attach span { flex: 1; min-width: 0; font-size: 13px; }
.chat-attach small { display: block; color: var(--muted); font-size: 11.5px; }
.chat-attach button { background: none; border: 0; color: var(--muted); font-size: 16px; }
.chat-err { color: #B33; font-size: 13px; margin: 0 12px 6px; }
.chat-err[hidden], .chat-photo-name[hidden] { display: none; }
.chat-form { display: flex; gap: 6px; align-items: flex-end; padding: 8px 10px; background: #fff; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 18px; padding: 9px 12px; font: 16px var(--sans); max-height: 120px; }
.chat-form button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--burg); color: #fff; font-size: 16px; cursor: pointer; }
.chat-form button:disabled { opacity: .5; }
.chat-photo { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.chat-photo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chat-photo-name { margin: 0 12px; font-size: 12px; color: var(--muted); background: #fff; }
.chat-note { margin: 0; padding: 4px 12px 10px; background: #fff; color: var(--muted); font-size: 11.5px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* «Мой кабинет» (templates/chat/cabinet.html) */
.cabinet h1 { margin-bottom: 8px; }
.cabinet h2 { font-size: 17px; margin: 18px 0 8px; }
.cab-note { background: var(--cream); color: var(--burg); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0; }
.cab-warn { background: #FFF1E0; color: #8A4B00; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.cab-chat { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; color: inherit; cursor: pointer; }
.cab-chat-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--burg); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 42px; }
.cab-chat span:nth-child(2) { flex: 1; min-width: 0; }
.cab-chat small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #E0453A; vertical-align: middle; }
.cab-go { color: var(--muted); font-size: 22px; }
.cab-empty { color: var(--muted); font-size: 14px; }
.cab-empty[hidden] { display: none; }
.cabinet .btn.line[hidden] { display: none; }
.cabinet .btn.line { margin-top: 14px; }
.cab-out { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.cab-out button { background: none; border: 0; color: var(--burg); font-weight: 700; text-decoration: underline; cursor: pointer; }
.btn.line { background: #fff; color: var(--burg); border: 2px solid var(--burg); cursor: pointer; }
.cabinet [data-my-orders] > h2 { display: none; }
