/* --- /assets/css/fonts.css --- */
/* Self-hosted Inter (variable) — GDPR-clean, no CDN at runtime. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/wp-content/themes/carkeymaster/assets/fonts/InterVariable-Latin.woff2") format("woff2");
  unicode-range: U+0000-024F, U+0300-036F, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+25CF, U+2713, U+2715;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/wp-content/themes/carkeymaster/assets/fonts/InterVariable-Latin-Italic.woff2") format("woff2");
  unicode-range: U+0000-024F, U+0300-036F, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+25CF, U+2713, U+2715;
}

/* --- /assets/css/tokens.css --- */
/* Carkeymaster design tokens: the single source of truth for both themes.
 *
 * Brand: graphite + red. Blue and yellow are gone; green/amber/red stay only
 * as status colours (success, warning, error). */
:root {
  color-scheme: light;

  /* Brand palette. */
  --c-primary: #e30613;           /* Brand Red: primary buttons, badges. */
  --c-primary-ink: #ffffff;
  --c-primary-hover: #c40510;
  --c-accent: #c40510;            /* Red for text: links, hover states. Backgrounds use --c-primary(-hover). */
  --c-accent-muted: rgba(227, 6, 19, .3);
  --c-accent-ink: #ffffff;
  --c-focus-ring: rgba(227, 6, 19, .24);
  --c-danger: #b30000;
  --c-success: #15803d;
  --c-warning: #b45309;

  /* Semantic text colours. */
  --c-ink: #1b2432;
  --c-ink-2: #0b0f16;
  --c-body: #2a3342;
  --c-muted: #5f6b7c;
  --c-placeholder: #7c8695;
  --c-on-dark: #ffffff;
  --c-white: #ffffff; /* Intentionally fixed: logos/icons and text on dark fills. */

  /* Semantic surfaces. */
  --c-page: #ffffff;
  --c-surface: #f3f5f8;
  --c-surface-2: #e8ecf1;
  --c-surface-raised: #ffffff;
  --c-surface-soft: #f8fafc;
  --c-surface-hover: #fef2f3;
  --c-control-bg: #ffffff;
  --c-media-bg: #ffffff;
  --c-panel-strong: #171f2b;
  --c-panel-strong-hover: #e30613;

  /* Feedback surfaces. */
  --c-info-surface: #f5f7fa;
  --c-info-border: #dce1e8;
  --c-success-surface: #f0fdf4;
  --c-success-border: #bbf7d0;
  --c-danger-surface: #fff7f7;
  --c-danger-border: #fecaca;
  --c-warning-surface: #fff7ed;
  --c-warning-border: #fdba74;

  /* Borders. */
  --c-border: #d8dde5;
  --c-border-strong: #a9b1bd;
  --c-border-soft: #e6e9ee;

  /* Typography. */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-tight: 1.2;
  --lh-base: 1.6;

  /* Layout. */
  --container-max: 1380px;
  --container-pad: 20px;
  /* Side gutter of full-width blocks (home hero slider, header rows). */
  --edge-gutter: 10px;
  --edge-max: 1920px;
  --header-gutter: var(--edge-gutter); /* Header rows (desktop). */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1200px;

  /* Radius. */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 15px;
  --r-pill: 999px;
  --r-btn: 9px;

  /* Shadows and overlays. */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-card-hover: 0 6px 16px rgba(17, 24, 39, .10);
  --shadow-pop: 0 12px 32px rgba(17, 24, 39, .14);
  --shadow-panel: 0 14px 36px rgba(17, 24, 39, .08);
  --c-backdrop: rgba(15, 23, 42, .66);

  /* Spacing scale. */
  --space-1: 5px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-5: 30px;
  --space-6: 40px;
  --space-7: 60px;

  /* Site chrome. */
  --header-bg: #ffffff;
  --header-divider: var(--c-border-soft);
  --topbar-bg: #171f2b;
  --topbar-ink: #f8fafc;
  --topbar-muted: #a9b3c2;
  --topbar-divider: #303846;
  --nav-bg: #ffffff;
  --nav-ink: var(--c-ink-2);
  --nav-ink-active: var(--c-ink-2);
  --nav-indicator: var(--c-primary);
  --search-bg: #f3f5f8;
  --search-border: #e1e5eb;
  --cart-badge-bg: var(--c-primary);
  /* Footer: dark graphite in both themes. */
  --footer-bg: #10151e;
  --footer-ink: #f8fafc;
  --footer-muted: #a9b3c2;
  --footer-accent: #e30613;
  --footer-border: #1f2733;
  --footer-bottom-bg: #0b0f16;
  --footer-bottom-ink: #a9b3c2;

  --z-header: 100;
  --z-dropdown: 200;
  --z-overlay: 500;
}

@media (min-width: 1280px) {
  :root { --edge-gutter: 30px; --header-gutter: 60px; }
}

html[data-theme="dark"] {
  color-scheme: dark;

  --c-primary: #e30613;
  --c-primary-ink: #ffffff;
  --c-primary-hover: #c40510;  /* Darker on hover: white text keeps ≥ 4.5:1 (was #f02330, 4.1:1). */
  --c-accent: #ff5c68;            /* Red for TEXT on dark surfaces (≥4.5:1 on cards). */
  --c-accent-muted: rgba(255, 92, 104, .36);
  --c-accent-ink: #ffffff;
  --c-focus-ring: rgba(240, 35, 48, .4);
  --c-danger: #ff7b7b;
  --c-success: #6ee7a0;
  --c-warning: #fdba74;

  /* Off White / Muted Gray. */
  --c-ink: #e7ebf1;
  --c-ink-2: #f8fafc;
  --c-body: #d3d9e2;
  --c-muted: #a9b3c2;
  --c-placeholder: #8893a4;

  /* Deep Black page, Dark Surface cards. */
  --c-page: #0b0f16;
  --c-surface: #171f2b;
  --c-surface-2: #232d3d;
  --c-surface-raised: #1b2432;
  --c-surface-soft: #131923;
  --c-surface-hover: #232d3d;
  --c-control-bg: #1b2432;
  --c-media-bg: #f5f6f8;
  --c-panel-strong: #232d3d;
  --c-panel-strong-hover: #e30613;

  --c-info-surface: #1b2432;
  --c-info-border: #303846;
  --c-success-surface: #142a20;
  --c-success-border: #2f6b4b;
  --c-danger-surface: #321c20;
  --c-danger-border: #78404a;
  --c-warning-surface: #32251a;
  --c-warning-border: #805631;

  /* Dark Border. */
  --c-border: #303846;
  --c-border-strong: #4a5466;
  --c-border-soft: #252e3b;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, .32), 0 1px 2px rgba(0, 0, 0, .24);
  --shadow-card-hover: 0 6px 16px rgba(0, 0, 0, .26);
  --shadow-pop: 0 16px 38px rgba(0, 0, 0, .42);
  --shadow-panel: 0 14px 36px rgba(0, 0, 0, .32);
  --c-backdrop: rgba(0, 0, 0, .72);

  /* Header rows sit on the page colour; only the top bar is Slate Graphite. */
  --header-bg: var(--c-page);
  --header-divider: #1f2733;
  --topbar-bg: #171f2b;
  --nav-bg: var(--c-page);
  --search-bg: #1b2432;
  --search-border: #303846;
  --footer-bottom-bg: #070a0f;
}

html[data-theme="dark"] {
  scrollbar-color: var(--c-border-strong) var(--c-page);
}

::selection {
  background: var(--c-primary);
  color: var(--c-primary-ink);
}

/* --- /assets/css/base.css --- */
/* ===== Carkeymaster base: reset, typography, layout primitives ===== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: var(--lh-base);
  color: var(--c-body);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--c-ink-2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); }
h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

/* ---- Layout container ---- */
.ckm-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
@media (max-width: 480px) { .ckm-container { padding-inline: 12px; } }

.site-main { min-height: 40vh; padding-block: var(--space-6); }

/* ---- Buttons ---- */
.ckm-btn,
.button, button.button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .7em 1.25em;
  font-family: inherit;
  font-weight: var(--fw-semibold);
  font-size: .95rem;
  line-height: 1.1;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .05s ease;
  text-decoration: none;
}
.ckm-btn:active, .button:active { transform: translateY(1px); }

.ckm-btn--primary, .button {
  background: var(--c-primary);
  color: var(--c-primary-ink);
}
.ckm-btn--primary:hover, .button:hover {
  background: var(--c-primary-hover);
  color: var(--c-primary-ink);
  text-decoration: none;
}
.ckm-btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-border-strong);
}

/* ---- Forms ---- */
input[type="text"], input[type="search"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-ink-2);
  background: var(--c-control-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: .6em .8em;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
  border-color: var(--c-accent);
}

