/* Интернет-витрина. Цвета, шрифт, скругления и число колонок приходят переменными из /shop/theme.css. */
:root {
  --accent: #2a78d6;
  --accent-soft: rgba(42, 120, 214, 0.12);
  --bg: #ffffff;
  --surface: #f5f5f3;
  --ink: #111111;
  --ink-soft: rgba(17, 17, 17, 0.62);
  --line: rgba(17, 17, 17, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --cols: 4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }

.preview-note { background: #fde68a; color: #3f2d00; text-align: center; font-size: 14px; padding: 6px 16px; }

/* Выбор модификации */
.opt { margin: 12px 0; }
.opt-name { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.opt-name b { color: var(--ink); }
.opt-values { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-values button { min-width: 44px; padding: 8px 14px; border-radius: calc(var(--radius) * 0.6); border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.opt-values button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.opt-values button.na { color: var(--ink-soft); text-decoration: line-through; opacity: 0.6; }

/* Аккаунт покупателя */
.acc { display: grid; gap: 12px; }
.acc label, .acc-form label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-soft); }
.acc input { padding: 11px 14px; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.7); background: var(--surface); color: var(--ink); font: inherit; }
.acc input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.code-input { font-size: 26px !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.acc-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.link { border: 0; background: none; color: var(--accent); padding: 0; font-weight: 600; font-size: 14px; }
.small.left { text-align: left; }
.ghost { border: 1px solid var(--line); background: none; padding: 13px 20px; border-radius: 999px; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkout-login { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--accent-soft); }
.checkout-login p { margin: 0; font-weight: 600; }
.checkout-who { padding: 10px 14px; border-radius: calc(var(--radius) * 0.7); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.profile-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-cards div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); }
.profile-cards b { font-size: 18px; }
.birthday-note { margin: 0; padding: 10px 14px; border-radius: var(--radius); background: #fff1c2; color: #5b4100; font-weight: 600; }
.acc h3 { margin: 6px 0 0; font-size: 16px; }
.profile-orders { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.profile-order { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.7); }
.status { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--accent-soft); color: var(--accent); }
.status.s-done { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.status.s-cancelled { background: rgba(225, 29, 72, 0.12); color: #be123c; }
.profile-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--accent-soft); }
.profile-tabs button { border: 0; background: none; padding: 9px 6px; border-radius: 999px; font-weight: 650; font-size: 14px; color: inherit; cursor: pointer; }
.profile-tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.profile-pane { display: grid; gap: 8px; }
.profile-pane[hidden] { display: none; }
.profile-order .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.profile-order .row > :last-child { white-space: nowrap; }
.bonus-tag { font-size: 13px; color: var(--muted, #666); }
.bonus-plus { color: #15803d; font-weight: 700; }
.bonus-minus { color: #be123c; font-weight: 700; }
.profile-order.refunded { opacity: 0.6; }
.profile-tabs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); border-radius: 18px; }
.profile-tabs button { border-radius: 14px !important; }
.profile-tabs button { font-size: 13px; padding: 8px 4px; line-height: 1.25; }
.profile-certs { display: grid; gap: 8px; }
.profile-cert { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius); background: linear-gradient(135deg, #fff1c2, #ffe0ec); color: #3b2a00; }
.profile-cert .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.profile-cert .row b:last-child { white-space: nowrap; font-size: 18px; }
.profile-cert.off { opacity: 0.55; }
.profile-edit summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.acc-form { display: grid; gap: 10px; margin-top: 10px; }
.shop-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: #141625; color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }

/* Окна */
dialog.sheet { border: 0; padding: 24px; border-radius: var(--radius); background: var(--bg); color: var(--ink); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog.side { margin-right: 0; margin-top: 0; height: 100dvh; max-height: 100dvh; border-radius: var(--radius) 0 0 var(--radius); width: min(440px, 100vw); }
.close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); font-size: 22px; line-height: 1; }
.sheet h2 { margin: 0 0 16px; padding-right: 40px; }
.product-desc { color: var(--ink-soft); white-space: pre-line; }

.cart-lines { display: grid; gap: 2px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line .name { font-weight: 600; overflow-wrap: anywhere; }
.cart-line .meta { color: var(--ink-soft); font-size: 13px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { border: 0; background: none; width: 32px; height: 32px; font-size: 18px; }
.stepper span { min-width: 28px; text-align: center; font-weight: 600; }
.line-sum { font-weight: 700; min-width: 76px; text-align: right; }
.checkout { display: grid; gap: 12px; margin-top: 16px; }
.cart-sum { display: flex; justify-content: space-between; color: var(--ink-soft); }
.cart-sum.total { color: var(--ink); font-size: 20px; }
.checkout label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-soft); }
.checkout input, .checkout textarea { padding: 11px 14px; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.7); background: var(--surface); color: var(--ink); }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ways button { padding: 10px; border-radius: calc(var(--radius) * 0.7); border: 1px solid var(--line); background: none; font-weight: 600; }
.pay-box { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pay-box h3 { margin: 0; font-size: 16px; }
.pay-ways { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-ways button { padding: 9px 12px; border-radius: calc(var(--radius) * 0.7); border: 1px solid var(--line); background: none; font-weight: 600; }
.pay-ways button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pay-amount { font-size: 15px; }
.pay-amount b { font-size: 20px; }
.pay-qr { display: block; width: min(100%, 260px); margin: 0 auto; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.pay-details { white-space: pre-line; font-size: 14px; padding: 10px 12px; border-radius: calc(var(--radius) * 0.7); background: var(--bg); border: 1px dashed var(--line); }
.pay-steps { margin: 0; padding-left: 20px; font-size: 13px; color: var(--ink-soft); display: grid; gap: 2px; }
.pay-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pay-links a, .pay-links button { font-size: 14px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 4px; text-decoration: underline; cursor: pointer; }
.receipt-pick { display: block; cursor: pointer; }
.receipt-btn { display: block; text-align: center; padding: 11px 14px; border-radius: calc(var(--radius) * 0.7); border: 1px dashed var(--accent); color: var(--accent); font-weight: 650; font-size: 14px; background: var(--bg); }
.receipt-btn.need { border-style: solid; border-color: #e11d48; color: #be123c; background: rgba(225, 29, 72, 0.06); }
.receipt-names { font-size: 13px; color: #15803d; font-weight: 600; text-align: center; }
.status.s-checking { background: rgba(234, 179, 8, 0.18); color: #92400e; }
.status.s-unpaid { background: rgba(225, 29, 72, 0.12); color: #be123c; }
.profile-order .pay-box { margin-top: 6px; }
.ways button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.primary { border: 0; background: var(--accent); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 700; font-size: 16px; }
.primary:disabled { opacity: 0.6; }
.error { color: #c62828; margin: 0; }
.small { font-size: 13px; color: var(--ink-soft); margin: 0; text-align: center; }
.done { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 16px 0; }
.done-icon.paid { background: #16a34a; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 34px; display: grid; place-items: center; }

.old-price { font-size: .8em; font-weight: 500; opacity: .55; margin-right: 2px; }
.gender-pick { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.gender-pick legend { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; padding: 0; }
.gender-pick label { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 120px; padding: 10px 14px; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.7); cursor: pointer; color: var(--ink); }
.gender-pick label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* =====================================================================
   Дизайн витрины (вторая версия): шапка, баннер, каталог, карточки, подвал.
   Варианты стиля — атрибуты на <body>: data-btn, data-shadow, data-hero, data-heroh, data-align, data-head.
   ===================================================================== */
:root { --font-head: var(--font); --mcols: 2; --ratio: 4 / 5; --fit: cover; --btn-r: 999px; --ease: cubic-bezier(.2, .7, .2, 1); }
body[data-btn="rounded"] { --btn-r: calc(var(--radius) * 0.7 + 4px); }
body[data-btn="square"] { --btn-r: 0px; }
body { font-size: 15px; letter-spacing: -0.005em; }
h1, h2, h3, .brand, .price, .hero h1, .cat-title { font-family: var(--font-head); }
.wrap { max-width: 1320px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Кнопки */
.btn, .primary, .add, .ghost, .quick { border-radius: var(--btn-r) !important; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; }
.btn-main { background: var(--accent); color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-glass { background: rgba(255, 255, 255, .16); color: inherit; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.primary { padding: 15px 22px; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent); }
.primary:hover:not(:disabled) { transform: translateY(-1px); }

/* Бегущая строка */
.announce { background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; letter-spacing: .02em; overflow: hidden; white-space: nowrap; }
.announce-track { display: inline-flex; gap: 80px; padding: 9px 0; animation: ticker 28s linear infinite; }
.announce-track span { padding-left: 40px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; } }

/* Шапка */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-head.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .06); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; min-width: 0; flex: none; }
.brand img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.head-nav::-webkit-scrollbar { display: none; }
.head-nav button { flex: none; border: 0; background: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.head-nav button:hover, .head-nav button[aria-pressed="true"] { color: var(--ink); background: var(--accent-soft); }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.head-contacts { display: flex; gap: 6px; }
.head-contacts a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13px; padding: 9px 14px; border-radius: 999px; background: var(--surface); }
.head-contacts a:hover { color: var(--accent); }
.account-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 650; font-size: 14px; color: var(--ink); }
.account-btn:hover { border-color: var(--ink); }
.account-btn svg { width: 20px; height: 20px; }
.cart-btn { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform .15s var(--ease); }
.cart-btn:hover { transform: scale(1.06); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
body[data-head="center"] .head-row { display: grid; grid-template-columns: 1fr auto 1fr; }
body[data-head="center"] .brand { grid-column: 2; justify-content: center; }
body[data-head="center"] .head-nav { grid-column: 1; grid-row: 1; }
body[data-head="center"] .head-actions { grid-column: 3; justify-content: flex-end; }

/* Баннер */
.hero { position: relative; overflow: hidden; color: var(--ink); background: var(--surface); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.hero-inner { display: flex; align-items: center; min-height: 420px; padding-top: 56px; padding-bottom: 56px; }
body[data-heroh="small"] .hero-inner { min-height: 260px; }
body[data-heroh="medium"] .hero-inner { min-height: 380px; }
body[data-heroh="large"] .hero-inner { min-height: 540px; }
body[data-heroh="full"] .hero-inner { min-height: calc(100svh - 72px); }
.hero-text { max-width: 640px; display: grid; gap: 18px; animation: rise .7s var(--ease) both; }
body[data-align="center"] .hero-inner { justify-content: center; text-align: center; }
body[data-align="center"] .hero-text { justify-items: center; }
.hero h1 { margin: 0; font-size: clamp(38px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.hero p { margin: 0; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.5; opacity: .88; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
body[data-align="center"] .hero-cta { justify-content: center; }
/* Фото на весь баннер */
body[data-hero="image"] .hero.has-image { color: #fff; }
body[data-hero="image"] .hero.has-image .hero-media { background-image: linear-gradient(100deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .05) 100%), var(--banner); }
body[data-hero="image"][data-align="center"] .hero.has-image .hero-media { background-image: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)), var(--banner); }
body[data-hero="image"] .hero:not(.has-image) .hero-media, body[data-hero="gradient"] .hero-media { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%), radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), var(--surface); }
/* Текст слева, фото справа */
body[data-hero="split"] .hero { background: var(--surface); }
body[data-hero="split"] .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
body[data-hero="split"] .hero-media { position: relative; inset: auto; z-index: 0; order: 2; align-self: stretch; min-height: 340px; border-radius: calc(var(--radius) * 1.6); background-image: var(--banner); box-shadow: 0 30px 60px rgba(0, 0, 0, .15); }
body[data-hero="split"] .hero:not(.has-image) .hero-media { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--ink))); }
body[data-hero="split"] .hero-inner > .hero-media { display: block; }
body[data-hero="minimal"] .hero { background: var(--bg); border-bottom: 1px solid var(--line); }
body[data-hero="minimal"] .hero-inner { min-height: 0 !important; padding-top: 48px; padding-bottom: 32px; }
body[data-hero="minimal"] .hero-media { display: none; }
body[data-hero="none"] .hero { display: none; }

/* Преимущества */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 28px; }
.perk { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); font-weight: 600; font-size: 14px; line-height: 1.35; }
.perk i { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-style: normal; font-size: 17px; }

/* Каталог */
.catalog { padding-top: 40px; padding-bottom: 80px; }
.cats { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 18px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; scroll-snap-align: start; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 650; font-size: 14px; color: var(--ink); transition: all .15s; }
.cats button:hover { border-color: var(--ink); }
.cats button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cats.with-images { gap: 16px; }
.cats.with-images button { display: grid; gap: 10px; width: 132px; padding: 0; border: 0; border-radius: 0; background: none; text-align: center; font-size: 14px; font-weight: 650; }
.cats.with-images .cat-pic { width: 132px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; background: var(--surface); color: var(--accent); font-size: 40px; font-weight: 800; position: relative; transition: transform .25s var(--ease); }
.cats.with-images .cat-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cats.with-images button:hover .cat-pic img { transform: scale(1.07); }
.cats.with-images button[aria-pressed="true"] { background: none; color: var(--accent); }
.cats.with-images button[aria-pressed="true"] .cat-pic { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 26px; }
.search-box { position: relative; flex: 1 1 280px; max-width: 520px; display: block; }
.search-box svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search-box .search { width: 100%; max-width: none; padding: 13px 18px 13px 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.search-box .search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--bg); }
.sort { padding: 12px 38px 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); }
.count { color: var(--ink-soft); font-size: 14px; margin-left: auto; }

.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 32px 22px; }
.cat-title { grid-column: 1 / -1; margin: 22px 0 -10px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; }
.cat-title small { font: 600 14px var(--font); color: var(--ink-soft); letter-spacing: 0; }
.cat-title:first-child { margin-top: 0; }

/* Карточка товара */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; background: none; border: 0; border-radius: 0; padding: 0; text-align: left; overflow: visible; cursor: pointer; animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.card:hover { transform: none; box-shadow: none; }
.card .pic { position: relative; aspect-ratio: var(--ratio); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: grid; place-items: center; font-size: 48px; font-weight: 800; color: var(--accent); }
.card .pic img { width: 100%; height: 100%; object-fit: var(--fit); transition: transform .7s var(--ease); }
.card:hover .pic img { transform: scale(1.06); }
body[data-shadow="soft"] .card .pic { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06); }
body[data-shadow="strong"] .card .pic { box-shadow: 0 18px 40px rgba(0, 0, 0, .14); }
body[data-shadow="outline"] .card .pic { box-shadow: inset 0 0 0 1px var(--line); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 1; }
.badge { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.badge.sale { background: #e11d48; color: #fff; }
.badge.new { background: var(--bg); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; padding: 13px; border: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink); backdrop-filter: blur(10px); font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease), background .2s; }
.card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; }
.quick:hover { background: var(--ink); color: var(--bg); }
.quick.in { background: var(--accent); color: #fff; opacity: 1; transform: none; }
.card .soldout { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); font-weight: 700; font-size: 14px; color: var(--ink); }
.card.out .pic img { filter: grayscale(.6); }
.card .info { display: grid; gap: 4px; padding: 0 2px; }
.card .name { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { color: var(--ink-soft); font-size: 13px; }
.card .price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.card .price { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.card .price.sale { color: #e11d48; }
.card .old-price { color: var(--ink-soft); font-size: 13px; opacity: 1; }
.card .add { display: none; }
@media (hover: none) { .quick { opacity: 1; transform: none; position: static; margin: 0; width: 100%; background: var(--surface); } .card .pic { overflow: hidden; } }
.grid.compact { gap: 22px 14px; }
.grid.compact .card .name { font-size: 14px; }
.grid.list { grid-template-columns: 1fr; gap: 0; }
.grid.list .card { flex-direction: row; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); animation: none; }
.grid.list .card .pic { width: 84px; flex: none; aspect-ratio: 1; }
.grid.list .card .info { flex: 1; }
.grid.list .quick { position: static; opacity: 1; transform: none; width: auto; padding: 10px 18px; background: var(--ink); color: var(--bg); }
.grid.list .badges { top: 6px; left: 6px; } .grid.list .badge.new { display: none; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 64px 0; font-size: 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card, .hero-text { animation: none; } }

/* Окно товара */
dialog.sheet { border: 0; padding: 28px; border-radius: calc(var(--radius) + 6px); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog.sheet::backdrop { background: rgba(10, 10, 15, .5); backdrop-filter: blur(4px); }
dialog[open].sheet { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
dialog.side { border-radius: calc(var(--radius) + 6px) 0 0 calc(var(--radius) + 6px); width: min(460px, 100vw); }
dialog[open].side { animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.close { top: 14px; right: 14px; width: 40px; height: 40px; background: var(--surface); z-index: 2; transition: transform .2s; }
.close:hover { transform: rotate(90deg); }
#product { width: min(1040px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-height: calc(100dvh - 24px); }
.pd-pic { background: var(--surface); position: relative; min-height: 0; display: grid; place-items: center; font-size: 80px; font-weight: 800; color: var(--accent); }
.pd-pic img { width: 100%; height: 100%; object-fit: contain; max-height: calc(100dvh - 24px); }
.pd-pic .badges { top: 18px; left: 18px; }
.pd-info { padding: 40px 36px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.pd-cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.pd-info h2 { margin: 0; padding-right: 30px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd-price .price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.pd-price .price.sale { color: #e11d48; }
.pd-price s { color: var(--ink-soft); font-size: 17px; }
.pd-info .opt { margin: 4px 0; }
.opt-values button { min-width: 52px; padding: 11px 16px; border-radius: calc(var(--radius) * .6 + 2px); border: 1px solid var(--line); background: var(--bg); font-weight: 650; transition: all .15s; }
.opt-values button:hover { border-color: var(--ink); }
.opt-values button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); box-shadow: none; }
.product-desc { color: var(--ink-soft); white-space: pre-line; line-height: 1.6; margin: 0; }
.pd-buy { display: grid; gap: 10px; margin-top: auto; padding-top: 10px; }
.pd-buy .primary { width: 100%; padding: 17px; font-size: 16px; }
.pd-perks { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); font-size: 13px; color: var(--ink-soft); }
.pd-perks div::before { content: '✓  '; color: var(--accent); font-weight: 800; }
.out-tag { color: var(--ink-soft); font-size: 14px; font-weight: 600; text-align: center; padding: 14px; border-radius: var(--btn-r); background: var(--surface); }

/* Корзина */
#cart h2 { font-size: 26px; letter-spacing: -0.02em; }
.cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; }
.cart-thumb { width: 64px; aspect-ratio: var(--ratio); border-radius: calc(var(--radius) * .6); overflow: hidden; background: var(--surface); display: grid; place-items: center; font-weight: 800; color: var(--accent); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .info { display: grid; gap: 6px; min-width: 0; }
.cart-line .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-sum.total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; }

/* Подвал */
.site-foot { background: var(--ink); color: color-mix(in srgb, var(--bg) 88%, transparent); padding: 64px 0 calc(28px + env(safe-area-inset-bottom, 0px)); margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-foot h2 { margin: 0 0 12px; font-size: 26px; color: var(--bg); letter-spacing: -0.02em; }
.site-foot h3 { margin: 0 0 14px; font: 700 12px var(--font); letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.site-foot p { margin: 0; white-space: pre-line; line-height: 1.6; opacity: .75; max-width: 420px; }
.foot-contacts { display: grid; gap: 10px; align-content: start; }
.foot-contacts a, .foot-contacts span { color: inherit; text-decoration: none; opacity: .85; }
.foot-contacts a:hover { opacity: 1; text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: inherit; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--accent); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; opacity: .6; }
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .45); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Капча */
.captcha { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: center; }
.captcha-img { width: 150px; height: 52px; border-radius: calc(var(--radius) * .6); overflow: hidden; background: #f4f4f6; border: 1px solid var(--line); }
.captcha-img svg { display: block; width: 100%; height: 100%; }
.captcha-new { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 18px; }
.captcha input { min-width: 0; text-align: center; font-size: 20px !important; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.captcha .cap-label { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); }

/* Адаптивность */
@media (max-width: 1100px) { .grid:not(.list) { grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr)); } .head-contacts { display: none; } }
@media (max-width: 860px) {
  .head-nav { display: none; }
  .pd { grid-template-columns: 1fr; overflow-y: auto; }
  .pd-pic { aspect-ratio: var(--ratio); max-height: 62dvh; }
  .pd-pic img { max-height: none; }
  .pd-info { padding: 24px 20px 28px; overflow: visible; }
  body[data-hero="split"] .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  body[data-hero="split"] .hero-media { order: 0; min-height: 260px; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .head-row { min-height: 62px; gap: 12px; }
  .brand { font-size: 20px; }
  .brand img { height: 36px; }
  .account-btn span { display: none; }
  .account-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .cart-btn { width: 44px; height: 44px; }
  .hero-inner { min-height: 0 !important; padding-top: 44px; padding-bottom: 44px; }
  body[data-heroh="large"] .hero-inner, body[data-heroh="full"] .hero-inner { min-height: 72svh !important; align-items: flex-end; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .catalog { padding-top: 26px; }
  .cats.with-images button { width: 92px; font-size: 13px; }
  .cats.with-images .cat-pic { width: 92px; }
  .grid:not(.list) { grid-template-columns: repeat(var(--mcols), minmax(0, 1fr)); gap: 24px 12px; }
  .card .name { font-size: 14px; }
  .card .price { font-size: 15px; }
  .badges { top: 8px; left: 8px; }
  .badge { font-size: 11px; padding: 4px 8px; }
  .toolbar { gap: 8px; }
  .count { width: 100%; margin: 0; order: 3; }
  .sort { flex: 1; }
  #product { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .pd { max-height: 100dvh; }
  .pd-buy { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 calc(4px + env(safe-area-inset-bottom, 0px)); }
  dialog.sheet:not(#product):not(.side) { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0; max-height: 92dvh; }
  dialog.side { width: 100vw; border-radius: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

.cats .collage { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; gap: 2px; }
.cats .collage img { width: 100%; height: 100%; object-fit: cover; }
.hero:not(.has-image) .btn-glass, body[data-hero="split"] .btn-glass, body[data-hero="minimal"] .btn-glass { background: var(--bg); border-color: var(--line); color: var(--ink); backdrop-filter: none; }

/* =====================================================================
   Стиль «Минимализм» (body[data-look="minimal"]): строгая сетка, без теней и скруглений,
   прописные жирные заголовки, светлый подвал, красный — только для цены со скидкой и акцентов.
   ===================================================================== */
body[data-look="minimal"] { --radius: 0px; --btn-r: 0px; letter-spacing: 0; }
body[data-look="minimal"] h1, body[data-look="minimal"] h2, body[data-look="minimal"] .cat-title, body[data-look="minimal"] .pd-info h2 { text-transform: uppercase; font-weight: 900; letter-spacing: 0; }
/* Бегущая строка — цветом акцента */
body[data-look="minimal"] .announce { background: var(--accent); color: #fff; font-weight: 700; }
/* Шапка: плотная белая, название — блоком цвета акцента */
body[data-look="minimal"] .site-head { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-look="minimal"] .site-head.scrolled { box-shadow: 0 1px 0 var(--line); }
body[data-look="minimal"] .head-row { min-height: 64px; gap: 28px; }
body[data-look="minimal"] .brand span { display: inline-grid; place-items: center; min-height: 44px; padding: 6px 12px; background: var(--accent); color: #fff; text-transform: uppercase; font-weight: 900; font-size: 15px; line-height: 1.05; letter-spacing: .02em; max-width: 220px; white-space: normal; text-align: center; }
body[data-look="minimal"] .head-nav { gap: 0; align-self: stretch; }
body[data-look="minimal"] .head-nav button { border-radius: 0; padding: 0 14px; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); box-shadow: inset 0 -3px 0 transparent; }
body[data-look="minimal"] .head-nav button:hover, body[data-look="minimal"] .head-nav button[aria-pressed="true"] { background: none; box-shadow: inset 0 -3px 0 var(--ink); }
body[data-look="minimal"] .head-contacts a { background: none; border-radius: 0; }
body[data-look="minimal"] .account-btn { border: 0; border-radius: 0; padding: 0 8px; background: none; font-weight: 700; }
body[data-look="minimal"] .cart-btn { border-radius: 0; background: none; color: var(--ink); }
body[data-look="minimal"] .cart-btn:hover { transform: none; }
body[data-look="minimal"] .cart-count { top: 2px; right: 0; border-radius: 0; border: 0; }
/* Баннер: фото без затемнения, текст — на белой плашке */
body[data-look="minimal"][data-hero="image"] .hero.has-image { color: var(--ink); }
body[data-look="minimal"][data-hero="image"] .hero.has-image .hero-media { background-image: var(--banner) !important; }
body[data-look="minimal"] .hero-inner { align-items: flex-end; }
body[data-look="minimal"][data-align="center"] .hero-inner { align-items: center; }
body[data-look="minimal"] .hero-text { background: var(--bg); color: var(--ink); padding: 30px 34px; gap: 14px; max-width: 560px; animation: none; }
body[data-look="minimal"][data-hero="split"] .hero-text, body[data-look="minimal"][data-hero="minimal"] .hero-text, body[data-look="minimal"] .hero:not(.has-image) .hero-text { background: none; padding: 0; }
body[data-look="minimal"] .hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -0.01em; }
body[data-look="minimal"] .hero p { opacity: 1; font-size: 16px; }
body[data-look="minimal"] .btn { padding: 15px 34px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
body[data-look="minimal"] .btn-main { background: var(--ink); box-shadow: none; }
body[data-look="minimal"] .btn-main:hover { transform: none; background: var(--accent); box-shadow: none; }
body[data-look="minimal"] .btn-glass { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); backdrop-filter: none; }
body[data-look="minimal"] .hero:not(.has-image) .hero-media { background: var(--surface) !important; }
body[data-look="minimal"][data-hero="split"] .hero-media { border-radius: 0; box-shadow: none; }
/* Преимущества: строка с тонкими линиями */
body[data-look="minimal"] .perks { gap: 0; margin-top: 0; border-bottom: 1px solid var(--line); }
body[data-look="minimal"] .perk { background: none; border-radius: 0; padding: 16px 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; justify-content: center; }
body[data-look="minimal"] .perk + .perk { border-left: 1px solid var(--line); }
body[data-look="minimal"] .perk i { width: auto; height: auto; background: none; color: var(--accent); font-size: 18px; }
/* Категории: квадратные фото с подписью прописными, без картинок — вкладки с подчёркиванием */
body[data-look="minimal"] .cats { gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; margin-bottom: 18px; }
body[data-look="minimal"] .cats button { border: 0; border-radius: 0; background: none; padding: 14px 18px; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; box-shadow: inset 0 -3px 0 transparent; }
body[data-look="minimal"] .cats button[aria-pressed="true"] { background: none; color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
body[data-look="minimal"] .cats.with-images { gap: 12px; border-bottom: 0; }
body[data-look="minimal"] .cats.with-images button { width: 170px; padding: 0 0 10px; text-align: left; }
body[data-look="minimal"] .cats.with-images .cat-pic { width: 170px; aspect-ratio: 3 / 4; border-radius: 0; }
body[data-look="minimal"] .cats.with-images button[aria-pressed="true"] .cat-pic { box-shadow: none; outline: 3px solid var(--ink); outline-offset: -3px; }
body[data-look="minimal"] .cats.with-images button[aria-pressed="true"] { color: var(--ink); }
/* Поиск и сортировка — прямые, с линией */
body[data-look="minimal"] .search-box .search { border-radius: 0; background: var(--bg); border-color: var(--ink); }
body[data-look="minimal"] .search-box .search:focus { box-shadow: none; border-width: 2px; }
body[data-look="minimal"] .sort { border-radius: 0; border-color: var(--ink); }
body[data-look="minimal"] .cat-title { font-size: clamp(20px, 2vw, 26px); border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 0; }
/* Карточки: фото на сером, название обычным шрифтом, цена крупно и жирно */
body[data-look="minimal"] .grid:not(.list) { gap: 36px 16px; }
body[data-look="minimal"] .card { gap: 10px; animation-duration: .35s; }
body[data-look="minimal"] .card .pic { border-radius: 0; box-shadow: none !important; background: var(--surface); }
body[data-look="minimal"] .card:hover .pic img { transform: none; opacity: .88; }
body[data-look="minimal"] .card .meta { order: -1; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
body[data-look="minimal"] .card .info { gap: 6px; padding: 0; }
body[data-look="minimal"] .card .name { font-weight: 400; font-size: 14px; }
body[data-look="minimal"] .card .price { font-family: var(--font); font-weight: 900; font-size: 20px; }
body[data-look="minimal"] .card .price.sale, body[data-look="minimal"] .pd-price .price.sale { color: var(--accent); }
body[data-look="minimal"] .badges { top: 0; left: 0; gap: 0; }
body[data-look="minimal"] .badge { border-radius: 0; padding: 6px 9px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
body[data-look="minimal"] .badge.sale { background: var(--accent); }
body[data-look="minimal"] .badge.new { background: var(--ink); color: var(--bg); box-shadow: none; }
body[data-look="minimal"] .quick { left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--bg); backdrop-filter: none; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 800; }
body[data-look="minimal"] .quick:hover { background: var(--accent); color: #fff; }
@media (hover: none) { body[data-look="minimal"] .quick { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); } }
/* Окно товара и корзина */
body[data-look="minimal"] dialog.sheet { border-radius: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
body[data-look="minimal"] dialog.side { border-radius: 0; }
body[data-look="minimal"] .close { border-radius: 0; background: none; }
body[data-look="minimal"] .close:hover { transform: none; }
body[data-look="minimal"] .pd-price .price { font-family: var(--font); font-weight: 900; }
body[data-look="minimal"] .opt-values button { border-radius: 0; min-width: 56px; }
body[data-look="minimal"] .primary { box-shadow: none; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
body[data-look="minimal"] .primary:hover:not(:disabled) { transform: none; filter: brightness(.92); }
body[data-look="minimal"] .pd-perks { border-radius: 0; background: none; border: 1px solid var(--line); }
body[data-look="minimal"] .out-tag { border-radius: 0; }
body[data-look="minimal"] .cart-thumb { border-radius: 0; }
/* Подвал — светлый */
body[data-look="minimal"] .site-foot { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
body[data-look="minimal"] .site-foot h2 { color: var(--ink); text-transform: uppercase; font-weight: 900; }
body[data-look="minimal"] .site-foot h3 { opacity: 1; color: var(--ink); font-weight: 900; }
body[data-look="minimal"] .site-foot p { opacity: .8; }
body[data-look="minimal"] .socials a { border-radius: 0; background: var(--ink); color: var(--bg); }
body[data-look="minimal"] .socials a:hover { background: var(--accent); transform: none; }
body[data-look="minimal"] .foot-bottom { border-top-color: var(--line); opacity: .75; }
body[data-look="minimal"] .wa-float { border-radius: 0; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
@media (max-width: 640px) {
  body[data-look="minimal"] .hero-text { padding: 20px 20px; max-width: none; width: 100%; }
  body[data-look="minimal"] .brand span { font-size: 12px; min-height: 38px; max-width: 150px; padding: 5px 9px; }
  body[data-look="minimal"] .cats.with-images button { width: 120px; }
  body[data-look="minimal"] .cats.with-images .cat-pic { width: 120px; }
  body[data-look="minimal"] .perks { grid-template-columns: 1fr 1fr; }
  body[data-look="minimal"] .perk:nth-child(3) { border-left: 0; }
  body[data-look="minimal"] .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  body[data-look="minimal"] .card .price { font-size: 17px; }
}

/* Таблица размеров в карточке товара */
.size-chart { border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); }
.size-chart summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.size-chart summary::-webkit-details-marker { display: none; }
.size-chart summary::after { content: '+'; font-size: 18px; line-height: 1; }
.size-chart[open] summary::after { content: '−'; }
.size-wrap { overflow-x: auto; padding: 0 14px 12px; }
.size-chart table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-chart th, .size-chart td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-chart thead th { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.size-chart tbody th { font-weight: 800; }
body[data-look="minimal"] .size-chart summary { text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
@media (max-width: 640px) {
  body[data-look="minimal"] .perk { padding: 12px 8px; font-size: 11px; gap: 8px; justify-content: flex-start; }
  body[data-look="minimal"] .perk i { font-size: 15px; }
}
.pd-pic { overflow: hidden; }

/* Кружки расцветок */
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -2px; }
.sw { width: 26px; height: 26px; padding: 2px; border-radius: 50%; border: 1.5px solid transparent; background: none; cursor: pointer; transition: border-color .15s, transform .15s; flex: none; }
.sw i { display: block; width: 100%; height: 100%; border-radius: 50%; background-size: cover !important; background-position: center !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"] { border-color: var(--ink); }
.sw.na i { opacity: .45; }
.sw.na { position: relative; }
.sw.na::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; background: var(--ink-soft); transform: rotate(-45deg); }
.sw-more { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
/* В окне товара кружки крупнее; выбранный цвет подписан в названии свойства */
.opt-values .sw.big { width: 40px; height: 40px; min-width: 0; padding: 3px; border-radius: 50% !important; border: 2px solid transparent; background: none !important; box-shadow: none !important; }
.opt-values .sw.big[aria-pressed="true"] { border-color: var(--ink); background: none !important; }
.opt-values .sw.big:hover { border-color: var(--ink-soft); }
@media (hover: none) { .sw { width: 30px; height: 30px; } }
@media (max-width: 640px) { .swatches { gap: 4px; } .grid.compact .sw, .sw { width: 24px; height: 24px; } }
.grid.list .swatches { margin-top: 2px; }

/* Галерея в окне товара: лента фото (листается пальцем), миниатюры, стрелки, точки на телефоне */
.pd-gal { display: block; min-height: min(680px, calc(100dvh - 24px)); }
.pd-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-track img { flex: 0 0 100%; width: 100%; height: 100%; max-height: none; object-fit: contain; scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; user-select: none; }
.pd-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--bg) 90%, transparent); color: var(--ink); font-size: 28px; line-height: 1; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); cursor: pointer; opacity: 0; transition: opacity .2s; }
.pd-arrow.prev { left: 14px; } .pd-arrow.next { right: 14px; }
.pd-gal:hover .pd-arrow { opacity: 1; }
.pd-thumbs { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; max-width: calc(100% - 28px); overflow-x: auto; padding: 4px; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs button { flex: none; width: 48px; padding: 0; border: 2px solid transparent; background: var(--bg); cursor: pointer; border-radius: calc(var(--radius) * .4); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.pd-thumbs button[aria-selected="true"] { border-color: var(--ink); }
.pd-thumbs img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pd-dots { display: none; position: absolute; z-index: 2; left: 0; right: 0; bottom: 12px; justify-content: center; gap: 6px; pointer-events: none; }
.pd-dots i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 25%, transparent); transition: background .2s, transform .2s; }
.pd-dots i.on { background: var(--ink); transform: scale(1.15); }
body[data-look="minimal"] .pd-arrow, body[data-look="minimal"] .pd-thumbs button { border-radius: 0; }
@media (hover: none) { .pd-arrow { display: none; } }
@media (max-width: 860px) {
  .pd-gal { min-height: 0; }
  .pd-thumbs { display: none; }
  .pd-dots { display: flex; }
}
/* Увеличенное фото на весь экран */
dialog.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
dialog.zoom::backdrop { background: var(--bg); }
.zoom-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.zoom-track::-webkit-scrollbar { display: none; }
.zoom-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: start; scroll-snap-stop: always; overflow: auto; }
.zoom-slide img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; touch-action: pan-x pan-y pinch-zoom; }
.zoom-close { position: fixed; top: 14px; right: 14px; z-index: 3; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 28px; cursor: pointer; }
dialog.zoom .pd-arrow { position: fixed; opacity: 1; }
dialog.zoom.single .pd-arrow { display: none; }
.zoom-count { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font-size: 13px; font-weight: 700; color: var(--ink-soft); }
body[data-look="minimal"] .zoom-close { border-radius: 0; background: none; }

/* Окно товара на телефоне: фото не выше половины экрана, кнопка «В корзину» не закреплена поверх цветов и размеров,
   а стоит сразу после выбора цвета, размера и таблицы размеров; описание и преимущества — ниже. */
@media (max-width: 640px) {
  .pd-pic { max-height: 50vh; max-height: 50svh; }
  .pd-info .product-desc, .pd-info > p.small, .pd-info .pd-perks { order: 2; }
  .pd-buy { order: 1; position: static; margin-top: 4px; padding: 6px 0 0; background: none; }
}

/* Окно товара на телефоне и планшете — обычная колонка (не сетка): в Safari на iPhone строка сетки с фото
   сжималась, и фото наезжало на название, цену и цвета. Блок фото — во всю ширину, высота задана явно. */
@media (max-width: 860px) {
  .pd { display: block; }
  .pd-pic { width: 100%; aspect-ratio: auto; height: min(calc(100vw / (var(--ratio))), 62dvh); max-height: none; }
  .pd-info { position: relative; z-index: 1; background: var(--bg); }
}
@media (max-width: 640px) {
  .pd-pic { height: min(calc(100vw / (var(--ratio))), 50vh); height: min(calc(100vw / (var(--ratio))), 50svh); }
}
