/* ==========================================================================
   AKZO — front2 theme
   No build step. Tokens → base → layout → components → sections.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #EFECE4;
  --ink: #15171A;
  --ink-2: #4A4E55;
  --ink-3: #8A8E95;
  --line: rgba(21, 23, 26, .10);

  --accent: #E4472B;     /* primary */
  --accent-ink: #FFFFFF;
  --blue: #2B4C9B;
  --green: #2E7D6B;
  --yellow: #F2B33D;

  --ok: #2E7D6B;
  --warn: #B7791F;
  --err: #C0392B;

  --font: "Noto Sans Georgian", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(21,23,26,.06), 0 4px 14px rgba(21,23,26,.05);
  --shadow-2: 0 2px 6px rgba(21,23,26,.06), 0 18px 40px rgba(21,23,26,.10);

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --header-h: 76px;

  --ease-out: cubic-bezier(.215, .61, .355, 1);   /* ≈ power2.out */
  --ease-out-3: cubic-bezier(.165, .84, .44, 1);  /* ≈ power3.out */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.h-display { font-size: clamp(40px, 6.4vw, 88px); }
.h-1 { font-size: clamp(32px, 4.4vw, 60px); }
.h-2 { font-size: clamp(26px, 3vw, 40px); }
.h-3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 60ch; }
h1 + .lead, h2 + .lead, .h-1 + .lead, .h-display + .lead { margin-top: 18px; }
/* Georgian glyphs are wider and taller than Latin: scale display sizes down */
:lang(ka) .h-display { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.16; }
:lang(ka) .h-1 { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.2; }
:lang(ka) .h-2 { font-size: clamp(22px, 2.4vw, 32px); }
:lang(ru) .h-display { font-size: clamp(38px, 5.4vw, 76px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
}
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.section__head .lead { margin: 12px 0 0; }
.stack > * + * { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out);
  will-change: transform;
}
.btn:hover { box-shadow: var(--shadow-2); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--accent:hover { --btn-bg: color-mix(in srgb, var(--accent) 86%, #000); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { --btn-bg: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--ok); }
.status--ask { color: var(--warn); }
.status--out { color: var(--err); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-1);
}
.p-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
}
.p-card__media { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 18px; }
.p-card__media img { width: 100%; height: 100%; object-fit: contain; }
.p-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card__brand { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.p-card__title { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-card__price { font-weight: 800; font-size: 17px; }
.p-card__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 244, 239, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(246, 244, 239, .94); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); }
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { height: 22px; width: auto; }

.nav { flex: 1; min-width: 0; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: background-color .2s, color .2s; white-space: nowrap;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--surface); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav__item { position: relative; }
.nav__item .icon { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }

.mega {
  position: absolute; left: 0; top: calc(100% + 10px); min-width: 560px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px;
  padding: 20px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
}
.nav__item:hover > .mega, .nav__item:focus-within > .mega, .nav__item.is-open > .mega {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__item:hover > .nav__link .icon, .nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.mega__group { padding: 8px 0; }
.mega__title { display: block; font-weight: 700; font-size: 15px; padding: 6px 10px; border-radius: 10px; }
.mega__title:hover { background: var(--bg); }
.mega__list { list-style: none; margin: 2px 0 0; padding: 0; }
.mega__list a { display: block; padding: 5px 10px; font-size: 14px; color: var(--ink-2); border-radius: 8px; }
.mega__list a:hover { color: var(--ink); background: var(--bg); }

.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.tool-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); transition: background-color .2s;
}
.tool-btn:hover { background: var(--surface); }
.cart-badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.lang__btn:hover { background: var(--surface); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__menu a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.lang__menu a:hover, .lang__menu a[aria-current="true"] { background: var(--bg); }
.lang__menu small { color: var(--ink-3); font-weight: 700; text-transform: uppercase; }

/* Search panel */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 16px 0 24px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
}
.search-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.search-field { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 22px; background: var(--surface); border-radius: var(--r-pill); box-shadow: var(--shadow-1); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Mobile nav */
.burger { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
}
.drawer {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
}
.drawer__scrim { position: absolute; inset: 0; background: rgba(21,23,26,.4); opacity: 0; transition: opacity .3s var(--ease-out); }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; width: min(420px, 100%); background: var(--bg);
  display: flex; flex-direction: column; transition: transform .35s var(--ease-out-3);
}
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); }
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); flex: none; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px var(--gutter); overscroll-behavior: contain; }
.drawer__foot { flex: none; padding: 16px var(--gutter) 24px; border-top: 1px solid var(--line); }

