/* ============================================================
   KovaBuy storefront shell
   Header, search, category bar, mobile menu, cart drawer, footer,
   bottom tab bar, toasts. Rendered by /js/shell.js.
   Everything is prefixed kx- so it can't collide with page styles.
============================================================ */

:root {
  --kx-ink:        #111111;
  --kx-ink-2:      #2b2b2b;
  --kx-muted:      #6d6a65;
  --kx-faint:      #a29e97;
  --kx-line:       rgba(17, 17, 17, .10);
  --kx-line-soft:  rgba(17, 17, 17, .06);
  --kx-bg:         #f6f4f0;
  --kx-card:       #ffffff;
  --kx-brand:      #f0c33c;
  --kx-brand-d:    #d9a91c;
  --kx-brand-ink:  #6b4e00;
  --kx-brand-tint: #fff6d9;
  --kx-sale:       #d92d20;
  --kx-deal:       #0d8f47;   /* discounts: the sale price and its percentage badges */
  --kx-ok:         #17a85a;
  --kx-radius:     14px;
  --kx-font-d:     'Syne', 'Lato', system-ui, sans-serif;
  --kx-font-b:     'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Typographic roles */
  --f-mark: 'LXGW Marker Gothic', 'Syne', sans-serif;      /* hand-lettered display: hero + page titles, big accents */
  --f-head: 'Syne', 'Lato', sans-serif;                     /* logo, section + card titles */
  --f-ui:   'Ubuntu', 'Lato', sans-serif;                   /* buttons, nav, chips, menus, product titles */
  --f-num:  'Roboto Condensed', 'Roboto', sans-serif;       /* prices, badges, counts, timers, KPI figures */
  --f-text: 'Roboto', 'Lato', sans-serif;                   /* inputs, tables, dense UI */
  --f-body: 'Lato', system-ui, sans-serif;                  /* paragraphs */
  --kx-header-h:   72px;
  --kx-shadow:     0 18px 48px rgba(17, 17, 17, .16);
}

.kx-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.kx-sr   { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* light / dark button: the moon in light mode, the sun in dark mode */
.kx-theme-btn[hidden], .kx-theme-m[hidden] { display: none !important; }
.kx-theme-btn .kx-sun, .kx-theme-m .kx-sun { display: none; }
html[data-theme="dark"] .kx-theme-btn .kx-moon, html[data-theme="dark"] .kx-theme-m .kx-moon { display: none; }
html[data-theme="dark"] .kx-theme-btn .kx-sun, html[data-theme="dark"] .kx-theme-m .kx-sun { display: inline-block; }

.kx-skip {
  position: fixed; left: 16px; top: -64px; z-index: 100000;
  background: var(--kx-ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font: 700 13px var(--kx-font-b); transition: top .2s;
}
.kx-skip:focus { top: 12px; }

.kx-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kx-icon.is-fill { fill: currentColor; stroke: none; }

/* ── Announcement bar ───────────────────────────────────────── */
.kx-announce { background: var(--kx-ink); color: #fff; font: 600 12.5px/1 var(--kx-font-b); letter-spacing: .01em; }
.kx-announce .kx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.kx-announce-msg { flex: 1; display: flex; justify-content: center; align-items: center; min-width: 0; }
.kx-announce-msg a {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  animation: kxFadeUp .45s ease both;
}
.kx-announce-msg a b { color: var(--kx-brand); font-weight: 800; }
.kx-announce-msg a .kx-icon { width: 14px; height: 14px; color: var(--kx-brand); }
.kx-announce-links { display: flex; gap: 18px; flex-shrink: 0; }
.kx-announce-links a { color: rgba(255, 255, 255, .7); transition: color .2s; }
.kx-announce-links a:hover, .kx-cur:hover { color: #fff; }
.kx-cur { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .7); font: 600 12.5px var(--kx-font-b); cursor: pointer; transition: color .2s; }
.kx-cur[hidden] { display: none; }
.kx-cur .kx-icon { width: 14px; height: 14px; }
.kx-authed-only { display: none; }
body.kx-authed .kx-authed-only { display: flex; }
.kx-md-link { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
.kx-md-link[hidden] { display: none; }
.kx-announce-spacer { width: 160px; flex-shrink: 0; }

/* ── Header ─────────────────────────────────────────────────── */
.kx-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid var(--kx-line);
  transition: box-shadow .2s;
}
.kx-header.is-scrolled { box-shadow: 0 6px 24px rgba(17, 17, 17, .08); }
.kx-header-row { display: flex; align-items: center; gap: 22px; height: var(--kx-header-h); }

.kx-burger { display: none; }

.kx-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--kx-ink); }
.kx-logo-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--kx-ink);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.kx-logo-mark img { width: 24px; height: 24px; }
/* the KovaBuy logo (images/logo/*.svg, drawn by scripts/make-logo.js): 6.8 times wider than tall, with a little air round it built into the picture */
.kx-logo-img { display: block; height: 20px; width: auto; max-width: none; }
.kx-drawer-head .kx-logo-img { height: 20px; }
.kx-footer .kx-logo-img { height: 24px; }

