/* KineticPep — Mobile-first responsive + editorial v3 (2026-05-15)
   Patterns: Swiss Modernism + Editorial Grid + Exaggerated Minimalism on hero
   Mobile-first: design starts at 375px, enhances upward
   Reference: ~/Documents/kineticpep/export/canonical/homepage.html
*/

/* ============================================================
   GLOBAL safety
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; max-width: 100vw; }
img, svg { max-width: 100%; height: auto; }


/* ============================================================
   FULL-BLEED HERO 2026 — kp-hero
   Pattern: image bg full-cover + dark gradient overlay + text on left
   Mobile: 88vh, content stacked bottom-left, stats glass strip
   Desktop: 80vh, content max 640px left, image visible right side
   ============================================================ */
.kp-hero {
  position: relative;
  width: 100%;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.kp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.kp-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;  /* mobile: push molecule to right */
}
.kp-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11,31,58,0.55) 0%,
      rgba(11,31,58,0.25) 30%,
      rgba(11,31,58,0.5) 65%,
      rgba(11,31,58,0.95) 100%
    );
}
.kp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 96px;   /* header clearance */
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}
.kp-hero__content {
  max-width: 640px;
  margin-bottom: 28px;
}
.kp-hero__h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 16px 0 16px;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(11,31,58,0.45);
}
.kp-hero__accent {
  font-style: italic;
  font-weight: 700;
  color: var(--accent-cyan);
}
.kp-hero__lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
  max-width: 460px;
  text-shadow: 0 1px 8px rgba(11,31,58,0.4);
}
.kp-hero__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.kp-hero__btn-primary {
  padding: 14px 24px;
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
}
.kp-hero__link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 3px;
  transition: border-color 180ms ease, color 180ms ease;
}
.kp-hero__link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Stats strip — glassmorphism row, full width, sits at the very bottom of hero */
.kp-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(11,31,58,0.45);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  margin-top: 8px;
}
.kp-hero__stat {
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  min-width: 0;
}
.kp-hero__stat:first-child { padding-left: 4px; }
.kp-hero__stat:last-child  { padding-right: 4px; border-right: none; }
.kp-hero__stat-num {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.kp-hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  white-space: nowrap;
}
.kp-hero__stat-value {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}


/* ============================================================
   CATEGORY CAROUSEL — kp-carousel (Limitless-inspired)
   Mobile: 1.25 cards visible (peek-next), tablet 2.25, desktop 4
   Pure CSS scroll-snap, no JS library
   ============================================================ */
.kp-carousel {
  padding: 56px 0 64px;
  background: var(--bg-primary);
  position: relative;
}
.kp-carousel__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}
.kp-carousel__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  color: var(--ink-primary);
}
.kp-carousel__all {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-primary);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}
.kp-carousel__all:hover {
  color: var(--accent-cyan-deep);
  border-color: var(--accent-cyan-deep);
}

/* The horizontal scroll rail */
.kp-carousel__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;   /* mobile: 78% width → next card peeks at ~18% */
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 20px;   /* 4px top to avoid hover-lift clip; bottom for dots */
  scrollbar-width: none;
}
.kp-carousel__rail::-webkit-scrollbar { display: none; }

/* Each card */
.kp-cat-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #0B1F3A;
  isolation: isolate;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease;
}
.kp-cat-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.kp-cat-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11,31,58,0.0) 35%,
    rgba(11,31,58,0.55) 70%,
    rgba(11,31,58,0.92) 100%
  );
  pointer-events: none;
}
.kp-cat-card__btn {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 11px 20px;
  background: rgba(255,255,255,0.96);
  color: var(--ink-primary);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 8px 24px rgba(11,31,58,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  max-width: 88%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kp-cat-card:hover .kp-cat-card__btn,
.kp-cat-card:focus-visible .kp-cat-card__btn {
  background: var(--accent-cyan);
  color: var(--ink-primary);
}
.kp-cat-card:hover > img {
  transform: scale(1.04);
}
.kp-cat-card:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Dot indicators (decorative — JS updates which is active) */
.kp-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 16px;
}
.kp-carousel__dot {
  width: 28px;
  height: 3px;
  background: rgba(11,31,58,0.15);
  border-radius: 999px;
  transition: background 200ms ease, width 200ms ease;
}
.kp-carousel__dot.is-active {
  background: var(--accent-cyan-deep);
  width: 40px;
}

/* ============================================================
   SIDE CART DRAWER — kp-cart-drawer
   Slide-from-right panel that opens on add-to-cart.
   Uses WC mini_cart() output as body; fragment-refreshed on update.
   ============================================================ */
.kp-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 320ms;
}
.kp-cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.kp-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.55);
  opacity: 0;
  transition: opacity 280ms ease;
  cursor: pointer;
}
.kp-cart-drawer.is-open .kp-cart-drawer__overlay { opacity: 1; }

.kp-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: #fff;
  color: var(--ink-primary);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -16px 0 48px rgba(11, 31, 58, 0.22);
  padding-bottom: env(safe-area-inset-bottom);
}
.kp-cart-drawer.is-open .kp-cart-drawer__panel { transform: translateX(0); }

