/* =====================================================================================================
   ATELIER — дизайн-система теми DEBORAH SHOP (2026-11-12)
   Строгий fashion-стиль: білий простір, чорна типографіка, прямі кути, тонкі лінії, м'ятний акцент.
   «Родзинка» 2026: скляна шапка, що стискається, 3D-нахил карток, глибина банерів, магнітні кнопки, плавні появи.
   Кольори / шрифти / розміри приходять з адмінки («🎨 Зовнішній вигляд» → тема Atelier) через CSS-змінні,
   які base.html пише в <style id="at-settings"> (:root{--at-…}). Тут — лише запасні значення.
   Сітка 8px. Анімації — тільки transform/opacity; prefers-reduced-motion їх вимикає.
   Файли сторінок: atelier-home.css, atelier-catalog.css, atelier-product.css, atelier-pages.css (окремо).
   ===================================================================================================== */

/* Запасний шрифт із метриками Montserrat (Arial, збільшений до ширини Montserrat): поки шрифт з Google Fonts вантажиться,
   рядки мають ту саму ширину й висоту → після підміни нічого не переноситься і не зсувається (CLS ≈ 0).
   Звичайна вага і жирна — окремо (у Arial немає 500/600). base.html додає його лише коли обрано Montserrat. */
@font-face { font-family: 'at-mont-fb'; src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Helvetica'), local('Roboto'); font-weight: 100 549; size-adjust: 114%; ascent-override: 84.9%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: 'at-mont-fb'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Neue Bold'), local('Helvetica Bold'), local('Roboto Bold'); font-weight: 550 900; size-adjust: 110%; ascent-override: 88%; descent-override: 22.8%; line-gap-override: 0%; }

:root {
  /* — з адмінки (base.html перевизначає) — */
  --at-font-brand: 'Montserrat', 'at-mont-fb', system-ui, sans-serif;
  --at-font-head: 'Montserrat', 'at-mont-fb', system-ui, sans-serif;
  --at-font-body: 'Montserrat', 'at-mont-fb', system-ui, sans-serif;
  --at-font-menu: 'Montserrat', 'at-mont-fb', system-ui, sans-serif;
  --at-font-footer: 'Montserrat', 'at-mont-fb', system-ui, sans-serif;
  --at-size-brand: 28px;
  --at-size-head: 20px;
  --at-size-body: 14px;
  --at-size-menu: 15px;
  --at-size-footer: 14px;
  --at-color-brand: #000000;
  --at-color-head: #222222;
  --at-color-text: #222222;
  --at-color-menu: #333333;
  --at-bg: #ffffff;
  --at-header-bg: #ffffff;
  --at-footer-bg: #ffffff;
  --at-footer-text: #333333;
  --at-promo-bg: #aaeed0;
  --at-promo-text: #222222;
  --at-ticker-bg: #f0f0f0;
  --at-btn-bg: #000000;
  --at-btn-text: #ffffff;
  --at-btn2-bg: #ffffff;
  --at-btn2-text: #222222;
  --at-menu-btn-bg: transparent;
  --at-menu-btn-text: #333333;

  /* — постійні токени теми — */
  --at-muted: #656566;
  --at-muted-2: #7e7e80;
  --at-line: #e4e4e5;
  --at-line-strong: #b1b1b2;
  --at-field: #f0f0f0;
  --at-surface: #f7f7f8;
  --at-sale: #d81414;      /* 5.2:1 на білому, 4.9:1 на сірому тлі */
  --at-special: #cf3a3a;   /* «особлива пропозиція» в меню: 4.9:1 на білому */
  --at-success: #17734a;   /* 5.8:1 на білому */
  --at-focus: #222222;
  --at-radius: 0px;
  --at-gutter: 16px;
  --at-max: 1600px;
  --at-row1: 56px;
  --at-row2: 56px;
  --at-header-h: 112px;
  --at-ease: cubic-bezier(.22, .61, .36, 1);
  --at-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --at-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .06);
  --at-shadow-3d: 0 18px 40px -18px rgba(0, 0, 0, .35);
  --at-z-header: 900;
  --at-z-chat: 950;
  --at-z-drawer: 1000;
  --at-z-toast: 1100;
}
@media (min-width: 768px) { :root { --at-gutter: 24px; } }
@media (min-width: 1024px) { :root { --at-row1: 64px; --at-row2: 48px; } }
@media (min-width: 1280px) { :root { --at-gutter: 40px; } }