/* ---- Accessibility helpers ---- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-primary); color: var(--c-primary-ink);
  padding: .6em 1em; z-index: var(--z-overlay);
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---- Utilities ---- */
.ckm-visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.ckm-sr-only-focusable:focus { position:static; width:auto; height:auto; clip:auto; }

/* ---- Page title banner (cart/checkout/account/legal pages) ---- */
/* ---- Page-title banner (ckm_page_banner_html): one design for every page.
        Same width and side gutter as the header rows on desktop. ---- */
.ckm-page-banner {
  padding-top: 10px;
  color: #fff;
  text-align: left;
}
@media (min-width: 1025px) {
  .ckm-page-banner__container {
    max-width: var(--edge-max);
    padding-inline: var(--header-gutter);
  }
}
.ckm-page-banner__inner {
  display: flex;
  align-items: center;
  min-height: 84px;
  overflow: hidden;
  padding: 16px 38px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  background-color: #030406;
  background-image:
    linear-gradient(90deg, rgba(3, 4, 6, 0.34) 0%, rgba(3, 4, 6, 0.08) 48%, rgba(3, 4, 6, 0) 72%),
    url("/wp-content/themes/carkeymaster/assets/img/page-banner-automotive.jpg");
  background-image:
    linear-gradient(90deg, rgba(3, 4, 6, 0.34) 0%, rgba(3, 4, 6, 0.08) 48%, rgba(3, 4, 6, 0) 72%),
    image-set(
      url("/wp-content/themes/carkeymaster/assets/img/page-banner-automotive.avif") type("image/avif"),
      url("/wp-content/themes/carkeymaster/assets/img/page-banner-automotive.webp") type("image/webp"),
      url("/wp-content/themes/carkeymaster/assets/img/page-banner-automotive.jpg") type("image/jpeg")
    );
  background-repeat: no-repeat;
  background-position: center, center 54%;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.ckm-page-banner__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(1.85rem, 1.55rem + 1vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-align: left;
  text-transform: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.ckm-page-banner + .site-main { padding-top: var(--space-5); }

@media (max-width: 767px) {
  .ckm-page-banner { padding-top: 8px; }
  .ckm-page-banner__inner {
    min-height: 78px;
    padding: 15px 24px;
    border-radius: 12px;
    background-position: center, 58% 54%;
  }
  .ckm-page-banner__title { font-size: 1.85rem; }
}

/* ---- WooCommerce notices, site-wide (cart, shop, product, …). Checkout and
        My Account refine them in their own files. Info is neutral graphite,
        success green, errors red — the brand red is not used as an alarm. ---- */
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 20px;
  padding: 14px 18px;
  color: var(--c-ink-2);
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border-soft);
  border-left: 4px solid var(--c-ink-2);
  border-radius: 12px;
  list-style: none;
  line-height: 1.5;
}
body .woocommerce-message { border-left-color: var(--c-success); }
body .woocommerce-error { border-left-color: var(--c-danger); }
body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before { content: none; display: none; }
body .woocommerce-message .button,
body .woocommerce-info .button,
body .woocommerce-error .button {
  order: 2;
  float: none;
  margin: 0 0 0 auto;
  padding: 9px 18px;
  color: var(--c-primary-ink);
  background: var(--c-primary);
  border: 0;
  border-radius: var(--r-btn);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
body .woocommerce-message .button:hover,
body .woocommerce-info .button:hover,
body .woocommerce-error .button:hover { color: var(--c-primary-ink); background: var(--c-primary-hover); }
body .woocommerce-message a:not(.button),
body .woocommerce-info a:not(.button),
body .woocommerce-error a:not(.button) { color: var(--c-accent); }

/* Native checkboxes / radios in the brand colour, with a pointer on the
   control and on its label (incl. WooCommerce payment methods). */
input[type="checkbox"],
input[type="radio"] { accent-color: var(--c-primary); cursor: pointer; }
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]),
input[type="checkbox"] + label,
input[type="radio"] + label,
.wc_payment_method > label { cursor: pointer; }
input:disabled,
input:disabled + label { cursor: not-allowed; }

/* Native controls and autofill must remain legible in both colour schemes. */
input::placeholder,
textarea::placeholder { color: var(--c-placeholder); opacity: 1; }

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--c-ink-2);
  box-shadow: 0 0 0 1000px var(--c-control-bg) inset;
  caret-color: var(--c-ink-2);
}

/* --- /assets/css/header.css --- */
/* ===================== Site header =====================
 * Top bar · main row (logo | search | actions) · navigation row.
 * Desktop columns line up: the logo and the "All Categories" button share the
 * brand column, the search field and the menu start after the same divider.
 */
.site-header {
  --ckm-brand-col: 228px;
  --ckm-col-pad: 32px;
  position: relative;
  /* Above WooCommerce gallery controls; below the WordPress admin bar (99999). */
  z-index: 30000;
  background: var(--header-bg);
}

.site-header :is(a, button, input):focus-visible {
  outline: 3px solid var(--c-focus-ring);
  outline-offset: 2px;
}

/* Vertical divider used between header columns. */
.ckm-header-search::before,
.ckm-header-search::after,
.ckm-nav__menu::before,
.ckm-nav__aside::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 48px;
  background: var(--c-border);
  border-radius: 1px;
  transform: translateY(-50%);
}

/* ---------------- Top bar ---------------- */
.ckm-topbar {
  position: relative;
  z-index: 30060;
  background: var(--topbar-bg);
  color: var(--topbar-ink);
  font-size: 13px;
  line-height: 1.2;
}
.ckm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}
.ckm-topbar__marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.ckm-topbar__track {
  display: flex;
  width: max-content;
}
.ckm-topbar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 38px;
  overflow: hidden; /* Items that don't fit wrap onto a hidden second line. */
  list-style: none;
  margin: 0;
  padding: 0;
}
.ckm-topbar__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding-inline: 20px;
  white-space: nowrap;
  font-weight: var(--fw-medium);
}
.ckm-topbar__item:first-child { padding-left: 0; }
.ckm-topbar__item + .ckm-topbar__item::before,
.ckm-topbar__link + .ckm-lang::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: var(--topbar-divider);
  transform: translateY(-50%);
}
.ckm-topbar__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.ckm-topbar__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ckm-topbar__aside {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.ckm-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 20px;
  color: var(--topbar-ink);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease;
}
.ckm-topbar__link:hover { color: var(--topbar-muted); text-decoration: none; }

/* TranslatePress switcher, recoloured for the dark bar (both themes). */
.ckm-lang--topbar {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 12px;
}
.ckm-lang--topbar .trp-shortcode-switcher__wrapper {
  height: 30px;
  min-width: 118px;
}
.ckm-lang--topbar .trp-shortcode-switcher {
  --bg: var(--topbar-bg);
  --bg-hover: rgba(255, 255, 255, .08);
  --text: var(--topbar-ink);
  --text-hover: var(--topbar-ink);
  --border: 0;
  --font-size: 13px;
  width: 100%;
  padding: 0;
  border-radius: 8px;
}
.ckm-lang--topbar .trp-shortcode-overlay.is-open,
.ckm-lang--topbar .trp-shortcode-overlay[aria-expanded="true"] {
  box-shadow: var(--shadow-pop);
  outline: 1px solid var(--topbar-divider);
}
.ckm-lang--topbar .trp-current-language-item__wrapper { min-height: 30px; padding-right: 6px; }
.ckm-lang--topbar .trp-language-item { min-height: 16px; padding: 7px 10px; }
.ckm-lang--topbar .trp-language-item-name { font-family: inherit; font-weight: var(--fw-medium); }
.ckm-lang--topbar .trp-shortcode-arrow { width: 16px; height: 16px; }

/* ---------------- Main row ---------------- */
.ckm-header-main {
  position: relative;
  z-index: 30030;
  background: var(--header-bg);
}
.ckm-header-main__inner {
  display: grid;
  grid-template-columns: var(--ckm-brand-col) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 84px;
  padding-block: 10px;
}

.ckm-logo,
.ckm-logo .custom-logo-link {
  display: flex;
  align-items: center;
}
.ckm-logo .custom-logo { width: auto; max-width: 165px; max-height: 60px; }
.ckm-logo__text { font-weight: var(--fw-bold); font-size: 1.4rem; color: var(--c-ink-2); }

/* Light/dark logo pair: only the one for the active theme is shown. */
.ckm-logo__img--dark { display: none !important; }
html[data-theme="dark"] .ckm-logo__img--light { display: none !important; }
html[data-theme="dark"] .ckm-logo__img--dark { display: block !important; }

/* Search */
.ckm-header-search {
  position: relative;
  width: 100%;
  padding-inline: var(--ckm-col-pad);
}
.ckm-header-search::before { left: 0; }
.ckm-header-search::after { right: 0; }