.kp-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.kp-cart-drawer__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-primary);
}
.kp-cart-drawer__close {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-primary);
  transition: background 180ms ease, border-color 180ms ease;
}
.kp-cart-drawer__close:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.kp-cart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

/* === Custom mini-cart body (kp-cart__*) — replaces default WC markup === */
.kp-cart-drawer__body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.kp-cart-drawer.is-loading .kp-cart-drawer__body {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 160ms ease;
}

/* Empty state */
.kp-cart__empty {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 48px 24px !important;
  text-align: center !important;
  gap: 14px !important;
}
.kp-cart__empty-icon { color: var(--ink-muted); }
.kp-cart__empty-msg {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-primary);
  margin: 0;
}
.kp-cart__empty-cta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-cyan-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-cyan-deep);
  padding-bottom: 2px;
}

/* Free-shipping progress bar */
.kp-cart__progress {
  padding: 14px 22px 18px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.kp-cart__progress-msg {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kp-cart__progress-msg strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-primary);
}
.kp-cart__progress-msg.is-unlocked {
  color: var(--status-approved);
  font-weight: 600;
}
.kp-cart__progress-bar {
  height: 4px;
  background: var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}
.kp-cart__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--status-approved));
  border-radius: 999px;
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================================
   ETA — delivery estimate (cart drawer / PDP / checkout)
   ============================================================ */

.kp-eta-inline,
.kp-eta-badge,
.kp-eta-row {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kp-eta-inline strong,
.kp-eta-badge strong,
.kp-eta-row strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}
.kp-eta-inline svg,
.kp-eta-badge svg,
.kp-eta-row svg {
  flex-shrink: 0;
  color: var(--accent-cyan-deep);
}

/* Pill badge for PDP under ATC */
.kp-eta-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 153, 204, 0.08);
  border: 1px solid rgba(0, 153, 204, 0.15);
  color: var(--ink-primary);
  font-size: 0.8125rem;
}

/* Inline row inside cart drawer */
.kp-cart__eta {
  padding: 10px 22px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.kp-cart__eta .kp-eta-row {
  width: 100%;
  font-size: 0.78rem;
  align-items: flex-start;
}
.kp-cart__eta .kp-eta-row > svg { margin-top: 3px; }
.kp-eta-row strong,
.kp-eta-inline strong,
.kp-eta-badge strong { white-space: nowrap; }

/* PDP wrapper */
.kp-pdp-eta {
  margin: 14px 0 6px;
}

/* Checkout — banner row above shipping in order review table */
.kp-checkout-eta td {
  padding: 14px 16px !important;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 200, 150, 0.05)) !important;
  border-top: 1px solid var(--border-subtle) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}
.kp-checkout-eta .kp-eta-row {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Inline ETA under each shipping method label (classic + block checkout) */
.kp-method-eta {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0;
}
.kp-method-eta .kp-eta-inline {
  font-size: inherit;
  color: inherit;
}
.kp-method-eta .kp-eta-inline strong {
  font-size: 0.75rem;
  color: var(--ink-secondary);
}
.kp-method-eta svg { display: none; }

/* Block-checkout banner (above the React checkout flow) */
.kp-checkout-eta-banner {
  display: block;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 200, 150, 0.06));
  border: 1px solid rgba(0, 153, 204, 0.18);
}
.kp-checkout-eta-banner .kp-eta-row {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-primary);
  width: 100%;
}
.kp-checkout-eta-banner .kp-eta-row strong {
  color: var(--ink-primary);
}
.kp-checkout-eta-banner .kp-eta-row svg {
  color: var(--accent-cyan-deep);
  width: 16px;
  height: 16px;
}

/* Hide banner on cart page if cart block also renders it — only checkout context */
.wp-block-woocommerce-cart > .kp-checkout-eta-banner { display: none; }

/* ============================================================
   PLACE ORDER — block checkout primary CTA
   ============================================================ */

.wp-block-woocommerce-checkout-actions-block,
.wc-block-checkout__actions {
  margin-top: 24px !important;
  padding: 0 !important;
}

/* Container: stack button + return-to-cart link nicely */
.wc-block-checkout__actions_row,
.wc-block-checkout-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
}

/* The button itself — works for both old + new WC Blocks class names */
.wc-block-components-checkout-place-order-button,
.wc-block-checkout-place-order-button,
button.wc-block-components-button.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout-actions-block button[type="submit"],
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 16px 28px !important;
  font-family: var(--font-heading) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--accent-cyan-deep) 0%, var(--accent-cyan) 100%) !important;
  border: 0 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 8px 24px rgba(0, 153, 204, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  cursor: pointer !important;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 180ms ease,
              filter 180ms ease !important;
  position: relative;
  overflow: hidden;
}

/* Subtle shine sweep on hover */
.wc-block-components-checkout-place-order-button::after,
.wc-block-checkout-place-order-button::after,
.wp-block-woocommerce-checkout-actions-block button[type="submit"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout-place-order-button:hover,
.wp-block-woocommerce-checkout-actions-block button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 153, 204, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  filter: brightness(1.04);
}

