[hidden] { display: none !important; }
:root {
  /* Цвета из ТЗ на редизайн (2026) */
  --navy: #111111;      /* основной чёрный */
  --sea: #D4AF37;       /* фирменное золото: кнопки и активные элементы */
  --sea-dark: #8A6A12;  /* тёмное золото: золотой текст на светлом фоне (контраст 5:1) */
  --gold-grad: #D4AF37; /* градиенты убраны — плоское золото */
  --ice: #F5F3EE;       /* молочный фон */
  --line: #E6E1D6;
  --text: #333333;
  --muted: #6B6B6B;
  --ok: #1f7a4d;
  --danger: #C62828;    /* акции и скидки */
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15.5px/1.55 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--ice); }
a { color: #8a6a12; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: 0; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }

/* Шапка */
.header { background: #0d0d0d; color: #fff; border-bottom: 2px solid var(--sea); position: sticky; top: 0; z-index: 10; }
.header-in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
/* Логотип: значок крупно, название — Montserrat капителью с золотым градиентом, как буквы на значке */
.logo { color: #e9cf7a; text-decoration: none; font: 800 1.3rem/1.1 Montserrat, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.logo img { height: 68px; width: auto; display: block; border-radius: 8px; filter: drop-shadow(0 2px 6px rgba(201, 162, 39, .25)); }
.logo #shopName { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.logo small { color: #bfb49a; font: 500 .72rem Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.logo small { display: block; font-weight: 400; font-size: .75rem; opacity: .75; }
.nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a.active { background: rgba(201, 162, 39, .18); color: #e9cf7a; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--sea); color: #111; font-size: .8rem; font-weight: 700; text-align: center; margin-left: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px 60px; }
.hero { background: radial-gradient(ellipse at 30% 40%, #2b2618 0%, #121212 70%); color: #f3ead2; border-radius: var(--radius); padding: 24px 32px; margin-bottom: 24px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; align-items: center; border: 1px solid #3a3220; }
.hero img { width: 100%; height: auto; display: block; border-radius: 8px; }
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .3em; }
.hero .slogan { font: 600 .9rem Montserrat, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #e9cf7a; margin: 0 0 12px; }
.hero p { margin: 0; color: #d9cfb6; }

/* Кнопки и формы */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; background: var(--gold-grad); color: #141414; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.secondary { background: #141414; color: #e9cf7a; border: 1px solid #141414; }
.btn.secondary:hover { background: #2a2a2a; filter: none; }
.btn.ghost { background: transparent; color: var(--muted); padding: 6px 10px; }
.btn.ghost:hover { color: var(--danger); background: #fbeeee; }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.wide { width: 100%; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form { display: grid; gap: 14px; }
.form-narrow { max-width: 460px; margin: 0 auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
input, textarea, select { font: inherit; color: var(--text); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(201, 162, 39, .4); border-color: var(--sea); }
textarea { min-height: 70px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
.check input { width: auto; }
.error { background: #fbeeee; color: var(--danger); padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
.success { background: #e8f6ef; color: var(--ok); padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Каталог */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 14px; cursor: pointer; font: inherit; color: var(--text); }
a.chip { text-decoration: none; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { max-width: 280px; margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .pic { height: 140px; display: grid; place-items: center; font-size: 64px; background: radial-gradient(circle at 50% 45%, #3a3220 0%, #161616 75%); border-bottom: 2px solid var(--sea); }
.product .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.product .name { font-weight: 600; }
.product .desc { font-size: .88rem; color: var(--muted); flex: 1; }
.product .buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.price { font-weight: 700; font-size: 1.15rem; }
.price small { font-weight: 400; color: var(--muted); font-size: .8rem; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { border: 0; background: #f3eddc; width: 32px; height: 34px; font-size: 1.1rem; cursor: pointer; color: var(--text); }
.qty button:hover { background: #e9dfbf; }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }

/* Корзина и заказы */
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.lines { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 48px 1fr auto auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.line .ic { font-size: 32px; text-align: center; }
.line .sum { font-weight: 700; min-width: 90px; text-align: right; }
.summary { position: sticky; top: 84px; }
.summary .tot { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin: 12px 0 16px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.order { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.order + .order { margin-top: 12px; }
.order-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.order ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.status { font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: #141414; color: #e9cf7a; }
.status.done { background: #e8f6ef; color: var(--ok); }
.status.cancelled { background: #fbeeee; color: var(--danger); }
.status.delivering { background: #fff4d6; color: #8a6100; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--navy); border-color: var(--sea); font-weight: 600; }
.profile-box { background: #faf7ef; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); z-index: 50; }
.footer { background: #0d0d0d; border-top: 2px solid var(--sea); color: #bfb49a; font-size: .9rem; }
.footer .wrap { padding: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.demo-note { background: #fff4d6; color: #6b4b00; text-align: center; font-size: .85rem; padding: 6px 12px; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
th { color: var(--muted); font-weight: 600; background: #faf7ef; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .line { grid-template-columns: 40px 1fr auto; }
  .line .unitprice { display: none; }
  .line .sum { grid-column: 2; text-align: left; }
  .header-in { flex-wrap: wrap; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .logo { font-size: 1.12rem; gap: 12px; }
  .logo img { height: 60px; }
  .logo small { font-size: .62rem; letter-spacing: .12em; }
  .hero { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .hero img { max-width: 320px; margin: 0 auto; }
  .row2 { grid-template-columns: 1fr; }
  .search { max-width: none; margin-left: 0; width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}

/* ---------- Витрина в стиле интернет-магазина ---------- */
body { background: #fff; }
.topbar { background: #000; color: #bfb49a; font-size: .85rem; }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 6px 20px; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar a { color: #e9cf7a; text-decoration: none; }
.header-in, .wrap, .catbar-in { max-width: 1240px; }
.header-in { gap: 24px; padding: 14px 20px; }
.hsearch { flex: 1; display: flex; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 10px; overflow: hidden; border: 2px solid var(--sea); }
.hsearch input { border: 0; border-radius: 0; padding: 11px 14px; font-size: 16px; }
.hsearch input:focus { outline: none; }
.hsearch button { border: 0; background: var(--gold-grad); padding: 0 16px; font-size: 1.05rem; cursor: pointer; }
.nav { margin-left: 0; gap: 4px; }
.nav .hbtn { display: flex; align-items: center; gap: 8px; padding: 6px 10px; line-height: 1.15; }
.nav .hbtn small { display: block; font-size: .75rem; color: #bfb49a; }
.nav .ico { position: relative; font-size: 1.4rem; }
.nav .ico .badge { position: absolute; top: -6px; right: -12px; margin: 0; }
.catbar { background: #1a1a1a; border-bottom: 1px solid #000; }
.catbar-in { margin: 0 auto; padding: 0 12px; display: flex; overflow-x: auto; scrollbar-width: none; }
.catbar a { flex: none; color: #eee; text-decoration: none; padding: 11px 12px; font-size: .93rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.catbar a:hover, .catbar a.active { color: #e9cf7a; border-color: var(--sea); }
.catbar a.sale { color: #fff; background: #d62828; font-weight: 700; border-color: #d62828; }

.banner-main { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; align-items: center; padding: 28px 36px; border-radius: 16px; background: radial-gradient(ellipse at 25% 40%, #2b2618 0%, #121212 70%); color: #f3ead2; }
.banner-main img { width: 100%; border-radius: 10px; display: block; }
.banner-main h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: #fff; }
.banner-main .slogan { font: 600 .82rem Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #e9cf7a; margin: 0 0 10px; }
.banner-main p { color: #d9cfb6; }
.benefits { list-style: none; padding: 0; margin: 18px 0 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.benefits li { background: #faf7ef; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.benefits span { color: var(--muted); font-size: .88rem; }
.strip { margin-bottom: 34px; }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.strip-head h2 { margin: 0; font-size: 1.6rem; }
.strip-head a { font-weight: 700; }
.saletitle { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d62828; color: #fff; font-size: 1.1rem; margin-right: 6px; vertical-align: 3px; }
.salehead { background: linear-gradient(100deg, #d62828, #9e1b1b); color: #fff; border-radius: 14px; padding: 22px 26px; margin-bottom: 22px; }
.salehead h1 { margin-bottom: 4px; }
.salehead p { margin: 0; opacity: .92; }
.store { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 18px; align-items: center; background: #faf7ef; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 34px; }
.store img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }

.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.side { border: 1px solid var(--line); border-radius: 12px; background: #fff; position: sticky; top: 12px; }
.side summary { display: none; }
.side-block { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.side-block:last-child { border-bottom: 0; }
.side h3 { font-size: 1rem; margin: 0 0 6px; }
.side-block a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .93rem; }
.side-block a span { color: var(--muted); font-size: .85rem; }
.side-block a:hover { background: #f6f1e2; }
.side-block a.active { background: #141414; color: #e9cf7a; }
.side-block a.active span { color: #bfb49a; }
.side-block a.red { color: #d62828; font-weight: 700; }
.side-block a.red.active { background: #d62828; color: #fff; }
.pricebox { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.pricebox input { padding: 8px 10px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sortbox { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.sortbox select { width: auto; padding: 8px 10px; }

.grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product { transition: box-shadow .15s, transform .15s; }
.product:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.product .pic { position: relative; height: 150px; }
.product .tag { position: absolute; top: 10px; left: 10px; background: #d62828; color: #fff; font-weight: 700; font-size: .9rem; padding: 3px 8px; border-radius: 6px; }
.product .body { gap: 4px; }
.product .desc { font-size: .85rem; min-height: 1.2em; }
.product .stock { color: var(--ok); font-size: .82rem; font-weight: 600; }
.prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 4px 0 8px; min-height: 2.1em; }
.prices s { color: var(--muted); font-size: .9rem; }
.price.sale { color: #d62828; }
.qty.wide { display: flex; width: 100%; }
.qty.wide span { flex: 1; font-size: .9rem; }
.qty.wide button { height: 40px; width: 44px; }
.footer { margin-top: 30px; }
.footer .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 28px 20px; }
.fcol { display: grid; gap: 4px; align-content: start; }
.fcol b { color: #e9cf7a; }
.fcol a { color: #ddd; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .product { transition: none; } .product:hover { transform: none; } }
@media (max-width: 1000px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store { grid-template-columns: 1fr 1fr; }
  .store > div { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .nav { width: auto; margin-left: auto; }
  .nav .hbtn small { display: none; }
  .header-in { gap: 10px; }
  .banner-main { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .banner-main img { max-width: 340px; margin: 0 auto; }
  .shop { grid-template-columns: 1fr; gap: 14px; }
  .side { position: static; }
  .side summary { display: block; padding: 12px 16px; font-weight: 700; cursor: pointer; }
  .side[open] summary { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product .pic { height: 110px; font-size: 48px; }
  .product .body { padding: 10px 12px 12px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Языки, объявление, промо-баннеры (контент из админки) ---------- */
.announce { background: var(--gold-grad); color: #141414; text-align: center; font-weight: 700; font-size: .9rem; padding: 7px 16px; }
.langs { display: flex; gap: 2px; background: #222; border-radius: 8px; padding: 3px; flex: none; }
.langs button { border: 0; background: transparent; color: #bfb49a; font: 700 .78rem Montserrat, sans-serif; padding: 6px 8px; border-radius: 6px; cursor: pointer; min-width: 34px; }
.langs button:hover { color: #fff; }
.langs button.active { background: var(--gold-grad); color: #141414; }
.btn, .chip, .catbar a, .nav a, .tag, .sortbox, .side-block a, .pbanner { font-family: Montserrat, sans-serif; }
.banner-main h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 800; }
.promo-banners { display: grid; gap: 14px; margin-top: 16px; }
.promo-banners.n1 { grid-template-columns: 1fr; }
.promo-banners.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promo-banners.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pbanner { position: relative; display: flex; align-items: flex-end; min-height: 150px; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff; padding: 18px 20px; isolation: isolate; transition: transform .15s; }
.pbanner:hover { transform: translateY(-2px); }
.pbanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pbanner.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,.05) 70%); z-index: -1; }
.pbanner.gold { background: var(--gold-grad); color: #141414; }
.pbanner.red { background: linear-gradient(120deg, #d62828, #8f1515); }
.pbanner.blue { background: linear-gradient(120deg, #13466b, #0a2238); }
.pbanner.green { background: linear-gradient(120deg, #1f6b4d, #0d3326); }
.pbanner.black { background: radial-gradient(ellipse at 20% 30%, #3a3220, #111 70%); color: #f3ead2; }
.pb-text { display: grid; gap: 4px; }
.pb-text b { font: 700 1.2rem Montserrat, sans-serif; letter-spacing: .01em; }
.pb-text span { opacity: .9; font-size: .92rem; }
.pb-text em { font-style: normal; font-weight: 700; font-size: .9rem; margin-top: 4px; }
.product .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.product .tags .tag { position: static; }
.tag.hit { background: var(--gold-grad); color: #141414; }
.until { color: #d62828; font-size: .78rem; font-weight: 600; flex-basis: 100%; }
.saletitle.hit { background: var(--gold-grad); color: #141414; }
.salehead.hits { background: radial-gradient(ellipse at 20% 30%, #3a3220, #111 70%); color: #f3ead2; }
.row-sum { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; }
.summary hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.pre { white-space: pre-line; }
@media (max-width: 1000px) { .promo-banners.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .promo-banners.n2, .promo-banners.n3 { grid-template-columns: 1fr; }
  .pbanner { min-height: 110px; }
  .langs { order: 2; margin-left: auto; }
  .nav { order: 1; }
  .hsearch { order: 4; }
}
@media (prefers-reduced-motion: reduce) { .pbanner { transition: none; } .pbanner:hover { transform: none; } }

/* ---------- Редактор контента (админка) ---------- */
.ed-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 16px; }
.ed-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ed-sec { margin-bottom: 18px; }
.ed-sec h2 { margin-bottom: 8px; }
.ed-sec > p.muted { margin-top: 0; font-size: .9rem; }
.lang-pill { display: inline-block; background: #141414; color: #e9cf7a; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.ed-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fff; }
.ed-item.off { opacity: .6; }
.ed-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 10px; }
.ed-tools { margin-left: auto; display: flex; gap: 4px; }
.ed-tools .btn.ghost { color: var(--text); border: 1px solid var(--line); }
.ed-banner { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ed-preview { pointer-events: none; }
.ed-img { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-img input[type=file] { padding: 7px; }
.linkpick { display: grid; gap: 6px; }
.ed-table input, .ed-table select { padding: 7px 8px; font-size: .9rem; }
.ed-table td { vertical-align: middle; }
.ed-table select { min-width: 240px; }
.ed-hits { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.ed-hits li { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.ed-hits li > span:first-child { display: inline-block; padding-top: 4px; }
.ed-hits li { display: list-item; }
.ed-hits .ed-tools { float: right; }
.ed-add { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-add select { max-width: 460px; }
.ed-save { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; margin: 0 -4px; background: rgba(255,255,255,.96); border-top: 2px solid var(--sea); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
.ed-save #dirty { margin-right: auto; }
.ed-save .error, .ed-save .success { padding: 6px 10px; }
@media (max-width: 820px) { .ed-banner { grid-template-columns: 1fr; } }

.footer .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fcol .small { font-size: .82rem; color: #9d937c; }
.terms { margin-top: 18px; line-height: 1.65; }
.legal { line-height: 1.65; }
.legal h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin: 3px 0; }
.consent { font-size: .85rem; margin: 4px 0 0; }
.card .kv { margin: 8px 0 4px; }
@media (max-width: 1000px) { .footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .footer .wrap { grid-template-columns: 1fr; } }

/* Фото товаров */
.product .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line .ic img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: block; margin: 0 auto; }
.pf-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.pf-bar input[type=search] { flex: 1 1 260px; width: auto; margin: 0; }
.pf-bar select { flex: 0 1 260px; width: auto; margin: 0; }
.pf-bar .pf-check { display: flex; flex-direction: row; align-items: center; gap: 6px; font-size: .9rem; margin: 0; white-space: nowrap; }
.pf-bar .pf-check input { width: auto; margin: 0; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pf-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.pf-pic { aspect-ratio: 1; border-radius: 8px; overflow: hidden; display: grid; place-items: center; font-size: 56px; background: #1b1b1b; }
.pf-pic img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.pf-meta { font-size: .8rem; }
.pf-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.btn.small { padding: 6px 10px; font-size: .82rem; }
.pf-msg { font-size: .8rem; }

/* ---------- ТЗ: главная, карточка товара, весовые товары, мобильная навигация ---------- */
.product .pic-link { position: relative; display: block; text-decoration: none; }
.product .pic .emoji { line-height: 1; }
.product a.name { color: var(--text); text-decoration: none; }
.product a.name:hover { text-decoration: underline; }
.product.is-out { opacity: .72; }
.stock.out { color: var(--danger) !important; }
.stock.order { color: #b26b00 !important; }
.product .stock, .pd-info .stock { color: var(--ok); font-size: .82rem; font-weight: 600; }
.tag.new { background: #141414; color: #e9cf7a; }
.saletitle.new { background: #141414; color: #e9cf7a; }
.btn.disabled, .btn:disabled { opacity: .5; pointer-events: none; }
.small { font-size: .86rem; }
.h2 { font-size: 1.3rem; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--sea); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.tile .ti { font-size: 34px; line-height: 1; }
.tile b { font-size: .95rem; line-height: 1.25; }
.tile small { color: var(--muted); }

.dblock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin: 22px 0; background: #0d0d0d; color: #eee6cf; border: 1px solid #2a2416; }
.dblock h2 { color: #e9cf7a; }
.dblock .muted { color: #bfb49a; }
.dblock a { color: #e9cf7a; }
.dblock p { margin: 0 0 8px; }
.dblock .dnext { font-size: 1.15rem; color: #fff; }
.dcity { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.dcity select { padding: 10px 12px; border-radius: 8px; border: 1px solid #4a4030; font: inherit; }

.socials { text-align: center; margin: 26px 0; }
.socials div { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.crumbs { font-size: .88rem; color: var(--muted); margin: 4px 0 14px; }
.crumbs a { color: var(--muted); }
.pdetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.pd-pic { position: relative; }
.pd-pic .tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.pic.big { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; font-size: 120px; background: radial-gradient(circle at 50% 45%, #3a3220 0%, #161616 75%); }
.pic.big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { margin-bottom: .2em; }
.pd-info h2 { font-size: 1.1rem; margin-top: 1.2em; }
.prices.big .price { font-size: 1.7rem; }
.prices.big { margin: 10px 0 2px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 14px 0; background: #faf7ef; display: flex; flex-direction: column; gap: 12px; }
.packs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.packs > .muted { width: 100%; font-size: .88rem; }
.pack { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-width: 78px; }
.pack small { font-weight: 500; color: var(--muted); }
.pack.active { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea) inset; }
.buyrow { display: flex; gap: 10px; align-items: stretch; }
.buyrow .qty button { height: 44px; width: 40px; }
.buyrow .btn { flex: 1; min-height: 44px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; }

.freebar { margin: 10px 0; font-size: .88rem; }
.fb-track { height: 8px; background: #eee6cf; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.fb-track span { display: block; height: 100%; background: var(--gold-grad); }
.line.is-out { background: #fff6f5; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; }
.opt:has(input:checked) { border-color: var(--sea); box-shadow: 0 0 0 1px var(--sea) inset; background: #fffaf0; }
.opt span { display: flex; flex-direction: column; }
.opt small { color: var(--muted); font-size: .82rem; }
.fhead { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.fhead h2 { margin: 0; font-size: 1.1rem; }
.toast a { color: #e9cf7a; font-weight: 700; margin-left: 6px; }

.bnav { display: none; }
@media (max-width: 820px) {
  .pdetail { grid-template-columns: 1fr; gap: 16px; }
  .pic.big { aspect-ratio: 4 / 3; font-size: 90px; }
  .dblock { grid-template-columns: 1fr; gap: 6px; }
  .choice { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .btn { flex: 1; }
  /* Нижнее меню как в приложении */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #0d0d0d; border-top: 2px solid var(--sea); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; color: #bfb49a; text-decoration: none; font-size: .7rem; font-weight: 600; }
  .bnav a.active { color: #e9cf7a; }
  .bnav .bi { position: relative; font-size: 1.25rem; line-height: 1; }
  .bnav .badge { position: absolute; top: -6px; right: -12px; }
  .nav .cartbtn { display: none; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); width: max-content; max-width: 92vw; }
  /* Кнопка «В корзину» на странице товара всегда под рукой */
  .buyrow { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); background: #faf7ef; padding: 6px 0; z-index: 5; }
}
/* Админка: товары и категории */
.pf-item.off { opacity: .6; }
.pe { margin-bottom: 18px; border: 2px solid var(--sea); }
.pe h3 { margin: 10px 0 0; font-size: 1.05rem; }
.pe-ml { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
.pe-ml legend { font-weight: 600; padding: 0 6px; }
.pe-ml label { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; }
.ed-cat { display: flex; gap: 8px; align-items: center; }
@media (max-width: 820px) {
  .topbar-in { gap: 2px 14px; font-size: .8rem; padding: 5px 14px; }
  .topbar-in > span:nth-child(2) { display: none; }
  .banner-main img { max-width: 180px; }
  .banner-main h1 { font-size: 1.6rem; }
}
.pf-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; font-size: .9rem; }
.pf-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; top: 70px; z-index: 6; margin-bottom: 12px; border: 2px solid var(--sea); }
.pf-item { position: relative; }
.pf-sel { position: absolute; top: 8px; left: 8px; z-index: 2; background: #fff; border-radius: 6px; padding: 2px 4px; }
.pf-issues { color: #9a5b00; font-size: .8rem; margin-top: 4px; }
.pf-ok { color: var(--ok); font-size: .8rem; margin-top: 4px; }
.pe-confirm { background: #fffaf0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.qf td { vertical-align: top; }
.qf tr.off { opacity: .6; }
.imp-list { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 8px 8px 28px; margin: 6px 0 12px; font-size: .9rem; }
.imp-map { display: grid; gap: 8px; background: #fffaf0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 8px 0; }
.imp-map label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wd { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .82rem; }
.wd label { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.zones-ed tr.off { opacity: .55; }
.zones-ed td { vertical-align: top; }
table.zones td, table.zones th { white-space: nowrap; }
/* Сборка и доставка */
.rorder { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: #fff; }
.rorder.rdone { background: #f2faf4; border-color: #bfe3cb; }
tr.rdone td { color: var(--ok); }
.rpick { list-style: none; padding: 0; margin: 8px 0; }
.rpick li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.rpick input { width: 20px; height: 20px; }
.rfoot { font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rfoot select { padding: 4px 6px; }
.print-only { display: none; }
@media print {
  .no-print, #nav, .header, .topbar, .footer, .demo-note, .rw { display: none !important; }
  .print-only { display: block; }
  .card { box-shadow: none; border: 1px solid #999; }
  .rorder { break-inside: avoid; }
}
.rfoot > span.no-print { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.rfoot select { width: auto !important; display: inline-block; margin: 0 !important; }

/* Обзор продаж */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile-l { color: var(--muted); font-size: .85rem; }
.tile-v { font: 700 1.6rem "Playfair Display", Georgia, serif; margin: 2px 0; }
.tile-n { color: var(--muted); font-size: .82rem; }
.small { font-size: .85rem; }
.dash-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.dash-2 .card { margin: 0; }
.hbars { display: grid; gap: 6px; }
.hb { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; padding: 2px 0; }
.hb:hover { background: #faf7ee; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { height: 12px; }
.hb-t i { display: block; height: 100%; background: var(--sea); border-radius: 0 4px 4px 0; }
.hb-v { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vbars { display: flex; gap: 8px; height: 220px; margin: 8px 0 30px; }
.vb-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: .75rem; text-align: right; min-width: 64px; }
.vb-plot { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); }
.vb { flex: 1; max-width: 48px; height: 100%; display: flex; align-items: flex-end; position: relative; outline: none; }
.vb i { display: block; width: 100%; background: var(--sea); border-radius: 4px 4px 0 0; }
.vb:hover i, .vb:focus i { background: var(--sea-dark); }
.vb-x { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); padding-top: 4px; white-space: nowrap; }
.vb:nth-child(n) .vb-x { display: none; }
.vb:first-child .vb-x, .vb:last-child .vb-x, .vb:nth-child(4n+1) .vb-x { display: block; }
.vb-tip { display: none; position: absolute; top: -6px; left: 50%; transform: translate(-50%, -100%); background: #141414; color: #fff; font-size: .78rem; padding: 6px 9px; border-radius: 6px; white-space: nowrap; z-index: 2; pointer-events: none; }
.vb:hover .vb-tip, .vb:focus .vb-tip { display: block; }
.dtable summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) { .tile-v { font-size: 1.3rem; } .vb-axis { min-width: 48px; font-size: .68rem; } }
.soc-table input { width: 100%; min-width: 160px; }
.linkbtn { background: none; border: 0; padding: 0; color: #8a6a12; text-decoration: underline; cursor: pointer; font: inherit; }
.linkbtn.small { font-size: .78rem; }
@media (max-width: 700px) { .soc-table, .soc-table tbody, .soc-table tr, .soc-table td, .soc-table th { display: block; } .soc-table tr:first-child { display: none; } .soc-table td[data-l]::before { content: attr(data-l); display: block; font-size: .78rem; color: var(--muted); } }

/* Видео TikTok на главной */
.videos { margin: 28px 0; }
.vrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vcard { aspect-ratio: 9 / 16; max-height: 560px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, #1b1b1b, #0d0d0d); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font: inherit; padding: 16px; text-align: center; }
.vcard:hover .vplay { transform: scale(1.08); }
.vplay { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-grad); color: #141414; display: grid; place-items: center; font-size: 1.5rem; transition: transform .15s; }
.vlabel { font-weight: 600; }
.vsrc { font-size: .8rem; color: #e9cf7a; }
.vcard.ph { cursor: default; background: repeating-linear-gradient(135deg, #f6f3ea 0 12px, #efe9d8 12px 24px); color: var(--muted); border-style: dashed; }
.vcard.ph .vplay { background: #e4dcc6; color: #fff; }
.vcard.ph .vsrc { color: var(--muted); }
.vframe { width: 100%; aspect-ratio: 9 / 16; max-height: 740px; min-height: 560px; border: 0; border-radius: var(--radius); background: #000; }
.vid-table td:first-child input { width: 100%; min-width: 280px; }
.vid-table td { vertical-align: middle; }
@media (max-width: 700px) { .vrow { grid-template-columns: repeat(2, 1fr); } .vid-table, .vid-table tbody, .vid-table tr, .vid-table td { display: block; } .vid-table tr:first-child { display: none; } .vid-table td[data-l] { display: inline-block; margin-right: 10px; } .vid-table td[data-l]::before { content: attr(data-l) " "; font-size: .78rem; color: var(--muted); } }

/* Отзывы */
.reviews { margin: 28px 0; }
.rv-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.review blockquote { margin: 0; font-size: .96rem; line-height: 1.5; white-space: pre-line; }
.review blockquote::before { content: '“'; font: 700 2rem/0 "Playfair Display", Georgia, serif; color: var(--sea); vertical-align: -0.45em; margin-right: 4px; }
.review figcaption { font-size: .85rem; color: var(--muted); }
.review figcaption b { color: var(--text); }
.rv-ed { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 12px 0; }
.rv-ed-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 8px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
label.inline input:not([type=checkbox]), label.inline select { width: auto; }

/* SVG-значки категорий */
.svgi { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.3em; }
.svgi svg { width: 100%; height: 100%; display: block; }
.tile .ti .svgi { width: 46px; height: 46px; vertical-align: 0; }
.cat-ic { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; font-size: 24px; }
.cat-ic .svgi { width: 34px; height: 34px; }


/* =====================================================================
   Редизайн 2026 (утверждённый макет): светлый сайт, чёрная шапка и подвал,
   плоское золото, SVG-иконки, крупные карточки без рамок и теней.
   ===================================================================== */
.shopfront { background: var(--ice); color: var(--text); font-size: 16px; }
.shopfront a { color: var(--sea-dark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ui { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.noscroll { overflow: hidden; }

/* Строка доставки */
.dline { background: var(--navy); color: #E8E2D0; font-size: 13px; border-bottom: 1px solid #222; }
.dline-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.dline a { display: flex; align-items: center; gap: 8px; height: 34px; color: #E8E2D0 !important; text-decoration: none; white-space: nowrap; overflow: hidden; }
.dline a > span { overflow: hidden; text-overflow: ellipsis; }
.dline b { color: #fff; font-weight: 600; }
.dline svg.ui { width: 18px; height: 18px; color: var(--sea); }

/* Шапка */
.shopfront .header { background: var(--navy); border-bottom: 0; }
.shopfront .header-in { max-width: 1240px; height: 84px; padding: 0 20px; gap: 28px; flex-wrap: nowrap; }
.shopfront .logo img { height: 64px; filter: none; border-radius: 6px; }
.mainnav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.mainnav a { color: #fff !important; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.mainnav a:hover, .mainnav a.active { border-color: var(--sea); }
.mainnav a.sale { color: #FF8A80 !important; }
.htools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ib { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: #fff !important; background: none; border: 0; cursor: pointer; position: relative; text-decoration: none; padding: 0; }
.ib:hover, .ib.active { background: #222; }
.ib .badge { position: absolute; top: 3px; right: 1px; margin: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; padding: 0 4px; }
.burger { display: none; }
.shopfront .nav { margin: 0; gap: 6px; display: flex; }
.shopfront .nav a { padding: 0; }
.langdd { position: relative; }
.langbtn { font: 700 13px Montserrat, sans-serif; color: #fff; border: 1px solid #3a3a3a; border-radius: 8px; height: 36px; padding: 0 8px 0 10px; display: flex; align-items: center; gap: 2px; background: none; cursor: pointer; }
.langbtn svg.ui { width: 16px; height: 16px; }
.shopfront .langs { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: grid; gap: 2px; min-width: 170px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.shopfront .langs[hidden] { display: none; }
.shopfront .langs button { display: flex; gap: 10px; align-items: center; text-align: left; background: none; color: var(--text); font: 700 14px Montserrat, sans-serif; padding: 9px 10px; border-radius: 8px; }
.shopfront .langs button span { font-weight: 500; color: var(--muted); }
.shopfront .langs button:hover { background: var(--ice); color: var(--text); }
.shopfront .langs button.active { background: var(--navy); color: #fff; }
.shopfront .langs button.active span { color: #cfc8b8; }

/* Поиск под шапкой */
.shopfront .hsearch { display: block; max-width: none; margin: 0; border: 0; border-radius: 0; background: #1a1a1a; padding: 10px 20px; }
.shopfront .hsearch[hidden] { display: none; }
.hsearch-in { max-width: 760px; margin: 0 auto; display: flex; background: #fff; border-radius: 12px; overflow: hidden; }
.shopfront .hsearch input { border: 0; height: 48px; padding: 0 16px; font-size: 16px; }
.shopfront .hsearch button { background: var(--sea); color: var(--navy); width: 56px; border: 0; display: grid; place-items: center; cursor: pointer; }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .45); }
.drawer-in { background: var(--navy); color: #fff; width: min(340px, 86vw); height: 100%; overflow-y: auto; padding: 96px 20px 120px; display: flex; flex-direction: column; gap: 22px; }
.dmenu { display: grid; }
.dmenu a { color: #fff !important; text-decoration: none; font: 600 18px Montserrat, sans-serif; padding: 12px 0; border-bottom: 1px solid #262626; }
.dmenu a.active { color: var(--sea) !important; }
.dmenu a.sale { color: #FF8A80 !important; }
.dcontacts { display: grid; gap: 12px; font-size: 14px; color: #cfc8b8; }
.dcontacts a, .dcontacts span { display: flex; gap: 10px; align-items: center; color: #cfc8b8 !important; text-decoration: none; }
.dcontacts svg.ui { color: var(--sea); width: 20px; height: 20px; }
.dsoc { display: flex; gap: 8px; flex-wrap: wrap; }
.dsoc .chip { background: transparent; border-color: #3a3a3a; color: #fff !important; }

/* Полоса категорий (только в каталоге) */
.shopfront .catbar { background: #fff; border-bottom: 1px solid var(--line); }
.shopfront .catbar a { color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.shopfront .catbar a:hover, .shopfront .catbar a.active { color: var(--navy); border-color: var(--sea); }
.shopfront .catbar a.sale { color: #fff; background: var(--danger); border-color: var(--danger); }
.catbar .svgi { width: 22px; height: 22px; }

/* Кнопки */
.shopfront .btn { background: var(--sea); color: var(--navy); border-radius: 12px; padding: 0 22px; min-height: 46px; font-weight: 700; filter: none; }
.shopfront .btn:hover { background: #c9a42f; }
.shopfront .btn.big { min-height: 54px; padding: 0 28px; font-size: 16px; }
.shopfront .btn.big svg.ui { width: 20px; height: 20px; }
.shopfront .btn.secondary, .shopfront .btn.dark { background: var(--navy); color: #fff; border: 0; }
.shopfront .btn.secondary:hover, .shopfront .btn.dark:hover { background: #2a2a2a; }
.shopfront .btn.line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.shopfront .btn.line:hover { background: var(--navy); color: #fff; }
.shopfront .btn.ghost { background: transparent; color: var(--muted); min-height: 0; padding: 6px 10px; }
.shopfront .btn.small { min-height: 36px; padding: 0 12px; }
.tlink { color: #fff !important; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Общие секции главной */
.shopfront .wrap { padding-top: 24px; }
.shopfront .wrap > .hero2:first-child { margin-top: -24px; }
.hsec { margin: 0 0 56px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sec-head .more { font-weight: 600; color: var(--navy) !important; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.shopfront h1 { font-size: 40px; color: var(--navy); }
.shopfront h2 { font-size: 30px; color: var(--navy); }

/* Hero */
.hero2 { position: relative; background: #0b0b0b; color: #fff; border-radius: 0 0 20px 20px; overflow: hidden; margin: 0 -20px 48px; min-height: 440px; display: flex; align-items: center; }
.hmedia { position: absolute; inset: 0; background: radial-gradient(60% 80% at 75% 40%, #3a2f1a 0, #141414 55%, #0b0b0b 100%); }
.hvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero2.has-video { min-height: 540px; }
.hero2.has-video .hmedia::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1) 100%); }
.hph { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 38%; aspect-ratio: 16 / 10; border: 2px dashed #6b5a2c; border-radius: 16px; display: grid; place-content: center; text-align: center; color: #cbb67a; font-size: 14px; padding: 20px; gap: 6px; }
.hph b { font-size: 18px; color: #f0dc9c; }
.hin { position: relative; z-index: 1; padding: 48px 56px; max-width: 640px; }
.hin .kick { color: var(--sea); font: 600 13px Montserrat, sans-serif; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 14px; }
.hin h1 { color: #fff; font-size: 48px; font-weight: 800; margin-bottom: 16px; }
.hin .lead { font-size: 19px; color: #E9E4D8; margin: 0 0 28px; max-width: 520px; }
.hin .cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hpause { position: absolute; right: 20px; bottom: 20px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 1px solid #555; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hpause svg.ui { width: 20px; height: 20px; }

/* Категории */
.cats2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cat2 { background: #fff; border-radius: var(--radius); text-decoration: none; display: flex; flex-direction: column; overflow: hidden; color: var(--navy) !important; }
.cph { aspect-ratio: 16 / 10; background: var(--ice); margin: 10px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.cph .svgi { width: 88px; height: 88px; }
.cph img { width: 100%; height: 100%; object-fit: cover; }
.cat2 b { font: 700 16px Montserrat, sans-serif; padding: 4px 16px 0; }
.cat2 small { color: var(--muted); padding: 0 16px 14px; font-size: 14px; }
.cat2:hover .cph { background: #EDE8DC; }

/* Карточки товаров */
.shopfront .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.shopfront .product { border: 0; border-radius: var(--radius); background: #fff; box-shadow: none; transform: none; }
.shopfront .product:hover { box-shadow: none; transform: none; }
.shopfront .product .pic { height: auto; aspect-ratio: 1; margin: 10px; border-radius: 10px; background: var(--ice); border: 0; overflow: hidden; }
.shopfront .product .pic .svgi { width: 84px; height: 84px; }
.shopfront .product .tags { top: 20px; left: 20px; }
.shopfront .product .tag { background: var(--danger); border-radius: 8px; font-size: 13px; padding: 4px 9px; }
.shopfront .tag.hit { background: var(--navy); color: var(--sea); }
.shopfront .tag.new { background: var(--sea); color: var(--navy); }
.shopfront .product .body { padding: 4px 16px 16px; }
.shopfront .product .cat { font-size: 12px; }
.shopfront .product .name { color: var(--navy) !important; font-weight: 600; line-height: 1.35; }
.shopfront .price { font-size: 1.3rem; color: var(--navy); }
.shopfront .price.sale { color: var(--danger); }
.shopfront .until { color: var(--danger); }
.shopfront .qty { border-color: var(--line); border-radius: 12px; }
.shopfront .qty button { background: var(--ice); }

/* Промо-баннеры: без градиентов */
.shopfront .pbanner { border-radius: var(--radius); min-height: 200px; padding: 28px; transform: none; }
.shopfront .pbanner.gold { background: var(--sea); color: var(--navy); }
.shopfront .pbanner.red { background: var(--danger); }
.shopfront .pbanner.blue { background: #16324a; }
.shopfront .pbanner.green { background: #1d4d3a; }
.shopfront .pbanner.black { background: var(--navy); color: #fff; }
.shopfront .pb-text b { font: 700 26px "Playfair Display", Georgia, serif; }
.shopfront .pb-text em { display: inline-flex; align-self: flex-start; margin-top: 12px; background: var(--sea); color: var(--navy); border-radius: 10px; padding: 9px 16px; font-size: 14px; }
.shopfront .pbanner.gold .pb-text em { background: var(--navy); color: #fff; }
.promo-banners + .grid { margin-top: 20px; }

/* Доставка */
.deliv { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.box { background: #fff; border-radius: var(--radius); padding: 28px; }
.box > .muted { margin: 0; }
.box.dark { background: var(--navy); color: #E9E4D8; }
.box.dark h3 { color: #fff; font-size: 22px; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.city { background: var(--ice); border-radius: 20px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.city.on { background: var(--navy); color: #fff; }
.shopfront .dcity { max-width: 360px; margin-bottom: 16px; color: var(--muted); }
.shopfront .dcity select { border-color: var(--line); height: 46px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--ice); border-radius: 12px; padding: 12px 14px; }
.fact small { display: block; color: var(--muted); font-size: 13px; }
.fact b { font-size: 16px; color: var(--navy); }
.checks { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg.ui { color: var(--sea); width: 22px; height: 22px; }

/* Магазин */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: 420px; }
.photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 12px; display: block; }
.photos img:first-child { grid-row: 1 / 3; }
.kvi { display: grid; gap: 12px; margin: 16px 0 24px; }
.kvi > * { display: flex; gap: 12px; align-items: center; color: var(--text) !important; text-decoration: none; }
.kvi svg.ui { color: var(--sea-dark); }

/* Отзывы, видео, соцсети */
.shopfront .reviews { margin: 0 0 56px; }
.shopfront .review { border: 0; }
.shopfront .vcard { border: 0; }
.shopfront .videos { margin: 0 0 56px; }
.shopfront .socials { text-align: center; }
.shopfront .socials div { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Подвал */
.shopfront .footer { background: var(--navy); border-top: 0; color: #cfc8b8; margin-top: 0; font-size: 14px; }
.shopfront .footer .wrap { display: block; padding: 48px 20px 28px; }
.fcols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.shopfront .fcol { display: grid; gap: 8px; align-content: start; }
.shopfront .fcol b { color: #fff; font-size: 15px; margin-bottom: 4px; }
.shopfront .fcol a, .shopfront .fcol span { color: #cfc8b8 !important; text-decoration: none; display: flex; gap: 10px; align-items: center; }
.shopfront .fcol a:hover { color: #fff !important; }
.fcol svg.ui { width: 18px; height: 18px; color: var(--sea); }
.flogo { height: 56px; width: auto; margin-bottom: 8px; border-radius: 6px; }
.fbottom { border-top: 1px solid #2a2a2a; margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; color: #8d8778; font-size: 13px; }

/* Нижняя панель (телефон) */
.shopfront .bnav .bi svg.ui { width: 24px; height: 24px; }
.shopfront .bnav { background: var(--navy); border-top: 1px solid #2a2a2a; }
.shopfront .bnav a { color: #cfc8b8; }
.shopfront .bnav a.active { color: var(--sea); }

@media (max-width: 1100px) {
  .mainnav { gap: 16px; font-size: 14px; }
  .shopfront .header-in { gap: 18px; }
}
@media (max-width: 980px) {
  .mainnav, .htools .user { display: none; }
  .burger { display: grid; }
  .shopfront .header-in { height: 64px; gap: 4px; padding: 0 12px; }
  .shopfront .logo { margin-right: auto; }
  .shopfront .logo img { height: 48px; }
  .htools { gap: 2px; }
  .cats2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deliv, .about { grid-template-columns: 1fr; }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcols > .fcol:first-child { grid-column: 1 / -1; }
  .shopfront .fcol a, .shopfront .fcol span { overflow-wrap: anywhere; }
}
@media (max-width: 820px) {
  .shopfront .nav .cartbtn { display: grid; }
  .shopfront h1 { font-size: 30px; }
  .shopfront h2 { font-size: 24px; }
  .dline { font-size: 12px; }
  .dline-in { padding: 0 12px; }
  .dline a { height: 30px; }
  .hsec { margin-bottom: 40px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 14px; }
  .hero2 { flex-direction: column; align-items: stretch; min-height: 0; margin: 0 -20px 36px; border-radius: 0 0 16px 16px; }
  .hmedia { position: relative; height: 220px; flex: none; }
  .hero2:not(.has-video):not(:has(.hph)) .hmedia { display: none; }
  .hph { inset: 14px; transform: none; width: auto; aspect-ratio: auto; top: 14px; right: 14px; }
  .hin { padding: 24px 20px 28px; }
  .hin h1 { font-size: 32px; }
  .hin .lead { font-size: 16px; margin-bottom: 20px; }
  .hin .cta .btn { width: 100%; }
  .hpause { top: 172px; bottom: auto; width: 38px; height: 38px; }
  .cats2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cph .svgi { width: 64px; height: 64px; }
  .cat2 b { font-size: 15px; padding: 2px 12px 0; }
  .cat2 small { padding: 0 12px 12px; font-size: 13px; }
  .shopfront .grid.hrow { display: flex; overflow-x: auto; gap: 12px; margin: 0 -20px; padding: 0 20px 6px; scroll-snap-type: x mandatory; }
  .shopfront .grid.hrow .product { flex: 0 0 64%; scroll-snap-align: start; }
  .shopfront .grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopfront .product .body { padding: 2px 10px 12px; }
  .shopfront .product .name { font-size: 14px; }
  .shopfront .price { font-size: 1.1rem; }
  .shopfront .product .pic { height: auto; }
  .shopfront .product .pic .svgi { width: 60px; height: 60px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box { padding: 20px; }
  .photos { height: 260px; }
  .shopfront .pbanner { min-height: 150px; padding: 20px; }
  .shopfront .pb-text b { font-size: 22px; }
  .shopfront .footer .wrap { padding-bottom: 28px; }
  .shopfront .hsearch { padding: 8px 12px; }
}
@media (max-width: 380px) {
  .langbtn { padding: 0 4px 0 6px; }
  .shopfront .logo img { height: 42px; }
  .shopfront .grid.hrow .product { flex-basis: 78%; }
}

/* Галерея товара (P2) */
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: #fff; aspect-ratio: 1 / 1; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.gthumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gthumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.gthumbs button.active { border-color: var(--sea); }
.gthumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shopfront .pic.big { background: #fff; }
.shopfront .pic.big:not(:has(img)) { background: #fff; }
.shopfront .pic.big img { object-fit: contain; }
.shopfront .product .pic img { object-fit: contain; background: #fff; }

/* Админка: фото товара, фото категорий, видео главной (P2) */
.pphotos { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 16px; background: #fcfbf8; }
.ph-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.ph-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.ph-img { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; }
.ph-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ph-main { position: absolute; left: 6px; top: 6px; background: #111; color: #D4AF37; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.ph-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.ph-alt { display: flex; gap: 6px; align-items: center; margin: 0; }
.ph-alt input { min-height: 34px; padding: 4px 8px; font-size: 13px; }
.pf-msg.ok { color: var(--ok); }
.cat-photo { width: 56px; height: 36px; border-radius: 6px; border: 1px dashed var(--line); display: grid; place-items: center; cursor: pointer; overflow: hidden; flex: none; background: #fff; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.hero-media video, .hero-media img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; background: #111; margin: 8px 0; display: block; }
.hero-media #mediamsg { grid-column: 1 / -1; }
@media (max-width: 700px) { .hero-media { grid-template-columns: 1fr; } }

/* =====================================================================
   P3: карточки товаров, страница товара, корзина, оформление заказа
   ===================================================================== */
/* Карточка: кнопка всегда внизу, ровные ряды */
.shopfront .product { display: flex; flex-direction: column; }
.shopfront .product .body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shopfront .product .desc:empty { display: none; }
.shopfront .product .prices { margin-top: auto; padding-top: 6px; }
.shopfront .product .btn.wide, .shopfront .product .qty.wide { margin-top: 10px; min-height: 46px; }
.shopfront .product .cat { letter-spacing: .06em; color: var(--muted); }
.shopfront .product .stock { font-size: 13px; }
.shopfront .product.is-out .pic { opacity: .7; }
.shopfront .product .btn[disabled] { background: #ECE8DF; color: var(--muted); }
.shopfront .product .pic-link { position: relative; display: block; }

/* Страница товара */
.shopfront .pdetail { gap: 40px; }
.shopfront .pd-pic .tags { top: 14px; left: 14px; z-index: 1; }
.shopfront .pd-pic .tag { background: var(--danger); color: #fff; border-radius: 8px; font-weight: 700; font-size: 14px; padding: 5px 10px; }
.shopfront .pd-pic .tag.hit { background: var(--navy); color: var(--sea); }
.shopfront .pd-pic .tag.new { background: var(--sea); color: var(--navy); }
.shopfront .pd-info h1 { font-size: 36px; margin-bottom: 8px; }
.shopfront .buybox { background: #fff; border: 0; border-radius: var(--radius); padding: 18px; }
.shopfront .pack { border-radius: 12px; border-color: var(--line); background: #fff; }
.shopfront .pack.active { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); background: #FBF6E6; }
.shopfront .buyrow .btn { flex: 1; min-height: 52px; font-size: 16px; }
.shopfront .specs { background: #fff; border-radius: var(--radius); overflow: hidden; border-collapse: collapse; width: 100%; }
.shopfront .specs th, .shopfront .specs td { padding: 11px 16px; border-bottom: 1px solid var(--ice); text-align: left; vertical-align: top; }
.shopfront .specs th { width: 38%; color: var(--muted); font-weight: 600; }
.shopfront .crumbs a { color: var(--muted); }

/* Корзина */
.shopfront .lines { display: grid; gap: 12px; }
.shopfront .line { border: 0; grid-template-columns: 72px 1fr auto auto auto; padding: 12px 16px 12px 12px; }
.shopfront .line .ic { width: 72px; height: 72px; border-radius: 10px; background: var(--ice); display: grid; place-items: center; overflow: hidden; }
.shopfront .line .ic img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 0; }
.shopfront .line .ic .svgi { width: 48px; height: 48px; }
.shopfront .line a { color: var(--navy); text-decoration: none; }
.shopfront .line a:hover b { text-decoration: underline; }
.shopfront .line .sum { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.shopfront .summary { border: 0; border-radius: var(--radius); padding: 24px; }
.shopfront .summary .tot { font-size: 1.35rem; color: var(--navy); }
.shopfront .summary .btn.wide { min-height: 54px; font-size: 16px; }
.shopfront .progress, .shopfront .free { border-radius: 6px; }

/* Оформление заказа */
.shopfront .opt { border-radius: 12px; padding: 14px; align-items: flex-start; }
.shopfront .opt input[type=radio], .shopfront .opt input[type=checkbox] { width: 20px; height: 20px; min-height: 0; flex: none; margin: 2px 0 0; accent-color: var(--navy); }
.shopfront .opt:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #fff; }
.shopfront .opt b { color: var(--navy); }
.shopfront .form input, .shopfront .form select, .shopfront .form textarea { border-radius: 12px; border-color: var(--line); min-height: 48px; font-size: 16px; }
.shopfront .form input:focus, .shopfront .form select:focus, .shopfront .form textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
.shopfront .card { border: 0; border-radius: var(--radius); }
.shopfront .form .check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--navy); }

/* Телефон: нижняя панель с учётом «чёлки» iPhone, toast над ней */
.shopfront .bnav { padding-bottom: env(safe-area-inset-bottom); }
.shopfront .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (max-width: 820px) {
  .shopfront .pd-info h1 { font-size: 28px; }
  .shopfront .pdetail { gap: 20px; }
  .shopfront .line { grid-template-columns: 64px 1fr auto; grid-template-areas: "ic name name" "ic qty sum"; gap: 8px 12px; padding: 10px; }
  .shopfront .line .ic { grid-area: ic; width: 64px; height: 64px; }
  .shopfront .line > div:nth-child(2) { grid-area: name; }
  .shopfront .line .unitprice { display: none; }
  .shopfront .line .qty { grid-area: qty; justify-self: start; }
  .shopfront .line .sum { grid-area: sum; min-width: 0; }
  .shopfront .product .btn.wide, .shopfront .product .qty.wide { min-height: 42px; font-size: 14px; }
  .shopfront .product .stock { font-size: 12px; }
}

/* =====================================================================
   P4: видео с товарами, рецепты
   ===================================================================== */
.vitem { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vcard.own { padding: 0; overflow: hidden; cursor: default; background: #000; }
.vcard.own video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vtitle { font-size: 15px; color: var(--navy); line-height: 1.3; }
.vprods { display: grid; gap: 6px; }
.vprod { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 6px; }
.vpic { width: 44px; height: 44px; border-radius: 8px; background: var(--ice); display: grid; place-items: center; overflow: hidden; }
.vpic img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.vpic .svgi { width: 30px; height: 30px; }
.vname { color: var(--navy) !important; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.25; display: flex; flex-direction: column; min-width: 0; }
.vname small { color: var(--muted); font-weight: 500; }
.vprod .ib.add { width: 38px; height: 38px; background: var(--sea); color: var(--navy) !important; border-radius: 10px; }
.vprod .ib.add svg.ui { width: 20px; height: 20px; }
.vitem .btn.line { align-self: stretch; min-height: 40px; font-size: 14px; gap: 6px; }
.vitem .btn.line svg.ui { width: 18px; height: 18px; }

.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.rcard { background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--navy) !important; display: flex; flex-direction: column; }
.rpic { aspect-ratio: 3 / 2; background: var(--ice); display: grid; place-items: center; overflow: hidden; }
.rpic img { width: 100%; height: 100%; object-fit: cover; }
.rpic .svgi { width: 80px; height: 80px; }
.rcard b { font: 700 18px "Playfair Display", Georgia, serif; padding: 14px 16px 4px; }
.rcard small, .rmeta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; padding: 0 16px 16px; }
.rcard small svg.ui, .rmeta svg.ui { width: 16px; height: 16px; }
.rmeta { padding: 0; margin: 0 0 12px; }
.recipe { margin-bottom: 48px; }
.rhead { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; margin-bottom: 28px; }
.rhead:not(:has(.rimg)) { grid-template-columns: 1fr; }
.rimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.recipe .lead { font-size: 18px; }
.rbody { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.ings ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ings li { padding-bottom: 10px; border-bottom: 1px solid var(--ice); }
.ings li a { color: var(--navy); font-weight: 600; }
.rshop { display: block; font-size: 13px; color: var(--sea-dark); }
.steps ol { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; line-height: 1.6; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--sea); display: grid; place-items: center; font-weight: 700; }
@media (max-width: 820px) {
  .rhead, .rbody { grid-template-columns: 1fr; gap: 18px; }
  .rgrid { grid-template-columns: 1fr; gap: 14px; }
  .vrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vprod { grid-template-columns: 36px 1fr auto; padding: 4px; }
  .vpic { width: 36px; height: 36px; }
  .vprod .ib.add { width: 34px; height: 34px; }
}

/* Админка P4: видео и рецепты */
.vid-list { display: grid; gap: 12px; margin: 12px 0; }
.vid-ed { display: grid; grid-template-columns: 140px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.vid-ed.off, .rc-ed.off { opacity: .6; }
.vid-prev { aspect-ratio: 9 / 16; background: #111; border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: #fff; }
.vid-prev video { width: 100%; height: 100%; object-fit: cover; }
.vsrc-pill { background: #fff; color: #111; font-weight: 700; padding: 4px 10px; border-radius: 20px; font-size: 13px; }
.vid-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chips-ed { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.chips-ed .chip { display: inline-flex; gap: 6px; align-items: center; }
.chips-ed .chip button { border: 0; background: none; cursor: pointer; padding: 0 2px; }
label.check.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0 10px 0 0; }
.rc-ed { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; background: #fff; }
.rc-ed summary { cursor: pointer; padding: 4px 0; }
.rc-ed[open] summary { margin-bottom: 10px; }
.rc-photo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rc-photo img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.rc-ings td { padding: 4px; border: 0; }
.rc-ings input, .rc-ings select { width: 100%; }
@media (max-width: 700px) { .vid-ed { grid-template-columns: 1fr; } .vid-prev { max-width: 160px; } .rc-ings, .rc-ings tbody, .rc-ings tr, .rc-ings td { display: block; } .rc-ings tr { border-bottom: 1px solid var(--line); padding: 4px 0; } }

/* Cookies: баннер согласия */
.ckbar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.ckin { pointer-events: auto; max-width: 720px; width: 100%; background: #fff; color: var(--text); border-radius: 16px; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); padding: 18px 20px; font-size: 14px; }
.ckin p { margin: 0 0 12px; }
.ckopts { display: grid; gap: 10px; margin: 0 0 14px; }
.ckopts label { display: flex; gap: 10px; align-items: flex-start; }
.ckopts input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: #111; }
.ckopts span { display: flex; flex-direction: column; }
.ckopts small { color: var(--muted); }
.ckbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.ckbtns .btn { min-height: 44px; }
@media (max-width: 820px) { .ckbar { bottom: calc(76px + env(safe-area-inset-bottom)); left: 8px; right: 8px; } .ckbtns .btn { flex: 1; } }