.ckm-search-form {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ckm-search-form:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-focus-ring);
}
.site-header .ckm-search-form :focus-visible { outline: none; }
.ckm-search-form__icon {
  display: inline-flex;
  flex: 0 0 auto;
  padding-left: 16px;
  color: var(--c-ink-2);
}
.ckm-search-form input.ckm-search-form__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  color: var(--c-ink-2);
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0;
  font-family: inherit;
  font-size: 15px;
  text-overflow: ellipsis;
}
.ckm-search-form__input::placeholder { color: var(--c-muted); opacity: 1; text-overflow: ellipsis; }
.ckm-search-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 40px;
  margin: 3px;
  padding: 0 22px;
  color: var(--c-primary-ink);
  background: var(--c-primary);
  border: 0 !important;
  border-radius: 9px;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease;
}
.ckm-search-form__submit:hover { background: var(--c-primary-hover); color: var(--c-primary-ink); }

/* Actions: account, wishlist, cart */
.ckm-header-actions {
  position: relative;
  z-index: 30040;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-left: var(--ckm-col-pad);
}

.ckm-header-action,
.ckm-wishlist-header,
.ckm-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  color: var(--c-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
:is(.ckm-header-action, .ckm-wishlist-header, .ckm-cart-icon):hover {
  color: var(--c-accent);
  text-decoration: none;
}

.ckm-header-action__icon,
.ckm-wishlist-header__icon,
.ckm-cart-icon__glyph {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}
.ckm-header-action__icon svg,
.ckm-wishlist-header__icon svg,
.ckm-cart-icon__glyph > svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.ckm-header-action__label,
.ckm-cart-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  line-height: 1.15;
}
.ckm-header-action__label strong,
.ckm-cart-summary strong,
.ckm-wishlist-header__label {
  font-size: 14px;
  font-weight: var(--fw-semibold);
}
.ckm-cart-summary__count { color: inherit; }

/* Count badges */
.ckm-wishlist-header__count,
.ckm-cart-icon .my-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: var(--c-primary-ink);
  background: var(--cart-badge-bg);
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 2px var(--header-bg);
  font-size: 11px;
  font-weight: var(--fw-bold);
  line-height: 1;
}

/* Theme toggle (small screens) — hidden if the early bootstrap cannot run. */
.ckm-theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--c-ink-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
@media (hover: hover) {
  .ckm-theme-toggle:hover { color: var(--c-primary-ink); background: var(--c-primary); border-color: var(--c-primary); }
}
.ckm-theme-toggle__icon--sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
html[data-theme="dark"] .ckm-theme-toggle__icon--moon { opacity: 0; transform: rotate(90deg) scale(.5); }
html[data-theme="dark"] .ckm-theme-toggle__icon--sun { opacity: 1; transform: none; }

.ckm-mobile-menu-toggle { display: none; }

/* ---------------- Navigation row ---------------- */
.ckm-nav {
  position: relative; /* Anchors the full-width categories panel. */
  z-index: 30010;
  background: var(--nav-bg);
  color: var(--nav-ink);
  border-top: 1px solid var(--header-divider);
}
.ckm-nav__inner {
  display: grid;
  grid-template-columns: var(--ckm-brand-col) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
}
.ckm-nav__menu {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
  padding-inline: var(--ckm-col-pad);
}
.ckm-nav__menu::before { left: 0; height: 32px; }
.ckm-nav__aside {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 24px;
}
.ckm-nav__aside::before { left: 0; height: 32px; }
.ckm-nav__aside:empty { display: none; }

.ckm-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(20px, 2.8vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ckm-menu > li {
  position: relative;
  display: flex;
}
/* Direct menu links only — must not leak into submenus. */
.ckm-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0;
  color: var(--nav-ink);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease;
}
.ckm-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 3px;
  background: var(--nav-indicator);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.ckm-menu > li > a:hover { color: var(--nav-ink); text-decoration: none; }
.ckm-menu > li > a:hover::after { transform: scaleX(.5); }
.ckm-menu > li.current-menu-item > a,
.ckm-menu > li.current_page_item > a {
  color: var(--nav-ink-active);
  font-weight: var(--fw-bold);
}
.ckm-menu > li.current-menu-item > a::after,
.ckm-menu > li.current_page_item > a::after { transform: scaleX(1); }

/* "%" badge after the deals item (inc/template-tags.php). */
.ckm-menu-badge {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  color: var(--c-primary-ink);
  background: var(--c-primary);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: var(--fw-bold);
  line-height: 1;
}

/* Items with a submenu get a caret. */
.ckm-menu > li.menu-item-has-children > a { padding-right: 18px; }
.ckm-menu > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}

.ckm-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 30020;
  min-width: 220px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.ckm-menu li:hover > .sub-menu,
.ckm-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ckm-menu .sub-menu a { display: block; padding: 10px 16px; color: var(--c-ink-2); font-weight: var(--fw-medium); }
.ckm-menu .sub-menu a:hover { color: var(--c-accent); background: var(--c-surface); text-decoration: none; }

/* "All Categories" button + full-width panel */
.ckm-nav__categories,
.ckm-mega {
  display: flex;
  align-items: center;
  align-self: stretch; /* Full row height: no gap between button and panel. */
}
.ckm-mega__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: calc(var(--ckm-brand-col) - 32px);
  height: 40px;
  padding: 0 14px 0 16px;
  color: var(--c-primary-ink);
  background: var(--c-primary);
  border: 0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease;
}
.ckm-mega__toggle:hover,
.ckm-mega__toggle[aria-expanded="true"] { background: var(--c-primary-hover); }
.ckm-mega__icon,
.ckm-mega__caret { flex: 0 0 auto; }
.ckm-mega__label { flex: 1 1 auto; text-align: left; }
.ckm-mega__caret { transition: transform .15s ease; }
.ckm-mega__toggle[aria-expanded="true"] .ckm-mega__caret { transform: rotate(180deg); }

.ckm-mega__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30020;
  padding: 22px 0 26px;
  color: var(--c-ink-2);
  background: var(--c-surface);
  border-top: 1px solid var(--header-divider);
  border-bottom: 3px solid var(--c-primary);
  box-shadow: var(--shadow-pop);
}
.ckm-mega__panel[hidden] { display: none; }
/* Card grid: category-grid.css (ckm_render_category_grid( 'menu' )). */

/* Light/dark switch: one button, the thumb slides under the active icon.
   Its position follows html[data-theme], so the first paint is already right
   (the bootstrap sets the attribute before CSS applies, nothing animates). */
.ckm-theme-switch {
  --ckm-switch-cell: 40px;
  position: relative;
  display: none;
  grid-template-columns: repeat(2, var(--ckm-switch-cell));
  align-items: center;
  height: 40px;
  padding: 3px;
  color: var(--c-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
html.ckm-theme-enabled .ckm-theme-switch { display: inline-grid; }
.ckm-theme-switch__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: var(--ckm-switch-cell);
  background: var(--c-surface-raised);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 3px rgba(11, 15, 22, .14), 0 1px 2px rgba(11, 15, 22, .08);
  transition: transform .32s cubic-bezier(.65, 0, .35, 1), background-color .32s ease;
}
html[data-theme="dark"] .ckm-theme-switch__thumb {
  background: var(--c-surface-2);
  transform: translateX(var(--ckm-switch-cell));
}
.ckm-theme-switch__icon {
  position: relative; /* Above the thumb. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: color .32s ease, transform .32s cubic-bezier(.65, 0, .35, 1);
}
@media (hover: hover) {
  .ckm-theme-switch:hover { border-color: var(--c-border); }
  /* Hover brightens only the icon a click would switch to. */
  html[data-theme="light"] .ckm-theme-switch:hover .ckm-theme-switch__icon--moon,
  html[data-theme="dark"] .ckm-theme-switch:hover .ckm-theme-switch__icon--sun { color: var(--c-ink-2); }
}
html[data-theme="light"] .ckm-theme-switch__icon--sun { color: var(--c-primary); transform: rotate(90deg); }
html[data-theme="dark"] .ckm-theme-switch__icon--moon { color: var(--c-ink-2); transform: rotate(-20deg); }

/* Mobile round toggle: the icons swap with a turn. */
.ckm-theme-toggle { position: relative; overflow: hidden; }
.ckm-theme-toggle__icon {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity .3s ease, transform .4s cubic-bezier(.65, 0, .35, 1);
}

/* ---------------- Mobile drawer ---------------- */
html.ckm-mobile-drawer-open,
body.ckm-mobile-drawer-open { overflow: hidden; }

.ckm-mobile-drawer[hidden] { display: none !important; }
.ckm-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 30080;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.ckm-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: var(--c-backdrop);
  opacity: 0;
  transition: opacity .24s ease;
}
.ckm-mobile-drawer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(90vw, 380px);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  color: var(--c-ink);
  background: var(--c-surface-raised);
  border-radius: 18px 0 0 18px;
  box-shadow: -18px 0 48px rgba(11, 15, 22, .22);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  pointer-events: auto;
}
.ckm-mobile-drawer.is-open .ckm-mobile-drawer__backdrop { opacity: 1; pointer-events: auto; }
.ckm-mobile-drawer.is-open .ckm-mobile-drawer__panel { transform: translateX(0); }
.ckm-mobile-drawer__head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: 72px;
  padding: 10px 16px 10px 20px;
  background: var(--c-surface-raised);
  border-bottom: 1px solid var(--c-border-soft);
}
.ckm-mobile-drawer__logo,
.ckm-mobile-drawer__logo .custom-logo-link { display: flex; align-items: center; }
.ckm-mobile-drawer__logo .custom-logo { width: auto; max-width: 150px; max-height: 46px; }
.ckm-mobile-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}
.ckm-mobile-drawer__close:hover { color: var(--c-primary-ink); background: var(--c-primary); }
.ckm-mobile-drawer__close:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; }
.ckm-mobile-drawer__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
}
.ckm-mobile-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ckm-mobile-menu li { margin: 0; border-bottom: 1px solid var(--c-border-soft); }
.ckm-mobile-menu li:last-child { border-bottom: 0; }
.ckm-mobile-menu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 42px 10px 12px;
  color: var(--c-ink);
  border-radius: 9px;
  font-size: 17px;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  transition: color .18s ease, background-color .18s ease, padding-left .18s ease;
}
.ckm-mobile-menu a::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: .48;
}
.ckm-mobile-menu a:hover,
.ckm-mobile-menu .current-menu-item > a,
.ckm-mobile-menu .current_page_item > a {
  padding-left: 16px;
  color: var(--c-accent);
  background: var(--c-surface-hover);
  text-decoration: none;
}
.ckm-mobile-drawer__actions {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 20px max(18px, env(safe-area-inset-bottom));
  background: var(--c-surface-raised);
  border-top: 1px solid var(--c-border-soft);
}