.wc-block-components-checkout-place-order-button:hover::after,
.wc-block-checkout-place-order-button:hover::after,
.wp-block-woocommerce-checkout-actions-block button[type="submit"]:hover::after {
  left: 120%;
}

.wc-block-components-checkout-place-order-button:active,
.wc-block-checkout-place-order-button:active,
.wp-block-woocommerce-checkout-actions-block button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(0, 153, 204, 0.22), inset 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.wc-block-components-checkout-place-order-button:focus-visible,
.wc-block-checkout-place-order-button:focus-visible,
.wp-block-woocommerce-checkout-actions-block button[type="submit"]:focus-visible {
  outline: 3px solid rgba(0, 212, 255, 0.45) !important;
  outline-offset: 3px !important;
}

/* Loading state */
.wc-block-components-checkout-place-order-button.wc-block-components-button--loading,
.wc-block-components-checkout-place-order-button:disabled,
.wc-block-checkout-place-order-button:disabled {
  opacity: 0.85 !important;
  cursor: progress !important;
  pointer-events: none;
}
.wc-block-components-checkout-place-order-button .wc-block-components-spinner,
.wc-block-components-button__text .wc-block-components-spinner {
  border-color: rgba(255, 255, 255, 0.4) !important;
  border-top-color: #fff !important;
}

/* Button text wrapper — newer Blocks wraps copy in a span */
.wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.wc-block-checkout-place-order-button .wc-block-components-button__text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
}

/* Optional lock icon prepended via ::before for trust signal */
.wc-block-components-checkout-place-order-button .wc-block-components-button__text::before,
.wp-block-woocommerce-checkout-actions-block button[type="submit"] .wc-block-components-button__text::before {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* "Return to cart" link below the button */
.wc-block-components-checkout-return-to-cart-button,
.wp-block-woocommerce-checkout-actions-block a[href*="cart"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0 !important;
  padding: 6px 10px !important;
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--ink-muted) !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.wc-block-components-checkout-return-to-cart-button:hover,
.wp-block-woocommerce-checkout-actions-block a[href*="cart"]:hover {
  color: var(--ink-secondary) !important;
}

/* Small-screen polish (already mobile-first, but tighten on very narrow) */
@media (max-width: 380px) {
  .wc-block-components-checkout-place-order-button,
  .wc-block-checkout-place-order-button,
  .wp-block-woocommerce-checkout-actions-block button[type="submit"] {
    min-height: 52px !important;
    font-size: 0.9375rem !important;
    padding: 14px 22px !important;
  }
}

/* Items list */
.kp-cart__items {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.kp-cart__item {
  display: grid !important;
  grid-template-columns: 64px 1fr 28px !important;
  gap: 14px !important;
  padding: 16px 22px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  align-items: start !important;
  position: relative !important;
}
.kp-cart__item-thumb {
  display: block !important;
  width: 64px !important;
  height: 64px !important;
}
.kp-cart__item-thumb img {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 4px !important;
  margin: 0 !important;
  display: block !important;
}
.kp-cart__item-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kp-cart__item-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--ink-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kp-cart__item-title:hover { color: var(--accent-cyan-deep); }
.kp-cart__item-meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.kp-cart__item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 10px;
}
.kp-cart__qty {
  display: inline-flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}
.kp-cart__qty-btn {
  background: transparent;
  border: 0;
  width: 26px;
  height: 26px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 140ms ease;
}
.kp-cart__qty-btn:hover { background: var(--accent-cyan); }
.kp-cart__qty-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
  color: var(--ink-primary);
}
.kp-cart__item-price {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-cyan-deep);
  white-space: nowrap;
}
.kp-cart__item-price .woocommerce-Price-currencySymbol { font-weight: 600; }
.kp-cart__item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--ink-muted);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  align-self: start;
}
.kp-cart__item-remove:hover {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

/* Cross-sell strip */
.kp-cart__cross {
  background: var(--bg-primary);
  padding: 16px 22px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.kp-cart__cross-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.kp-cart__cross-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kp-cart__cross-item {
  display: grid;
  grid-template-columns: 44px 1fr 32px;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.kp-cart__cross-item:hover { border-color: var(--accent-cyan-deep); }
.kp-cart__cross-thumb { display: block; width: 44px; height: 44px; }
.kp-cart__cross-thumb img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  object-fit: contain !important;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 3px;
  display: block;
}
.kp-cart__cross-info { min-width: 0; }
.kp-cart__cross-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kp-cart__cross-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan-deep);
  margin-top: 2px;
}
.kp-cart__cross-price del { color: var(--ink-muted); margin-right: 4px; }
.kp-cart__cross-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background 160ms ease;
}
.kp-cart__cross-add:hover { background: var(--accent-cyan); color: var(--ink-primary); }

