/* ==========================================================================
   KCX theme — "label system"
   Every Koch Chemie bottle carries a colored band and a short code; the site
   borrows that: a colored band per brand on cards, nav and the hero bottles,
   carbon header/footer, cool steel-white page, one red for actions.
   Type: Unbounded (display) · IBM Plex Sans (body) · IBM Plex Mono (codes, prices)
   ========================================================================== */
:root {
  --kx-bg: #f1f3f2;
  --kx-surface: #ffffff;
  --kx-carbon: #0f1214;
  --kx-carbon-2: #171b1e;
  --kx-ink: #161a1d;
  --kx-ink-2: #5a636a;
  --kx-line: #d9dedc;
  --kx-line-2: #c3cac7;
  --kx-red: #e2001a;
  --kx-red-d: #b80015;
  --kx-green: #1f8a4c;
  --kx-band: #8a949b;                 /* default label band (unknown brand) */
  --kx-band-koch: #e2001a;            /* Koch Chemie */
  --kx-gold: #DF922B;                 /* Arti Golden brand gold (child brand — leather atelier) */
  --kx-gold-d: #B06C12;
  --kx-band-colourlock: var(--kx-gold);  /* Colourlock = the leather world = Arti Golden's domain */
  --kx-band-chemicalworkz: #1f6fe0;   /* ChemicalWorkz */
  --kx-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --kx-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kx-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --kx-radius: 6px;
  --kx-wrap: 1280px;
}

/* ---------- brand → band colour (data-brand is slugified manufacturer / top category) */
[data-brand="koch-chemie"], [data-brand="koch chemie"] { --kx-band: var(--kx-band-koch); }
[data-brand="colourlock"] { --kx-band: var(--kx-band-colourlock); }
/* Categories are neutral; brand colours live on product cards only. */
[data-brand="chemicalworkz"], [data-brand="chemical-workz"] { --kx-band: var(--kx-band-chemicalworkz); }