.ckm-account--labelled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  color: var(--c-primary-ink);
  background: var(--c-primary);
  border-radius: 9px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .18s ease;
}
.ckm-account--labelled:hover { color: var(--c-primary-ink); background: var(--c-primary-hover); text-decoration: none; }
.ckm-account--labelled .login-icon { width: 24px; height: 24px; }

/* Drawer language switcher follows the page theme. */
.ckm-mobile-lang { display: flex; width: 100%; }
.ckm-mobile-lang .trp-shortcode-switcher__wrapper { width: 100%; min-width: 0; height: 46px; }
.ckm-mobile-lang .trp-shortcode-switcher {
  --bg: var(--c-control-bg);
  --bg-hover: var(--c-surface);
  --text: var(--c-ink-2);
  --text-hover: var(--c-ink-2);
  --border: 1px solid var(--c-border);
  width: 100%;
  padding: 0;
  border-radius: 10px;
}
.ckm-mobile-lang .trp-current-language-item__wrapper { min-height: 44px; }
.ckm-mobile-lang .trp-language-item { min-height: 30px; }

/* ============ Responsive ============ */
@media (max-width: 1279px) {
  .site-header { --ckm-col-pad: 24px; }
  /* Without labels the cart icon is the last item; room for its badge. */
  .ckm-header-actions { gap: 24px; padding-right: 8px; }
  /* Visually hidden, not display:none: the text stays the links' accessible
     name (the account link has no aria-label of its own). */
  .ckm-header-action__label,
  .ckm-wishlist-header__label,
  .ckm-cart-summary {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (min-width: 1025px) {
  .ckm-topbar__track { animation: none; }

  /* The three header rows span the same max width as the home hero slider
     (--edge-max); their side gutter is --header-gutter (tokens.css). */
  /* .site-header prefix: wins over a late base.css (.ckm-container) on
     Elementor snapshot pages, which still print it after the bundle. */
  .site-header .ckm-topbar__inner,
  .site-header .ckm-header-main__inner,
  .site-header .ckm-nav__inner {
    max-width: var(--edge-max);
    padding-inline: var(--header-gutter);
  }
}

@media (max-width: 1024px) {
  /* Top bar becomes a marquee with the benefits only. */
  .ckm-topbar { overflow: hidden; }
  .ckm-topbar .ckm-container { max-width: none; padding-inline: 0; }
  .ckm-topbar__inner { display: block; min-height: 0; }
  .ckm-topbar__aside { display: none; }
  .ckm-topbar__list { flex-wrap: nowrap; height: auto; overflow: visible; padding-right: 20px; }
  .ckm-topbar__item { height: 34px; }
  .ckm-topbar__item:first-child { padding-left: 20px; }
  .ckm-topbar__track {
    will-change: transform;
    animation: ckmTopbarMarquee 24s linear infinite;
  }

  .ckm-nav { display: none; }

  .ckm-header-main { border-bottom: 1px solid var(--header-divider); }
  .ckm-header-main__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo actions" "search search";
    gap: 10px 12px;
    min-height: 0;
    padding-block: 12px;
  }
  .ckm-logo { grid-area: logo; }
  .ckm-logo .custom-logo { max-width: 145px; max-height: 54px; }
  .ckm-header-search { grid-area: search; padding-inline: 0; }
  .ckm-header-search::before,
  .ckm-header-search::after { display: none; }
  .ckm-header-actions { grid-area: actions; justify-self: end; gap: 16px; padding-left: 0; }
  .ckm-header-actions > .ckm-account { display: none; }
  html.ckm-theme-enabled .ckm-theme-toggle { display: inline-flex; }
  .ckm-mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--c-ink-2);
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .ckm-mobile-menu-toggle svg { width: 32px; height: 32px; }

  .ckm-search-form { height: 50px; }
  .ckm-search-form__submit { width: 52px; padding: 0; }
  .ckm-search-form__submit-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}

@media (max-width: 768px) {
  .ckm-header-main__inner { padding-block: 10px; }
  .ckm-logo .custom-logo { max-width: 138px; max-height: 50px; }
  .ckm-header-actions { gap: 14px; }
}

@media (max-width: 420px) {
  .ckm-container { padding-inline: 16px; }
  .ckm-logo .custom-logo { max-width: 128px; }
  .ckm-header-actions { gap: 12px; }
  .ckm-theme-toggle { flex-basis: 36px; width: 36px; height: 36px; }
  .ckm-mobile-menu-toggle { width: 38px; }
}

@media (max-width: 360px) {
  .ckm-logo .custom-logo { max-width: 112px; }
  .ckm-header-actions { gap: 8px; }
  .ckm-header-actions .ckm-wishlist-header { display: none; }
}

@keyframes ckmTopbarMarquee {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-topbar__track { animation: none !important; }
  .ckm-topbar__marquee { overflow-x: auto; scrollbar-width: none; }
  .ckm-mobile-drawer__backdrop,
  .ckm-mobile-drawer__panel,
  .ckm-mobile-drawer__close,
  .ckm-theme-toggle,
  .ckm-theme-switch,
  .ckm-theme-switch__thumb,
  .ckm-theme-switch__icon,
  .ckm-theme-toggle__icon,
  .ckm-menu > li > a::after,
  .ckm-mobile-menu a {
    transition: none;
  }
}

/* "Website for locksmiths" (inc/website-service-page.php): a visible button
   left of the light/dark switch, and a card under the mobile menu. */
.ckm-ws-navlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-right: 14px;
  padding: 0 16px 0 13px;
  color: var(--c-accent);
  background: color-mix(in srgb, var(--c-primary) 8%, transparent);
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.ckm-ws-navlink svg { flex: none; }
.ckm-ws-navlink:hover,
.ckm-ws-navlink:focus-visible,
.ckm-ws-navlink[aria-current="page"] {
  color: var(--c-primary-ink);
  background: var(--c-primary);
  text-decoration: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c-primary) 28%, transparent);
}
.ckm-ws-navlink__short { display: none; }
/* Full label from 1440px, "Website" below, icon only under 1200px (the
   full label stays readable for screen readers). */
@media (max-width: 1439px) {
  .ckm-ws-navlink__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .ckm-ws-navlink__short { display: inline; }
}
@media (max-width: 1199px) {
  .ckm-ws-navlink { width: 40px; margin-right: 10px; padding: 0; justify-content: center; }
  .ckm-ws-navlink__short { display: none; }
}

.ckm-ws-drawerlink {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  color: var(--c-ink-2);
  background: color-mix(in srgb, var(--c-primary) 7%, var(--c-surface-raised));
  border: 1.5px solid var(--c-primary);
  border-radius: 12px;
  text-decoration: none;
}
.ckm-ws-drawerlink:hover { color: var(--c-ink-2); text-decoration: none; background: var(--c-surface-hover); }
.ckm-ws-drawerlink__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--c-primary);
  border-radius: 10px;
}
.ckm-ws-drawerlink__text { display: grid; gap: 2px; line-height: 1.3; }
.ckm-ws-drawerlink__text strong { font-size: 16px; }
.ckm-ws-drawerlink__text small { color: var(--c-muted); font-size: 13px; }