/* Trust strip */
.kp-cart__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 22px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}
.kp-cart__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--ink-secondary);
  letter-spacing: 0.01em;
}
.kp-cart__trust-item svg { color: var(--accent-cyan-deep); flex-shrink: 0; }

/* Footer: totals + CTA */
.kp-cart__footer {
  padding: 14px 22px 16px;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 -8px 20px rgba(11, 31, 58, 0.08);
  border-top: 1px solid var(--border-subtle);
  position: sticky;
  bottom: 0;
  margin-top: auto;
  z-index: 2;
}
.kp-cart__totals {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.kp-cart__totals-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kp-cart__totals-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--ink-primary);
}
.kp-cart__totals-amount .woocommerce-Price-currencySymbol { font-weight: 500; opacity: 0.8; }
.kp-cart__totals-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.kp-cart__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kp-cart__checkout {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 18px;
  background: var(--accent-cyan);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--accent-cyan);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.kp-cart__checkout:hover {
  background: var(--ink-primary);
  color: #fff;
  border-color: var(--ink-primary);
}
.kp-cart__view {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 6px 0 0;
  transition: color 160ms ease;
}
.kp-cart__view:hover { color: var(--ink-primary); text-decoration: underline; }

/* Chat widget must not cover the drawer CTA while a drawer is open */
body.kp-no-scroll .kp-chat-launcher,
body.kp-no-scroll .kp-chat-welcome {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Legacy WC mini-cart fallback (kept for any unstyled fragment swap) */
.kp-cart-drawer__body .woocommerce-mini-cart {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 22px !important;
}
.kp-cart-drawer__body .woocommerce-mini-cart__empty-message {
  padding: 40px 22px !important;
  text-align: center !important;
  color: var(--ink-secondary) !important;
  font-size: 0.9375rem !important;
  margin: 0 !important;
}
.kp-cart-drawer__body li.woocommerce-mini-cart-item {
  position: relative !important;
  display: block !important;
  list-style: none !important;
  padding: 16px 36px 16px 76px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  min-height: 88px !important;
}
.kp-cart-drawer__body li.woocommerce-mini-cart-item:last-child {
  border-bottom: 0 !important;
}

/* The product anchor (image + name in one <a>) */
.kp-cart-drawer__body li.woocommerce-mini-cart-item > a:not(.remove) {
  display: block !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1.3 !important;
  color: var(--ink-primary) !important;
  text-decoration: none !important;
}
.kp-cart-drawer__body li.woocommerce-mini-cart-item > a:not(.remove):hover {
  color: var(--accent-cyan-deep) !important;
}

/* Product thumbnail — small fixed size, positioned left */
.kp-cart-drawer__body li.woocommerce-mini-cart-item img {
  position: absolute !important;
  left: 0 !important;
  top: 16px !important;
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  object-fit: contain !important;
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 4px !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}

/* Quantity row (4 × €49,00) */
.kp-cart-drawer__body li.woocommerce-mini-cart-item .quantity {
  display: block !important;
  margin-top: 8px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.8125rem !important;
  color: var(--ink-secondary) !important;
}
.kp-cart-drawer__body li.woocommerce-mini-cart-item .quantity .amount,
.kp-cart-drawer__body li.woocommerce-mini-cart-item .quantity .woocommerce-Price-amount {
  color: var(--accent-cyan-deep) !important;
  font-weight: 600 !important;
}

/* Remove × button — absolute top-right inside item */
.kp-cart-drawer__body li.woocommerce-mini-cart-item a.remove,
.kp-cart-drawer__body li.woocommerce-mini-cart-item a.remove_from_cart_button {
  position: absolute !important;
  top: 14px !important;
  right: 0 !important;
  left: auto !important;
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: var(--bg-primary) !important;
  color: var(--ink-muted) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 1px solid var(--border-subtle) !important;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease !important;
}
.kp-cart-drawer__body li.woocommerce-mini-cart-item a.remove:hover,
.kp-cart-drawer__body li.woocommerce-mini-cart-item a.remove_from_cart_button:hover {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  border-color: #FCA5A5 !important;
}

/* Subtotal row */
.kp-cart-drawer__body p.woocommerce-mini-cart__total,
.kp-cart-drawer__body .woocommerce-mini-cart__total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  padding: 18px 22px !important;
  margin: 0 !important;
  border-top: 1px solid var(--border-subtle) !important;
  background: var(--bg-primary) !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  color: var(--ink-primary) !important;
}
.kp-cart-drawer__body .woocommerce-mini-cart__total strong {
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--ink-secondary) !important;
}
.kp-cart-drawer__body .woocommerce-mini-cart__total .amount,
.kp-cart-drawer__body .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-family: var(--font-mono) !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--accent-cyan-deep) !important;
}