/* ── база ─────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 128px; }
body.at {
  margin: 0; background-color: var(--at-bg); color: var(--at-color-text);
  font-family: var(--at-font-body); font-size: var(--at-size-body); font-weight: 500; line-height: 1.5;
  letter-spacing: .15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent;
}
body.at main { flex: 1 0 auto; }
.at-main:focus { outline: none; }
.at [hidden] { display: none !important; }
/* скидання — з нульовою вагою (:where), щоб класи компонентів завжди перемагали */
:where(.at) img, :where(.at) video { max-width: 100%; display: block; }
:where(.at) a { color: inherit; text-decoration: none; }
:where(.at) button { font: inherit; color: inherit; }
.at h1, .at h2, .at h3, .at h4 { font-family: var(--at-font-head); color: var(--at-color-head); margin: 0; font-weight: 600; line-height: 1.2; }
.at h1 { font-size: clamp(24px, 3.2vw, 40px); }
.at h2 { font-size: clamp(20px, 2.2vw, 28px); }
.at h3 { font-size: var(--at-size-head); }
.at p { margin: 0 0 12px; }
.at ::selection { background: var(--at-promo-bg); color: #000; }
.at :focus-visible { outline: 2px solid var(--at-focus); outline-offset: 2px; }
.at-ico { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.at-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.at-skip { position: fixed; left: 16px; top: -80px; z-index: 1200; padding: 12px 16px; background: #000; color: #fff !important; font-weight: 600; transition: top .2s; }
.at-skip:focus { top: 16px; }
.at-container { width: 100%; max-width: var(--at-max); margin: 0 auto; padding-left: var(--at-gutter); padding-right: var(--at-gutter); }
.at-section { padding: 48px 0; }
@media (min-width: 1024px) { .at-section { padding: 72px 0; } }
.at-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.at-section__head--center { justify-content: center; text-align: center; }
.at .at-section__title { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }
.at-muted { color: var(--at-muted); }
.at-small { font-size: 12px; }
.at-upper { text-transform: uppercase; letter-spacing: .08em; }
.at-divider { height: 1px; background: var(--at-line); border: 0; margin: 24px 0; }
.at-body-bgmedia { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.at-body-bgmedia__v { width: 100%; height: 100%; object-fit: cover; }

/* ── кнопки ───────────────────────────────────────────────────────────────────────────────────── */
.at-btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 32px;
  border: 1px solid var(--at-btn-bg); background: var(--at-btn-bg); color: var(--at-btn-text) !important;
  font-family: var(--at-font-body); font-size: 15px; font-weight: 600; letter-spacing: .02em; line-height: 1.2;
  border-radius: var(--at-radius); cursor: pointer; text-align: center; white-space: nowrap; user-select: none;
  position: relative; overflow: hidden; isolation: isolate; text-decoration: none !important;
  transform: translate3d(var(--mx), var(--my), 0); transition: transform .35s var(--at-ease), background-color .25s, color .25s, border-color .25s, opacity .2s;
}
.at-btn .at-ico { width: 20px; height: 20px; }
.at-btn::after { /* світловий відблиск при наведенні */
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--at-ease); pointer-events: none;
}
.at-btn:hover::after { transform: translateX(120%); }
.at-btn:hover { opacity: .92; }
.at-btn:active { transform: translate3d(var(--mx), var(--my), 0) scale(.98); }
.at-btn[disabled], .at-btn.is-disabled { opacity: .4; pointer-events: none; }
.at-btn--block { width: 100%; white-space: normal; } /* на всю ширину — довгий напис переноситься, а не обрізається */
.at-btn--sm { min-height: 40px; padding: 8px 20px; font-size: 14px; }
.at-btn--light, .at-btn--outline { background: var(--at-btn2-bg); color: var(--at-btn2-text) !important; border-color: var(--at-btn2-text); }
.at-btn--light:hover, .at-btn--outline:hover { background: var(--at-btn2-text); color: var(--at-btn2-bg) !important; opacity: 1; }
.at-btn--accent { background: var(--at-promo-bg); color: var(--at-promo-text) !important; border-color: var(--at-promo-bg); }
.at-btn--white { background: #fff; color: #222 !important; border-color: #fff; }
.at-btn--white:hover { opacity: 1; background: #f2f2f2; border-color: #f2f2f2; }
.at-btn--dark { background: #111; color: #fff !important; border-color: #111; }
.at-btn--outline-on { background: transparent; color: var(--banner-color, currentColor) !important; border-color: var(--banner-color, currentColor); }
.at-btn--outline-on:hover { opacity: 1; background: color-mix(in srgb, var(--banner-color, #fff) 16%, transparent); }
.at-btn--ghost { background: transparent; color: inherit !important; border-color: transparent; padding-left: 0; padding-right: 0; min-height: auto; }
.at-btn--icon { width: 48px; padding: 0; }
.at-btn.is-loading { pointer-events: none; opacity: .7; }
/* вигляд кнопок з адмінки (catalog_btn_style / other_btn_style) */
.at-btn-oval .at-btn:not(.at-btn--light):not(.at-btn--outline), .at-btn-pill .at-btn:not(.at-btn--light):not(.at-btn--outline) { border-radius: 999px; }
.at-btn-rounded .at-btn:not(.at-btn--light):not(.at-btn--outline) { border-radius: 8px; }
.at-btn-shadow .at-btn:not(.at-btn--light):not(.at-btn--outline), .at-btn-3d .at-btn:not(.at-btn--light):not(.at-btn--outline) { box-shadow: 0 10px 24px -12px rgba(0,0,0,.55); }
.at-btn2-oval .at-btn--light, .at-btn2-oval .at-btn--outline, .at-btn2-pill .at-btn--light, .at-btn2-pill .at-btn--outline { border-radius: 999px; }
.at-btn2-rounded .at-btn--light, .at-btn2-rounded .at-btn--outline { border-radius: 8px; }
.at-link { position: relative; display: inline-block; font-weight: 600; }
.at-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform-origin: left; transition: transform .35s var(--at-ease); }
.at-link:hover::after { transform: scaleX(0); transform-origin: right; }
.at-badge-count {
  position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #000; color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; letter-spacing: 0; pointer-events: none;
}
.at-badge-count:empty { display: none; }
.at-badge-count.is-bump, .at-menu__count.is-bump { animation: at-bump .5s var(--at-ease-spring); }
@keyframes at-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ── поля форм ────────────────────────────────────────────────────────────────────────────────── */
.at-field { display: block; margin-bottom: 16px; }
.at-field > label, .at-label { display: block; font-size: 12px; font-weight: 600; color: var(--at-muted); margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; }
.at-input, .at select, .at textarea, .at input[type=text], .at input[type=email], .at input[type=tel], .at input[type=password], .at input[type=number], .at input[type=search] {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--at-line); border-radius: var(--at-radius); background: #fff;
  color: var(--at-color-text); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.at textarea { min-height: 120px; resize: vertical; }
.at-input:focus, .at select:focus, .at textarea:focus, .at input:focus { outline: none; border-color: #222; box-shadow: 0 0 0 1px #222; }
.at .at-input.at-input--line { border: 0; border-bottom: 1px solid #222; padding-left: 0; padding-right: 0; background: transparent; box-shadow: none; }
.at .at-input.at-input--line:focus { box-shadow: 0 1px 0 0 #222; }
.at-check { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; color: var(--at-muted); cursor: pointer; line-height: 1.5; }
.at-check input { width: 18px; height: 18px; min-height: 0; accent-color: #000; margin: 0; flex: 0 0 auto; }
.at-error { color: var(--at-sale); font-size: 12px; margin-top: 8px; }
.at ::placeholder { color: var(--at-muted); opacity: 1; } /* контраст підказки в полі ≥ 4.5:1 і на сірому полі пошуку */
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }

/* ── смуга акцій ──────────────────────────────────────────────────────────────────────────────── */
.at-promo { background: var(--at-promo-bg); color: var(--at-promo-text); font-size: 13px; font-weight: 500; position: relative; z-index: calc(var(--at-z-header) + 1); }
.at-promo__inner { display: flex; align-items: center; justify-content: center; gap: 8px 24px; min-height: 40px; padding: 8px var(--at-gutter); flex-wrap: wrap; text-align: center; line-height: 1.3; }
.at-promo__item { display: inline-flex; align-items: center; gap: 6px; }
.at-promo__item.is-accent { font-weight: 700; }
.at-promo a.at-promo__item { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.at-promo a.at-promo__item:hover { text-decoration-color: currentColor; }
@media (max-width: 767.98px) {
  .at-promo__inner { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
  .at-promo__inner::-webkit-scrollbar { display: none; }
  .at-promo__item { white-space: nowrap; }
}

/* ── шапка ────────────────────────────────────────────────────────────────────────────────────────
   Липка (sticky). Прокрутка вниз → .is-compact: ПК — шапка зсувається вгору на ряд 1 (transform), лишається
   ряд 2 з міні-логотипом і міні-іконками (один ряд 48px); телефон — ховається повністю, з'являється при прокрутці вгору.
   Висота в потоці не змінюється → без зсуву макета. .is-glass — «скло» (blur) після початку прокрутки. */
.at-header { position: sticky; top: 0; z-index: var(--at-z-header); isolation: isolate; color: var(--at-color-menu); transition: transform .45s var(--at-ease); }
.at-header__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--at-header-bg); transition: background-color .3s; }
.at-header__bgmedia { width: 100%; height: 100%; object-fit: cover; max-width: none !important; }
/* фото / відео шапки — під світлою вуаллю кольору шапки, щоб меню читалось */
.at-header__bg:has(.at-header__bgmedia)::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--at-header-bg) 70%, transparent); }
.at-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--at-line); pointer-events: none; }
.at-header.is-glass .at-header__bg { background: color-mix(in srgb, var(--at-header-bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.at-header__row1 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; height: var(--at-row1); }
.at-header__left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.at-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.at-hlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--at-color-menu); }
.at-hlink .at-ico { width: 20px; height: 20px; }
.at-hlink:hover span { text-decoration: underline; text-underline-offset: 4px; }
.at-hlink--muted { color: var(--at-muted); }
@media (max-width: 1279.98px) { .at-only-wide { display: none !important; } }
.at-logo { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; min-width: 0; color: var(--at-color-brand); font-family: var(--at-font-brand); font-size: var(--at-size-brand); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.at-logo__img { height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.at-logo__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-icon-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  color: var(--at-color-menu); font-size: 13px; font-weight: 500; white-space: nowrap; position: relative; justify-content: center;
}
.at-icon-btn__ico { position: relative; display: inline-flex; }
@media (min-width: 1024px) { .at-icon-btn { gap: 12px; } } /* лічильник (виступає на 9px) не торкається підпису «Кошик» / «Обране» */
.at-icon-btn .at-ico { width: 24px; height: 24px; transition: transform .35s var(--at-ease-spring); }
@media (hover: hover) { .at-icon-btn:hover .at-ico { transform: translateY(-2px); } .at-icon-btn:hover .at-icon-btn__label { text-decoration: underline; text-underline-offset: 4px; } }
.at-dot { position: absolute; right: -2px; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--at-success); box-shadow: 0 0 0 2px var(--at-header-bg); }
.at-lang { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--at-line); margin-left: 8px; flex: 0 0 auto; }
.at-lang a { display: inline-flex; align-items: center; height: 100%; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--at-muted); transition: background-color .2s, color .2s; }
.at-lang a:hover { color: #000; }
.at-lang a.is-active { background: #000; color: #fff; }
.at-lang--row2 { display: none; }   /* 2026-11-12: перемикач мови в другому ряду шапки — лише телефон/планшет */
/* кабінет: випадне меню (ПК, наведення / фокус) */
.at-acct { position: relative; }
.at-pop { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 232px; padding: 8px 0; background: #fff; border: 1px solid var(--at-line); box-shadow: 0 24px 48px -24px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .3s var(--at-ease), visibility 0s .3s; color: #222; }
.at-acct:hover .at-pop, .at-acct:focus-within .at-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--at-ease); }
.at-pop__hello { margin: 0; padding: 8px 16px 12px; font-size: 12px; color: var(--at-muted); border-bottom: 1px solid var(--at-line); }
.at-pop a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 16px; font-size: 14px; transition: background-color .2s; }
.at-pop a:hover { background: var(--at-surface); }
.at-pop a .at-ico { width: 18px; height: 18px; color: var(--at-muted); }
.at-pop__out { border-top: 1px solid var(--at-line); margin-top: 8px; }
/* ряд 2: категорії + пошук */
.at-header__row2 { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--at-row2); }
.at-nav { display: flex; align-items: stretch; gap: 32px; min-width: 0; height: 100%; overflow-x: auto; scrollbar-width: none; transition: transform .45s var(--at-ease); }
.at-nav::-webkit-scrollbar { display: none; }
.at-nav__item { position: static; display: flex; flex: 0 0 auto; }
.at-nav__link { position: relative; display: flex; align-items: center; height: 100%; font-family: var(--at-font-menu); font-size: var(--at-size-menu); color: var(--at-color-menu); font-weight: 500; white-space: nowrap; }
.at-nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--at-ease); }
.at-nav__link:hover::after, .at-nav__link.is-active::after, .at-nav__item.is-open > .at-nav__link::after { transform: scaleX(1); }
.at-nav__link.is-special { color: var(--at-special); }
/* стиль пунктів меню з адмінки (menu_style): овальні / округлі / контур */
.at-menu-oval .at-nav__link, .at-menu-pill .at-nav__link, .at-menu-rounded .at-nav__link, .at-menu-ghost .at-nav__link, .at-menu-glass .at-nav__link {
  height: 32px; align-self: center; padding: 0 16px; background: var(--at-menu-btn-bg); color: var(--at-menu-btn-text); border-radius: 999px; transition: background-color .2s, color .2s; }