/* Search */
.kx-search {
  position: relative; flex: 1; max-width: 720px; min-width: 0;
  display: flex; align-items: stretch; height: 48px;
  background: #fff; border: 2px solid var(--kx-ink); border-radius: 14px;
  transition: box-shadow .2s, border-color .2s;
}
.kx-search:focus-within { box-shadow: 0 0 0 4px rgba(240, 195, 60, .35); }
.kx-search-cat {
  appearance: none; -webkit-appearance: none; border: 0; background: #f4f2ee; color: var(--kx-ink-2);
  font: 700 12.5px var(--kx-font-b); padding: 0 30px 0 16px; border-radius: 11px 0 0 11px; cursor: pointer; max-width: 168px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  border-right: 1px solid var(--kx-line);
}
.kx-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 0 16px; font: 500 15px var(--kx-font-b); color: var(--kx-ink);
}
.kx-search input::placeholder { color: #8d8984; }
.kx-search-go {
  border: 0; background: var(--kx-brand); color: var(--kx-ink); width: 56px; display: grid; place-items: center;
  border-radius: 0 11px 11px 0; cursor: pointer; transition: background .2s;
}
.kx-search-go:hover { background: var(--kx-brand-d); }
.kx-search-go .kx-icon { width: 21px; height: 21px; stroke-width: 2.4; }

.kx-suggest {
  position: absolute; top: calc(100% + 10px); left: -2px; right: -2px; z-index: 300;
  background: #fff; border: 1px solid var(--kx-line); border-radius: 16px; box-shadow: var(--kx-shadow);
  max-height: min(70vh, 560px); overflow-y: auto; display: none; padding: 8px;
}
.kx-suggest.is-open { display: block; animation: kxFadeUp .18s ease both; }
.kx-sg-label {
  font: 800 10.5px var(--kx-font-b); letter-spacing: .12em; text-transform: uppercase; color: var(--kx-faint);
  padding: 10px 12px 6px;
}
.kx-sg-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--kx-ink);
}
.kx-sg-item:hover, .kx-sg-item.is-active { background: var(--kx-bg); }
.kx-sg-thumb { width: 48px; height: 48px; border-radius: 9px; background: #efece7 center/cover no-repeat; flex-shrink: 0; border: 1px solid var(--kx-line-soft); }
.kx-sg-ico { width: 48px; height: 48px; border-radius: 9px; background: var(--kx-brand-tint); color: var(--kx-brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.kx-sg-main { display: block; min-width: 0; flex: 1; }
.kx-sg-title { display: block; font: 700 14px/1.3 var(--kx-font-b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-sg-title mark { background: rgba(240, 195, 60, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.kx-sg-sub { display: block; font: 500 12px var(--kx-font-b); color: var(--kx-muted); margin-top: 2px; }
.kx-sg-price { font: 700 14px 'Roboto Condensed','Roboto',sans-serif; letter-spacing:0; flex-shrink: 0; }
.kx-sg-all {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 6px 4px 2px; padding: 12px 14px; border-radius: 10px; background: var(--kx-ink); color: #fff;
  font: 700 13px var(--kx-font-b); cursor: pointer;
}
.kx-sg-all:hover, .kx-sg-all.is-active { background: #000; }
.kx-sg-all .kx-icon { width: 16px; height: 16px; color: var(--kx-brand); }
.kx-sg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 12px 10px; }
.kx-sg-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; background: var(--kx-bg);
  font: 700 12.5px var(--kx-font-b); color: var(--kx-ink); cursor: pointer; border: 1px solid transparent; transition: all .15s;
}
.kx-sg-chip:hover { border-color: var(--kx-ink); background: #fff; }
.kx-sg-chip .kx-icon { width: 15px; height: 15px; }
.kx-sg-empty { padding: 22px 14px; text-align: center; color: var(--kx-muted); font: 600 13.5px var(--kx-font-b); }

/* Actions */
.kx-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.kx-act {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border: 0; background: none; border-radius: 12px; color: var(--kx-ink); cursor: pointer;
  font: 700 13px var(--kx-font-b); transition: background .15s;
}
.kx-act:hover { background: #f1eeea; }
.kx-act .kx-icon { width: 22px; height: 22px; }
.kx-act-stack { flex-direction: column; gap: 1px; justify-content: center; padding: 0 10px; font-size: 11px; font-weight: 700; color: var(--kx-ink-2); line-height: 1.1; }
.kx-act-stack .kx-icon { width: 21px; height: 21px; }
.kx-badge {
  position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--kx-brand); color: var(--kx-ink); border: 2px solid #fff;
  font: 800 10px/14px var(--kx-font-b); text-align: center; box-sizing: content-box;
  box-sizing: border-box;
}
.kx-badge[hidden] { display: none; }
.kx-badge.is-red { background: var(--kx-sale); color: #fff; }

.kx-cart-btn {
  height: 46px; padding: 0 18px 0 14px; background: var(--kx-ink); color: #fff; border-radius: 14px; margin-left: 6px;
  font: 800 14px var(--kx-font-b); letter-spacing: 0;
}
.kx-cart-btn:hover { background: #000; }
.kx-cart-btn .kx-icon { color: var(--kx-brand); }
.kx-cart-btn .kx-badge { position: static; border: 0; margin-left: 2px; min-width: 21px; height: 21px; line-height: 21px; padding: 0 6px; font-size: 11px; }

/* Sign-in pill injected by header-auth.js */
.kx-signin {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 12px;
  font: 800 13px var(--kx-font-b); color: var(--kx-ink); transition: background .15s; white-space: nowrap;
}
.kx-signin:hover { background: #f1eeea; }
.kx-sell-link {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px; gap: 7px;
  font: 800 13px var(--kx-font-b); color: var(--kx-ink); border: 1.5px solid var(--kx-line); white-space: nowrap; transition: all .15s;
}
.kx-sell-link:hover { border-color: var(--kx-ink); background: #fff; }
.kx-sell-link .kx-icon { width: 17px; height: 17px; }

/* Account menu */
.nav-Account { position: relative; }
.kx-account-btn { padding: 0 6px; }
.kx-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--kx-ink); color: var(--kx-brand);
  display: grid; place-items: center; font:400 13px LXGW Marker Gothic,Syne,sans-serif;font-synthesis:none;-webkit-text-stroke:.022em currentColor; overflow: hidden;
}
.kx-menu {
  position: absolute; top: calc(100% + 12px); right: 0; width: 272px; z-index: 400;
  background: #fff; border: 1px solid var(--kx-line); border-radius: 16px; box-shadow: var(--kx-shadow);
  display: none; overflow: hidden; font-family: var(--kx-font-b);
}
.kx-menu.show { display: block; animation: kxFadeUp .18s ease both; }
.kx-menu-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--kx-line-soft); background: #faf9f6; }
.kx-menu-head .kx-avatar { width: 42px; height: 42px; font-size: 15px; }
/* KovaBuy Plus badge: shown only for a member (js/plus-promo.js sets body.kx-plus) */
.kx-plus-badge { display: none; align-items: center; gap: 5px; margin-top: 5px; padding: 3px 10px; border-radius: 99px; background: #111; color: #f0c33c; font: 900 11px/1.4 var(--font-body, Lato, sans-serif); letter-spacing: .04em; text-decoration: none; width: fit-content; }
body.kx-plus .kx-plus-badge { display: inline-flex; }
.kx-plus-badge .kx-icon { width: 13px; height: 13px; fill: none; stroke: currentColor; }
#userDisplayName { font:400 14px/1.2 LXGW Marker Gothic,Syne,sans-serif;font-synthesis:none;-webkit-text-stroke:.022em currentColor; color: var(--kx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#userEmail { font: 500 12px var(--kx-font-b); color: var(--kx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.kx-menu-body { padding: 8px; }
.kx-menu-link {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; border: 0; background: none;
  font: 600 14px var(--kx-font-b); color: var(--kx-ink); cursor: pointer; text-align: left; transition: background .15s;
}
.kx-menu-link:hover { background: var(--kx-bg); }
.kx-menu-link .kx-icon { width: 18px; height: 18px; color: var(--kx-muted); }
.kx-menu-sep { height: 1px; background: var(--kx-line-soft); margin: 6px 4px; }
.kx-menu-link.is-danger, .kx-menu-link.is-danger .kx-icon { color: #c4302b; }
.kx-menu-link.is-danger:hover { background: rgba(217, 45, 32, .08); }
.kx-menu .kx-badge { position: static; margin-left: auto; border: 0; }

/* Notifications panel (wired by Account/header-auth.js) */
.kx-notif-wrap { position: relative; }
#notifPanel {
  display: none; position: absolute; top: calc(100% + 12px); right: 0; width: 360px; max-width: calc(100vw - 24px); max-height: 440px; overflow-y: auto;
  background: #fff; border: 1px solid var(--kx-line); border-radius: 16px; box-shadow: var(--kx-shadow); z-index: 400;
}
#notifPanel.show { display: block !important; animation: kxFadeUp .18s ease both; }
.kx-notif-head { padding: 14px 16px; border-bottom: 1px solid var(--kx-line-soft); font:400 13px LXGW Marker Gothic,Syne,sans-serif;font-synthesis:none;-webkit-text-stroke:.022em currentColor; }

/* ── Category bar ───────────────────────────────────────────── */
.kx-catbar { position: relative; background: #fff; border-bottom: 1px solid var(--kx-line); z-index: 150; }
.kx-catbar > .kx-wrap { display: flex; align-items: center; gap: 6px; height: 48px; }
.kx-all-cats {
  display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px 0 13px; border-radius: 10px; border: 0;
  background: var(--kx-ink); color: #fff; font: 800 13px var(--kx-font-b); cursor: pointer; flex-shrink: 0; margin-right: 10px;
}
.kx-all-cats .kx-icon { width: 17px; height: 17px; color: var(--kx-brand); }
.kx-all-cats .kx-chev { width: 14px; height: 14px; transition: transform .2s; }
.kx-all-cats[aria-expanded="true"] .kx-chev { transform: rotate(180deg); }
.kx-cat-scroll { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); padding-right: 24px; }
.kx-cat-scroll::-webkit-scrollbar { display: none; }
.kx-cat-link {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px; flex-shrink: 0;
  font: 700 13.5px var(--kx-font-b); color: var(--kx-ink-2); white-space: nowrap; position: relative; transition: background .15s, color .15s;
}
.kx-cat-link:hover { background: #f4f2ee; color: var(--kx-ink); }
.kx-cat-link.is-active { color: var(--kx-ink); background: var(--kx-brand-tint); }
.kx-cat-link.is-hot { color: var(--kx-sale); }
.kx-cat-link.is-hot:hover { background: rgba(217, 45, 32, .08); }
.kx-cat-link .kx-icon { width: 16px; height: 16px; }
.kx-cat-sep { width: 1px; height: 20px; background: var(--kx-line); margin: 0 8px; flex-shrink: 0; }
.kx-catbar-end { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.kx-catbar-end .kx-cat-link { color: var(--kx-muted); }

.kx-mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--kx-line);
  box-shadow: 0 30px 50px rgba(17, 17, 17, .14); display: none; z-index: 160;
}
.kx-mega.is-open { display: block; animation: kxFadeUp .2s ease both; }
.kx-mega .kx-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-top: 26px; padding-bottom: 28px; }
.kx-mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; }
.kx-mega-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; transition: background .15s; }
.kx-mega-item:hover { background: var(--kx-bg); }
.kx-mega-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--kx-brand-tint); color: var(--kx-brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.kx-mega-ico .kx-icon { width: 22px; height: 22px; }
.kx-mega-item > span > b { display: block; font: 700 14px var(--kx-font-b); color: var(--kx-ink); }
.kx-mega-item > span > span { display: block; font: 500 12px var(--kx-font-b); color: var(--kx-muted); margin-top: 1px; }
.kx-mega-promo {
  border-radius: 18px; padding: 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #3b2f0a 0%, #111 62%);
}
.kx-mega-promo small { font: 800 10.5px var(--kx-font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--kx-brand); }
.kx-mega-promo h4 { font:400 22px/1.1 LXGW Marker Gothic,Syne,sans-serif;font-synthesis:none;-webkit-text-stroke:.022em currentColor; letter-spacing: -.03em; margin: 10px 0 8px; }
.kx-mega-promo p { font: 500 13px/1.55 var(--kx-font-b); color: rgba(255, 255, 255, .65); margin: 0 0 16px; }
.kx-mega-promo a { display: inline-flex; align-items: center; gap: 8px; background: var(--kx-brand); color: var(--kx-ink); font: 800 13px var(--kx-font-b); padding: 11px 18px; border-radius: 99px; }
.kx-mega-promo a .kx-icon { width: 15px; height: 15px; stroke-width: 2.6; }

/* ── Overlays, mobile menu & cart drawer ────────────────────── */
.kx-overlay {
  position: fixed; inset: 0; background: rgba(10, 10, 10, .52); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .28s; z-index: 900;
}
.kx-overlay.show { opacity: 1; pointer-events: auto; }
/* Existing pages and scripts toggle .show on these ids */
.cart-overlay { position: fixed; inset: 0; background: rgba(10, 10, 10, .52); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .28s; z-index: 900; }
.cart-overlay.show { opacity: 1; pointer-events: auto; }

.kx-drawer {
  position: fixed; top: 0; bottom: 0; z-index: 1000; background: #fff; display: flex; flex-direction: column;
  transition: transform .34s cubic-bezier(.3, .8, .3, 1), visibility 0s linear .34s; box-shadow: var(--kx-shadow);
  visibility: hidden;
}
.kx-drawer.show { visibility: visible; transition-delay: 0s; }
.cart-drawer { right: 0; width: 440px; max-width: 100%; transform: translateX(104%); border-radius: 22px 0 0 22px; }
.cart-drawer.show { transform: none; }
.kx-menu-drawer { left: 0; width: 340px; max-width: 88vw; transform: translateX(-104%); border-radius: 0 22px 22px 0; }
.kx-menu-drawer.show { transform: none; }

.kx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--kx-line-soft); }
.kx-drawer-head h3 { font:400 19px LXGW Marker Gothic,Syne,sans-serif;font-synthesis:none;-webkit-text-stroke:.022em currentColor; letter-spacing: -.03em; margin: 0; display: flex; align-items: center; gap: 10px; }
.kx-drawer-head h3 small { font: 700 12px var(--kx-font-b); letter-spacing: 0; background: var(--kx-bg); color: var(--kx-muted); border-radius: 99px; padding: 4px 10px; }
.kx-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f1eeea; display: grid; place-items: center; cursor: pointer; color: var(--kx-ink); transition: background .15s; }
.kx-x:hover { background: #e7e3dc; }
.kx-x .kx-icon { width: 18px; height: 18px; }

.cart-items { flex: 1; overflow-y: auto; padding: 4px 0; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 56px 28px; text-align: center; color: var(--kx-muted); }
.cart-empty .kx-empty-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--kx-brand-tint); color: var(--kx-brand-ink); display: grid; place-items: center; margin-bottom: 6px; }
.cart-empty .kx-empty-ico .kx-icon { width: 38px; height: 38px; stroke-width: 1.5; }
.cart-empty h4 { font:400 19px LXGW Marker Gothic,Syne,sans-serif;font-synthesis:none;-webkit-text-stroke:.022em currentColor; letter-spacing: -.03em; color: var(--kx-ink); margin: 0; }
.cart-empty p { font: 500 14px/1.5 var(--kx-font-b); margin: 0; max-width: 280px; }
.cart-empty a { margin-top: 12px; }

.cart-footer { padding: 18px 22px 22px; border-top: 1px solid var(--kx-line-soft); background: #faf9f6; border-radius: 0 0 0 22px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font: 700 14px var(--kx-font-b); color: var(--kx-ink-2); }
.cart-total strong { font: 700 24px 'Roboto Condensed','Roboto',sans-serif; letter-spacing:0; color: var(--kx-ink); }
.kx-cart-note { font: 500 12px/1.5 var(--kx-font-b); color: var(--kx-muted); margin: 0 0 14px; }
.checkout-btn {
  width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--kx-ink); color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 15px 'Ubuntu','Lato',sans-serif; letter-spacing:0; transition: background .2s, transform .15s;
}
.checkout-btn:hover { background: #000; transform: translateY(-1px); }
.checkout-btn .kx-icon { width: 18px; height: 18px; color: var(--kx-brand); }
.kx-keep { display: block; text-align: center; margin-top: 12px; font: 700 13px var(--kx-font-b); color: var(--kx-muted); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; width: 100%; cursor: pointer; }
.kx-keep:hover { color: var(--kx-ink); }
.kx-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; font: 600 11.5px var(--kx-font-b); color: var(--kx-muted); }
.kx-secure .kx-icon { width: 14px; height: 14px; color: var(--kx-ok); }

.kx-cart-line { display: flex; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--kx-line-soft); align-items: flex-start; }
.kx-cart-line:last-child { border-bottom: 0; }
.kx-cart-img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #f1eeea; flex-shrink: 0; border: 1px solid var(--kx-line-soft); display: grid; place-items: center; color: #c9c4bb; }
.kx-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.kx-cart-info { flex: 1; min-width: 0; }
.kx-cart-name { font: 700 14px/1.3 var(--kx-font-b); color: var(--kx-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kx-cart-meta { font: 500 12px var(--kx-font-b); color: var(--kx-muted); margin: 3px 0 10px; }
.kx-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--kx-line); border-radius: 99px; background: #fff; }
.kx-qty button { width: 30px; height: 30px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--kx-ink); }
.kx-qty button:hover { background: var(--kx-bg); }
.kx-qty button .kx-icon { width: 13px; height: 13px; stroke-width: 2.6; }
.kx-qty span { min-width: 24px; text-align: center; font: 800 13px var(--kx-font-b); }
.kx-cart-side { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.kx-cart-price { font: 700 15px 'Roboto Condensed','Roboto',sans-serif; letter-spacing:0; }
.kx-cart-remove { background: none; border: 0; cursor: pointer; color: var(--kx-faint); font: 700 12px var(--kx-font-b); padding: 0; transition: color .15s; }
.kx-cart-remove:hover { color: var(--kx-sale); }

/* Mobile menu drawer */
.kx-md-body { flex: 1; overflow-y: auto; padding: 10px 14px 24px; }
.kx-md-label { font: 800 10.5px var(--kx-font-b); letter-spacing: .13em; text-transform: uppercase; color: var(--kx-faint); padding: 16px 10px 8px; }
.kx-md-link { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; font: 700 15px var(--kx-font-b); color: var(--kx-ink); }
.kx-md-link:hover, .kx-md-link:active { background: var(--kx-bg); }
.kx-md-link .kx-icon { width: 20px; height: 20px; color: var(--kx-muted); }
.kx-md-link.is-hot, .kx-md-link.is-hot .kx-icon { color: var(--kx-sale); }
.kx-md-cta { margin: 12px 4px 4px; display: flex; gap: 10px; }
.kx-md-cta a { flex: 1; text-align: center; padding: 13px; border-radius: 12px; font: 800 14px var(--kx-font-b); }
.kx-md-cta .p { background: var(--kx-ink); color: #fff; }
.kx-md-cta .s { background: var(--kx-brand); color: var(--kx-ink); }
.kx-md-cta { flex-wrap: wrap; }
.kx-md-cta .o { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--kx-line); background: #fff; color: #b3261e; font: 800 14px var(--kx-font-b); cursor: pointer; }
.kx-md-cta .o .kx-icon { width: 16px; height: 16px; }

/* ── Buttons (shared) ───────────────────────────────────────── */
.kx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 24px; border-radius: 99px; border: 0;
  font: 700 14px 'Ubuntu','Lato',sans-serif; letter-spacing:0; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap;
}
.kx-btn:hover { transform: translateY(-1px); }
.kx-btn-dark  { background: var(--kx-ink); color: #fff; }
.kx-btn-dark:hover { background: #000; }
.kx-btn-brand { background: var(--kx-brand); color: var(--kx-ink); }
.kx-btn-brand:hover { background: var(--kx-brand-d); }
.kx-btn-ghost { background: #fff; color: var(--kx-ink); box-shadow: inset 0 0 0 1.5px var(--kx-line); }
.kx-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--kx-ink); }
.kx-btn .kx-icon { width: 17px; height: 17px; stroke-width: 2.4; }

/* ── Toast ──────────────────────────────────────────────────── */
.kx-toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 99990; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.kx-toast {
  display: flex; align-items: center; gap: 10px; background: var(--kx-ink); color: #fff; padding: 12px 20px 12px 16px; border-radius: 99px;
  font: 700 13.5px var(--kx-font-b); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); animation: kxToast .35s cubic-bezier(.3, .8, .3, 1) both; max-width: min(92vw, 460px);
}
.kx-toast .kx-icon { width: 18px; height: 18px; color: var(--kx-brand); }
.kx-toast.is-ok .kx-icon { color: #5be08f; }
.kx-toast.is-err { background: #a8201a; }
.kx-toast.is-err .kx-icon { color: #fff; }
.kx-toast.is-out { animation: kxToastOut .3s ease both; }
@keyframes kxToast { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes kxToastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes kxFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Back to top ────────────────────────────────────────────── */
.kx-top {
  position: fixed; right: 24px; bottom: 96px; z-index: 8000; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: #fff; color: var(--kx-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.kx-top.show { opacity: 1; transform: none; pointer-events: auto; }
.kx-top:hover { background: var(--kx-brand); }

/* ── Footer ─────────────────────────────────────────────────── */
.kx-footer { background: var(--kx-ink); color: #fff; margin-top: 64px; position: relative; }
.kx-footer-top { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.kx-footer-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.kx-perk { display: flex; gap: 14px; align-items: flex-start; }
.kx-perk-ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(240, 195, 60, .12); color: var(--kx-brand); display: grid; place-items: center; flex-shrink: 0; }
.kx-perk-ico .kx-icon { width: 23px; height: 23px; }
.kx-perk b { display: block; font:400 15px LXGW Marker Gothic,Syne,sans-serif;font-synthesis:none;-webkit-text-stroke:.022em currentColor; letter-spacing: -.02em; }
.kx-perk div span { display: block; font: 500 13px/1.5 var(--kx-font-b); color: rgba(255, 255, 255, .55); margin-top: 3px; }

.kx-footer-main { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; padding-top: 52px; padding-bottom: 36px; }
.kx-footer .kx-logo { color: #fff; }
.kx-footer .kx-logo-mark { background: var(--kx-brand); }
.kx-footer .kx-logo-mark img { filter: brightness(0); }
.kx-foot-brand p { font: 500 14px/1.65 var(--kx-font-b); color: rgba(255, 255, 255, .55); margin: 16px 0 20px; max-width: 300px; }
.kx-foot-app { display: inline-flex; align-items: center; gap: 12px; padding: 11px 18px 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: background .2s; }
.kx-foot-app:hover { background: rgba(255, 255, 255, .14); }
.kx-foot-app .kx-icon { width: 24px; height: 24px; color: var(--kx-brand); }
.kx-foot-app small { display: block; font: 600 10.5px var(--kx-font-b); color: rgba(255, 255, 255, .5); letter-spacing: .04em; }
.kx-foot-app b { display: block; font:400 14px LXGW Marker Gothic,Syne,sans-serif;font-synthesis:none;-webkit-text-stroke:.022em currentColor; letter-spacing: -.01em; }
.kx-foot-col h4 { font: 800 11px var(--kx-font-b); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .4); margin: 6px 0 18px; }
.kx-foot-col a { display: block; font: 500 14px var(--kx-font-b); color: rgba(255, 255, 255, .72); padding: 6px 0; transition: color .15s, transform .15s; }
.kx-foot-col a:hover { color: var(--kx-brand); transform: translateX(3px); }
.kx-footer-news { padding-bottom: 8px; }
.kx-footer-news .kb-news { margin: 44px 0 0; }

.kx-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); }
.kx-footer-bottom .kx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 26px; flex-wrap: wrap; }
.kx-footer-bottom p { font: 500 12.5px var(--kx-font-b); color: rgba(255, 255, 255, .42); margin: 0; }
.kx-footer-bottom nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.kx-footer-bottom nav a { font: 600 12.5px var(--kx-font-b); color: rgba(255, 255, 255, .6); }
.kx-footer-bottom nav a:hover { color: #fff; }
/* the designer's credit: the VM Designs mark is drawn as a mask so it takes the colour of the text around it */
/* a notice from KovaBuy (shell.js platformNotice) */
.kx-pnotice { position: relative; z-index: 60; }
.kx-pn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 44px 9px 16px; font: 600 13.5px/1.4 var(--kx-font-b); text-align: center; position: relative; }
.kx-pn-info { background: var(--kx-ink); color: #fff; }
.kx-pn-warn { background: #f0c33c; color: #111; }
.kx-pn-good { background: #0d8f47; color: #fff; }
.kx-pn button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: inherit; opacity: .8; }
.kx-pn button:hover { opacity: 1; background: rgba(0, 0, 0, .12); }
.kx-pn button .kx-icon { width: 14px; height: 14px; }
/* the designer's credit: its own centred row at the very bottom of the footer, a quiet pill with the studio's mark */
.vm-credit { display: inline-flex; align-items: center; gap: 12px; padding: 4px 14px 4px 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .04); font: 600 12.5px/1 var(--kx-font-b); color: rgba(255, 255, 255, .62); white-space: nowrap; }
.vm-credit .vm-mark { color: rgba(255, 255, 255, .92); }
.vm-mark { display: inline-block; width: 54px; height: 30px; flex-shrink: 0; background: currentColor; -webkit-mask: url(/images/vm-designs/vm-designs.svg) center / contain no-repeat; mask: url(/images/vm-designs/vm-designs.svg) center / contain no-repeat; }
.kx-footer-credit { display: flex; justify-content: center; padding: 0 16px 30px; }
@media (max-width: 380px) { .vm-credit { white-space: normal; justify-content: center; text-align: center; flex-wrap: wrap; row-gap: 4px; } }
.kx-pay { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.kx-pay-badge {
  height: 28px; padding: 0 10px; border-radius: 7px; background: #fff; color: var(--kx-ink); display: inline-flex; align-items: center; justify-content: center;
  font: 800 11px var(--kx-font-b); letter-spacing: .02em; min-width: 46px;
}
.kx-pay-badge.visa { color: #1a1f71; font-style: italic; font-size: 13px; letter-spacing: -.02em; }
.kx-pay-badge.mc { gap: 0; padding: 0 8px; }
.kx-pay-badge.mc i { width: 15px; height: 15px; border-radius: 50%; display: block; }
.kx-pay-badge.mc i:first-child { background: #eb001b; }
.kx-pay-badge.mc i:last-child { background: #f79e1b; margin-left: -6px; mix-blend-mode: multiply; }
.kx-pay-badge.amex { background: #2e77bb; color: #fff; }
.kx-pay-badge.dark { background: #000; color: #fff; }

/* ── Mobile bottom tab bar ──────────────────────────────────── */
.kx-tabbar { display: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .kx-sell-link span, .kx-act-label { display: none; }
  .kx-sell-link { padding: 0 12px; }
  .kx-announce-spacer { display: none; }
  .kx-announce-links { display: none; }
  .kx-footer-main { grid-template-columns: repeat(4, 1fr); }
  .kx-foot-brand { grid-column: 1 / -1; }
  .kx-foot-brand p { max-width: 520px; }
  .kx-mega-grid { grid-template-columns: repeat(3, 1fr); }
  /* Keep the search box usable on small laptops: the category picker and keyboard hint shrink first. */
  .kx-search-cat { max-width: 112px; padding: 0 26px 0 12px; }
  .kx-search .kv-kbd { display: none; }
  .kx-search input { padding: 0 12px; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .kx-search-cat { display: none; }   /* searches all categories; the shop page still has the category filter */
}

@media (max-width: 900px) {
  :root { --kx-header-h: 60px; }
  .kx-wrap { padding: 0 16px; }
  .kx-header-row { gap: 10px; flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; }
  .kx-header-row > .kx-burger { order: 1; }
  .kx-header-row > .kx-logo { order: 2; }
  .kx-header-row > .kx-actions { order: 3; }
  .kx-header-row > .kx-search { order: 4; flex: 1 0 100%; max-width: none; height: 44px; transition: opacity .2s; }
  /* Scrolling down hides the search row; scrolling up brings it back. The header's box (and so the page's height) NEVER changes:
     only its white background shrinks to the logo row, the search row fades out, and the empty strip lets taps through.
     Collapsing the row itself used to change the page height mid-scroll, the browser nudged the scroll position to compensate,
     the handler read that as "scrolling up" and re-opened the row, and the search bar flickered open and shut. */
  .kx-header { background: transparent; border-bottom: 0; box-shadow: none; }
  .kx-header::before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; background: #fff; border-bottom: 1px solid var(--kx-line); transition: bottom .28s cubic-bezier(.2, .9, .25, 1), box-shadow .2s; }
  .kx-header.is-scrolled { box-shadow: none; }
  .kx-header.is-scrolled::before { box-shadow: 0 6px 24px rgba(17, 17, 17, .08); }
  .kx-header.is-compact::before { bottom: 56px; }
  .kx-header.is-compact { pointer-events: none; }
  .kx-header.is-compact .kx-burger, .kx-header.is-compact .kx-logo, .kx-header.is-compact .kx-actions { pointer-events: auto; }
  .kx-header.is-compact .kx-search { opacity: 0; pointer-events: none; }
  .kx-header.is-compact:focus-within { pointer-events: auto; }
  .kx-header.is-compact:focus-within::before { bottom: 0; }
  .kx-header.is-compact:focus-within .kx-search { opacity: 1; pointer-events: auto; }
  .kx-burger { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: #f4f2ee; border-radius: 12px; color: var(--kx-ink); cursor: pointer; flex-shrink: 0; }
  .kx-logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .kx-logo-img { height: 18px; }
  .kx-search-cat { display: none; }
  .kx-search input { padding: 0 14px; font-size: 16px; }
  .kx-search-go { width: 50px; }
  .kx-sell-link, .kx-act-hide-m, .kx-signin { display: none; }
  .nav-Account { display: none !important; }   /* phones use the Account tab and the menu drawer */
  .kx-logo-img { height: 16px; }
  .kx-cart-btn { margin-left: 2px; padding: 0 12px; height: 42px; }
  .kx-cart-btn .kx-cart-label { display: none; }
  .kx-act { height: 42px; padding: 0 8px; }
  .kx-notif-wrap #notifPanel { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; max-width: none; }
  .kx-catbar > .kx-wrap { height: 46px; }
  .kx-all-cats, .kx-catbar-end, .kx-cat-sep { display: none; }
  .kx-cat-link { height: 32px; padding: 0 12px; background: var(--kx-bg); border-radius: 99px; font-size: 13px; }
  .kx-cat-scroll { gap: 8px; }
  .kx-mega { display: none !important; }

  .kx-footer { margin-top: 48px; }
  .kx-footer-perks { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 28px; padding-bottom: 28px; }
  .kx-perk { flex-direction: column; gap: 10px; }
  .kx-footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 40px; padding-bottom: 24px; }
  .kx-footer-bottom .kx-wrap { flex-direction: column; align-items: flex-start; }

  .kx-tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 700;
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--kx-line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .kx-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; border: 0; background: none; border-radius: 12px;
    font: 700 10.5px var(--kx-font-b); color: var(--kx-muted); cursor: pointer; min-width: 0; min-height: 48px; justify-content: center;
  }
  .kx-tab > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kx-tab .kx-icon { width: 23px; height: 23px; }
  .kx-tab.is-active { color: var(--kx-ink); }
  .kx-tab.is-active .kx-icon { stroke-width: 2.3; color: var(--kx-ink); }
  .kx-tab.is-active::before { content: ''; position: absolute; top: -7px; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--kx-brand); }
  .kx-tab .kx-badge { top: 0; right: calc(50% - 21px); border-color: #fff; }
  body.kx-has-tabbar { padding-bottom: 66px; }
  .kx-top { bottom: 150px; right: 14px; }
  .kx-toasts { bottom: 86px; }
}

@media (max-width: 520px) {
  .kx-cart-drawer, .cart-drawer { border-radius: 0; }
  .cart-drawer { width: 100%; }
  .kx-announce .kx-wrap { height: 34px; }
  .kx-announce { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 3px solid rgba(240, 195, 60, .9); outline-offset: 2px; }
.kx-search input:focus-visible { outline: 0; }

/* ── Isolation for pages that carry their own element-level styles ──
   Several static pages style bare `footer` and `header` elements. These
   rules keep the shell's chrome looking the same everywhere. */
header.kx-header { display: block; padding: 0; height: auto; justify-content: normal; align-items: normal; text-align: left; }
footer.kx-footer { display: block; padding: 0; text-align: left; font-size: 16px; line-height: 1.5; font-weight: 400; border: 0; gap: 0; justify-content: flex-start; flex-direction: row; flex-wrap: nowrap; background: var(--kx-ink); color: #fff; margin-top: 64px; }
footer.kx-footer a { margin: 0; }

/* ── AI search ────────────────────────────────────────────────
   The header search can read natural language ("black hoodie under $60").
   AI mode gives the bar a slowly moving gradient edge, an AI chip, and an
   assistant card in the dropdown. */
.kx-ai {
  align-self: center; margin-right: 6px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 9px; border-radius: 99px;
  border: 0; background: #f1eeea; color: var(--kx-ink); cursor: pointer; flex-shrink: 0; transition: background .2s, color .2s, transform .15s;
  font: 700 12.5px var(--f-ui, var(--kx-font-b));
}
.kx-ai:hover { transform: translateY(-1px); }
.kx-ai .kx-icon { width: 15px; height: 15px; stroke-width: 2.3; }
.kx-ai[aria-pressed="true"] { background: var(--kx-ink); color: var(--kx-brand); }
.kx-search.is-ai {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, #f0c33c, #ff7a45, #e254ff, #4cc9f0, #f0c33c) border-box;
  background-size: 100% 100%, 300% 100%; animation: kxAiBorder 7s linear infinite;
}
.kx-search.is-ai .kx-search-cat { border-radius: 10px 0 0 10px; }
.kx-search.is-ai .kx-search-go { border-radius: 0 10px 10px 0; }
@keyframes kxAiBorder { to { background-position: 0 0, 300% 0; } }
.kx-search.is-busy::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -9px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--kx-brand), transparent); background-size: 200% 100%; animation: kcShimmer .9s linear infinite;
}

.kx-ai-card {
  position: relative; overflow: hidden; margin: 2px 4px 8px; padding: 14px 16px 15px; border-radius: 18px;
  background: linear-gradient(135deg, #fff8dc 0%, #ffeee0 48%, #f4eaff 100%); border: 1px solid rgba(240, 195, 60, .5);
}
.kx-ai-card[hidden] { display: none; }
.kx-ai-card::after {
  content: ''; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 84, 255, .16), transparent 68%); pointer-events: none;
}
.kx-ai-head { display: flex; align-items: center; gap: 9px; position: relative; z-index: 1; }
.kx-ai-head b { font: 700 13.5px var(--f-ui, var(--kx-font-b)); }
.kx-ai-state { margin-left: auto; font: 500 12px var(--f-body, var(--kx-font-b)); color: var(--kx-muted); }
.kx-ai-orb {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--kx-ink);
  background: conic-gradient(from 160deg, #f0c33c, #ff7a45, #e254ff, #4cc9f0, #f0c33c); box-shadow: 0 4px 12px rgba(226, 84, 255, .25);
}
.kx-ai-orb::before { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.kx-ai-orb .kx-icon { position: relative; width: 14px; height: 14px; stroke-width: 2.4; }
.kx-ai-card.is-loading .kx-ai-orb { animation: kxSpin 1.6s linear infinite; }
@keyframes kxSpin { to { transform: rotate(360deg); } }
.kx-ai-text { position: relative; z-index: 1; margin: 11px 0 0; font: 500 16px/1.4 var(--f-ui, var(--kx-font-b)); color: var(--kx-ink); }
.kx-ai-note { position: relative; z-index: 1; margin: 6px 0 0; font: 400 13.5px/1.5 var(--f-body, Lato, sans-serif); color: #6b5a1a; }
.kx-ai-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.kx-ai-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 99px;
  background: rgba(255, 255, 255, .88); border: 1px solid rgba(17, 17, 17, .1); font: 500 12.5px var(--f-ui, var(--kx-font-b));
}
.kx-ai-chip .kx-icon { width: 13px; height: 13px; color: #b88a00; }
.kx-ai-skel i {
  display: block; height: 12px; border-radius: 6px; margin-top: 11px; width: 78%;
  background: linear-gradient(90deg, rgba(255,255,255,.35) 25%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.35) 75%); background-size: 200% 100%; animation: kcShimmer 1.2s infinite;
}
.kx-ai-skel i + i { width: 52%; }

.kx-ai-intro { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 8px; }
.kx-ai-intro b { display: block; font: 700 15px var(--f-ui, var(--kx-font-b)); }
.kx-ai-intro > div > span { display: block; margin-top: 2px; font: 400 13px/1.45 var(--f-body, var(--kx-font-b)); color: var(--kx-muted); }
.kx-ai-prompts { display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 10px; }
.kx-ai-prompt {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 12px; background: #faf8f4; border: 1.5px solid transparent;
  text-align: left; font: 500 14px var(--f-ui, var(--kx-font-b)); color: var(--kx-ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.kx-ai-prompt:hover, .kx-ai-prompt.is-active { border-color: var(--kx-ink); background: #fff; }
.kx-ai-prompt .kx-icon { width: 15px; height: 15px; color: #c99f1e; flex-shrink: 0; }
.kx-sg-sub.is-reason { display: flex; align-items: center; gap: 5px; color: #7a5900; }
.kx-sg-sub.is-reason .kx-icon { width: 12px; height: 12px; color: #c99f1e; flex-shrink: 0; }
.kx-sg-all.is-ai { background: linear-gradient(100deg, #111, #2b2210); }

@media (max-width: 900px) {
  .kx-ai { padding: 0 9px; height: 30px; margin-right: 5px; }
  .kx-ai span { display: none; }
  .kx-ai-text { font-size: 15px; }
  .kx-ai-state { display: none; }
}

/* Recent searches inside the search dropdown */
.kx-sg-recent-head { display: flex; align-items: center; justify-content: space-between; }
.kx-sg-recent-all { font: 800 12px var(--kx-font-b); letter-spacing: 0; text-transform: none; color: var(--kx-ink); text-decoration: underline; text-underline-offset: 3px; }
.kx-sg-recent { display: flex; align-items: stretch; gap: 4px; margin: 0 6px; }
.kx-sg-recent-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 42px; border: 0; background: none; border-radius: 12px; font: 600 14px var(--kx-font-b); color: var(--kx-ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kx-sg-recent-go .kx-icon { width: 16px; height: 16px; color: var(--kx-muted); flex-shrink: 0; }
.kx-sg-recent-go:hover, .kx-sg-recent-go:focus-visible { background: var(--kx-bg); }
.kx-sg-recent-x { width: 40px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; color: var(--kx-muted); cursor: pointer; }
.kx-sg-recent-x:hover { background: #fdf0ef; color: #b3261e; }
.kx-sg-recent-x .kx-icon { width: 15px; height: 15px; }
.kx-qty[hidden] { display: none; }

/* "Track order" is for shoppers without an account; signed-in shoppers have My orders */
body.kx-authed [data-guest-only] { display: none !important; }
body:not(.kx-authed) [data-authed-only] { display: none !important; }

/* The floating buttons (back to top, Kova AI and its teaser) sit under an open drawer: they used to cover the cart's Join and Checkout buttons. */
body:has(.kx-drawer.show) .kx-top,
body:has(.kx-drawer.show) #kova-chat-btn,
body:has(.kx-drawer.show) #kc-teaser { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