/* Buttons row — stacked full-width */
.kp-cart-drawer__body p.woocommerce-mini-cart__buttons,
.kp-cart-drawer__body .woocommerce-mini-cart__buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 18px 22px 24px !important;
  margin: 0 !important;
}
.kp-cart-drawer__body .woocommerce-mini-cart__buttons a,
.kp-cart-drawer__body .woocommerce-mini-cart__buttons .button {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  padding: 14px 18px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease !important;
  margin: 0 !important;
  letter-spacing: 0.005em !important;
}
/* Checkout = primary cyan, first visual order */
.kp-cart-drawer__body .woocommerce-mini-cart__buttons .checkout {
  background: var(--accent-cyan) !important;
  color: var(--ink-primary) !important;
  border-color: var(--accent-cyan) !important;
  order: 1 !important;
}
.kp-cart-drawer__body .woocommerce-mini-cart__buttons .checkout:hover {
  background: var(--ink-primary) !important;
  color: #fff !important;
  border-color: var(--ink-primary) !important;
}
/* View cart = ghost, second visual order */
.kp-cart-drawer__body .woocommerce-mini-cart__buttons a.button.wc-forward:not(.checkout) {
  background: transparent !important;
  color: var(--ink-primary) !important;
  border-color: var(--border-strong) !important;
  order: 2 !important;
}
.kp-cart-drawer__body .woocommerce-mini-cart__buttons a.button.wc-forward:not(.checkout):hover {
  background: var(--bg-elevated) !important;
  border-color: var(--ink-primary) !important;
}

/* Disable body scroll when drawer open */
body.kp-no-scroll {
  overflow: hidden;
  touch-action: none;
}


/* ============================================================
   PDP — kp-pdp-* (Bricks template KP Single Product, id=239)
   Refactored 2026-05-15: gallery + trust grid + sticky ATC
   ============================================================ */
.kp-pdp-breadcrumb {
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.kp-pdp-breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.kp-pdp-breadcrumb a:hover { color: var(--accent-cyan-deep); }
.kp-pdp-breadcrumb span { color: var(--ink-primary); }

.kp-pdp-hero {
  padding: 24px 0 80px;
}
.kp-pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

/* Gallery */
.kp-pdp-media-col .kp-pdp-gallery {
  width: 100%;
  background: linear-gradient(135deg, #F7F8FA 0%, #EEF1F6 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.kp-pdp-media-col .woocommerce-product-gallery__image img,
.kp-pdp-media-col .woocommerce-product-gallery__image a img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 12px;
}
.kp-pdp-media-col .flex-control-thumbs {
  display: flex !important;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
  padding: 0;
}
.kp-pdp-media-col .flex-control-thumbs li {
  flex: 1;
  max-width: 80px;
}
.kp-pdp-media-col .flex-control-thumbs img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
  padding: 4px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.kp-pdp-media-col .flex-control-thumbs img.flex-active,
.kp-pdp-media-col .flex-control-thumbs img:hover {
  border-color: var(--accent-cyan-deep);
}

/* Info column */
.kp-pdp-info { min-width: 0; }
.kp-pdp-pills { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.kp-pdp-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.875rem, 6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink-primary);
}
.kp-pdp-meta {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  margin-bottom: 18px;
}
.kp-pdp-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.kp-pdp-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}
.kp-pdp-specs__label {
  font-size: 0.625rem;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.kp-pdp-specs__value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-primary);
}
.kp-pdp-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.kp-pdp-price__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1;
  color: var(--ink-primary);
}
.kp-pdp-price__note {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}

/* Trust 4-tile grid (replaces inline bullets) */
.kp-pdp-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.kp-pdp-trust__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 180ms ease, background 180ms ease;
}
.kp-pdp-trust__item:hover { border-color: var(--accent-cyan-deep); }
.kp-pdp-trust__icon { color: var(--accent-cyan-deep); }
.kp-pdp-trust__label {
  font-size: 0.625rem;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kp-pdp-trust__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-primary);
  line-height: 1.2;
}

/* Sticky mobile ATC */
.kp-sticky-atc {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(11, 31, 58, 0.96);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}
.kp-sticky-atc.is-visible { transform: translateY(0); }
.kp-sticky-atc__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.kp-sticky-atc__product {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.kp-sticky-atc__thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kp-sticky-atc__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kp-sticky-atc__meta { min-width: 0; }
.kp-sticky-atc__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.kp-sticky-atc__price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-top: 2px;
}
.kp-sticky-atc__action .add_to_cart_button,
.kp-sticky-atc__action .button {
  background: var(--accent-cyan) !important;
  color: var(--ink-primary) !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 12px 18px !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.875rem !important;
  white-space: nowrap;
}
.kp-sticky-atc__action .add_to_cart_button:hover {
  background: #fff !important;
}

/* Hide sticky ATC on tablet+ (desktop has visible buy section) */
@media (min-width: 1024px) {
  .kp-sticky-atc { display: none; }
}