.at-menu-rounded .at-nav__link { border-radius: 8px; }
.at-menu-ghost .at-nav__link { background: transparent; border: 1px solid currentColor; }
.at-menu-oval .at-nav__link::after, .at-menu-pill .at-nav__link::after, .at-menu-rounded .at-nav__link::after, .at-menu-ghost .at-nav__link::after, .at-menu-glass .at-nav__link::after { display: none; }
.at-menu-oval .at-nav, .at-menu-pill .at-nav, .at-menu-rounded .at-nav, .at-menu-ghost .at-nav, .at-menu-glass .at-nav { gap: 8px; }
.at-search { position: relative; width: 320px; max-width: 100%; flex: 0 0 auto; transition: opacity .3s, transform .45s var(--at-ease); }
.at .at-search input { min-height: 40px; height: 40px; padding: 8px 14px 8px 40px; background: var(--at-field); border: 0; font-size: 14px; border-radius: var(--at-radius); }
.at .at-search input:focus { box-shadow: 0 0 0 1px #222; background: #fff; }
.at-search .at-ico { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--at-muted); pointer-events: none; }
.at-menu-btn { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 0; background: none; border: 0; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--at-color-menu); flex: 0 0 auto; }
.at-menu-btn .at-ico { width: 24px; height: 24px; }
/* міні-логотип і міні-іконки компактної шапки (ПК) */
.at-header__mini { display: none; }
@media (min-width: 1024px) {
  .at-header__mini {
    position: absolute; top: var(--at-row1); height: var(--at-row2); display: flex; align-items: center; gap: 4px;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
  }
  .at-header__mini--logo { left: max(var(--at-gutter), calc((100% - var(--at-max)) / 2 + var(--at-gutter))); font-family: var(--at-font-brand); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--at-color-brand); font-size: 16px; }
  .at-header__mini--logo .at-logo__img { height: 28px; max-width: 120px; }
  .at-header__mini--icons { right: max(var(--at-gutter), calc((100% - var(--at-max)) / 2 + var(--at-gutter))); }
  .at-mini-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--at-color-menu); }
  .at-mini-btn .at-ico { width: 22px; height: 22px; }
  .at-mini-btn .at-badge-count { top: 2px; right: 0; }
  .at-header.is-compact { transform: translateY(calc(-1 * var(--at-row1))); }
  .at-header.is-compact .at-header__mini { opacity: 1; visibility: visible; transition: opacity .3s .12s; }
  .at-header.is-compact .at-nav { transform: translateX(var(--at-mini-w, 128px)); }
  .at-header.is-compact .at-search { opacity: 0; pointer-events: none; transform: translateX(16px); }
  .at-header.is-compact .at-header__row1 { visibility: hidden; transition: visibility 0s .45s; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) { .at-search { width: 280px; } }