.m-nav { list-style: none; margin: 0; padding: 0; }
.m-nav > li { border-bottom: 1px solid var(--line); }
.m-nav a, .m-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.m-nav summary::-webkit-details-marker { display: none; }
.m-nav details[open] > summary .icon { transform: rotate(180deg); }
.m-nav ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 8px; }
.m-nav ul a { padding: 8px 4px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.m-langs { display: flex; gap: 8px; margin-top: 20px; }

/* ---------- Brand strip ---------- */
.brands { padding: 28px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.brands__label { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.marquee { --gap: 14px; display: flex; gap: var(--gap); width: max-content; animation: marquee var(--marquee-dur, 60s) linear infinite; }
.brands:hover .marquee, .marquee:focus-within { animation-play-state: paused; }
.marquee__set { display: flex; gap: var(--gap); }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.brand-chip {
  display: grid; place-items: center; width: 168px; height: 76px; padding: 12px 18px; flex: none;
  background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.brand-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.brand-chip img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: clamp(56px, 7vw, 96px) 0 28px; margin-top: calc(var(--section) * .5); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-cta { color: #fff; }
.footer-cta .h-2 { color: #fff; margin-bottom: 18px; }
.footer-col h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; }
.contact-line .icon { margin-top: 2px; color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.5); }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--accent); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-cta { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cart drawer ---------- */
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 72px; height: 72px; border-radius: var(--r-sm); background: #fff; object-fit: contain; padding: 6px; }
.cart-item__name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.cart-item__meta { font-size: 13px; color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; height: 36px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 34px; height: 36px; display: grid; place-items: center; }
.qty input { width: 34px; border: 0; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 700; }
.cart-total strong { font-size: 22px; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--ink-3); }
.cart-empty .icon { width: 48px; height: 48px; margin: 0 auto 12px; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { margin: 18px 0 22px; }
.hero__title .accent { color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero__meta strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.hero__meta span { font-size: 14px; color: var(--ink-3); }

.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1vw, 12px); }
.swatch {
  position: relative; aspect-ratio: 1; border-radius: var(--r-md); background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.swatch:nth-child(4n+1) { border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .swatch:hover { transform: scale(1.04); box-shadow: var(--shadow-2); z-index: 1; } }
.swatch__tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.swatch:hover .swatch__tip, .swatch:focus-visible .swatch__tip { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .swatch-grid { grid-template-columns: repeat(5, 1fr); } .swatch-grid .swatch:nth-child(n+26) { display: none; } }

/* ---------- Placeholder (until real assets arrive) ---------- */
.ph {
  display: grid; place-items: center; text-align: center; padding: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(21,23,26,.04) 0 12px, transparent 12px 24px),
    var(--surface-2);
  color: var(--ink-3); font-size: 13px; font-weight: 600; border-radius: inherit;
}

/* ---------- Motion ---------- */
/* Elements are hidden only when JS motion is active (html.motion); GSAP reveals them. */
.motion [data-anim] { opacity: 0; }
.page-fade { position: fixed; inset: 0; z-index: 300; background: var(--bg); pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.page-fade.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__set[aria-hidden="true"] { display: none; }
  .brands .wrap { overflow-x: auto; }
  .motion [data-anim] { opacity: 1; }
}

/* ==========================================================================
   Global living layer: ambient paint, cursor, smart header, theme colours
   ========================================================================== */
[data-theme="auto"], .theme-auto { --t: #E4472B; }
[data-theme="home"], .theme-home { --t: #2E7D6B; }
[data-theme="polish"], .theme-polish { --t: #F2B33D; }
[data-theme="cleaning"], .theme-cleaning { --t: #2B4C9B; }
[data-theme="wood"], .theme-wood { --t: #A56E3F; }
[data-theme="resin"], .theme-resin { --t: #E9A12A; }
[data-theme="insulation"], .theme-insulation { --t: #D9922A; }
[data-theme="tools"], .theme-tools { --t: #C9472F; }
[data-theme="equipment"], .theme-equipment { --t: #2B4C9B; }
.theme-all { --t: #E4472B; }

/* Ambient paint blobs — transform-only CSS animation (GPU), very low cost */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* soft edges come from the gradient itself — no filter: blur (blur on moving layers is expensive) */
.ambient i { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; will-change: transform; }
.ambient i:nth-child(1) { background: radial-gradient(closest-side, var(--amb1, rgba(242,179,61,.24)), transparent); left: -18vmax; top: -16vmax; animation: drift1 38s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { background: radial-gradient(closest-side, var(--amb2, rgba(228,71,43,.12)), transparent); right: -22vmax; top: 24vh; animation: drift2 46s ease-in-out infinite alternate; }
.ambient i:nth-child(3) { background: radial-gradient(closest-side, var(--amb3, rgba(43,76,155,.10)), transparent); left: 16vw; bottom: -30vmax; animation: drift3 52s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, -18vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(14vw, -20vh) scale(1.1); } }

/* Tinted system cursor (fine pointers; variables set by motion.js) */
html.has-cursor, html.has-cursor body { cursor: var(--cursor, auto); }
html.has-cursor :is(a, button, [role="tab"], [role="button"], label, select, summary, .swatch, .room-sw, [data-hex]) { cursor: var(--cursor-hand, pointer); }
html.has-cursor :is(input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea) { cursor: text; }
html.has-cursor :is(.topbrands, .rail, .cc__rail) { cursor: grab; }
html.has-cursor :is(.topbrands.is-drag, .rail.is-drag, .cc__rail.is-drag) { cursor: grabbing; }

.footer-mark__row span { padding-right: .4em; }

@media (prefers-reduced-motion: reduce) {
  .ambient i, .footer-mark__row { animation: none; }
}

/* Top brand strip (above the header, every page) */
.topbrands { position: relative; z-index: 101; height: 56px; display: flex; align-items: center; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.topbrands .marquee { --gap: 10px; }
.topbrands { cursor: grab; touch-action: pan-y; user-select: none; }
.topbrands.is-drag { cursor: grabbing; }
.topbrands .marquee { will-change: transform; }
.topbrand img { pointer-events: none; -webkit-user-drag: none; }
.topbrand { display: grid; place-items: center; width: 112px; height: 40px; padding: 4px 10px; border-radius: 10px; flex: none; transition: background-color .2s, transform .25s var(--ease-out); }
.topbrand:hover { background: var(--bg); transform: translateY(-2px); }
.topbrand img { max-width: 100%; max-height: 30px; width: auto; height: auto; object-fit: contain; }
.topbrands::before, .topbrands::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; pointer-events: none; }
.topbrands::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.topbrands::after { right: 0; background: linear-gradient(-90deg, #fff, rgba(255,255,255,0)); }
@media (prefers-reduced-motion: reduce) { .topbrands { overflow-x: auto; } }
.footer-author { color: rgba(255,255,255,.55); }
.footer-author b { color: rgba(255,255,255,.85); font-weight: 700; }
.footer-author a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.footer-author a:hover { color: #fff; }

/* ---------- Brand pages: the whole site takes the brand's colours (vars set on <body> by brand.blade) ---------- */
body.is-branded { background: var(--bg); transition: background-color .6s var(--ease-out); }
body.is-branded .site-header { background: color-mix(in srgb, var(--bg) 86%, transparent); box-shadow: inset 0 -2px 0 var(--accent); }
body.is-branded .site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); }
body.is-branded .eyebrow { color: var(--accent-text, var(--accent)); }
.brand-wipe { position: fixed; inset: 0; z-index: 500; pointer-events: none; display: none; }
.motion .brand-wipe { display: block; }
.brand-wipe i { position: absolute; inset: 0; transform-origin: 0 50%; animation: brandWipe 1.05s cubic-bezier(.76, 0, .24, 1) forwards; }
.brand-wipe i:nth-child(1) { background: var(--brand2); animation-delay: .14s; }
.brand-wipe i:nth-child(2) { background: var(--brand1); }
@keyframes brandWipe { 0% { transform: scaleX(1); transform-origin: 100% 50%; } 100% { transform: scaleX(0); transform-origin: 100% 50%; } }
.brand-wipe b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(36px, 7vw, 96px); font-weight: 800; letter-spacing: -.02em; color: var(--brand-ink, #fff); animation: brandWord .75s var(--ease-out) forwards; white-space: nowrap; }
@keyframes brandWord { 0% { opacity: 0; transform: translate(-50%, -40%); } 35% { opacity: 1; transform: translate(-50%, -50%); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }

/* Products mega menu: the full category tree — 3 columns, scrolls if taller than the screen */
.mega { min-width: min(940px, calc(100vw - 48px)); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 28px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; }
.mega__title { font-weight: 800; }
.mega__list a { padding: 4px 10px; font-size: 13.5px; }
.m-nav__cat > a b { font-weight: 700; color: var(--ink); }
.m-nav ul.m-nav__subs { margin: 0 0 8px; padding-left: 14px; border-left: 2px solid var(--line); }
.m-nav ul.m-nav__subs a { padding: 6px 4px; font-size: 14px; }
/* masonry columns: no gaps between short and long groups */
.mega { display: block; columns: 3; column-gap: 28px; }
.mega__group { break-inside: avoid; padding: 6px 0 14px; }

/* Polisan Club sign-in pill in the header (Polisan red + the card's rainbow edge) */
.club-pill {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 5px; margin-right: 4px;
  border-radius: var(--r-pill); color: #fff; overflow: hidden; isolation: isolate; flex: none;
  background: linear-gradient(120deg, #9e0b26 0%, #d0102f 55%, #ec3a4c 100%);
  box-shadow: 0 6px 18px -8px rgba(200, 16, 46, .7), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.club-pill::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: -1;
  background: linear-gradient(90deg, #7b2cbf, #1e5fd8, #12a3d9, #19b34a, #f2d21b, #f28c1b, #e5302c);
}
.club-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(200, 16, 46, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.club-pill__card { width: 40px; height: 26px; border-radius: 5px; overflow: hidden; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.35); background: #0b1a5e; }
.club-pill__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.club-pill__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.club-pill__txt small { font-size: 10.5px; font-weight: 600; opacity: .85; letter-spacing: .02em; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.club-pill__txt b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.club-pill.is-in::before { content: ""; position: absolute; top: 7px; left: 37px; width: 9px; height: 9px; border-radius: 50%; background: #3ddc6b; border: 2px solid #c40f2d; z-index: 1; }
/* make room for the pill: tighter menu; burger menu up to 1180px */
@media (min-width: 1181px) { .nav__list { gap: 0; } .nav__link { padding: 0 9px; font-size: 14.5px; } }
@media (max-width: 1180px) { .nav { display: none; } .burger { display: inline-grid; } }
@media (max-width: 1320px) and (min-width: 1181px) { .club-pill { padding: 0 5px; } .club-pill__txt { display: none; } }
.club-pill--strip { display: none; }
@media (max-width: 560px) {
  .header-tools > .club-pill { display: none; }
  .club-pill--strip { display: flex; height: 40px; margin: 0; border-radius: 0; padding: 0 16px; gap: 10px; box-shadow: none; }
  .club-pill--strip:hover { transform: none; }
  .club-pill--strip .club-pill__txt { display: flex; flex-direction: row; align-items: baseline; gap: 8px; flex: 1; }
  .club-pill--strip .club-pill__txt small { font-size: 12px; max-width: none; }
  .club-pill--strip .club-pill__card { width: 34px; height: 22px; }
  .club-pill--strip.is-in::before { top: 6px; left: 44px; }
  .club-pill__go { display: inline-grid; margin-left: auto; }
}

.hdr-tight .club-pill { padding: 0 5px; } .hdr-tight .club-pill__txt { display: none; }
.hdr-tighter .nav__link { padding: 0 6px; font-size: 13.5px; }

/* account button */
.acc-btn { position: relative; }
.acc-btn.is-in::after { content: ""; position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #2DB55D; box-shadow: 0 0 0 2px var(--bg, #F6F4EF); }
@media (max-width: 560px) { .header-tools > .acc-btn { display: none; } }
.m-nav__acc a { font-weight: 800; color: var(--accent); }
.m-nav__acc a .icon--sm { margin-right: 6px; }

/* header: the language list always opens above the Polisan strip */
.site-header__bar { position: relative; z-index: 4; }
.lang__menu { z-index: 6; }
.club-pill--strip { position: relative; z-index: 1; }
/* phone menu: language as one compact dropdown */
.drawer__panel { overflow-x: hidden; }
.m-lang { margin-top: 18px; border-radius: 14px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--line); }
.m-lang > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 15px; }
.m-lang > summary::-webkit-details-marker { display: none; }
.m-lang > summary span { color: var(--ink-3); font-weight: 600; }
.m-lang > summary b { margin-left: auto; }
.m-lang > summary .icon:last-child { transition: transform .2s; }
.m-lang[open] > summary .icon:last-child { transform: rotate(180deg); }
.m-lang ul { list-style: none; margin: 0; padding: 0 6px 6px; display: grid; gap: 2px; }
.m-lang a { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.m-lang a small { color: var(--ink-3); font-weight: 700; margin-left: auto; }
.m-lang a[aria-current="true"] { background: var(--bg); color: var(--ink); }
.m-lang a .icon { color: var(--accent); }
.m-nav__lbl { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.m-nav__acc a .icon--sm { margin-right: 0; }

/* footer: one "AKZO" → home */
.footer-mark__home { display: inline-block; color: inherit; text-decoration: none; transition: opacity .2s; }
.footer-mark__home:hover { opacity: .75; }
/* phone menu: brand logos instead of names */
.m-nav__logos { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 6px 0 10px; }
.m-nav__logo { display: grid !important; place-items: center; height: 54px; padding: 8px 10px !important; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(21,23,26,.08); }
.m-nav__logo img { max-width: 100%; max-height: 34px; object-fit: contain; display: block; }