/* PDP content area (post_content rendered) */
.kp-pdp-content {
  max-width: 880px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* PDP desktop layout — 2 columns */
@media (min-width: 768px) {
  .kp-pdp-hero { padding: 32px 0 96px; }
  .kp-pdp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .kp-pdp-trust { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .kp-pdp-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .kp-pdp-media-col .kp-pdp-gallery { padding: 32px; position: sticky; top: 96px; }
  .kp-pdp-title { font-size: 2.75rem; }
}


/* ============================================================
   BEST SELLERS — kp-bestsellers (native Bricks woocommerce-products)
   Wraps the WC products grid with brand header layout
   ============================================================ */
.kp-bestsellers {
  padding: 56px 0;
}
.kp-bestsellers__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}
.kp-bestsellers__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  color: var(--ink-primary);
}
/* WC products grid inside Best Sellers — let Bricks columns handle layout, just tighten gaps */
.kp-bestsellers__grid ul.products {
  gap: 14px;
  margin: 0;
  padding: 0;
}
.kp-bestsellers__grid ul.products li.product {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 0;
  list-style: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.kp-bestsellers__grid ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.kp-bestsellers__grid ul.products li.product a {
  text-decoration: none;
  color: var(--ink-primary);
  display: block;
}
.kp-bestsellers__grid ul.products li.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 8px;
  margin-bottom: 12px;
}
.kp-bestsellers__grid ul.products li.product h2,
.kp-bestsellers__grid ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--ink-primary);
}
.kp-bestsellers__grid ul.products li.product .price {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-cyan-deep);
}
.kp-bestsellers__grid ul.products li.product .button,
.kp-bestsellers__grid ul.products li.product .add_to_cart_button {
  margin-top: 10px;
  width: 100%;
  text-align: center;
  background: var(--ink-primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 180ms ease;
}
.kp-bestsellers__grid ul.products li.product .button:hover,
.kp-bestsellers__grid ul.products li.product .add_to_cart_button:hover {
  background: var(--accent-cyan-deep);
}

@media (min-width: 768px) {
  .kp-bestsellers { padding: 80px 0; }
  .kp-bestsellers__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
  }
  .kp-bestsellers__grid ul.products { gap: 16px; }
  .kp-bestsellers__grid ul.products li.product { padding: 18px; }
}

@media (min-width: 1024px) {
  .kp-bestsellers { padding: 96px 0; }
  .kp-bestsellers__grid ul.products { gap: 20px; }
  .kp-bestsellers__grid ul.products li.product h2,
  .kp-bestsellers__grid ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
  }
}

/* Legacy editorial cards (kept for back-compat if injected elsewhere) */
.kp-categories { padding: 64px 0; background: var(--bg-primary); }
.kp-categories__header { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
.kp-categories__title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 0; color: var(--ink-primary); }
.kp-categories__all { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--ink-primary); text-decoration: none; border-bottom: 1px solid var(--ink-primary); padding-bottom: 2px; transition: color 180ms ease, border-color 180ms ease; }
.kp-categories__all:hover { color: var(--accent-cyan-deep); border-color: var(--accent-cyan-deep); }

.kp-categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.kp-category {
  position: relative;
  display: block;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink-primary);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.kp-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.kp-category__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.kp-category__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.kp-category__line {
  flex: 1;
  height: 2px;
  background: var(--accent-cyan-deep);
  border-radius: 2px;
  opacity: 0.85;
}
/* Per-category accent line color (Swiss accent variant per vertical) */
.kp-category--longevity .kp-category__line { background: #00D4FF; }
.kp-category--body      .kp-category__line { background: #00C896; }
.kp-category--cognition .kp-category__line { background: #6B5BFF; }
.kp-category--recovery  .kp-category__line { background: #FF8A3D; }

.kp-category__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink-primary);
}
.kp-category__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}
.kp-category__cta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-cyan-deep);
  text-transform: uppercase;
}


/* ============================================================
   ENHANCE FROM TABLET 768+ (2-col)
   ============================================================ */
@media (min-width: 768px) {
  /* Full-bleed hero — tablet */
  .kp-hero { min-height: 78vh; }
  .kp-hero__bg-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(11,31,58,0.88) 0%,
        rgba(11,31,58,0.65) 35%,
        rgba(11,31,58,0.25) 65%,
        rgba(11,31,58,0.1) 100%
      ),
      linear-gradient(
        180deg,
        rgba(11,31,58,0.15) 0%,
        rgba(11,31,58,0) 30%,
        rgba(11,31,58,0.5) 100%
      );
  }
  .kp-hero__bg-img { object-position: 80% center; }
  .kp-hero__inner { padding-top: 120px; padding-bottom: 36px; }
  .kp-hero__h1 { font-size: clamp(2.75rem, 5.5vw, 3.5rem); margin: 20px 0 20px; }
  .kp-hero__lead { font-size: 1.0625rem; max-width: 520px; margin-bottom: 28px; }
  .kp-hero__btn-primary { padding: 15px 28px; font-size: 1rem; }
  .kp-hero__stats { padding: 18px 18px; margin-top: 0; max-width: 720px; }
  .kp-hero__stat-num { font-size: 0.625rem; }
  .kp-hero__stat-label { font-size: 0.625rem; }
  .kp-hero__stat-value { font-size: 1.0625rem; }

  /* Carousel tablet — 2.25 cards visible */
  .kp-carousel { padding: 80px 0 80px; }
  .kp-carousel__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
  }
  .kp-carousel__rail {
    grid-auto-columns: 42%;
    gap: 16px;
    padding: 4px 32px 24px;
    scroll-padding-left: 32px;
  }
  .kp-cat-card__btn { font-size: 0.875rem; padding: 12px 22px; bottom: 24px; }

  .kp-categories { padding: 96px 0; }
  .kp-categories__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
  }
  .kp-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .kp-category { padding: 28px; }
}