/* --- /assets/css/category-grid.css --- */
/* Compact category cards: the "All Categories" mega panel and the
   [custom_category_grid] shortcode (ckm_render_category_grid( 'menu' )).
   Same language as the home category cards (home.css), only smaller so the
   panel stays short. The home variant (.custom-category-grid-alt-home) is
   styled in home.css. */

.custom-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
  margin: 0;
}

.category-box {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-align: center;
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-box:hover,
.category-box:focus-within {
  border-color: var(--c-border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.category-box a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 10px 8px 12px;
  color: inherit;
  text-decoration: none;
}

.category-box img {
  display: block;
  width: 100%;
  height: 64px;
  max-height: none;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  object-fit: contain;
  transition: transform .25s ease;
}
.category-box:hover img { transform: scale(1.05); }

.category-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 0;
  color: var(--c-ink-2);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: color .2s ease;
}
/* Short red bar under the name; it widens on hover (as on the home cards). */
.category-title::after {
  content: "";
  width: 16px;
  height: 3px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: width .2s ease;
}
.category-box:hover .category-title,
.category-box:focus-within .category-title { color: var(--c-accent); }
.category-box:hover .category-title::after,
.category-box:focus-within .category-title::after { width: 30px; }

@media (max-width: 767px) {
  .custom-category-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .category-box img { height: 54px; }
  .category-title { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .category-box,
  .category-box img,
  .category-title::after { transition: none; }
  .category-box:hover,
  .category-box:hover img { transform: none; }
}

/* --- /assets/css/footer.css --- */
/* ===================== Site footer =====================
 * Dark graphite in both colour themes (tokens: --footer-*). Same language as
 * the trust strip: graphite surface, red accents, light text.
 */
.site-footer {
  margin-top: var(--space-7);
  color: var(--footer-ink);
  background: var(--footer-bg);
}

/* Back-to-top */
.ckm-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: var(--z-overlay);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--c-primary-ink); background: var(--c-primary);
  border: none; border-radius: 50%; box-shadow: var(--shadow-pop); cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.ckm-to-top[hidden] { display: none; }
.ckm-to-top:hover { color: var(--c-primary-ink); background: var(--c-primary-hover); transform: translateY(-2px); }

/* ---- Columns ---- */
.ckm-footer-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #1b2432 0%, var(--footer-bg) 55%);
  border-top: 1px solid var(--footer-border);
}
/* Thin red light line along the top edge + a soft glow in the corner. */
.ckm-footer-main::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--footer-accent) 22%, rgba(240, 35, 48, .9) 50%, var(--footer-accent) 78%, transparent 100%);
  opacity: .85;
}
.ckm-footer-main::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -160px;
  left: -120px;
  width: 420px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(227, 6, 19, .22), transparent);
  pointer-events: none;
}

.ckm-footer-main__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(260px, 1.1fr);
  gap: 40px;
  padding-block: 64px 56px;
}

.ckm-footer-col__title {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  color: var(--footer-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.ckm-footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--footer-accent);
  border-radius: 2px;
}

/* Brand column: always the light-on-dark logo. */
.site-footer .ckm-logo__img--light { display: none !important; }
.site-footer .ckm-logo__img--dark { display: block !important; }
.ckm-footer-about .custom-logo-link { display: inline-flex; margin-bottom: 22px; }
.ckm-footer-about .custom-logo { width: auto; max-width: 170px; max-height: 60px; }
.ckm-footer-about .ckm-logo__text { color: var(--footer-ink); }

.ckm-footer-address {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--footer-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
}
.ckm-footer-address strong { color: var(--footer-ink); font-weight: var(--fw-semibold); }
.ckm-footer-address a { color: var(--footer-muted); text-decoration: none; transition: color .18s ease; }
.ckm-footer-address a:hover { color: var(--footer-ink); }
.ckm-footer-address__row { display: flex; align-items: flex-start; gap: 10px; }
.ckm-footer-address .ckm-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-top: -2px;
  color: #f02330;
  background: rgba(227, 6, 19, .12);
  border-radius: 9px;
}
.ckm-footer-address .ckm-ic svg { width: 15px; height: 15px; }

/* Menus */
.ckm-footer-menu { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ckm-footer-menu li { margin: 0; }
.ckm-footer-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--footer-muted);
  font-size: 15px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.ckm-footer-menu a::before {
  content: "";
  width: 0;
  height: 2px;
  margin-right: 0;
  background: var(--footer-accent);
  border-radius: 1px;
  transition: width .18s ease, margin-right .18s ease;
}
.ckm-footer-menu a:hover,
.ckm-footer-menu a[aria-current="page"] { color: var(--footer-ink); text-decoration: none; }
.ckm-footer-menu a:hover::before,
.ckm-footer-menu a[aria-current="page"]::before { width: 10px; margin-right: 8px; }

/* Payments: logos on light chips so every brand mark stays readable. */
.ckm-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 340px;
}
.ckm-payment-icons img {
  display: block;
  box-sizing: border-box;
  height: 44px;
  width: auto;
  max-width: 100%;
  padding: 7px 12px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.ckm-payment-icons img:nth-child(1) { flex: 0 0 100%; height: auto; aspect-ratio: auto; padding: 8px 12px; }
.ckm-payment-icons img:nth-child(3) { padding: 3px 6px; } /* Klarna mark has its own padding. */

/* ---- Bottom bar ---- */
.ckm-footer-bottom {
  color: var(--footer-bottom-ink);
  background: var(--footer-bottom-bg);
  border-top: 1px solid var(--footer-border);
}
.ckm-footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px;
}
.ckm-footer-bottom p { margin: 0; color: var(--footer-bottom-ink); font-size: 13px; line-height: 1.5; }
.ckm-footer-bottom__vat { flex: 1 1 auto; text-align: center; }
.ckm-footer-bottom .ckm-consent-footer-button { color: var(--footer-bottom-ink); font-size: 13px; }
.ckm-footer-bottom .ckm-consent-footer-button:hover { color: var(--footer-ink); }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .ckm-footer-main__inner { grid-template-columns: 1fr 1fr; gap: 40px 44px; padding-block: 52px 48px; }
}

@media (max-width: 760px) {
  .ckm-footer-bottom__inner { flex-direction: column; justify-content: center; text-align: center; }
  .ckm-footer-bottom__vat { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .ckm-footer-main__inner { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 40px; text-align: center; }
  .ckm-footer-col__title::after { left: 50%; transform: translateX(-50%); }
  .ckm-footer-about .custom-logo-link { justify-content: center; }
  .ckm-footer-address { align-items: center; }
  .ckm-footer-address__row { flex-direction: column; align-items: center; gap: 6px; }
  .ckm-footer-menu { justify-items: center; }
  .ckm-payment-icons { justify-content: center; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-to-top,
  .ckm-footer-menu a,
  .ckm-footer-menu a::before { transition: none; }
}

/* --- /assets/css/consent.css --- */
/* Lightweight consent manager and inert external-media placeholders. */
.ckm-consent[hidden] { display: none !important; }
.ckm-consent [hidden] { display: none !important; }

.ckm-consent {
  position: fixed; display: flex; flex-direction: column;
  z-index: 10000;
  left: 50%;
  bottom: 18px;
  width: min(760px, calc(100% - 24px));
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  transform: translate(-50%, 18px);
  opacity: 0;
  color: var(--c-body);
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-top: 4px solid var(--c-primary);
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(17, 24, 39, .27);
  transition: opacity .18s ease, transform .18s ease;
}

.ckm-consent.is-open { opacity: 1; transform: translate(-50%, 0); }
.ckm-consent__inner { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.ckm-consent__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 10px; }
.ckm-consent__footer { position: relative; z-index: 1; flex: 0 0 auto; padding: 0 24px 16px; background: var(--c-surface-raised); }
.ckm-consent__intro { display: flex; align-items: flex-start; gap: 13px; }
.ckm-consent__shield {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px;
  width: 42px; height: 42px; color: var(--c-ink); background: var(--c-surface); border-radius: 50%;
}
.ckm-consent h2 { margin: 0 0 6px; color: var(--c-ink); font-size: 1.2rem; line-height: 1.25; text-transform: none; }
.ckm-consent p { margin: 0; font-size: .91rem; line-height: 1.5; }

.ckm-consent__necessary {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  margin-top: 18px; padding: 11px 13px; background: var(--c-surface); border-radius: 9px;
  color: var(--c-ink); font-size: .88rem;
}
.ckm-consent__necessary > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.ckm-consent__necessary small { color: var(--c-muted); font-size: .76rem; }
.ckm-consent__necessary > span:last-child { flex: 0 0 auto; color: var(--c-success); font-weight: var(--fw-semibold); }

.ckm-consent__services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; border: 0; }
.ckm-consent__service {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 0; padding: 10px 11px; color: var(--c-ink); background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft); border-radius: 9px; cursor: pointer; font-size: .86rem; font-weight: var(--fw-semibold);
}
.ckm-consent__service input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ckm-consent__switch {
  position: relative; flex: 0 0 36px; width: 36px; height: 20px; background: var(--c-border-strong); border-radius: 999px;
  transition: background .16s ease;
}
.ckm-consent__switch::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px;
  background: var(--c-surface-raised); border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); transition: transform .16s ease;
}
.ckm-consent__service input:checked + .ckm-consent__switch { background: var(--c-primary-hover); }
.ckm-consent__service input:checked + .ckm-consent__switch::after { transform: translateX(16px); }
.ckm-consent__service input:focus-visible + .ckm-consent__switch { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; }