/* ---------- base: override OpenCart/bootstrap defaults */
body.kcx { margin: 0; background: var(--kx-bg); color: var(--kx-ink); font-family: var(--kx-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.kcx #container { position: static; width: auto; min-height: 0; margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
body.kcx main { flex: 1 0 auto; }
body.kcx #content, body.kcx #column-left, body.kcx #column-right { padding-bottom: 0; }
body.kcx a { color: var(--kx-ink); text-decoration: none; }
body.kcx a:hover { color: var(--kx-red); }
body.kcx h1, body.kcx h2, body.kcx h3 { color: var(--kx-ink); }
body.kcx img { max-width: 100%; }
body.kcx :focus-visible { outline: 2px solid var(--kx-red); outline-offset: 2px; }
.kx-wrap { max-width: var(--kx-wrap); margin: 0 auto; padding: 0 24px; }
.kx-h1 { font-family: var(--kx-display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.kx-h2 { font-family: var(--kx-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; margin: 0; }
.kx-eyebrow { font-family: var(--kx-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kx-red); }
.kx-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--kx-band); flex: none; }

/* ---------- buttons / chips */
.kx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--kx-radius); border: 2px solid transparent; font-family: var(--kx-body); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.kx-btn--red { background: var(--kx-red); color: #fff; }
.kx-btn--red:hover { background: var(--kx-red-d); color: #fff; }
.kx-btn--ghost { background: transparent; color: var(--kx-ink); border-color: var(--kx-ink); }
.kx-btn--ghost:hover { color: var(--kx-red); border-color: var(--kx-red); }
.kx-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--kx-line-2); border-radius: 999px; background: var(--kx-surface); font-size: 14px; font-weight: 500; color: var(--kx-ink); white-space: nowrap; }
.kx-chip:hover { border-color: var(--kx-ink); color: var(--kx-ink); }
.kx-chip--lg { height: 40px; padding: 0 16px; font-size: 15px; }
.kx-chip--mono { font-family: var(--kx-mono); font-size: 13px; color: var(--kx-ink-2); }
.kx-chip--brand { border-color: var(--kx-band); }

/* ---------- header */
.kx-header { position: sticky; top: 0; z-index: 1020; }
.kx-topbar { background: #0a0c0e; color: rgba(255,255,255,.7); font-size: 13px; }
.kx-topbar .kx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 36px; }
.kx-topbar__right { display: flex; align-items: center; gap: 20px; min-width: 0; }
.kx-topbar__phone { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; font-weight: 600; font-family: var(--kx-mono); }
.kx-topbar__hours { white-space: nowrap; }
.kx-lang { display: flex; gap: 2px; margin: 0; }
body.kcx .kx-lang__item { display: inline-block; width: auto; padding: 4px 7px; background: transparent; border-radius: 3px; font-family: var(--kx-mono); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); cursor: pointer; }
.kx-lang__item:hover { color: #fff; }
body.kcx .kx-lang__item.is-active { color: #fff; background: rgba(255,255,255,.12); }
.kx-currency { margin: 0; }
.kx-currency__toggle { font-family: var(--kx-mono); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); cursor: pointer; }
.kx-currency__menu { min-width: 180px; font-size: 14px; }

.kx-bar { background: var(--kx-carbon); color: #fff; }
.kx-bar .kx-wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.kx-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; }
.kx-logo__mark { width: 42px; height: 42px; filter: invert(1); border-radius: 4px; }
.kx-logo__word { font-family: var(--kx-display); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.kx-logo__tld { color: rgba(255,255,255,.45); font-weight: 500; }
.kx-catbtn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border: 0; border-radius: var(--kx-radius); background: var(--kx-red); color: #fff; font: 600 15px var(--kx-body); cursor: pointer; flex: none; }
.kx-catbtn:hover { background: var(--kx-red-d); }
.kx-catbtn__close { display: none; }
.kx-catbtn.is-open .kx-catbtn__close { display: block; }
.kx-catbtn.is-open .kx-catbtn__burger { display: none; }
.kx-bar__search { flex: 1; min-width: 0; }
.kx-search { display: flex; align-items: center; height: 48px; background: #fff; border-radius: var(--kx-radius); overflow: hidden; margin: 0; }
.kx-search__icon { margin: 0 0 0 14px; color: var(--kx-ink-2); flex: none; }
.kx-search__input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 12px; font: 500 15px var(--kx-body); color: var(--kx-ink); background: transparent; }
.kx-search__input::placeholder { color: #8b949b; }
.kx-search__input:focus { outline: none; }
.kx-search__btn { height: 100%; padding: 0 20px; border: 0; background: var(--kx-red); color: #fff; font: 600 14px var(--kx-body); cursor: pointer; }
.kx-search__btn:hover { background: var(--kx-red-d); }
.kx-bar__actions { display: flex; align-items: center; gap: 6px; }
body.kcx .kx-bar__actions .kx-search-toggle { display: none; }
.kx-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; border-radius: var(--kx-radius); color: #fff !important; cursor: pointer; }
.kx-iconbtn:hover { background: rgba(255,255,255,.1); }
.kx-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; border-radius: var(--kx-radius); }
body.kcx #cart { display: flex; align-items: center; margin: 0; }
.kx-cart { position: relative; display: flex; align-items: center; }
.kx-cart__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--kx-radius); background: transparent; color: #fff; font: 600 14px var(--kx-body); cursor: pointer; }
.kx-cart__btn:hover { border-color: #fff; }
.kx-cart__menu { width: 380px; padding: 16px; border: 1px solid var(--kx-line); border-radius: var(--kx-radius); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.kx-cart__list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow: auto; }
.kx-cart__row { display: flex; align-items: center; gap: 12px; }
.kx-cart__thumb img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--kx-line); border-radius: 4px; background: #fff; }
.kx-cart__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kx-cart__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-cart__meta { font-family: var(--kx-mono); font-size: 12px; color: var(--kx-ink-2); }
.kx-cart__remove { width: 28px; height: 28px; border: 0; background: var(--kx-bg); border-radius: 4px; color: var(--kx-ink-2); font-size: 18px; line-height: 1; cursor: pointer; }
.kx-cart__remove:hover { background: var(--kx-red); color: #fff; }
.kx-cart__totals { border-top: 1px solid var(--kx-line); padding-top: 10px; margin-bottom: 12px; font-size: 14px; }
.kx-cart__total { display: flex; justify-content: space-between; padding: 2px 0; }
.kx-cart__actions { display: flex; gap: 8px; }
.kx-cart__actions .kx-btn { flex: 1; height: 42px; padding: 0 12px; font-size: 14px; }
.kx-cart__empty { margin: 8px 0; text-align: center; color: var(--kx-ink-2); }

.kx-nav { background: var(--kx-surface); border-bottom: 1px solid var(--kx-line); }

.kx-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 4px; }
.kx-nav__item { position: relative; }
.kx-nav__link { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; font-weight: 600; font-size: 15px; color: var(--kx-ink) !important; border-bottom: 3px solid transparent; }
.kx-nav__item:hover > .kx-nav__link { border-bottom-color: var(--kx-band); }
.kx-nav__item--muted { margin-left: auto; }
.kx-nav__item--muted .kx-nav__link { color: var(--kx-ink-2) !important; font-weight: 500; }
.kx-nav__panel { display: none; position: absolute; left: 0; top: 100%; z-index: 30; min-width: 280px; padding-top: 0; }
.kx-nav__item:hover .kx-nav__panel, .kx-nav__item:focus-within .kx-nav__panel { display: block; }
.kx-nav__panel-inner { background: var(--kx-surface); border: 1px solid var(--kx-line); border-top: 3px solid var(--kx-band); border-radius: 0 0 var(--kx-radius) var(--kx-radius); box-shadow: 0 16px 40px rgba(0,0,0,.12); padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 2px; }
.kx-nav__child { display: block; padding: 9px 12px; border-radius: 4px; font-size: 14px; font-weight: 500; color: var(--kx-ink) !important; }
.kx-nav__child:hover { background: var(--kx-bg); }
.kx-nav__child--all { grid-column: 1 / -1; margin-top: 6px; border-top: 1px solid var(--kx-line); border-radius: 0; padding-top: 12px; font-weight: 600; }

/* ---------- hero */
.kx-hero { background: var(--kx-carbon); color: #fff; position: relative; overflow: hidden; }
.kx-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.kx-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.kx-hero__copy { display: flex; flex-direction: column; gap: 16px; }
body.kcx .kx-hero__title { font-family: var(--kx-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.01em; margin: 0; color: #fff; text-wrap: balance; }
.kx-hero__lead { margin: 0; max-width: 600px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.72); }
.kx-hero__search { display: flex; align-items: center; height: 54px; background: #fff; border-radius: var(--kx-radius); padding: 5px 5px 5px 16px; gap: 10px; max-width: 640px; }
.kx-hero__search svg { color: var(--kx-ink-2); flex: none; }
.kx-hero__search input { flex: 1 1 0; min-width: 0; width: 0; height: 100%; border: 0; background: transparent; font: 500 16px var(--kx-body); color: var(--kx-ink); }
.kx-hero__search input:focus { outline: none; }
.kx-hero__search .kx-btn { height: 100%; }
.kx-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.kx-chips__label { font-family: var(--kx-mono); font-size: 12px; color: rgba(255,255,255,.5); margin-right: 4px; }
.kx-hero .kx-chip { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.kx-hero .kx-chip:hover { border-color: #fff; }

.kx-hero__bottles { position: relative; height: 440px; }
.kx-label { position: absolute; display: flex; flex-direction: column; width: 196px; background: #fff; border-radius: 8px; overflow: hidden; color: var(--kx-ink) !important; box-shadow: 0 30px 60px rgba(0,0,0,.45); transition: transform .25s ease; }
.kx-label:hover { transform: translateY(-6px); }
.kx-label__band { display: block; height: 8px; background: var(--kx-band); }
.kx-label img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 12px; background: #fff; }
.kx-label__meta { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 12px; border-top: 1px solid var(--kx-line); }
.kx-label__brand { font-family: var(--kx-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--kx-ink-2); }
.kx-label__name { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kx-label__price { font-family: var(--kx-mono); font-weight: 600; font-size: 15px; margin-top: 4px; }
.kx-label--1 { left: 0; top: 30px; z-index: 3; }
.kx-label--2 { left: 44%; top: 0; z-index: 2; transform: rotate(3deg); }
.kx-label--3 { left: 26%; top: 224px; z-index: 1; transform: rotate(-2deg); width: 176px; }
.kx-label--2:hover { transform: rotate(3deg) translateY(-6px); }
.kx-label--3:hover { transform: rotate(-2deg) translateY(-6px); }

/* ---------- sections */
.kx-section { max-width: var(--kx-wrap); margin: 0 auto; padding: 64px 24px 0; }
.kx-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.kx-section__sub { margin: 0; color: var(--kx-ink-2); max-width: 520px; }
.kx-grid { display: grid; gap: 16px; }
.kx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* catalogue by brand */
.kx-brands { display: flex; flex-direction: column; gap: 14px; }
.kx-brand { background: var(--kx-surface); border: 1px solid var(--kx-line); border-left: 6px solid var(--kx-band); border-radius: var(--kx-radius); padding: 18px 22px 20px; }
.kx-brand__head { display: flex; align-items: center; gap: 14px; color: var(--kx-ink) !important; }
.kx-brand__head .kx-dot { display: none; }
.kx-brand__name { font-family: var(--kx-display); font-weight: 700; font-size: 22px; }
.kx-brand__total { font-family: var(--kx-mono); font-size: 13px; color: var(--kx-ink-2); }
.kx-brand__arrow { margin-left: auto; font-size: 20px; color: var(--kx-ink-2); transition: transform .15s; }
.kx-brand__head:hover .kx-brand__arrow { transform: translateX(4px); color: var(--kx-red); }
.kx-brand__children { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 14px; }
.kx-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--kx-bg); border-radius: 4px; font-weight: 500; font-size: 15px; color: var(--kx-ink) !important; }
.kx-tile:hover { background: var(--kx-ink); color: #fff !important; }
.kx-tile__total { font-family: var(--kx-mono); font-size: 12px; opacity: .6; }

/* product card */
.kx-card { position: relative; display: flex; flex-direction: column; background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.kx-card:hover { border-color: var(--kx-line-2); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.kx-card__band { display: block; height: 6px; background: var(--kx-band); }
.kx-card__image { display: block; aspect-ratio: 1 / 1; padding: 18px; background: #fff; }
.kx-card__image img { width: 100%; height: 100%; object-fit: contain; }
.kx-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 16px; border-top: 1px solid var(--kx-line); flex: 1; }
.kx-card__brand { font-family: var(--kx-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--kx-ink-2); }
.kx-card__name { margin: 0; font-family: var(--kx-body); font-weight: 600; font-size: 15px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kx-card__name a { color: var(--kx-ink); }
.kx-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.kx-card__form { margin: 0; }
.kx-card__cart { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--kx-ink); border-radius: var(--kx-radius); background: transparent; color: var(--kx-ink); cursor: pointer; transition: background .15s, color .15s; }
.kx-card__cart:hover { background: var(--kx-red); border-color: var(--kx-red); color: #fff; }
.kx-card__stock { font-size: 12px; font-weight: 500; }
.kx-card__stock.is-in { color: var(--kx-green); }
.kx-card__stock.is-out { color: var(--kx-ink-2); }
.kx-price { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--kx-mono); }
.kx-price__now { font-weight: 600; font-size: 18px; }
.kx-price__old { font-size: 13px; color: var(--kx-ink-2); }
.kx-price--big .kx-price__now { font-size: 34px; }
.kx-price--big .kx-price__old { font-size: 16px; }

/* ---------- pages (category / product) */
.kx-page { padding-top: 18px; padding-bottom: 0; }
.kx-crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--kx-ink-2); }
.kx-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--kx-line-2); }
.kx-crumbs a { color: var(--kx-ink-2); }
.kx-crumbs li:last-child a { color: var(--kx-ink); font-weight: 500; }
.kx-page__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.kx-page__results { font-family: var(--kx-mono); font-size: 13px; color: var(--kx-ink-2); }
.kx-page__intro { max-width: 760px; color: var(--kx-ink-2); margin-bottom: 16px; }
.kx-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.kx-page__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.kx-page__body:not(:has(.kx-aside)) { grid-template-columns: minmax(0, 1fr); }
.kx-aside { position: sticky; top: 180px; }
.kx-aside #column-left { width: 100%; max-width: none; flex: none; padding: 0; }
@media (min-width: 992px) { .kx-aside #column-left { display: block !important; } }
.kx-aside .list-group-item { border-color: var(--kx-line); font-size: 14px; }
.kx-aside .list-group-item.active { background: var(--kx-ink); border-color: var(--kx-ink); }
.kx-toolbar { display: flex; gap: 12px; justify-content: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.kx-select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--kx-ink-2); }
.kx-select select { height: 38px; border: 1px solid var(--kx-line-2); border-radius: 4px; background: #fff; padding: 0 10px; font: 500 14px var(--kx-body); color: var(--kx-ink); }
.kx-pagination { margin-top: 28px; }
.kx-pagination .pagination { gap: 4px; flex-wrap: wrap; }
.kx-pagination .page-link { border-radius: 4px !important; border-color: var(--kx-line); color: var(--kx-ink); font-family: var(--kx-mono); font-size: 14px; }
.kx-pagination .page-item.active .page-link, .kx-pagination .page-item.active .page-link:hover { background: var(--kx-ink); border-color: var(--kx-ink); color: #fff; }
.kx-empty { padding: 48px 0; text-align: center; color: var(--kx-ink-2); display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* product page */
.kx-product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.kx-gallery { display: flex; flex-direction: column; gap: 12px; }
.kx-gallery__main { position: relative; display: block; background: #fff; border: 1px solid var(--kx-line); border-radius: var(--kx-radius); overflow: hidden; }
.kx-gallery__main .kx-label__band { position: absolute; left: 0; right: 0; top: 0; }
.kx-gallery__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 36px; }
.kx-gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.kx-gallery__thumb { width: 84px; height: 84px; border: 1px solid var(--kx-line); border-radius: 4px; background: #fff; overflow: hidden; }
.kx-gallery__thumb:hover { border-color: var(--kx-ink); }
.kx-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kx-product__info { display: flex; flex-direction: column; gap: 18px; }
.kx-product__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kx-product__title { font-size: clamp(24px, 2.6vw, 34px); }
.kx-buy { background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.kx-buy__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kx-stock { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.kx-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.kx-stock.is-in { color: var(--kx-green); }
.kx-stock.is-out { color: var(--kx-ink-2); }
.kx-buy__tax { font-size: 13px; color: var(--kx-ink-2); margin-top: -8px; }
.kx-buy__discounts { list-style: none; margin: 0; padding: 0; font-family: var(--kx-mono); font-size: 13px; color: var(--kx-ink-2); }
.kx-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.kx-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.kx-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.kx-radio { position: relative; }
.kx-radio input { position: absolute; opacity: 0; }
.kx-radio span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--kx-line-2); border-radius: 4px; background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.kx-radio input:checked + span { border: 2px solid var(--kx-ink); }
.kx-buy__row { display: flex; gap: 10px; }
.kx-qty { display: flex; align-items: center; height: 52px; border: 2px solid var(--kx-ink); border-radius: var(--kx-radius); overflow: hidden; flex: none; }
.kx-qty__btn { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--kx-ink); }
.kx-qty__btn:hover { background: var(--kx-bg); }
.kx-qty__input { width: 48px; height: 100%; border: 0; text-align: center; font: 600 17px var(--kx-mono); color: var(--kx-ink); }
.kx-qty__input:focus { outline: none; }
.kx-buy__cart { flex: 1; height: 52px; font-size: 16px; }
.kx-buy__notes { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--kx-line); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--kx-ink-2); }
.kx-buy__notes li { padding-left: 18px; position: relative; }
.kx-buy__notes li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--kx-band); }
.kx-note { font-size: 13px; color: var(--kx-ink-2); }
.kx-details { margin-top: 48px; }
.kx-tabs { border-bottom: 2px solid var(--kx-line); gap: 6px; margin-bottom: 24px; }
.kx-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 14px; font-family: var(--kx-display); font-weight: 500; font-size: 15px; color: var(--kx-ink-2); border-radius: 0; }
.kx-tabs .nav-link:hover { color: var(--kx-ink); }
.kx-tabs .nav-link.active { color: var(--kx-ink); border-bottom-color: var(--kx-red); background: transparent; }
.kx-prose { max-width: 800px; font-size: 16px; line-height: 1.65; }
.kx-prose p { margin: 0 0 1em; }
.kx-prose img { max-width: 100%; height: auto; }
.kx-prose [style] { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
.kx-specs { max-width: 600px; margin-bottom: 20px; }
.kx-specs__group { display: block; font-family: var(--kx-display); font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.kx-specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--kx-line); font-size: 15px; }
.kx-specs__row span { color: var(--kx-ink-2); }
.kx-tags { font-size: 14px; color: var(--kx-ink-2); }

/* ---------- footer */
body.kcx footer.kx-footer { position: static; bottom: auto; width: auto; margin-top: 80px; padding: 0; background: var(--kx-carbon); color: rgba(255,255,255,.7); }
.kx-trust { background: var(--kx-surface); border-top: 1px solid var(--kx-line); color: var(--kx-ink); }
.kx-trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.kx-trust__item { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 3px solid var(--kx-red); }
.kx-trust__item strong { font-family: var(--kx-display); font-weight: 500; font-size: 15px; }
.kx-trust__item span { font-size: 14px; color: var(--kx-ink-2); }
.kx-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 52px; padding-bottom: 44px; }
.kx-footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
body.kcx .kx-footer a { color: rgba(255,255,255,.7); }
body.kcx .kx-footer a:hover { color: #fff; }
.kx-footer__col p { margin: 0; line-height: 1.55; }
.kx-footer__brand { font-family: var(--kx-display); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 6px; }
.kx-footer__h { font-family: var(--kx-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.kx-footer__phone { font-family: var(--kx-mono); font-weight: 600; font-size: 16px; color: #fff !important; }
.kx-pay { display: flex; gap: 6px; margin-top: 10px; }
.kx-pay span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; font-family: var(--kx-mono); font-size: 11px; letter-spacing: .05em; color: #fff; }
.kx-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.kx-footer__bottom .kx-wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.kx-footer__bottom a { color: rgba(255,255,255,.55); }

/* category tree (override of extension/opencart/module/category) */
.kx-tree { display: flex; flex-direction: column; gap: 6px; }
.kx-tree__brand { border: 1px solid var(--kx-line); border-left: 4px solid var(--kx-band); border-radius: 4px; background: var(--kx-surface); overflow: hidden; }
.kx-tree__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-weight: 600; font-size: 14px; color: var(--kx-ink) !important; }
.kx-tree__head.is-active { background: var(--kx-ink); color: #fff !important; }
.kx-tree__count { font-family: var(--kx-mono); font-size: 11px; opacity: .55; }
.kx-tree__children { display: flex; flex-direction: column; padding: 4px 0 6px; }
.kx-tree__child { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px 6px 16px; font-size: 13px; color: var(--kx-ink-2) !important; }
.kx-tree__child:hover, .kx-tree__child.is-active { color: var(--kx-ink) !important; background: var(--kx-bg); }

/* ---------- misc core bits */
body.kcx #alert { top: 96px; }
body.kcx .breadcrumb { display: none; }

/* ---------- responsive */
@media (max-width: 1199px) {
  .kx-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kx-hero__bottles { height: 420px; }
  .kx-label { width: 180px; }
  .kx-label--3 { width: 160px; top: 210px; }
}
@media (max-width: 991px) {
  .kx-topbar__hours, .kx-topbar__claim { display: none; }
  .kx-topbar .kx-wrap { justify-content: flex-end; }
  .kx-bar .kx-wrap { gap: 6px; height: 64px; flex-wrap: wrap; padding-top: 0; }
  .kx-logo__word { font-size: 17px; }
  .kx-logo { margin-right: auto; }
  body.kcx .kx-bar__actions .kx-search-toggle { display: inline-flex; }
  .kx-bar__actions { order: 2; margin-left: 0; }
  .kx-catbtn { order: 3; }
  .kx-bar__search { order: 10; flex-basis: 100%; display: none; }
  body.kx-search-open .kx-bar__search { display: block; padding-bottom: 12px; }
  body.kx-search-open .kx-bar .kx-wrap { height: auto; padding-top: 10px; }
  body.kx-search-open .kx-search-toggle { background: rgba(255,255,255,.12); }
  .kx-cart__label { display: none; }
  .kx-cart__btn { width: 48px; padding: 0; }
  .kx-nav { border-bottom: 0; }
  .kx-nav__collapse { background: var(--kx-surface); border-bottom: 1px solid var(--kx-line); }
  .kx-nav__list { flex-direction: column; gap: 0; padding: 8px 0; }
  .kx-nav__link { height: 48px; border-bottom: 0; border-left: 3px solid var(--kx-band); }
  .kx-nav__panel { position: static; display: block; min-width: 0; }
  .kx-nav__panel-inner { border: 0; box-shadow: none; border-radius: 0; padding: 0 0 8px 24px; grid-template-columns: 1fr; }
  .kx-nav__child--all { display: none; }
  .kx-nav__item--muted { margin-left: 0; }
  .kx-hero__grid { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 40px; }
  .kx-hero__bottles { height: 300px; }
  .kx-label { width: 170px; }
  .kx-label--1 { left: 2%; top: 20px; }
  .kx-label--2 { left: 38%; top: 0; }
  .kx-label--3 { left: 66%; top: 40px; width: 160px; }
  .kx-page__body { grid-template-columns: minmax(0, 1fr); }
  .kx-aside { position: static; }
  .kx-product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kx-trust__grid, .kx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .kx-topbar__right { gap: 12px; }
  .kx-currency { display: none; }
  .kx-wrap, .kx-section { padding-left: 16px; padding-right: 16px; }
  .kx-section { padding-top: 44px; }
  .kx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kx-card__image { padding: 12px; }
  .kx-card__body { padding: 10px 12px 12px; }
  .kx-chips .kx-chip:nth-child(n+5) { display: none; }
  .kx-hero__copy { gap: 12px; }
  .kx-hero__lead { font-size: 15px; }
  /* phones: the scattered collage becomes a clean 3-up grid with name + price */
  .kx-hero__bottles { position: static; height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body.kcx .kx-label { position: static; width: auto; transform: none; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
  body.kcx .kx-label:hover { transform: none; }
  .kx-label img { padding: 8px; }
  .kx-label__meta { display: flex; padding: 6px 9px 9px; gap: 1px; }
  .kx-label__brand { display: none; }
  .kx-label__name { font-size: 11px; line-height: 1.25; }
  .kx-label__price { font-size: 13px; margin-top: 2px; }
  .kx-hero__search { height: 52px; }
  .kx-hero__search .kx-btn { padding: 0 14px; }
  .kx-brand { padding: 14px 14px 16px; }
  .kx-brand__head { flex-wrap: wrap; gap: 6px 12px; }
  .kx-brand__name { font-size: 19px; }
  .kx-brand__total { flex-basis: 100%; order: 3; }
  .kx-tile { font-size: 13px; padding: 9px 10px; align-items: flex-start; }
  .kx-tile__name { white-space: normal; line-height: 1.25; }
  .kx-price__now { font-size: 16px; white-space: nowrap; }
  .kx-card__foot { gap: 6px; }
  .kx-brand__children { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-tile__name { min-width: 0; }
  .kx-trust__grid, .kx-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kx-footer__bottom .kx-wrap { flex-direction: column; height: auto; padding: 14px 16px; gap: 6px; }
  .kx-buy { padding: 16px; }
  .kx-buy__row { flex-wrap: wrap; }
  .kx-buy__cart { flex: 1 1 100%; }
  .kx-gallery__main img { padding: 18px; }
  .kx-cart__menu { width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .kx-label, .kx-brand__arrow, .kx-btn, .kx-card { transition: none; }
}

/* ==========================================================================
   Core (bootstrap) pages not rewritten as templates — cart, checkout steps,
   account, forms, tables — restyled to the theme so nothing looks foreign.
   ========================================================================== */
body.kcx .container { max-width: var(--kx-wrap); padding-left: 24px; padding-right: 24px; padding-top: 18px; }
body.kcx .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 13px; color: var(--kx-ink-2); background: none; }
body.kcx .breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--kx-line-2); padding-right: 6px; }
body.kcx .breadcrumb a { color: var(--kx-ink-2); } body.kcx .breadcrumb-item:last-child a { color: var(--kx-ink); font-weight: 500; }
body.kcx .breadcrumb .fa-house::before, body.kcx .kx-crumbs .fa-house::before { content: none; }
body.kcx #content > h1, body.kcx .container h1:not(.kx-h1):not(.kx-hero__title) { font-family: var(--kx-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; margin: 0 0 20px; }
body.kcx .container h2:not(.kx-h2), body.kcx .container h3:not(.kx-h2), body.kcx legend, body.kcx .card-header { font-family: var(--kx-display); font-weight: 500; font-size: 16px; color: var(--kx-ink); border: 0; }
body.kcx legend { padding: 0; margin-bottom: 14px; border-bottom: 2px solid var(--kx-line); padding-bottom: 8px; }
body.kcx .btn { border-radius: var(--kx-radius); font-weight: 600; font-family: var(--kx-body); }
body.kcx .btn-primary, body.kcx .btn-info { background: var(--kx-red); border-color: var(--kx-red); color: #fff; padding: 11px 20px; }
body.kcx .btn-primary:hover, body.kcx .btn-info:hover { background: var(--kx-red-d); border-color: var(--kx-red-d); }
body.kcx .btn-light, body.kcx .btn-secondary, body.kcx .btn-outline-secondary { background: #fff; border: 2px solid var(--kx-ink); color: var(--kx-ink); padding: 10px 18px; }
body.kcx .btn-light:hover, body.kcx .btn-secondary:hover { color: var(--kx-red); border-color: var(--kx-red); background: #fff; }
body.kcx .btn-danger { background: #fff; border: 1px solid var(--kx-line-2); color: var(--kx-ink-2); } body.kcx .btn-danger:hover { background: var(--kx-red); border-color: var(--kx-red); color: #fff; }
body.kcx .form-control, body.kcx .form-select { min-height: 46px; border: 1px solid var(--kx-line-2); border-radius: 4px; font-size: 15px; padding: 8px 12px; box-shadow: none; }
body.kcx .form-control:focus, body.kcx .form-select:focus { border-color: var(--kx-ink); box-shadow: 0 0 0 3px rgba(22,26,29,.08); }
body.kcx .form-check-input:checked { background-color: var(--kx-ink); border-color: var(--kx-ink); }
body.kcx .col-form-label, body.kcx .form-label { font-size: 13px; font-weight: 600; color: var(--kx-ink); }
body.kcx .required .col-form-label::before, body.kcx .required .form-label::before, body.kcx .required label::before { content: "*"; color: var(--kx-red); margin-right: 4px; }
body.kcx .card, body.kcx .border.rounded { border-color: var(--kx-line) !important; border-radius: var(--kx-radius) !important; background: var(--kx-surface); }
body.kcx .card-header { background: transparent; border-bottom: 1px solid var(--kx-line); padding: 14px 18px; }
body.kcx .table { border-color: var(--kx-line); background: var(--kx-surface); }
body.kcx .table > :not(caption) > * > * { padding: 12px 14px; vertical-align: middle; }
body.kcx .table thead td, body.kcx .table thead th { font-family: var(--kx-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--kx-ink-2); background: var(--kx-bg); }
body.kcx .table tfoot td, body.kcx .table tfoot th { font-weight: 600; }
body.kcx .table .img-thumbnail { border: 0; padding: 0; background: #fff; }
body.kcx .list-group-item { border-color: var(--kx-line); font-size: 14px; padding: 10px 14px; }
body.kcx .list-group-item.active { background: var(--kx-ink); border-color: var(--kx-ink); }
body.kcx .accordion-item { border-color: var(--kx-line); }
body.kcx .accordion-button { font-weight: 600; font-size: 14px; box-shadow: none; } body.kcx .accordion-button:not(.collapsed) { background: var(--kx-bg); color: var(--kx-ink); }
body.kcx .alert { border-radius: var(--kx-radius); border: 0; font-size: 14px; padding: 12px 44px 12px 16px; }
body.kcx .alert-success { background: #e6f4ec; color: #14532d; } body.kcx .alert-danger { background: #fde8ea; color: #7a1020; } body.kcx .alert-warning { background: #fff4d6; color: #6b4a00; }
body.kcx #alert .alert { box-shadow: 0 12px 32px rgba(0,0,0,.16); }
body.kcx #alert { top: 90px; }
body.kcx .pagination .page-link { border-radius: 4px !important; border-color: var(--kx-line); color: var(--kx-ink); font-family: var(--kx-mono); font-size: 14px; margin: 0 2px; }
body.kcx .pagination .page-item.active .page-link, body.kcx .pagination .page-item.active .page-link:hover { background: var(--kx-ink); border-color: var(--kx-ink); color: #fff; }
body.kcx .input-group-text { background: var(--kx-bg); border-color: var(--kx-line-2); font-size: 13px; }
body.kcx .fa-stack { font-size: 0.6em; }
body.kcx fieldset { margin-bottom: 24px; }
body.kcx .col-form-label, body.kcx .col-form-label.col-sm-2 { padding-top: 12px; }
/* checkout */
body.kcx #checkout-checkout .row > .col-md-7, body.kcx #checkout-checkout .row > .col { min-width: 0; }
body.kcx #checkout-checkout fieldset, body.kcx #checkout-register, body.kcx #checkout-shipping-method, body.kcx #checkout-payment-method, body.kcx #checkout-confirm, body.kcx #checkout-shipping-address, body.kcx #checkout-payment-address { background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); padding: 20px 22px; margin-bottom: 16px; }
body.kcx #checkout-checkout fieldset { border: 0; padding: 0; margin-bottom: 8px; }
body.kcx #checkout-checkout .text-end .btn, body.kcx #checkout-cart .btn-primary { padding: 12px 22px; }
body.kcx #checkout-cart .table td img { width: 64px; height: 64px; object-fit: contain; }
body.kcx #checkout-cart .input-group .form-control { max-width: 90px; }
body.kcx #checkout-cart h1 + .table, body.kcx #checkout-cart .table-responsive { margin-bottom: 24px; }
/* account sidebar (column_right account module) */
body.kcx #column-right { padding-top: 0; }
body.kcx #column-right .list-group-item { padding: 10px 14px; }

/* ---------- theme pages */
.kx-narrow { max-width: 800px; }
.kx-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.kx-notfound { max-width: 640px; padding: 48px 0 24px; display: flex; flex-direction: column; gap: 16px; }
.kx-notfound__code { font-family: var(--kx-display); font-weight: 700; font-size: 96px; line-height: 1; color: var(--kx-line-2); letter-spacing: -0.02em; }
.kx-notfound__text { font-size: 17px; color: var(--kx-ink-2); max-width: 520px; }
.kx-form__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.kx-form__row label { font-size: 13px; font-weight: 600; }
.kx-form__row.required label::before { content: "*"; color: var(--kx-red); margin-right: 4px; }
.kx-contact { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
.kx-contact__card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--kx-surface); border: 1px solid var(--kx-line); border-left: 4px solid var(--kx-red); border-radius: var(--kx-radius); font-size: 15px; }
.kx-contact__h { color: var(--kx-ink-2); }
.kx-contact__store { font-family: var(--kx-display); font-weight: 500; font-size: 18px; }
.kx-contact__address { margin: 0; font-style: normal; }
.kx-contact__phone { font-family: var(--kx-mono); font-weight: 600; font-size: 18px; }
.kx-contact__open, .kx-contact__comment { color: var(--kx-ink-2); font-size: 14px; }
.kx-contact__card .kx-btn { align-self: flex-start; margin-top: 8px; }
.kx-contact__form { background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); padding: 24px; }
.kx-contact__form .kx-contact__h { display: block; margin-bottom: 14px; }
.kx-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; max-width: 960px; margin-top: 8px; }
.kx-auth__card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); }
.kx-auth__card .kx-form__row { margin-bottom: 0; }
.kx-auth__card--new { background: var(--kx-carbon); color: rgba(255,255,255,.75); border: 0; }
.kx-auth__card--new .kx-h2 { color: #fff; } .kx-auth__card--new .kx-btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); align-self: flex-start; margin-top: auto; }
.kx-auth__card--new .kx-btn--ghost:hover { border-color: #fff; color: #fff; }
.kx-auth__actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.kx-auth__forgot { font-size: 14px; color: var(--kx-ink-2); text-decoration: underline; }
.kx-brandlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.kx-brandlist__item { display: flex; align-items: center; gap: 12px; padding: 22px; background: var(--kx-surface); border: 1px solid var(--kx-line); border-left: 6px solid var(--kx-band); border-radius: var(--kx-radius); font-family: var(--kx-display); font-weight: 700; font-size: 20px; color: var(--kx-ink) !important; }
.kx-brandlist__item .kx-dot { display: none; } .kx-brandlist__item .kx-brand__arrow { margin-left: auto; }
.kx-searchpage { background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); padding: 16px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.kx-searchpage__row { display: grid; grid-template-columns: minmax(0, 1fr) 280px auto; gap: 10px; }
.kx-searchpage__opts { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--kx-ink-2); }
.kx-check { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 991px) { .kx-contact, .kx-auth { grid-template-columns: minmax(0, 1fr); } .kx-brandlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kx-searchpage__row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .kx-brandlist { grid-template-columns: minmax(0, 1fr); } .kx-notfound__code { font-size: 64px; } body.kcx .container { padding-left: 16px; padding-right: 16px; } }
/* core breadcrumb: strip the arrow-box look */
body.kcx .breadcrumb { border: 0; border-radius: 0; padding: 0; }
body.kcx .breadcrumb > li.breadcrumb-item { padding: 0; text-shadow: none; white-space: normal; }
body.kcx .breadcrumb > li.breadcrumb-item::after { display: none; }
body.kcx .breadcrumb > li.breadcrumb-item + li::before { content: "/"; padding-right: 6px; color: var(--kx-line-2); }
body.kcx .breadcrumb i { font-size: 13px; }
/* cart table controls */
body.kcx #checkout-cart .input-group .btn-primary { background: var(--kx-ink); border-color: var(--kx-ink); padding: 0 14px; }
body.kcx #checkout-cart .input-group .btn-primary:hover { background: var(--kx-red); border-color: var(--kx-red); }
body.kcx #checkout-cart .accordion-button { font-family: var(--kx-body); }
/* toast-style alerts: bottom-right, never over the header/cart */
body.kcx #alert { top: auto; bottom: 24px; right: 24px; left: auto; width: 380px; max-width: calc(100vw - 32px); margin: 0; }
body.kcx #alert .alert { margin: 0 0 10px; }
/* cart page */
.kx-cartpage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin-top: 20px; }
.kx-cartpage__items { display: flex; flex-direction: column; gap: 10px; }
.kx-cartrow { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 140px 36px; gap: 18px; align-items: center; padding: 14px 16px; background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); }
.kx-cartrow__thumb { width: 84px; height: 84px; background: #fff; border: 1px solid var(--kx-line); border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kx-cartrow__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kx-cartrow__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kx-cartrow__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.kx-cartrow__meta { font-family: var(--kx-mono); font-size: 12px; color: var(--kx-ink-2); }
.kx-cartrow__order { color: #b45309; }
.kx-cartrow__min { font-size: 12px; color: var(--kx-red); }
.kx-cartrow__qty { margin: 0; display: flex; align-items: center; gap: 8px; }
.kx-qty--sm { height: 44px; } .kx-qty--sm .kx-qty__btn { width: 38px; } .kx-qty--sm .kx-qty__input { width: 42px; font-size: 15px; }
.kx-cartrow__update { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kx-cartrow__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--kx-mono); }
.kx-cartrow__unit { font-size: 12px; color: var(--kx-ink-2); } .kx-cartrow__total { font-size: 17px; font-weight: 600; }
.kx-cartrow__remove { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 20px; line-height: 1; color: var(--kx-ink-2) !important; background: var(--kx-bg); border: 0; }
.kx-cartrow__remove:hover { background: var(--kx-red); color: #fff !important; }
.kx-cartpage__summary { position: sticky; top: 180px; display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); }
.kx-totals { display: flex; flex-direction: column; gap: 8px; }
.kx-totals__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--kx-ink-2); }
.kx-totals__row strong { font-family: var(--kx-mono); color: var(--kx-ink); }
.kx-totals__row--grand { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--kx-line); font-size: 16px; color: var(--kx-ink); }
.kx-totals__row--grand strong { font-size: 24px; }
.kx-cartpage__checkout { height: 54px; font-size: 16px; margin-top: 6px; }
.kx-cartpage__continue { font-size: 14px; color: var(--kx-ink-2); text-align: center; text-decoration: underline; }
.kx-cartpage__notes { margin-top: 4px; }
.kx-cartpage__extras { max-width: 760px; margin-top: 40px; }
.kx-cartpage__extras .kx-h2 { margin-bottom: 6px; } .kx-cartpage__extras .accordion { margin-top: 14px; }
.kx-empty--cart { color: var(--kx-ink-2); padding: 64px 0; }
@media (max-width: 991px) { .kx-cartpage { grid-template-columns: minmax(0, 1fr); } .kx-cartpage__summary { position: static; } }
@media (max-width: 640px) {
  .kx-cartrow { grid-template-columns: 64px minmax(0, 1fr) 32px; grid-template-areas: "thumb info remove" "qty price price"; gap: 12px; }
  .kx-cartrow__thumb { grid-area: thumb; width: 64px; height: 64px; } .kx-cartrow__info { grid-area: info; } .kx-cartrow__remove { grid-area: remove; }
  .kx-cartrow__qty { grid-area: qty; } .kx-cartrow__price { grid-area: price; flex-direction: row; align-items: baseline; justify-content: flex-end; gap: 10px; }
}

/* long-form pages */
.kx-narrow .kx-h1 { margin-bottom: 22px; }
.kx-prose h2, .kx-prose h3 { font-family: var(--kx-display); font-weight: 500; font-size: 20px; line-height: 1.25; margin: 28px 0 10px; }
.kx-prose h3 { font-size: 17px; }
.kx-prose ul, .kx-prose ol { padding-left: 22px; margin: 0 0 1em; }
.kx-prose p:last-child { margin-bottom: 0; }
.kx-prose strong { font-weight: 600; }

.kx-details #form-review, .kx-details #review { max-width: 720px; }

/* ==========================================================================
   Hero slider: product slides (headline + bottles) and banner slides (photo + button);
   the search bar stays put under the slides.
   ========================================================================== */
.kx-hero__track { position: relative; display: grid; }
.kx-slide { position: relative; grid-area: 1 / 1; min-height: 440px; display: flex; align-items: center; }
.kx-hero--slider .kx-slide { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.kx-hero--slider .kx-slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; z-index: 1; }
.kx-slide > .kx-wrap { width: 100%; }
.kx-hero__grid { padding-top: 36px; padding-bottom: 28px; }
.kx-slide__btn { align-self: flex-start; margin-top: 4px; }
/* banner slide */
.kx-slide--banner { background: var(--kx-carbon) var(--kx-slide-image, none) center / cover no-repeat; }
.kx-slide--banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,18,20,.88) 0%, rgba(15,18,20,.55) 55%, rgba(15,18,20,.15) 100%); pointer-events: none; }
.kx-slide__banner { position: relative; z-index: 1; width: 100%; padding-top: 40px; padding-bottom: 36px; }
.kx-slide__copy { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.kx-slide--banner .kx-hero__title { font-size: clamp(30px, 3.6vw, 50px); }
/* nav */
.kx-hero__nav { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 20px; }
.kx-hero__arrow { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.kx-hero__arrow:hover { border-color: #fff; }
.kx-hero__dots { display: flex; gap: 8px; }
.kx-hero__dot { width: 28px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.kx-hero__dot.is-active { background: var(--kx-red); width: 44px; }
@media (max-width: 991px) {
  .kx-hero__grid { padding-top: 22px; padding-bottom: 10px; }
  .kx-slide { min-height: 0; }
  .kx-slide__banner { padding-top: 40px; padding-bottom: 36px; }
}
@media (max-width: 767px) {
  .kx-slide--banner::after { background: linear-gradient(180deg, rgba(15,18,20,.35) 0%, rgba(15,18,20,.85) 70%); }
  .kx-slide--banner { align-items: flex-end; }
  .kx-hero__nav { padding-top: 0; padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .kx-hero--slider .kx-slide { transition: none; } }

/* Buttons rendered as <a> inherit the global link hover (red text) with higher specificity — keep button text readable */
body.kcx a.kx-btn--red:hover, body.kcx .kx-btn--red:hover { color: #fff; }
body.kcx a.kx-btn--ghost:hover { color: var(--kx-red); }
body.kcx a.btn-primary:hover, body.kcx a.btn-info:hover, body.kcx a.btn-danger:hover { color: #fff; }
body.kcx a.kx-search__btn:hover, body.kcx a.kx-card__cart:hover { color: #fff; }
body.kcx .kx-tile:hover .kx-tile__name, body.kcx .kx-tile:hover .kx-tile__total { color: #fff; }

/* ==========================================================================
   Catalogue drawer (burger menu)
   ========================================================================== */
.kx-drawer { position: absolute; left: 0; right: 0; top: 100%; z-index: 1030; background: var(--kx-surface); border-bottom: 1px solid var(--kx-line); box-shadow: 0 24px 48px rgba(0,0,0,.22); }
.kx-drawer__inner { padding-top: 26px; padding-bottom: 18px; }
.kx-drawer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kx-drawer__brand { border-top: 4px solid var(--kx-band); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.kx-drawer__head { display: flex; align-items: center; gap: 10px; font-family: var(--kx-display); font-weight: 700; font-size: 19px; color: var(--kx-ink) !important; margin-bottom: 6px; }
.kx-drawer__head .kx-dot { display: none; }
.kx-drawer__children { display: flex; flex-direction: column; gap: 1px; }
.kx-drawer__child { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: 4px; font-size: 14px; font-weight: 500; color: var(--kx-ink) !important; }
.kx-drawer__child:hover { background: var(--kx-bg); }
.kx-drawer__all { margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--kx-ink-2) !important; }
.kx-drawer__all:hover { color: var(--kx-red) !important; }
.kx-drawer__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--kx-line); display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.kx-drawer__foot a { color: var(--kx-ink-2); }
body.kx-drawer-open { overflow: hidden; }
@media (max-width: 991px) {
  .kx-catbtn__label { display: none; }
  .kx-catbtn { width: 48px; padding: 0; justify-content: center; }
  .kx-drawer { max-height: calc(100vh - 150px); overflow: auto; }
  .kx-drawer__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kx-drawer__children { grid-template-columns: minmax(0, 1fr); }
}

/* filter module (sidebar) */
.kx-filter { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); margin-bottom: 14px; }
.kx-filter__title { font-family: var(--kx-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--kx-ink-2); }
.kx-filter__group { display: flex; flex-direction: column; gap: 8px; }
.kx-filter__name { font-weight: 600; font-size: 14px; }
.kx-filter__options { display: flex; flex-direction: column; gap: 6px; }
.kx-filter__option { font-size: 14px; color: var(--kx-ink); }
.kx-filter__option input { accent-color: var(--kx-red); }
.kx-filter__apply { height: 40px; font-size: 14px; }

/* home: category tiles («Продукция для детейлинга») + collection header link */
.kx-section__more { align-self: flex-end; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--kx-ink-2); }
.kx-section__more:hover { color: var(--kx-red); }
.kx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kx-cattile { position: relative; display: flex; flex-direction: column; background: var(--kx-surface); border: 1px solid var(--kx-line); border-radius: var(--kx-radius); overflow: hidden; color: var(--kx-ink) !important; transition: box-shadow .15s, border-color .15s; }
.kx-cattile:hover { border-color: var(--kx-line-2); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.kx-cattile__band { height: 5px; background: var(--kx-band); }
.kx-cattile__image { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #fff; padding: 18px; }
.kx-cattile__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kx-cattile__name { font-family: var(--kx-display); font-weight: 700; font-size: 18px; line-height: 1.2; padding: 12px 16px 2px; border-top: 1px solid var(--kx-line); }
.kx-cattile__total { font-family: var(--kx-mono); font-size: 12px; color: var(--kx-ink-2); padding: 0 16px 14px; }
@media (max-width: 1199px) { .kx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .kx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kx-cattile__name { font-size: 15px; padding: 10px 12px 2px; } .kx-cattile__total { padding: 0 12px 12px; } .kx-cattile__image { padding: 10px; } }