/* мега-меню (на всю ширину під шапкою) */
.at-mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: #222; border-top: 1px solid var(--at-line); box-shadow: 0 40px 64px -40px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--at-ease), visibility 0s .35s; pointer-events: none;
}
.at-nav__item.is-open .at-mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .25s, transform .35s var(--at-ease); }
.at-mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; max-width: var(--at-max); margin: 0 auto; padding: 32px var(--at-gutter) 40px; }
.at-mega__head { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 20px; font-weight: 600; font-family: var(--at-font-head); }
.at-mega__head .at-ico { width: 20px; height: 20px; transition: transform .3s var(--at-ease); }
.at-mega__head:hover .at-ico { transform: translateX(4px); }
.at-mega__list { list-style: none; margin: 0; padding: 0; columns: 200px 4; column-gap: 32px; }
.at-mega__list > li { break-inside: avoid; }
.at-mega__list a { display: inline-block; padding: 6px 0; font-size: 14px; color: #333; transition: transform .25s var(--at-ease), color .2s; }
.at-mega__list a:hover, .at-mega__list a.is-active { color: #000; transform: translateX(4px); }
.at-mega__list a.is-active { font-weight: 600; }
.at .at-mega__all { font-weight: 600; color: #000; }
.at-mega__sub { list-style: none; margin: 0; padding: 0 0 8px 12px; }
.at-mega__sub a { padding: 4px 0; font-size: 13px; color: var(--at-muted); }
.at-mega__promo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--at-surface); }
.at-mega__promo-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--at-ease); }
.at-mega__promo:hover .at-mega__promo-media { transform: scale(1.05); }
.at-mega__promo::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.66)); pointer-events: none; } /* підпис білим читається і на світлому фото */
.at-mega__promo-blank { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--at-font-brand); font-size: 120px; font-weight: 600; color: var(--at-line); text-transform: uppercase; }
.at-mega__promo-cap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 4px; color: #fff; }
.at-mega__promo-cap span { font-size: 16px; font-weight: 600; }
.at-mega__promo-cap small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
/* телефон і планшет */
@media (max-width: 1023.98px) {
  .at-header.is-compact { transform: translateY(-100%); }
  .at-header__row1 { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .at-header__left { display: none; }
  .at-logo { justify-content: flex-start; height: 40px; font-size: min(var(--at-size-brand), 20px); letter-spacing: .12em; }
  .at-logo__img { height: 32px; max-width: 132px; }
  .at-header__right { gap: 0; margin-right: -8px; }
  .at-icon-btn { flex-direction: column; gap: 2px; padding: 0 6px; font-size: 10px; letter-spacing: .1px; }
  .at-icon-btn .at-ico { width: 22px; height: 22px; }
  .at-icon-btn .at-badge-count { top: -4px; right: -10px; }
  .at-hide-mobile { display: none !important; }
  .at-lang--row2 { display: inline-flex; height: 40px; margin-left: 0; }
  .at-lang--row2 a { min-width: 40px; justify-content: center; padding: 0 8px; font-size: 13px; }
  .at-header__row2 { gap: 12px; padding-bottom: 8px; }
  .at-header__row2 .at-nav { display: none; }
  .at-search { width: auto; flex: 1 1 auto; }
  .at-menu-btn { display: inline-flex; }
  .at-acct .at-pop { display: none; }
}
@media (max-width: 359.98px) { .at-icon-btn__label { display: none; } .at-icon-btn { min-height: 48px; } }
@media (min-width: 1024px) { .at-menu-btn, .at-hide-desktop { display: none !important; } }

/* ── біжуча стрічка (банери з налаштувань) ────────────────────────────────────────────────────── */
/* 2026-11-13: висота --tk-h, ширина --tk-w (клас has-w), відступ --tk-gap — з налаштувань теми; швидкість і копії —
   static/js/ticker.js. Один банер (is-static) стоїть по центру; на телефоні все на чверть менше (--tk-k). */
.at-ticker { --tk-k: 1; background: var(--at-ticker-bg); overflow: hidden; border-bottom: 1px solid var(--at-line); }
.at-ticker__track { display: flex; width: max-content; animation: at-marquee var(--tk-dur, 40s) linear infinite; }
.at-ticker.is-static .at-ticker__track { width: 100%; justify-content: center; animation: none; }
.at-ticker:hover .at-ticker__track, .at-ticker:focus-within .at-ticker__track { animation-play-state: paused; }
.at-ticker__group { display: flex; align-items: center; gap: var(--tk-gap, 32px); padding-right: var(--tk-gap, 32px); flex: 0 0 auto; }
.at-ticker.is-static .at-ticker__group { padding-right: 0; }
.at-ticker__item { display: block; flex: 0 0 auto; height: calc(var(--tk-h, 64px) * var(--tk-k)); }
.at .at-ticker__img { display: block; height: calc(var(--tk-h, 64px) * var(--tk-k)); width: auto; max-width: none; object-fit: cover; }
.at .at-ticker.has-w .at-ticker__img { width: calc(var(--tk-w) * var(--tk-k)); }
@media (max-width: 767.98px) { .at-ticker { --tk-k: .75; } }
@keyframes at-marquee { to { transform: translate3d(calc(-1 * var(--tk-shift, 50%)), 0, 0); } }
.at-js .at-ticker:not(.is-ready):not(.is-static) .at-ticker__group + .at-ticker__group { visibility: hidden; } /* до заповнення копіями (ticker.js) — щоб не було зсуву */

/* ── висувні панелі: мобільне меню, швидкий перегляд, фільтри ──────────────────────────────────── */
.at-drawer { position: fixed; inset: 0; z-index: var(--at-z-drawer); visibility: hidden; pointer-events: none; transition: visibility 0s .45s; }
.at-drawer.is-open { visibility: visible; pointer-events: auto; transition: none; }
.at-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .35s; }
.at-drawer.is-open .at-drawer__backdrop { opacity: 1; }
.at-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .45s var(--at-ease); overflow: hidden; box-shadow: 0 0 64px rgba(0,0,0,.18); }
.at-drawer--right .at-drawer__panel { left: auto; right: 0; transform: translateX(100%); }
.at-drawer--wide .at-drawer__panel { width: min(600px, 100%); }
.at-drawer.is-open .at-drawer__panel { transform: none; }
.at-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 8px 0 var(--at-gutter); border-bottom: 1px solid var(--at-line); flex: 0 0 auto; }
.at-drawer__title { font-size: 16px; font-weight: 600; }
.at-drawer__brand { font-family: var(--at-font-brand); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--at-color-brand); }
.at-drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--at-gutter) 24px; }
.at-drawer__foot { flex: 0 0 auto; padding: 16px var(--at-gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--at-line); }
.at-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: #222; flex: 0 0 auto; }
.at-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; transition: transform .3s var(--at-ease); }
.at-close:hover svg { transform: rotate(90deg); }
.at-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--at-line); overflow-x: auto; scrollbar-width: none; }
.at-tabs::-webkit-scrollbar { display: none; }
.at-tab { position: relative; padding: 14px 0; background: none; border: 0; font-size: 15px; font-weight: 600; color: var(--at-muted); cursor: pointer; white-space: nowrap; flex: 0 0 auto; transition: color .2s; }
.at-tab:hover { color: #000; }
.at-tab.is-active { color: #000; }
.at-tab.is-special { color: var(--at-special); }
.at-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #000; transform: scaleX(0); transition: transform .35s var(--at-ease); }
.at-tab.is-active::after { transform: scaleX(1); }
.at-tab.is-special::after { background: var(--at-special); }
.at-acc { border-bottom: 1px solid var(--at-line); }
.at-acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0; background: none; border: 0; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.at-acc__btn svg { width: 16px; height: 16px; stroke: #222; stroke-width: 1.6; fill: none; transition: transform .3s var(--at-ease); flex: 0 0 auto; }
.at-acc.is-open .at-acc__btn svg { transform: rotate(180deg); }
.at-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--at-ease); }
.at-acc.is-open .at-acc__panel { grid-template-rows: 1fr; }
.at-acc__panel > div { overflow: hidden; }
.at-acc__panel a { display: block; padding: 10px 0 10px 12px; font-size: 14px; color: #333; }
.at-acc__content { padding-bottom: 16px; color: #333; }
/* повноекранне меню */
.at-drawer--menu .at-drawer__panel { width: min(480px, 100%); }
.at-menu { padding-bottom: 0; }
.at-menu__tabs { position: sticky; top: 0; z-index: 1; background: #fff; margin: 0 calc(-1 * var(--at-gutter)); padding: 0 var(--at-gutter); }
.at-menu__panel { padding: 8px 0 16px; animation: at-fade-up .45s var(--at-ease); }
.at-menu__all { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 15px; font-weight: 600; }
.at-menu__all .at-ico { width: 20px; height: 20px; transition: transform .3s var(--at-ease); }
.at-menu__all:hover .at-ico { transform: translateX(4px); }
.at-menu__link { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: #333; transition: transform .25s var(--at-ease), color .2s; }
.at-menu__link:hover, .at-menu__link.is-active { color: #000; transform: translateX(4px); }
.at-menu__link.is-active { font-weight: 600; }
.at-menu .at-acc { border-bottom: 0; }
.at-menu .at-acc__btn { font-weight: 500; color: #333; min-height: 44px; }
.at-menu__quick { padding: 8px 0; border-top: 1px solid var(--at-line); }
.at-menu__row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0; background: none; border: 0; font-size: 15px; font-weight: 500; color: #222; text-align: left; cursor: pointer; }
.at-menu__row .at-ico { width: 22px; height: 22px; color: #222; }
.at-menu__row--static { cursor: default; color: var(--at-muted); font-size: 14px; }
.at-menu__count { margin-left: auto; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; background: #000; color: #fff; font-size: 12px; line-height: 24px; text-align: center; }
.at-menu__count:empty { display: none; }
.at-menu__foot { display: flex; flex-direction: column; gap: 16px; margin: 0 calc(-1 * var(--at-gutter)); padding: 24px var(--at-gutter) calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--at-line); background: var(--at-surface); }
.at-menu__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.at-menu__auth .at-btn { padding-left: 12px; padding-right: 12px; white-space: normal; }
.at-menu__rows { display: flex; flex-direction: column; }
.at-menu__foot .at-lang { margin-left: 0; align-self: flex-start; background: #fff; }
@keyframes at-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── сітка товарів і картка ──────────────────────────────────────────────────────────────────── */
.at-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 8px; }
@media (min-width: 768px) { .at-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; } }
@media (min-width: 1280px) { .at-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 16px; } }
.at-grid[data-view="1"] { grid-template-columns: minmax(0, 1fr); }
.at-grid[data-view="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .at-grid[data-view="2"] { gap: 40px 24px; } .at-grid[data-view="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.at-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.at-card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--at-surface); transform-style: preserve-3d; perspective: 900px; }
.at-card__tilt { position: absolute; inset: 0; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--at-ease), box-shadow .5s; will-change: transform; }
.at-card.is-tilting .at-card__tilt { transition: transform .12s linear; box-shadow: var(--at-shadow-3d); }
.at-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--at-ease), transform 1.2s var(--at-ease); backface-visibility: hidden; }
.at-card__img--alt { opacity: 0; transform: scale(1.04); }
.at-card:hover .at-card__img--alt { opacity: 1; transform: scale(1); }
.at-card:hover .at-card__img:not(.at-card__img--alt) { transform: scale(1.03); }
.at-card__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), transparent 55%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.at-card.is-tilting .at-card__glare { opacity: 1; }
.at-card__fav, .at-card__quick {
  position: absolute; z-index: 2; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 50%;
  transition: transform .3s var(--at-ease-spring), background-color .2s, opacity .3s;
}
.at-card__fav { top: 8px; right: 8px; }
.at-card__quick { bottom: 8px; right: 8px; }
@media (hover: hover) { .at-card__quick { opacity: 0; transform: translateY(8px); } .at-card:hover .at-card__quick, .at-card__quick:focus-visible { opacity: 1; transform: none; } }
.at-card__fav svg, .at-card__quick svg { width: 20px; height: 20px; stroke: #222; stroke-width: 1.6; fill: none; }
.at-card__fav.is-active svg { fill: #000; stroke: #000; }
.at-card__fav:hover, .at-card__quick:hover { transform: scale(1.1); background: #fff; }
.at-card__fav.is-pop { animation: at-heart .6s var(--at-ease-spring); }
@keyframes at-heart { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
.at-card__badges { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.at-badge { display: inline-block; padding: 4px 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #fff; color: #000; line-height: 1.2; }
.at-badge--sale { background: var(--at-sale); color: #fff; }
.at-badge--new { background: #000; color: #fff; }
.at-badge--hit { background: var(--at-promo-bg); color: #000; }
.at-card__body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.at-card__name { font-size: 14px; font-weight: 500; line-height: 1.35; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.at-price { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.at-price__old { color: var(--at-muted); text-decoration: line-through; font-weight: 500; }
.at-price__new, .at-price.is-sale > .at-price__now { color: var(--at-sale); }
.at-stars { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--at-muted); }
.at-stars svg { width: 12px; height: 12px; fill: #222; }
.at-stars svg.is-off { fill: var(--at-line-strong); }
.at-stars span { margin-left: 4px; }

/* ── каруселі (горизонтальна стрічка зі snap) ─────────────────────────────────────────────────── */
.at-rail { position: relative; }
.at-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.at-rail__track::-webkit-scrollbar { display: none; }
.at-rail__track > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px) { .at-rail__track { grid-auto-columns: calc((100% - 48px) / 3.25); gap: 16px; } }
@media (min-width: 1024px) { .at-rail__track { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (min-width: 1280px) { .at-rail__track { grid-auto-columns: calc((100% - 48px) / 4); } }
.at-rail__nav { position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--at-shadow-1); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 3; transition: opacity .2s, transform .3s var(--at-ease); color: #222; }
.at-rail__nav svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.at-rail__nav--prev { left: -8px; } .at-rail__nav--next { right: -8px; }
.at-rail__nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 1024px) { .at-rail__nav { display: inline-flex; } .at-rail__nav:hover { transform: scale(1.08); } }

/* ── хлібні крихти, порожній стан ─────────────────────────────────────────────────────────────── */
.at-crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 16px 0; font-size: 12px; color: var(--at-muted); }
.at-crumbs a:hover { color: #000; text-decoration: underline; }
.at-crumbs span[aria-current] { color: #222; }
.at-empty { text-align: center; padding: 64px 16px; }
.at-empty svg { width: 56px; height: 56px; stroke: var(--at-line-strong); stroke-width: 1.2; fill: none; margin: 0 auto 16px; }
.at-empty h2 { margin-bottom: 8px; }

/* ── повідомлення (toast) ─────────────────────────────────────────────────────────────────────── */
.at-toasts { position: fixed; z-index: var(--at-z-toast); left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.at-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; min-height: 48px; background: #111; color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 12px 32px rgba(0,0,0,.25); animation: at-toast-in .45s var(--at-ease-spring); }
.at-toast--error { background: var(--at-sale); }
.at-toast--success { background: #111; }
.at-toast__text { flex: 1 1 auto; min-width: 0; }
.at-toast__close { flex: 0 0 auto; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: inherit; cursor: pointer; opacity: .8; }
.at-toast__close:hover { opacity: 1; }
.at-toast__close .at-ico { width: 18px; height: 18px; }
.at-toast.is-leaving { animation: at-toast-out .3s var(--at-ease) forwards; }
@keyframes at-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes at-toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ── «наверх» (над кнопкою чату, по одній осі) ────────────────────────────────────────────────── */
.at-totop { position: fixed; right: 20px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 800; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--at-line); background: #fff; color: #222; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s, transform .4s var(--at-ease-spring); box-shadow: var(--at-shadow-1); }
.at-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.at-totop svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; transition: transform .3s; }
.at-totop:hover svg { transform: translateY(-2px); }
@media (min-width: 768px) { .at-totop { right: 28px; bottom: 96px; } }

/* ── чат підтримки ────────────────────────────────────────────────────────────────────────────── */
.at-chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: var(--at-z-chat); }
@media (min-width: 768px) { .at-chat { right: 24px; bottom: 24px; } }
.at-chat__launcher { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--at-btn-bg); color: var(--at-btn-text); display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 16px 32px -14px rgba(0,0,0,.55); transition: transform .4s var(--at-ease-spring); animation: at-pop-in .6s var(--at-ease-spring) .8s both; }
.at-chat__launcher:hover { transform: scale(1.06); }
.at-chat__launcher .at-ico { position: absolute; width: 24px; height: 24px; transition: transform .35s var(--at-ease), opacity .25s; }
.at-chat__ico-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.at-chat.is-open .at-chat__ico-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.at-chat.is-open .at-chat__ico-close { opacity: 1; transform: none; }
@keyframes at-pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.at-chat__note { position: absolute; right: 0; bottom: 72px; width: max-content; max-width: 240px; padding: 12px 40px 12px 16px; background: #fff; color: #222; border: 1px solid var(--at-line); box-shadow: var(--at-shadow-1);
  font-size: 14px; font-weight: 600; cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s, transform .4s var(--at-ease); }
.at-chat__note.show { opacity: 1; transform: none; pointer-events: auto; }
.at-chat__note p { margin: 0; }
.at-chat__note::after { content: ''; position: absolute; right: 23px; bottom: -6px; width: 10px; height: 10px; background: #fff; border-right: 1px solid var(--at-line); border-bottom: 1px solid var(--at-line); transform: rotate(45deg); }
.at-chat__note-close { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; color: var(--at-muted); }
.at-chat__note-close .at-ico { width: 16px; height: 16px; }
.at-chat__window { position: absolute; right: 0; bottom: 72px; width: 368px; max-height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; color: #222; border: 1px solid var(--at-line);
  box-shadow: 0 40px 80px -32px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: bottom right; transition: opacity .25s, transform .4s var(--at-ease), visibility 0s .4s; }
.at-chat.is-open .at-chat__window { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .4s var(--at-ease); }
.at-chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 12px 20px; background: #000; color: #fff; flex: 0 0 auto; }
.at .at-chat__title { color: #fff; font-size: 15px; margin: 0 0 2px; }
.at-chat__status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.75); }
.at-chat__status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.at-chat__close { color: #fff; }
.at-chat__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.at-chat__intro { font-size: 13px; color: var(--at-muted); margin-bottom: 16px; }
.at-chat__form .at-field { margin-bottom: 12px; }
.at-chat__form textarea { min-height: 88px; }
.at-chat__messages { display: flex; flex-direction: column; gap: 8px; }
.at-chat__msg { max-width: 85%; align-self: flex-start; padding: 10px 14px; background: var(--at-surface); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; animation: at-fade-up .35s var(--at-ease); }
.at-chat__msg.is-visitor { align-self: flex-end; background: #000; color: #fff; }
.at-chat__time { display: block; margin-top: 4px; font-size: 11px; opacity: .6; }
.at-chat__reply { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--at-line); flex: 0 0 auto; }
.at .at-chat__reply input { flex: 1 1 auto; min-height: 44px; height: 44px; }
.at-chat__send { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: #000; color: #fff; cursor: pointer; }
.at-chat__send .at-ico { width: 20px; height: 20px; }
@media (max-width: 575.98px) {
  .at-chat__window { position: fixed; inset: 0; width: auto; max-height: none; border: 0; transform: translateY(24px); }
  .at-chat.is-open .at-chat__launcher { opacity: 0; pointer-events: none; }
  /* телефон: підказка — ліворуч від кнопки чату, в одному ряду з нею (не налазить на кнопки банера над нею) */
  .at-chat__note { bottom: 4px; right: 68px; max-width: min(240px, calc(100vw - 100px)); }
  .at-chat__note::after { right: -6px; bottom: auto; top: calc(50% - 5px); transform: rotate(-45deg); }
}

/* ── підвал ───────────────────────────────────────────────────────────────────────────────────── */
.at-footer { position: relative; isolation: isolate; background: var(--at-footer-bg); color: var(--at-footer-text); border-top: 1px solid var(--at-line); font-family: var(--at-font-footer); font-size: var(--at-size-footer); }
.at-footer__bgmedia { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.at .at-footer__bgimg { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.at-footer__bgmedia::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--at-footer-bg) 84%, transparent); }
.at-footer__news { display: grid; gap: 24px; padding: 48px 0; border-bottom: 1px solid var(--at-line); }
@media (min-width: 1024px) { .at-footer__news { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: 64px; padding: 56px 0; } }
.at .at-footer__news-title { font-size: 20px; margin-bottom: 8px; }
.at-footer__news-text { margin: 0; color: var(--at-ft-desc-color, var(--at-muted)); }
.at-news-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; }
.at-news-form__field { min-width: 0; }
.at-news-form__consent { grid-column: 1 / -1; }
.at-news-form .at-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.at-news-form.is-done .at-news-form__btn { background: var(--at-success); border-color: var(--at-success); }
@media (max-width: 575.98px) { .at-news-form { grid-template-columns: minmax(0, 1fr); } .at-news-form__btn { width: 100%; } }
.at-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; padding: 48px 0; }
@media (min-width: 1024px) { .at-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 56px 0 64px; } }
.at-footer__col { min-width: 0; }
.at .at-footer__title { margin: 0 0 16px; font-family: var(--at-font-footer); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--at-muted); }
.at .at-footer__title--catalog { color: var(--at-ft-cat-title-color); font-size: var(--at-ft-cat-title-size); }
.at .at-footer__title--contacts { color: var(--at-ft-contacts-title-color); font-size: var(--at-ft-contacts-title-size); }
.at-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.at-footer__col a, .at-footer__linkbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--at-footer-text); font: inherit; text-align: left; cursor: pointer; overflow-wrap: break-word; max-width: 100%; }
.at-footer__col ul a:hover, .at-footer__linkbtn:hover { text-decoration: underline; text-underline-offset: 4px; }
.at-footer__contacts .at-ico { width: 18px; height: 18px; color: var(--at-muted); }
.at-footer__address { display: flex; align-items: flex-start; gap: 8px; padding-top: 6px; color: var(--at-ft-address-color); font-size: var(--at-ft-address-size); }
.at-footer__desc { color: var(--at-ft-desc-color); font-size: var(--at-ft-desc-size); margin-bottom: 16px; }
.at-footer__col--about .at-btn { margin-top: 4px; }
@media (max-width: 1023.98px) { .at-footer__col--about { grid-column: 1 / -1; } }
@media (max-width: 767.98px) { .at-footer__col:nth-child(3) { grid-column: 1 / -1; } }
.at-footer__bar { background: #000; color: #fff; font-size: 12px; }
.at-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; min-height: 72px; padding-top: 16px; padding-bottom: 16px; }
@media (min-width: 768px) { .at-footer__bar-inner { padding-right: max(var(--at-gutter), 104px); } } /* місце під кнопку чату */
.at-footer__copy { margin: 0; color: var(--at-ft-copy-color); font-size: var(--at-ft-copy-size); }
.at-lang--dark { border-color: rgba(255,255,255,.3); margin-left: 0; }
.at-lang--dark .at-ico { width: 16px; height: 16px; margin: 0 4px 0 10px; color: rgba(255,255,255,.75); }
.at-lang--dark a { color: rgba(255,255,255,.75); }
.at-lang--dark a:hover { color: #fff; }
.at-lang--dark a.is-active { background: #fff; color: #000; }
.at-social { display: flex; flex-wrap: wrap; gap: 8px; }
.at-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #000; transition: transform .3s var(--at-ease-spring), background-color .2s; }
.at-social a:hover { transform: translateY(-2px); background: var(--at-promo-bg); }
.at-social .at-ico { width: 20px; height: 20px; }
.at .at-social__img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 767.98px) {
  .at-footer__bar-inner { flex-direction: column; justify-content: center; text-align: center; padding-top: 24px; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ── поява при прокрутці + 3D-глибина (родзинка 2026) ─────────────────────────────────────────────
   Лише з JS (html.at-js); якщо atelier.js не завантажився — через 2.5 с усе з'являється саме (запобіжник). */
.at-js .at-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--at-ease), transform .8s var(--at-ease); transition-delay: var(--d, 0s); }
.at-js .at-reveal.is-in { opacity: 1; transform: none; }
.at-words .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotateX(-40deg); transform-origin: 50% 100%; transition: opacity .7s var(--at-ease), transform .8s var(--at-ease); transition-delay: calc(var(--i, 0) * 60ms + .15s); }
.at-words.is-in .w { opacity: 1; transform: none; }
html.at-js:not(.at-ready) .at-reveal, html.at-js:not(.at-ready) .at-words .w { animation: at-failsafe 0s 2.5s forwards; }
@keyframes at-failsafe { to { opacity: 1; transform: none; } }
.at-depth { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.at-skeleton { background: linear-gradient(100deg, var(--at-surface) 30%, #fff 50%, var(--at-surface) 70%); background-size: 300% 100%; animation: at-shimmer 1.4s linear infinite; }
@keyframes at-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.at-fly { position: fixed; z-index: 1200; width: 64px; height: 84px; object-fit: cover; pointer-events: none; border-radius: 4px; box-shadow: var(--at-shadow-3d); transition: transform .8s cubic-bezier(.5, -0.3, .3, 1), opacity .8s; }

/* view transitions (де підтримується браузером) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ── службові ─────────────────────────────────────────────────────────────────────────────────── */
.at-scroll-lock { overflow: hidden !important; }
.at-hidden { display: none !important; }
.at-stack > * + * { margin-top: 16px; }
.at-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.at-row--between { justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* «менше руху»: відео-тло в плитках/банерах/картках стоїть на першому кадрі; кнопки керування там не працюють
     (поверх — посилання), тож не показуємо їх. Відео в галереї товару — з кнопками, як і було. */
  .at-banner__m::-webkit-media-controls, .at-ring__img::-webkit-media-controls, .at-card__img::-webkit-media-controls,
  .at-lead__img::-webkit-media-controls, .at-mega__promo-media::-webkit-media-controls, .at-ticker__img::-webkit-media-controls,
  .at-header__bgmedia::-webkit-media-controls, .at-footer__bgimg::-webkit-media-controls, .at-body-bgmedia__v::-webkit-media-controls { display: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .at-reveal, .at-words .w { opacity: 1 !important; transform: none !important; }
  .at-card__tilt, .at-depth { transform: none !important; }
  .at-ticker__track { animation: none !important; }
  .at-ticker { overflow-x: auto; }
}
@media print {
  .at-header, .at-footer, .at-promo, .at-totop, .at-toasts, .at-chat, .at-ticker { display: none !important; }
  .at-reveal, .at-words .w { opacity: 1 !important; transform: none !important; } /* друк: блоки, що ще не «проявились» при прокрутці, теж друкуються */
}

/* 2026-11-12: підказка чату «Потрібна допомога?» не перекриває кнопку «наверх» — кнопка піднімається, поки підказка видна */
/* підйом — через transform (без зсуву макета і без перерахунку розмітки на кожен кадр) */
@media (min-width: 576px) { body:has(.at-chat__note.show) .at-totop.is-visible { transform: translateY(-80px); } }