.ckm-consent .ckm-consent__note { margin-top: 10px; color: var(--c-muted); font-size: .76rem; }
.ckm-consent__actions { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 9px; padding-top: 14px; border-top: 1px solid var(--c-border-soft); }
.ckm-consent__actions--summary { grid-template-columns: 1fr 1fr; }
.ckm-consent__actions--summary .ckm-consent__customize { grid-column: 1 / -1; }
.ckm-consent__button,
.ckm-consent-placeholder__button {
  min-height: 42px; padding: 9px 14px; border: 1px solid transparent; border-radius: var(--r-btn);
  font: inherit; font-size: .87rem; font-weight: var(--fw-bold); line-height: 1.2; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.ckm-consent__button--secondary { color: var(--c-ink); background: var(--c-surface-raised); border-color: var(--c-border-strong); }
.ckm-consent__button--secondary:hover { color: var(--c-accent); border-color: var(--c-accent); }
.ckm-consent__button--primary,
.ckm-consent-placeholder__button { color: var(--c-primary-ink); background: var(--c-primary); }
.ckm-consent__button--primary:hover,
.ckm-consent-placeholder__button:hover { background: var(--c-primary-hover); }
.ckm-consent__button:focus-visible,
.ckm-consent-placeholder__button:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; }
.ckm-consent__customize {
  justify-self: center; padding: 3px 8px; color: var(--c-accent); background: transparent; border: 0;
  font: inherit; font-size: .85rem; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.ckm-consent__customize:hover { color: var(--c-ink); }
.ckm-consent__customize:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 3px; }

.ckm-consent__legal { display: flex; justify-content: center; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-border-soft); }
.ckm-consent__legal a { color: var(--c-ink); font-size: .78rem; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 3px; }
.ckm-consent__legal a:hover { color: var(--c-accent); }

.ckm-consent-placeholder {
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: min(100%, 760px); min-height: 260px; margin: 18px auto; padding: 28px;
  text-align: center; color: var(--c-body); background: linear-gradient(145deg, var(--c-surface-soft), var(--c-surface-2));
  border: 1px solid var(--c-border-soft); border-radius: 13px;
}
.ckm-consent-placeholder--map { width: 100%; min-height: 500px; }
.ckm-consent-placeholder__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  margin-bottom: 12px; color: var(--c-ink); background: var(--c-surface-raised); border-radius: 50%; box-shadow: var(--shadow-card);
}
.ckm-consent-placeholder__title { color: var(--c-ink); font-size: 1.05rem; }
.ckm-consent-placeholder p { max-width: 560px; margin: 8px 0 16px; color: var(--c-muted); font-size: .87rem; line-height: 1.5; }
.ckm-consent-placeholder template { display: none; }

.ckm-consent-footer-button {
  appearance: none; padding: 0; color: var(--c-on-dark); background: transparent; border: 0; font: inherit;
  font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ckm-consent-footer-button:hover { color: var(--c-primary); }
.ckm-consent-footer-button:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }

/* Phones: the first-visit banner must not bury the page. Smaller type, no
   shield, and the two equal choices side by side — "Accept all" and
   "Continue without consent" stay the same size, as they must. */
@media (max-width: 680px) {
  .ckm-consent { bottom: 8px; width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .ckm-consent__inner { max-height: calc(100dvh - 20px); }
  .ckm-consent__scroll { padding: 14px 14px 6px; }
  .ckm-consent__footer { padding: 0 14px 10px; box-shadow: 0 -8px 18px rgba(17, 24, 39, .05); }
  .ckm-consent [data-ckm-view="summary"] .ckm-consent__shield { display: none; }
  .ckm-consent__shield { flex-basis: 36px; width: 36px; height: 36px; }
  .ckm-consent h2 { margin-bottom: 4px; font-size: 1.02rem; }
  .ckm-consent p { font-size: .82rem; line-height: 1.45; }
  .ckm-consent__services { grid-template-columns: 1fr; }
  .ckm-consent__actions { grid-template-columns: 1fr; gap: 8px; padding-top: 10px; }
  .ckm-consent__actions--summary { grid-template-columns: 1fr 1fr; }
  .ckm-consent__actions--summary .ckm-consent__customize { grid-column: 1 / -1; }
  .ckm-consent__button { padding: 8px 10px; font-size: .82rem; }
  .ckm-consent__button--primary { grid-row: 1; }
  .ckm-consent__legal { margin-top: 6px; padding-top: 6px; }
  .ckm-consent__necessary { align-items: flex-start; }
  .ckm-consent-placeholder { min-height: 230px; padding: 24px 18px; }
  .ckm-consent-placeholder--map { min-height: 380px; }
}

/* Very narrow phones: the choices stack again so their labels fit. */
@media (max-width: 359px) {
  .ckm-consent__actions--summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-consent,
  .ckm-consent__switch,
  .ckm-consent__switch::after { transition: none; }
}

/* --- /assets/css/wishlist.css --- */
/* Lightweight wishlist: product toggles and list page. */

/* The header shortcut (.ckm-wishlist-header) is styled in header.css. */

.ckm-wishlist-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.ckm-wishlist-button svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.ckm-wishlist-button.is-active svg {
  fill: currentColor;
}

/* Card toggles do not exist visually on touch/mobile layouts. The consistent
   HTML is intentional: it keeps full-page/CDN caches device-independent. */
.woocommerce ul.products li.product > .ckm-wishlist-card {
  display: none;
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .woocommerce ul.products li.product > .ckm-wishlist-card {
    position: absolute;
    z-index: 12;
    top: 20px;
    right: 20px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    border: 1px solid var(--c-border-soft);
    border-radius: 50%;
    background: var(--c-surface-raised);
    color: var(--c-ink);
    box-shadow: 0 4px 14px rgba(11, 15, 22, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px) scale(.96);
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease, color .18s ease;
  }

  .woocommerce ul.products li.product:hover > .ckm-wishlist-card,
  .woocommerce ul.products li.product:focus-within > .ckm-wishlist-card,
  .woocommerce ul.products li.product > .ckm-wishlist-card:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .woocommerce ul.products li.product > .ckm-wishlist-card:hover,
  .woocommerce ul.products li.product > .ckm-wishlist-card.is-active {
    border-color: var(--c-primary);
    background: var(--c-primary);
    color: var(--c-primary-ink);
  }

  .woocommerce ul.products li.product > .ckm-wishlist-card::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: calc(100% + 9px);
    width: max-content;
    max-width: 190px;
    padding: 7px 10px;
    border-radius: 5px;
    background: var(--c-panel-strong);
    color: var(--c-on-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(4px, -50%);
    transition: opacity .15s ease, transform .15s ease;
  }

  .woocommerce ul.products li.product > .ckm-wishlist-card:hover::after,
  .woocommerce ul.products li.product > .ckm-wishlist-card:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

/* Single product: visible on desktop and mobile. */
.ckm-wishlist-single-wrap {
  margin: 0 0 18px;
}

.ckm-wishlist-single {
  min-height: 44px;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface-raised);
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 700;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.ckm-wishlist-single:hover,
.ckm-wishlist-single.is-active {
  border-color: var(--c-ink);
  background: var(--c-panel-strong);
  color: var(--c-on-dark);
}

/* Public/account wishlist. */
.ckm-wishlist-main {
  padding-block: 42px 64px;
}

.ckm-wishlist-view {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.ckm-wishlist-view [hidden] {
  display: none !important;
}

.ckm-wishlist-view__summary {
  min-height: 24px;
  margin: 0 0 18px;
  color: var(--c-muted);
  font-size: 15px;
}

.ckm-wishlist-view__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 190px;
  color: var(--c-muted);
  font-weight: 600;
}

.ckm-wishlist-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: ckmWishlistSpin .7s linear infinite;
}

@keyframes ckmWishlistSpin {
  to { transform: rotate(360deg); }
}

.ckm-wishlist-empty {
  padding: 58px 24px;
  border: 1px solid var(--c-border-soft);
  border-radius: 15px;
  background: var(--c-surface-soft);
  text-align: center;
}

.ckm-wishlist-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--c-surface-raised);
  color: var(--c-ink);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .09);
}

