:root {
  --bg: #ffffff;
  --surface: #f5f4f1;
  --surface-2: #ecebe7;
  --text: #151515;
  --muted: #6f6c66;
  --line: #e4e2dd;
  --accent: #ff5a1f;
  --accent-dark: #e44a12;
  --ok: #1a7f37;
  --err: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 20, 20, .08);
  --container: 1240px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 17px; }
.error { color: var(--err); display: block; }
.main { flex: 1; padding-bottom: 64px; }
.link { font-weight: 600; color: var(--accent); }
.link:hover { text-decoration: underline; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn--primary { background: var(--text); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--primary:disabled { background: #bdbab4; cursor: not-allowed; }
.btn--ghost { border-color: var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn .icon { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; color: var(--accent); }
.link-btn:hover { text-decoration: underline; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; cursor: pointer; }
.icon-btn:hover { background: var(--surface); }
.round-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: .15s; }
.round-btn .icon { width: 18px; height: 18px; }
.round-btn:hover { color: var(--accent); }
.round-btn.is-on { color: #fff; background: var(--accent); }
.round-btn.is-on .icon { fill: currentColor; }
.round-btn--lg { width: 52px; height: 52px; border: 1.5px solid var(--line); box-shadow: none; }
.round-btn--lg .icon { width: 22px; height: 22px; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--text); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.badge--accent { background: var(--accent); }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; }
.chip:hover { background: var(--surface-2); }

/* --- шапка --- */
.topbar { background: var(--text); color: #e9e7e2; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__links { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.topbar__links a:hover, .topbar__phone:hover { color: #fff; }
.topbar__contact { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.topbar__contact .muted { color: #a9a59d; }
.topbar__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.topbar__phone .icon { width: 16px; height: 16px; }
.topbar .link-btn { color: var(--accent); }

.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.logo img { height: 38px; width: auto; }
.search { flex: 1; display: flex; max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: 999px; border: 1.5px solid transparent; transition: .15s; }
.search:focus-within { border-color: var(--text); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 11px 18px; outline: none; }
.search button { border: 0; background: none; padding: 0 16px; cursor: pointer; display: grid; place-items: center; }
.header__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu-toggle { display: none; }

.mainnav { border-top: 1px solid var(--line); }
.mainnav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mainnav__inner > a { padding: 13px 14px; font-weight: 700; white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav__inner > a:hover, .mainnav__inner > a.is-active { border-bottom-color: var(--accent); }
.mainnav__extra { display: none; }
.mainnav__inner > a.is-highlight { color: var(--accent); }
.mainnav__inner > a.is-highlight::before { content: "★ "; font-size: .85em; }

/* --- сповіщення --- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 100; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--text); color: #fff; box-shadow: var(--shadow); font-weight: 600; animation: toast-in .25s ease; }
.toast a { text-decoration: underline; color: #ffd2c0; }
.toast--success { background: #12331f; }
.toast--error { background: var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* --- головна --- */
.hero { background: var(--surface); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.03em; }
.hero p { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero__actions.center { justify-content: center; }
.hero__img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero__collage img { border-radius: var(--radius); background: #fff; aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero__collage img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }

.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 28px; }
.perk { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.perk .icon { width: 30px; height: 30px; color: var(--accent); }
.perk strong { display: block; }
.perk span { color: var(--muted); font-size: 14px; }

.section { margin-top: 48px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section__title { font-size: 28px; font-weight: 800; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 130px; padding: 18px; border-radius: var(--radius); background: var(--surface); transition: .15s; }
.cat:hover { background: var(--text); color: #fff; }
.cat__name { font-weight: 800; font-size: 19px; position: relative; z-index: 1; }
.cat__count { font-size: 13px; opacity: .7; position: relative; z-index: 1; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }

/* --- сітка товарів --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.card { position: relative; display: flex; flex-direction: column; }
.card__img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__noimg { display: grid; place-items: center; height: 100%; min-height: 200px; color: var(--muted); font-size: 14px; background: var(--surface); border-radius: var(--radius); }
.card--out .card__img img { opacity: .55; }
.tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; }
.card__tools { position: absolute; top: 10px; right: 10px; display: grid; gap: 8px; }
.card__body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.card__brand { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card__name { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__name:hover { color: var(--accent); }
.card__price { font-weight: 800; font-size: 17px; margin-top: 2px; }
.price-old { margin-right: 4px; color: var(--muted); font-size: .8em; font-weight: 600; text-decoration: line-through; }
.price-sale { color: var(--sale-price, #e53935); }
.sale-badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 11px; border-radius: 999px; background: var(--sale-badge-bg, #e53935); color: var(--sale-badge-color, #fff); font-size: 13px; font-weight: 800; letter-spacing: .02em; pointer-events: none; }
.gallery__main .sale-badge { left: 16px; top: 16px; padding: 6px 14px; font-size: 15px; }
.card__sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.card__sizes span { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--surface); color: var(--muted); font-weight: 600; }
.grid--scroll { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.grid--scroll .card { scroll-snap-align: start; }

/* --- каталог --- */
.crumbs { padding: 18px 0 6px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.page-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.page-title .count { font-size: .55em; font-weight: 600; }
/* кількість товарів — поруч із заголовком, але не в H1 */
.page-title-row { display: flex; align-items: baseline; gap: 10px; }
.page-title-row .count { font-size: calc(clamp(26px, 3vw, 36px) * .55); font-weight: 600; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.catalog-head__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 100%; }
.sort { min-width: 0; max-width: 100%; }
.sort select { max-width: 100%; }
.sort select, .qty select { padding: 9px 36px 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff 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' stroke='%23151515' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; cursor: pointer; font-weight: 600; }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 32px; margin-top: 18px; align-items: start; }
.catalog--nofilters { grid-template-columns: 1fr; }
.filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; padding-right: 6px; }
.filters__head { display: none; }
.filter { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0; }
.filter:first-of-type { border-top: 0; padding-top: 0; }
.filter legend { font-weight: 800; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.filter legend + * { clear: both; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14px; clear: both; }
.check input { width: 18px; height: 18px; accent-color: var(--text); margin: 0; }
.check span { flex: 1; }
.check em { font-style: normal; color: var(--muted); font-size: 12px; }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; clear: both; }
.size-chip input { position: absolute; opacity: 0; pointer-events: none; }
.size-chip span { display: block; text-align: center; padding: 7px 0; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.size-chip input:checked + span { background: var(--text); color: #fff; border-color: var(--text); }
.size-chip input:focus-visible + span { outline: 2px solid var(--accent); }
.price-range { display: flex; align-items: center; gap: 8px; clear: both; }
.price-range input { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; }
.filters__actions { display: grid; gap: 8px; padding-top: 14px; }
.filters-toggle { display: none; }
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; padding: 9px 12px; text-align: center; border-radius: 999px; font-weight: 700; }
.pagination a:hover { background: var(--surface); }
.pagination .is-current { background: var(--text); color: #fff; }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border-radius: var(--radius); }
.empty p { font-size: 17px; margin-top: 0; }

/* --- товар --- */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; margin-top: 10px; align-items: start; }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--surface); }
.gallery__thumbs button.is-active { border-color: var(--text); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { position: sticky; top: 140px; }
.product__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.product__price { font-size: 30px; font-weight: 800; margin: 18px 0 22px; }
.buy__label { font-weight: 800; margin-bottom: 10px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: block; padding: 12px 0; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: .12s; }
.size span:hover { border-color: var(--text); }
.size input:checked + span { background: var(--text); color: #fff; border-color: var(--text); }
.size input:focus-visible + span { outline: 2px solid var(--accent); }
.size small { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-top: 3px; }
.size--off span { color: #b9b5ad; background: repeating-linear-gradient(135deg, transparent 0 6px, #f1efeb 6px 7px); cursor: not-allowed; text-decoration: line-through; }
.size--off span:hover { border-color: var(--line); }
.buy__actions { display: flex; gap: 10px; margin-top: 20px; }
.buy__actions .btn { flex: 1; }
.buy__hint { color: var(--err); }
.notice { margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; }
.notice--error { background: #fde8e6; color: var(--err); margin: 0 0 18px; }
.accordion { margin-top: 30px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 16px 0; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; line-height: 1; }
.accordion details[open] summary::after { content: "−"; }
.accordion .prose { padding-bottom: 16px; }

.prose { font-size: 16px; }
.prose h2 { font-size: 22px; margin-top: 1.4em; }
.prose h3 { font-size: 18px; margin-top: 1.2em; }
.prose p, .prose ul, .prose ol { margin: 0 0 .9em; }
.prose a { color: var(--accent); text-decoration: underline; }
.seo-text { max-width: 820px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text); }
.seo-text h2:first-child { margin-top: 0; }
.prose a[href^="tel:"] { white-space: nowrap; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.contact-card { margin-top: 24px; padding: 22px; border-radius: var(--radius); background: var(--surface); }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }

/* --- кошик / оформлення --- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; margin-top: 10px; }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.line__img { width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); display: block; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-weight: 700; }
.line__total { font-weight: 800; white-space: nowrap; }
.line--off { opacity: .7; }
.summary { position: sticky; top: 140px; padding: 24px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; }
.summary h3 { margin: 0; }
.summary__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.summary__row strong { font-size: 22px; }
.summary__item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary__item strong { white-space: nowrap; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { margin-top: 8px; }
.panel h3:not(:first-child) { margin-top: 26px; }
.panel--soft { background: var(--surface); border-color: transparent; }

/* --- форми --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field__label, .field > span { font-weight: 700; font-size: 14px; }
.req { color: var(--accent); }
.field input:not([type=radio]):not([type=checkbox]), .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; outline: none; transition: .15s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--text); }
.field--error input, .field--error textarea { border-color: var(--err); }
.radios { display: grid; gap: 8px; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--text); background: var(--surface); }
.radio input { margin-top: 3px; accent-color: var(--text); width: 18px; height: 18px; }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin-top: 32px; }
.auth--single { grid-template-columns: 1fr; max-width: 480px; }
.narrow-form { max-width: 480px; }

/* --- кабінет --- */
.tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0 22px; }
.tabs a { padding: 9px 16px; border-radius: 999px; font-weight: 700; background: var(--surface); }
.tabs a.is-active { background: var(--text); color: #fff; }
.tabs form { margin-left: auto; }
.account { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table a { font-weight: 700; color: var(--accent); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface); vertical-align: middle; }
.status--new { background: #fff1e9; color: var(--accent-dark); }
.status--confirmed, .status--shipped { background: #e8f0fe; color: #1d4ed8; }
.status--done { background: #e6f4ea; color: var(--ok); }
.status--cancelled { background: #f3f3f3; color: var(--muted); }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.order-done .panel { margin-top: 24px; }
.order-done h2 { margin: 0 0 14px; font-size: 20px; }
.order-done .dl { grid-template-columns: 150px 1fr; margin: 18px 0; }
.steps { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.line--summary { grid-template-columns: 64px 1fr auto; }
.line--summary .line__img { width: 64px; height: 64px; }
.success-mark { width: 72px; height: 72px; margin: 48px auto 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 36px; display: grid; place-items: center; }

/* --- порівняння --- */
.compare { border-collapse: collapse; min-width: 100%; }
.compare th { text-align: left; padding: 14px 18px 14px 0; color: var(--muted); font-weight: 600; white-space: nowrap; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare td { padding: 14px 18px; min-width: 200px; max-width: 260px; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare__img { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); margin-bottom: 10px; }
.compare__img img { width: 100%; height: 100%; object-fit: cover; }

/* --- модальне вікно --- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 15, 15, .5); }
.modal__box { position: relative; width: 100%; max-width: 420px; padding: 32px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 10px; right: 10px; }

/* --- таблиця розмірів, капча, чат, cookie --- */
.buy__label .link-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 13px; vertical-align: middle; }
.buy__label .link-btn .icon { width: 16px; height: 16px; }
.modal__box--wide { max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; }
.size-table { width: 100%; border-collapse: collapse; margin: 14px 0 10px; font-size: 15px; }
.size-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 12px 8px; border-bottom: 1px solid var(--line); }
.size-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.size-table tr.is-available td:first-child { font-weight: 700; }
.size-table tr.is-available td:first-child::before, .size-table__dot { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--ok); vertical-align: middle; }
.size-table td:first-child { padding-left: 27px; }
.size-table tr.is-available td:first-child { padding-left: 12px; }
.recaptcha { margin: 6px 0 16px; min-height: 78px; }
.summary__note { margin: 10px 0 0; }
.checkout-login { margin: -6px 0 20px; }
.delivery-single { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); }
.pay-options { display: grid; gap: 8px; margin-bottom: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--text); background: var(--surface); }
.pay-option input { margin-top: 3px; accent-color: var(--text); width: 18px; height: 18px; flex: none; }
.pay-option__body { display: grid; gap: 2px; }
.pay-option__body span { color: var(--muted); font-size: 14px; }
.comment-toggle { margin-top: 18px; }
.comment-toggle summary { cursor: pointer; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.added { display: grid; gap: 10px; }
.added h3 { margin: 0; }
.added__item { display: flex; gap: 14px; align-items: center; margin: 4px 0 8px; }
.added__item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface); flex: none; }
.added__item div { display: grid; gap: 4px; }
.added__cart { justify-self: center; }
.legal-consent { margin: 0 0 14px; }
.chat-fabs { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 12px; }
.chat-fab { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #229ed9; color: #fff; box-shadow: 0 8px 24px rgba(34, 158, 217, .35); transition: transform .15s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .icon { width: 26px; height: 26px; stroke-width: 1.8; margin-left: -2px; }
.chat-fab--whatsapp { background: #25d366; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); }
.chat-fab--whatsapp .icon { width: 28px; height: 28px; margin-left: 0; }
.has-cookie-banner .chat-fabs { display: none; }
/* пастка для ботів у «Передзвоніть мені»: людина поля не бачить */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 70; max-width: 460px; padding: 16px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line); font-size: 14px; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner__actions { display: flex; gap: 8px; justify-content: flex-end; }

/* --- бренди --- */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.brand-chip { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: .15s; }
.brand-chip:hover { border-color: var(--text); }
.brand-chip span { color: var(--muted); font-size: 13px; }
a.card__brand:hover { color: var(--accent); }

/* --- підвал --- */
.footer { background: var(--text); color: #d9d6cf; padding: 48px 0 24px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__grid a { display: block; padding: 3px 0; }
.footer__grid a:hover { color: #fff; }
.footer .muted { color: #9f9b93; }
.logo--footer { color: #fff; margin-bottom: 12px; }
.logo--footer img { height: 30px; filter: brightness(0) invert(1); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid #2c2c2c; }
.contacts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.socials a { font-weight: 700; color: var(--accent); display: inline; }
.contact-card .socials a { color: var(--accent); }
.contact-card .seller { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); grid-template-columns: 110px 1fr; font-size: 14px; }

/* --- пошук: підказки та виділення --- */
.search { position: relative; }
mark { background: #ffe1d3; color: inherit; border-radius: 3px; padding: 0 1px; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; border-radius: var(--radius); background: #fff; box-shadow: 0 18px 50px rgba(20,20,20,.18); border: 1px solid var(--line); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); outline: none; }
.suggest a:hover, .suggest a:focus { background: var(--surface); }
.suggest__brand { background: #fff3ec; border: 1.5px solid #ffd2bd; margin-bottom: 6px; }
.suggest__brand span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); }
.suggest__brand strong { font-size: 17px; font-weight: 800; flex: 1; }
.suggest__brand em { font-style: normal; font-size: 13px; color: var(--muted); }
.suggest__brand:hover, .suggest__brand:focus { background: #ffe8dc !important; }
.suggest__brand--cat { background: var(--surface); border-color: var(--line); }
.suggest__brand--cat span { color: var(--muted); }
.suggest__item img, .suggest__noimg { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface); flex: none; }
.suggest__text { flex: 1; min-width: 0; display: grid; }
.suggest__text small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.suggest__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.suggest__note { padding: 6px 10px; font-size: 13px; color: var(--muted); }
.suggest__empty { padding: 14px 10px; color: var(--muted); }
.suggest__all { justify-content: center; font-weight: 700; color: var(--accent); margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important; }
.search-note { margin: 4px 0 0; color: var(--muted); }
.brand-hits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.brand-hit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 20px; border-radius: var(--radius); background: #fff3ec; border: 1.5px solid #ffd2bd; transition: .15s; }
.brand-hit:hover { border-color: var(--accent); }
.brand-hit__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); }
.brand-hit__name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.brand-hit__count { white-space: nowrap; font-size: 14px; color: var(--muted); font-weight: 600; }
.brand-hit--cat { background: var(--surface); border-color: var(--line); }
.brand-hit--cat .brand-hit__label { color: var(--muted); }
.card__brand.is-match { color: #fff; background: var(--accent); display: inline-block; justify-self: start; align-self: flex-start; padding: 1px 8px; border-radius: 6px; }

/* --- адаптив --- */
@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(340px, 90vw); max-height: none; top: 0; background: #fff; padding: 20px; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .25s; }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .filters__actions { position: sticky; bottom: -20px; background: #fff; padding-bottom: 20px; }
  .product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product__info, .summary { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .hide-sm, .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { flex-wrap: wrap; gap: 8px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .menu-toggle { display: inline-grid; }
  .logo { font-size: 18px; }
  .logo img { height: 24px; }
  .header__actions .icon-btn { width: 38px; height: 38px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .brand-hit__name { font-size: 19px; }
  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav__inner { flex-direction: column; gap: 0; padding-bottom: 10px; }
  .mainnav__inner > a { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .mainnav__extra { display: flex; flex-direction: column; padding-top: 6px; }
  .mainnav__extra a { padding: 8px 0; color: var(--muted); font-weight: 600; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; gap: 24px; }
  .hero__collage { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .grid--scroll { grid-template-columns: none; grid-auto-columns: 46%; }
  .card__price { font-size: 16px; }
  .round-btn { width: 32px; height: 32px; }
  .form-grid, .auth { grid-template-columns: 1fr; }
  .line { grid-template-columns: 64px 1fr auto; gap: 10px 12px; }
  .line__img { width: 64px; height: 64px; grid-row: span 2; }
  .line .qty { grid-column: 2; }
  .line__total { grid-column: 3; grid-row: 1; }
  .line > form:last-child { grid-column: 3; grid-row: 2; justify-self: end; }
  .panel { padding: 20px; }
  .order-done .dl { grid-template-columns: 1fr; gap: 2px; }
  .order-done .dl dd { margin-bottom: 10px; }
  .line--summary .line__img { grid-row: auto; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .chat-fabs { right: 10px; bottom: 12px; gap: 8px; }
  .chat-fab { width: 44px; height: 44px; }
  .chat-fab .icon { width: 22px; height: 22px; }
  .chat-fab--whatsapp .icon { width: 24px; height: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .perks { grid-template-columns: 1fr; }
  .section__title { font-size: 23px; }
  .product__price { font-size: 26px; }
}

/* Usability update */
[hidden] { display:none !important; }
.active-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:20px; }
.filter-tag { display:inline-flex; gap:12px; align-items:center; padding:9px 14px; background:#f3f1ee; border-radius:24px; font-size:13px; }
.filter-tag:hover { background:#ffe6dc; }
.brand-search { width:100%; padding:10px 12px; margin:0 0 12px; border:1px solid var(--line); border-radius:8px; }
.product-facts { display:flex; gap:8px; margin:12px 0; font-size:13px; color:var(--muted); }
.product-facts span { padding:5px 10px; background:var(--surface); border-radius:8px; }
.fit-note { line-height:1.6; }
.gallery__zoom { display:block; width:100%; border:0; padding:0; position:relative; background:transparent; cursor:zoom-in; }
.gallery__zoom span { position:absolute; right:12px; bottom:12px; padding:7px 12px; border-radius:20px; background:rgba(255,255,255,.9); font-size:12px; }
/* Повноекранний перегляд фото: назва й лічильник угорі, фото по центру, стрілки з боків, мініатюри внизу */
html:has(.photo-viewer[open]) { overflow:hidden; }
.photo-viewer { position:fixed; inset:0; width:100%; height:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; border-radius:0; background:var(--bg); color:var(--text); overflow:hidden; }
.photo-viewer[open] { display:flex; flex-direction:column; }
.photo-viewer::backdrop { background:rgba(0,0,0,.6); }
.photo-viewer__bar { flex:none; display:flex; align-items:center; gap:16px; padding:10px 16px 10px 28px; border-bottom:1px solid var(--line); }
.photo-viewer__title { flex:1; min-width:0; margin:0; font-size:18px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.photo-viewer__count { flex:none; color:var(--muted); font-size:14px; font-variant-numeric:tabular-nums; }
.photo-viewer__close { flex:none; width:48px; height:48px; display:grid; place-items:center; padding:0; border:0; border-radius:50%; background:transparent; cursor:pointer; }
.photo-viewer__close:hover { background:var(--surface); }
.photo-viewer__close .icon { width:28px; height:28px; }
.photo-viewer__stage { position:relative; flex:1; min-height:0; touch-action:pan-y pinch-zoom; }
.photo-viewer__stage img { position:absolute; inset:20px 96px; margin:auto; width:auto; height:auto; max-width:calc(100% - 192px); max-height:calc(100% - 40px); object-fit:contain; user-select:none; -webkit-user-select:none; -webkit-user-drag:none; transition:opacity .15s; }
.photo-viewer__stage img.is-loading { opacity:.35; }
.photo-viewer__nav { position:absolute; top:50%; z-index:1; transform:translateY(-50%); width:64px; height:112px; display:grid; place-items:center; padding:0; border:0; border-radius:var(--radius-sm); background:transparent; color:var(--text); cursor:pointer; transition:background .15s; }
.photo-viewer__nav:hover { background:var(--surface); }
.photo-viewer__nav--prev { left:16px; }
.photo-viewer__nav--next { right:16px; }
.photo-viewer__nav svg { width:40px; height:40px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.photo-viewer__thumbs { position:relative; flex:none; display:flex; gap:10px; overflow-x:auto; padding:12px 20px 14px; border-top:1px solid var(--line); scrollbar-width:thin; }
.photo-viewer__thumbs button { flex:none; width:84px; height:84px; padding:0; border:2px solid transparent; border-radius:var(--radius-sm); overflow:hidden; background:var(--surface); cursor:pointer; opacity:.5; transition:opacity .15s, border-color .15s; }
.photo-viewer__thumbs button:first-child { margin-left:auto; }
.photo-viewer__thumbs button:last-child { margin-right:auto; }
.photo-viewer__thumbs button:hover, .photo-viewer__thumbs button.is-active { opacity:1; }
.photo-viewer__thumbs button.is-active { border-color:var(--text); }
.photo-viewer__thumbs img { width:100%; height:100%; object-fit:cover; }
.account-offer { text-align:left; margin:24px 0; }
.account-offer summary { cursor:pointer; font-weight:800; }
.account-offer .link { display:block; margin-top:15px; }
@media(max-width:760px) {
  .photo-viewer__bar { gap:10px; padding:6px 6px 6px 16px; }
  .photo-viewer__title { font-size:15px; }
  .photo-viewer__stage img { inset:8px; max-width:calc(100% - 16px); max-height:calc(100% - 16px); }
  .photo-viewer__nav { width:40px; height:64px; background:rgba(255,255,255,.75); }
  .photo-viewer__nav--prev { left:6px; }
  .photo-viewer__nav--next { right:6px; }
  .photo-viewer__nav svg { width:28px; height:28px; }
  .photo-viewer__thumbs { gap:8px; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .photo-viewer__thumbs button { width:60px; height:60px; }
}