/* ============================================================
   DESKTOP 1024+ (4 cards visible, full hero)
   ============================================================ */
@media (min-width: 1024px) {
  .kp-hero { min-height: 82vh; }
  .kp-hero__bg-img { object-position: 75% center; }
  .kp-hero__h1 { font-size: 3.75rem; line-height: 1.05; max-width: 720px; }
  .kp-hero__content { max-width: 720px; margin-bottom: 36px; }
  .kp-hero__lead { font-size: 1.125rem; max-width: 580px; }
  .kp-hero__stats { max-width: 760px; padding: 20px 22px; }
  .kp-hero__stat-num, .kp-hero__stat-label { font-size: 0.6875rem; }
  .kp-hero__stat-value { font-size: 1.25rem; }

  /* Carousel desktop — 4 cards visible exactly, no overflow */
  .kp-carousel__rail {
    grid-auto-columns: calc((100% - 48px - 48px) / 4);  /* 4 cards, 3 gaps of 16px */
    gap: 16px;
    padding: 4px 48px 24px;
    scroll-padding-left: 48px;
    max-width: 1376px;
    margin: 0 auto;
  }
  .kp-carousel__dots { display: none; }
  .kp-cat-card__btn { font-size: 0.9375rem; padding: 14px 24px; bottom: 28px; }

  .kp-categories__grid { grid-template-columns: repeat(4, 1fr); }
  .kp-category { padding: 32px 28px; }
  .kp-category__name { font-size: 1.5rem; }
}


/* ============================================================
   LEGACY RESPONSIVE — tablet inline-grid collapses (≤992px)
   ============================================================ */
@media (max-width: 992px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .section { padding: 56px 0 !important; }
  .section-tight { padding: 32px 0 !important; }
  .kp-pdp-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .kp-pdp-info [style*="position:sticky"] { position: static !important; }
}


/* ============================================================
   MOBILE 768 — phone-first overrides for existing sections
   ============================================================ */