.ckm-wishlist-empty__icon svg {
  width: 34px;
  height: 34px;
}

.ckm-wishlist-empty h2 {
  margin-bottom: 8px;
}

.ckm-wishlist-empty p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--c-muted);
}

.ckm-wishlist-items {
  overflow: hidden;
  border: 1px solid var(--c-border-soft);
  border-radius: 15px;
  background: var(--c-surface-raised);
}

.ckm-wishlist-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 158px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-border-soft);
}

.ckm-wishlist-item:last-child {
  border-bottom: 0;
}

.ckm-wishlist-item__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--c-media-bg);
}

.ckm-wishlist-item__image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.ckm-wishlist-item__details {
  min-width: 0;
}

.ckm-wishlist-item__details h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.ckm-wishlist-item__details h2 a {
  color: var(--c-ink-2);
}

.ckm-wishlist-item__details h2 a:hover {
  color: var(--c-accent);
}

.ckm-wishlist-item__price {
  margin-bottom: 8px;
  color: var(--c-ink-2);
  font-size: 17px;
  font-weight: 700;
}

.ckm-wishlist-item__price .ckm-price-note {
  display: block !important;
  width: 100%;
  margin-top: 4px;
  color: var(--c-body) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  white-space: normal !important;
  text-align: left;
}

.ckm-wishlist-item__price .ckm-price-note a,
.ckm-wishlist-item__price .ckm-price-note a:link,
.ckm-wishlist-item__price .ckm-price-note a:visited {
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.ckm-wishlist-item__price .ckm-price-note a:hover,
.ckm-wishlist-item__price .ckm-price-note a:focus-visible {
  color: var(--c-accent) !important;
}

.ckm-wishlist-item__stock {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.ckm-wishlist-item__stock.is-in-stock { color: var(--c-success); }
.ckm-wishlist-item__stock.is-out-of-stock { color: var(--c-danger); }

.ckm-wishlist-item__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 190px;
}

.ckm-wishlist-item__cart.button {
  min-height: 43px;
  text-align: center;
}

.ckm-wishlist-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--c-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ckm-wishlist-item__remove:hover {
  background: var(--c-danger-surface);
  color: var(--c-danger);
}

.ckm-wishlist-item__remove span {
  font-size: 20px;
  line-height: .8;
}

.ckm-wishlist-view__error {
  margin: 0;
  padding: 28px;
  color: var(--c-danger);
  text-align: center;
  font-weight: 700;
}

.ckm-wishlist-live-region {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ckm-wishlist-live-region.is-visible {
  z-index: 10020;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 30px));
  height: auto;
  padding: 14px 17px 14px 46px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: var(--c-danger);
  background: var(--c-warning-surface);
  border: 1px solid var(--c-warning-border);
  border-left: 4px solid var(--c-danger);
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
  animation: ckm-wishlist-toast-in .18s ease-out;
}

.ckm-wishlist-live-region.is-visible::before {
  content: "!";
  position: absolute;
  left: 15px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: var(--c-on-dark);
  background: var(--c-danger);
  border-radius: 50%;
  font-weight: 800;
}

@keyframes ckm-wishlist-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .ckm-wishlist-live-region.is-visible {
    right: 15px;
    bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-wishlist-live-region.is-visible { animation: none; }
}

@media (max-width: 700px) {
  .ckm-wishlist-main {
    padding-block: 28px 44px;
  }

  .ckm-wishlist-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 14px;
  }

  .ckm-wishlist-item__image {
    width: 92px;
    height: 92px;
  }

  .ckm-wishlist-item__details h2 {
    font-size: 15px;
  }

  .ckm-wishlist-item__price {
    font-size: 15px;
  }

  .ckm-wishlist-item__price .ckm-price-note {
    white-space: normal !important;
    font-size: 11px !important;
  }

  .ckm-wishlist-item__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .ckm-wishlist-item__remove {
    min-width: 104px;
  }

  .ckm-wishlist-empty {
    padding: 44px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-wishlist-card,
  .ckm-wishlist-card::after {
    transition: none !important;
  }

  .ckm-wishlist-spinner {
    animation-duration: 1.4s;
  }
}

/* --- /assets/css/cart-drawer.css --- */
/* Cache-safe, lazily loaded side cart. */

/* The header cart control is styled in header.css with the other header actions. */

/* ================= Drawer shell ================= */
html.ckm-cart-drawer-open,
body.ckm-cart-drawer-open {
  overflow: hidden;
}

.ckm-cart-drawer[hidden] {
  display: none !important;
}

.ckm-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 99990;
}

.ckm-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .52);
  opacity: 0;
  transition: opacity .24s ease;
}

.ckm-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: min(410px, 100vw);
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--c-surface-raised);
  box-shadow: -18px 0 55px rgba(15, 23, 42, .2);
  outline: 0;
  transform: translateX(102%);
  transition: transform .24s ease;
}

.ckm-cart-drawer.is-open .ckm-cart-drawer__backdrop {
  opacity: 1;
}

.ckm-cart-drawer.is-open .ckm-cart-drawer__panel {
  transform: translateX(0);
}

.ckm-cart-drawer__inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--c-surface-raised);
}

.ckm-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px 20px;
  background: var(--c-panel-strong);
  color: var(--c-on-dark);
}

.ckm-cart-drawer__header h2 {
  margin: 0;
  color: var(--c-on-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.ckm-cart-drawer__header p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 600;
}

.ckm-cart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: transparent;
  color: var(--c-on-dark);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}

.ckm-cart-drawer__close:hover {
  border-color: var(--c-on-dark);
  background: rgba(255, 255, 255, .12);
}

.ckm-cart-drawer__loading {
  grid-row: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 12px;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 600;
}

.ckm-cart-drawer__spinner {
  width: 25px;
  height: 25px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: ckmCartSpin .7s linear infinite;
}

@keyframes ckmCartSpin {
  to { transform: rotate(360deg); }
}

.ckm-cart-drawer__notice {
  position: absolute;
  z-index: 2;
  top: 88px;
  left: 16px;
  right: 16px;
  padding: 11px 13px;
  border: 1px solid var(--c-danger-border);
  border-radius: 8px;
  background: var(--c-danger-surface);
  color: var(--c-danger);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .1);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ckm-cart-drawer__notice[hidden] {
  display: none !important;
}

/* ================= Items ================= */
.ckm-cart-drawer__body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}

.ckm-cart-drawer__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ckm-cart-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--c-border-soft);
  transition: opacity .15s ease, background-color .15s ease;
}

.ckm-cart-item:hover {
  background: var(--c-surface-soft);
}

.ckm-cart-item.is-updating {
  opacity: .52;
  pointer-events: none;
}

.ckm-cart-item__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid var(--c-border-soft);
  border-radius: 10px;
  background: var(--c-media-bg);
}

.ckm-cart-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 5px;
  object-fit: contain;
}

.ckm-cart-item__content {
  min-width: 0;
}

.ckm-cart-item__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ckm-cart-item__topline h3 {
  min-width: 0;
  margin: 0;
  color: var(--c-ink-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.ckm-cart-item__topline h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ckm-cart-item__topline h3 a:hover {
  color: var(--c-accent);
}

.ckm-cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin: -6px -6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
}

.ckm-cart-item__remove:hover {
  background: var(--c-danger-surface);
  color: var(--c-danger);
}

.ckm-cart-item__meta {
  margin-top: 5px;
  color: var(--c-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.ckm-cart-item__meta:empty {
  display: none;
}

.ckm-cart-item__meta dl,
.ckm-cart-item__meta p {
  margin: 0;
}

.ckm-cart-item__meta dt,
.ckm-cart-item__meta dd {
  display: inline;
  margin: 0;
}

.ckm-cart-item__meta dd::after {
  content: "";
  display: block;
}

.ckm-cart-item__meta p:last-child {
  margin-bottom: 0;
}

.ckm-cart-item__unit-price {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
}

.ckm-cart-item__bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.ckm-cart-item__quantity {
  display: inline-grid;
  grid-template-columns: 31px 38px 31px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 7px;
  background: var(--c-surface-raised);
}

.ckm-cart-item__quantity button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--c-panel-strong);
  color: var(--c-on-dark);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ckm-cart-item__quantity button:hover:not(:disabled) {
  background: var(--c-primary-hover);
  color: var(--c-primary-ink);
}

.ckm-cart-item__quantity button:disabled {
  background: var(--c-border);
  cursor: not-allowed;
}

.ckm-cart-item__quantity input {
  width: 38px;
  min-width: 0;
  height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: var(--c-surface-raised);
  color: var(--c-ink-2);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
}

.ckm-cart-item__quantity input::-webkit-inner-spin-button,
.ckm-cart-item__quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.ckm-cart-item__quantity-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  border: 1px solid var(--c-border);
  border-radius: 7px;
  color: var(--c-ink-2);
  font-size: 13px;
  font-weight: 700;
}

.ckm-cart-item__line-total {
  color: var(--c-ink-2);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.ckm-cart-drawer__overflow-note {
  margin: 16px;
  padding: 15px 16px;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: 9px;
  background: var(--c-surface-soft);
  color: var(--c-ink-2);
}

.ckm-cart-drawer__overflow-note strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.ckm-cart-drawer__overflow-note p {
  margin: 5px 0 8px;
  color: var(--c-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.ckm-cart-drawer__overflow-note a {
  display: inline-flex;
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.ckm-cart-drawer__overflow-note a:hover {
  text-decoration: underline;
}

/* ================= Footer / empty ================= */
.ckm-cart-drawer__footer {
  padding: 17px 20px 20px;
  border-top: 1px solid var(--c-border-soft);
  background: var(--c-surface-raised);
  box-shadow: 0 -9px 24px rgba(15, 23, 42, .06);
}

.ckm-cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--c-ink-2);
  font-size: 16px;
  font-weight: 700;
}

.ckm-cart-drawer__subtotal strong {
  font-size: 18px;
  font-weight: 800;
}

.ckm-cart-drawer__footer > p {
  margin: 5px 0 14px;
  color: var(--c-muted);
  font-size: 11px;
  line-height: 1.35;
}

.ckm-cart-drawer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ckm-cart-drawer__actions .button {
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.ckm-cart-drawer__view-cart.button {
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface-raised);
  color: var(--c-ink);
}

.ckm-cart-drawer__view-cart.button:hover {
  border-color: var(--c-accent);
  background: var(--c-primary-hover);
  color: var(--c-primary-ink);
}

.ckm-cart-drawer__checkout.button {
  background: var(--c-primary);
  color: var(--c-primary-ink);
}

.ckm-cart-drawer__checkout.button:hover {
  background: var(--c-primary-hover);
  color: var(--c-primary-ink);
}

.ckm-cart-drawer__empty {
  grid-row: 2 / 4;
  align-self: center;
  padding: 48px 28px;
  text-align: center;
}

.ckm-cart-drawer__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-ink);
}

.ckm-cart-drawer__empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ckm-cart-drawer__empty p {
  max-width: 290px;
  margin: 0 auto 22px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ckm-cart-drawer__empty .button {
  min-height: 44px;
  padding-inline: 22px;
}

@media (max-width: 480px) {
  .ckm-cart-drawer__panel {
    width: 100vw;
  }

  .ckm-cart-drawer__header {
    min-height: 74px;
    padding: 15px 16px;
  }

  .ckm-cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 14px;
  }

  .ckm-cart-item__image {
    width: 72px;
    height: 72px;
  }

  .ckm-cart-drawer__footer {
    padding: 15px 14px max(17px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-cart-drawer__backdrop,
  .ckm-cart-drawer__panel {
    transition: none;
  }

  .ckm-cart-drawer__spinner {
    animation-duration: 1.4s;
  }
}

/* ================= Free-shipping progress notice ================= */
/* Shared by the side cart drawer and the cart page. Rides existing cart
   fragments; no JS. Colours come from tokens.css so dark mode is automatic. */
.ckm-fs-progress {
  margin: 0;
  padding: 12px 14px;
  background: var(--c-info-surface);
  border: 1px solid var(--c-info-border);
  border-radius: var(--r-md);
}

.ckm-fs-progress__text {
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--c-ink-2);
}

.ckm-fs-progress__text strong {
  font-weight: var(--fw-semibold);
}

.ckm-fs-progress__text .woocommerce-Price-amount {
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.ckm-fs-progress__icon {
  display: inline-flex;
  vertical-align: -2px;
  margin-right: 5px;
  color: var(--c-success);
}

.ckm-fs-progress__track {
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  overflow: hidden;
}

.ckm-fs-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--c-primary);
  transition: width .35s ease;
}

/* Unlocked state. */
.ckm-fs-progress.is-qualified {
  background: var(--c-success-surface);
  border-color: var(--c-success-border);
}

.ckm-fs-progress.is-qualified .ckm-fs-progress__text {
  margin-bottom: 0;
  color: var(--c-success);
  font-weight: var(--fw-semibold);
}

.ckm-fs-progress.is-qualified .ckm-fs-progress__track {
  display: none;
}

/* Drawer context: sits inside the footer, just above the subtotal. */
.ckm-fs-progress--drawer {
  margin: 0 0 14px;
}

/* Cart-page context: full-width banner above the items table. */
.ckm-fs-progress--cart {
  margin-bottom: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .ckm-fs-progress__fill {
    transition: none;
  }
}

/* ================= Loyalty gift ================= */
/* Progress nudge (mirrors the free-shipping bar). */
.ckm-gift-progress {
  margin: 0;
  padding: 12px 14px;
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
}
.ckm-gift-progress__text {
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--c-ink-2);
}
.ckm-gift-progress__icon { margin-right: 5px; font-size: 16px; vertical-align: -1px; }
.ckm-gift-progress__text strong { font-weight: var(--fw-semibold); }
.ckm-gift-progress__text .woocommerce-Price-amount { font-weight: var(--fw-bold); white-space: nowrap; }
.ckm-gift-progress__track {
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  overflow: hidden;
}
.ckm-gift-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--c-primary);
  transition: width .35s ease;
}
.ckm-gift-progress.is-unlocked {
  background: var(--c-success-surface);
  border-color: var(--c-success-border);
}
.ckm-gift-progress.is-unlocked .ckm-gift-progress__text { margin-bottom: 0; color: var(--c-success); font-weight: var(--fw-semibold); }
.ckm-gift-progress--drawer { margin: 0 0 14px; }
.ckm-gift-progress--cart { margin: 0 0 20px; }

/* Gift line badge in the side cart. */
.ckm-cart-item__gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--c-success-surface);
  color: var(--c-success);
  border: 1px solid var(--c-success-border);
  font-size: 12px;
  font-weight: var(--fw-bold);
}

/* Gift picker. */
.ckm-gift-picker { margin: 0 0 20px; }
.ckm-gift-picker__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--c-ink-2);
}
.ckm-gift-picker__note {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--c-success-surface);
  border: 1px solid var(--c-success-border);
  color: var(--c-success);
  font-weight: var(--fw-semibold);
}
.ckm-gift-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
/* A gift group card: contents preview + a single claim button. */
.ckm-gift-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ckm-gift-group:hover {
  border-color: var(--c-primary);
  box-shadow: 0 8px 20px rgba(17, 24, 39, .08);
}
.ckm-gift-group__title {
  margin: 0;
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--c-ink-2);
}
.ckm-gift-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ckm-gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 84px;
}
.ckm-gift-item__media img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--c-media-bg);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-sm);
  padding: 4px;
}
.ckm-gift-item__name {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--c-muted);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.ckm-gift-group__claim {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--r-btn);
  background: var(--c-primary);
  color: var(--c-primary-ink);
  font-size: 14px;
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: background-color .15s ease;
}
.ckm-gift-group__claim:hover {
  background: var(--c-primary-hover);
  color: var(--c-primary-ink);
  text-decoration: none;
}

/* Account section wrapper. */
.ckm-gift-account { margin: 0 0 30px; }

@media (prefers-reduced-motion: reduce) {
  .ckm-gift-progress__fill { transition: none; }
  .ckm-gift-group { transition: none; }
}

/* Gift "Read more" link + native <dialog> popup. */
.ckm-gift-progress__more {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-accent);
  font: inherit;
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.ckm-gift-progress__more:hover { color: var(--c-primary-hover); }

.ckm-gift-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--c-surface-raised);
  color: var(--c-ink-2);
  box-shadow: var(--shadow-pop);
}
.ckm-gift-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.ckm-gift-dialog__inner { position: relative; padding: 26px 24px 24px; }
.ckm-gift-dialog__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-right: 34px;
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--c-ink-2);
}
.ckm-gift-dialog__body { font-size: 14px; line-height: 1.6; color: var(--c-body); }
.ckm-gift-dialog__body p { margin: 0 0 10px; }
.ckm-gift-dialog__body p:last-child { margin-bottom: 0; }
.ckm-gift-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.ckm-gift-dialog__close:hover { background: var(--c-surface-2); color: var(--c-ink-2); }