@media (max-width: 768px) {

  /* Type scale */
  .h1 { font-size: 2.125rem !important; line-height: 1.15 !important; letter-spacing: -0.02em !important; }
  .h2 { font-size: 1.75rem !important;  line-height: 1.2 !important; }
  .h3 { font-size: 1.375rem !important; line-height: 1.25 !important; }
  .h4 { font-size: 1.125rem !important; }
  .body-lg { font-size: 1rem !important; line-height: 1.6 !important; }

  .kp-pdp-info h1.h1 { font-size: 2rem !important; }
  .wrap { padding: 0 16px !important; }

  /* Trust bar horizontal scroll */
  .kp-trust-bar { height: auto !important; padding: 8px 0 !important; }
  .kp-trust-bar__inner {
    gap: 20px !important;
    padding: 0 16px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .kp-trust-bar__inner::-webkit-scrollbar { display: none; }
  .kp-trust-bar__item {
    font-size: 0.6875rem !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    white-space: nowrap;
  }

  /* Header */
  .kp-header__inner { gap: 8px !important; }
  .kp-header__logo img,
  .kp-header__inner a > svg,
  .kp-header__inner a > img { height: 22px !important; }
  .kp-header__icon-btn { width: 36px !important; height: 36px !important; }

  /* Section header rows (title + right CTA) */
  [style*="display:flex"][style*="justify-content:space-between"][style*="flex-wrap:wrap"] {
    gap: 16px !important;
    margin-bottom: 28px !important;
  }
  .section .btn-ghost { padding: 10px 14px !important; font-size: 0.8125rem !important; }

  /* Quality dark CTA proportions */
  section.surface-dark .btn.btn-primary,
  section.surface-dark .btn.btn-ghost {
    padding: 14px 22px !important;
    font-size: 0.9375rem !important;
  }

  /* Featured products & generic grid-4 (2-col mobile) */
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .grid-4 > .card { padding: 18px !important; }
  .grid-4 .h4 { font-size: 1rem !important; line-height: 1.25 !important; }
  .grid-4 .body-sm { font-size: 0.8125rem !important; line-height: 1.45 !important; }
  .grid-4 [style*="width:48px;height:48px"] {
    width: 40px !important; height: 40px !important;
    margin-bottom: 14px !important;
  }
  .grid-4 a.card .mono { font-size: 0.6875rem !important; margin-top: 16px !important; }

  /* Product card */
  .kp-product-card__body { padding: 14px !important; }
  .kp-product-card__cat { font-size: 0.625rem !important; letter-spacing: 0.1em !important; }
  .kp-product-card__short { font-size: 0.8125rem !important; line-height: 1.45 !important; }
  .kp-product-card__price { font-size: 1rem !important; }
  .kp-product-card__price-label { font-size: 0.5625rem !important; }
  .kp-product-card__price-row .btn { padding: 6px 10px !important; font-size: 0.75rem !important; }

  /* Disable hover lift on touch */
  .card.hover-lift:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
  }

  /* Quality COA card */
  section.surface-dark .card {
    padding: 22px !important;
    border-radius: var(--radius-lg) !important;
  }
  section.surface-dark .card [style*="padding:10px 0"] {
    font-size: 0.8125rem !important;
    padding: 9px 0 !important;
  }
  section.surface-dark .card [style*="padding:10px 0"] .mono { font-size: 0.75rem !important; }

  /* FAQ */
  section .wrap[style*="text-align:center"] > [style*="max-width:760px"] { margin-top: 32px !important; }
  details { padding: 18px 0 !important; }
  details summary { font-size: 0.9375rem !important; line-height: 1.35 !important; }
  details p { font-size: 0.875rem !important; line-height: 1.5 !important; }

  /* PDP CTA */
  .kp-pdp-cta { width: 100% !important; }
  .kp-pdp-cta form.cart { flex-direction: column !important; }
  .kp-pdp-cta form.cart .quantity,
  .kp-pdp-cta form.cart input.qty { width: 100% !important; }
  .kp-pdp-cta form.cart button[type="submit"],
  .kp-pdp-cta form.cart .single_add_to_cart_button { width: 100% !important; }
  .kp-pdp-cta .add_to_cart_inline,
  .kp-pdp-cta .add_to_cart_inline > a {
    width: 100% !important;
    text-align: center !important;
    display: inline-block !important;
  }

  /* PDP price + specs */
  .kp-pdp-price { flex-wrap: wrap !important; gap: 8px !important; }
  .kp-pdp-price .h2 { font-size: 2rem !important; }
  .kp-pdp-specs { grid-template-columns: repeat(2, 1fr) !important; padding: 18px !important; gap: 12px !important; }
  .kp-pdp-specs .h4 { font-size: 0.9375rem !important; }
  .kp-pdp-media { padding: 32px !important; aspect-ratio: 1 !important; }

  /* WC related products */
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  ul.products li.product { padding: 12px !important; }
  ul.products li.product h2,
  ul.products li.product .woocommerce-loop-product__title { font-size: 0.875rem !important; }
  ul.products li.product .price { font-size: 1rem !important; }

  /* Footer */
  .kp-footer { padding: 48px 0 24px !important; }
  .kp-footer__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 20px !important;
    padding-bottom: 28px !important;
  }
  .kp-footer__grid > div:first-child { grid-column: 1 / -1 !important; }
  .kp-footer__brand { max-width: 100% !important; font-size: 0.875rem !important; }
  .kp-footer__legal {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 0.75rem !important;
  }
}


/* ============================================================
   NARROW PHONE 480
   ============================================================ */
@media (max-width: 480px) {
  .h1 { font-size: 1.875rem !important; line-height: 1.18 !important; }
  .h2 { font-size: 1.5rem !important; }

  /* Hero stats stay 3-col (Pietro's pick) even tighter */
  .kp-hero__stats { padding: 18px 0 !important; }
  .kp-hero__stat { padding: 0 8px !important; }
  .kp-hero__stat-value { font-size: 0.875rem !important; }
  .kp-hero__stat-num,
  .kp-hero__stat-label { font-size: 0.5625rem !important; }

  /* Categories stay 1-col on narrow phone — already mobile-first base */
  .kp-category { padding: 22px 20px !important; }
  .kp-category__name { font-size: 1.25rem !important; }

  /* Featured grid-4 stays 2-col but tighter */
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .grid-4 > .card { padding: 14px !important; }
  .grid-4 [style*="width:48px;height:48px"] { width: 36px !important; height: 36px !important; }
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .kp-pdp-specs { grid-template-columns: 1fr !important; }

  .wrap { padding: 0 14px !important; }
  .section { padding: 40px 0 !important; }
  section[style*="padding:120px"] { padding: 56px 0 48px !important; }
  .kp-hero { padding: 56px 0 44px; }

  .kp-footer__grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .kp-footer__grid > div:first-child { grid-column: auto !important; }
  .kp-mobile-drawer { width: 280px !important; }
  .kp-footer__social { flex-wrap: wrap !important; }
}


/* ============================================================
   CONTACT PAGE — kp-contact
   ============================================================ */
/* Bricks native containers use a fixed 1100px width by default — let .wrap control sizing */
.brxe-container.wrap { width: 100%; }

.kp-hero-sub { color: rgba(255,255,255,0.75); max-width: 640px; }
.kp-contact-card { display: flex; flex-direction: column; gap: 10px; }
.kp-contact-card .btn { margin-top: auto; align-self: flex-start; }
.kp-contact-card address { font-style: normal; }
@media (max-width: 640px) {
  .grid-4:has(> .kp-contact-card) { grid-template-columns: 1fr !important; }
}
