/* ==========================================================================
   CellXpress — theme stylesheet
   Tokens: CellXpress_Brand_Strategy.md | Components: CellXpress_Component_Library.md
   Motion: CellXpress_Motion_Design_Spec.md — transform/opacity only, custom
   easing, reduced-motion fallback on every animated rule.
   ========================================================================== */

:root {
  --cx-navy-900: #0F2438;
  --cx-navy-800: #14304A;
  --cx-navy-700: #1B3A57;
  --cx-navy-600: #2A4E6E;
  --cx-navy-400: #5B7C97;
  --cx-navy-200: #B9C9D6;
  --cx-navy-100: #DCE5EC;
  --cx-navy-50:  #F0F4F7;

  --cx-orange-600: #F07C1B;
  --cx-orange-700: #AF560C;
  --cx-orange-300: #F8B98C;
  --cx-orange-100: #FCE3D0;
  --cx-orange-50:  #FEF3EA;

  --cx-charcoal:  #1A1F26;
  --cx-slate:     #4B5563;
  --cx-mist:      #E2E5E9;
  --cx-off-white: #F7F8FA;
  --cx-white:     #FFFFFF;

  --cx-success: #1F8A57;
  --cx-warning: #B7791F;
  --cx-error:   #C0362C;

  --cx-space-1: 4px;  --cx-space-2: 8px;  --cx-space-3: 12px; --cx-space-4: 16px;
  --cx-space-6: 24px; --cx-space-8: 32px; --cx-space-12: 48px; --cx-space-16: 64px; --cx-space-24: 96px;

  --cx-radius-sm: 4px;
  --cx-radius-md: 8px;
  --cx-radius-lg: 16px;

  --cx-shadow-card: 0 2px 8px rgba(15, 36, 56, 0.08);

  --cx-ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --cx-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --cx-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font-heading: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --cx-z-sticky: 30;
  --cx-z-float: 40;
  --cx-z-modal: 50;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cx-charcoal);
  background: var(--cx-off-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 var(--cx-space-3); text-wrap: balance; }
p { margin: 0 0 var(--cx-space-3); max-width: 65ch; }
ul { margin: 0; padding: 0; list-style: none; }
table { max-width: none; }
button { font-family: inherit; cursor: pointer; }

.cx-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--cx-space-4); }
@media (min-width: 1024px) { .cx-container { padding: 0 var(--cx-space-8); } }

.cx-skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--cx-navy-900); color: #fff;
  padding: var(--cx-space-2) var(--cx-space-4); z-index: 100; border-radius: 0 0 var(--cx-radius-sm) 0;
}
.cx-skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--cx-space-2);
  min-height: 44px; padding: 0 var(--cx-space-6);
  border-radius: var(--cx-radius-md); font-weight: 500; font-size: 15px;
  border: 1px solid transparent;
  transition: transform 160ms var(--cx-ease-out), background-color 150ms ease, border-color 150ms ease;
}
.cx-btn:active { transform: scale(0.97); }
.cx-btn--primary { background: var(--cx-orange-600); color: var(--cx-navy-900); }
.cx-btn--primary:hover { background: var(--cx-orange-700); }
.cx-btn--secondary { background: transparent; color: var(--cx-navy-700); border-color: var(--cx-navy-400); }
.cx-btn--secondary:hover { background: var(--cx-navy-50); }
.cx-btn--ghost-inverse { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cx-btn--ghost-inverse:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */
.cx-announcement { background: var(--cx-navy-900); color: #fff; font-size: 13px; }
.cx-announcement__inner { padding: var(--cx-space-2) var(--cx-space-4); text-align: center; }
[data-cx-cutoff-message] { transition: opacity 300ms var(--cx-ease-in-out); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.cx-header {
  position: sticky; top: 0; z-index: var(--cx-z-sticky);
  background: var(--cx-white); border-bottom: 1px solid var(--cx-mist);
}
.cx-header__inner { display: flex; align-items: center; justify-content: space-between; height: 104px; gap: var(--cx-space-4); }
.cx-header__brand { display: flex; align-items: center; gap: var(--cx-space-3); flex-shrink: 0; }
.cx-logo { display: flex; align-items: center; }
.cx-logo img { height: 76px; width: auto; max-width: none; }
@media (max-width: 480px) { .cx-logo img { height: 60px; } }

.cx-nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 32px; height: 32px; background: none; border: none; padding: 0;
}
.cx-nav-toggle span { display: block; height: 2px; width: 100%; background: var(--cx-navy-900); transition: transform 200ms var(--cx-ease-out), opacity 200ms var(--cx-ease-out); }
.cx-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cx-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cx-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.cx-nav__list { display: flex; gap: var(--cx-space-6); }
.cx-nav__list a { font-size: 15px; font-weight: 500; color: var(--cx-navy-700); padding: var(--cx-space-2) 0; position: relative; }
.cx-nav__list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--cx-orange-600);
  transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--cx-ease-out);
}
.cx-nav__list a:hover::after, .cx-nav__list a:focus-visible::after { transform: scaleX(1); }

.cx-header__actions { display: flex; align-items: center; gap: var(--cx-space-2); }
.cx-icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--cx-radius-md); color: var(--cx-navy-700); transition: background-color 150ms ease; }
.cx-icon-btn:hover { background: var(--cx-navy-50); }
.cx-cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--cx-orange-600); color: var(--cx-navy-900); border-radius: 100px;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: transform 200ms var(--cx-ease-out);
}
.cx-cart-count.cx-bump { animation: cxBump 200ms var(--cx-ease-out); }
@keyframes cxBump { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (max-width: 900px) {
  .cx-nav { position: fixed; inset: 104px 0 0 0; background: var(--cx-white); padding: var(--cx-space-6) var(--cx-space-4);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform 220ms var(--cx-ease-out), opacity 220ms var(--cx-ease-out);
    z-index: var(--cx-z-sticky); }
  .cx-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .cx-nav__list { flex-direction: column; gap: var(--cx-space-2); }
  .cx-nav__list a { font-size: 20px; display: block; }
}
@media (min-width: 901px) { .cx-nav-toggle { display: none; } }

/* --------------------------------------------------------------------------
   Hero — split navy / product panel, diagonal cut nods to the logo mark
   -------------------------------------------------------------------------- */
/* Both panels are full-bleed layers stacked on the SAME box (position:
   relative container + inset:0 children) rather than separate grid cells.
   That's what makes the diagonal cut reliable: the navy layer's clip-path
   percentages are computed against the exact same coordinate space as the
   product layer beneath it, so there is no seam or gap between them at
   any viewport width — clipping the navy layer simply reveals the product
   layer's own colour underneath, always in perfect register. */
.cx-hero { position: relative; min-height: 480px; overflow: hidden; }
@media (min-width: 900px) { .cx-hero { min-height: 560px; } }

.cx-hero__panel--product {
  background: var(--cx-navy-50);
  display: flex; align-items: center; justify-content: center;
  padding: var(--cx-space-8);
  position: relative; height: 100%; overflow: hidden;
}
@media (min-width: 900px) {
  .cx-hero__panel--product { position: absolute; inset: 0; justify-content: flex-end; padding-right: 6vw; z-index: 1; }
}

.cx-hero__panel--navy {
  background: var(--cx-navy-900); color: #fff;
  display: flex; align-items: center;
  padding: var(--cx-space-16) var(--cx-space-4);
  position: relative;
}
@media (min-width: 900px) {
  .cx-hero__panel--navy {
    position: absolute; inset: 0; z-index: 2;
    padding: var(--cx-space-16) 0 var(--cx-space-16) var(--cx-space-8);
    justify-content: flex-start;
    /* Diagonal cut echoing the logo's own split — wider at the top,
       narrower at the bottom, same lean as the wordmark's cut "X". */
    clip-path: polygon(0 0, 63% 0, 53% 100%, 0 100%);
  }
  .cx-hero__content { max-width: 46%; }
}
.cx-hero__content { max-width: 560px; }
.cx-hero__eyebrow { color: var(--cx-orange-300); font-weight: 600; font-size: 14px; margin-bottom: var(--cx-space-3); }
.cx-hero__title { font-size: clamp(2.1rem, 4.8vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; color: #fff; }
.cx-hero__sub { color: var(--cx-navy-200); font-size: 17px; max-width: 46ch; }
.cx-hero__actions { display: flex; flex-wrap: wrap; gap: var(--cx-space-3); margin-top: var(--cx-space-6); }

/* Soft radial glow behind the hero product — gives the panel depth without
   glassmorphism or a decorative floating shape; brand navy/orange only. */
.cx-hero__glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 55% 40%, rgba(240,124,27,0.16), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(27,58,87,0.10), transparent 50%);
  pointer-events: none;
}
.cx-hero__product-frame { position: relative; text-align: center; z-index: 1; }
.cx-hero__product-link { display: block; }
.cx-hero__product-frame img { max-height: 340px; margin: 0 auto; object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(15,36,56,0.16)); }
.cx-hero__product-name { display: block; margin-top: var(--cx-space-4); font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--cx-navy-700); }
.cx-hero__product-price { display: block; margin-top: 2px; font-family: var(--font-heading); font-weight: 700; color: var(--cx-orange-700); }
.cx-hero__chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--cx-space-4);
  background: var(--cx-white); border: 1px solid var(--cx-navy-100); border-radius: 100px;
  padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--cx-navy-700);
  box-shadow: var(--cx-shadow-card);
}
.cx-hero__product-placeholder {
  color: var(--cx-navy-400); font-size: 14px; max-width: 220px; text-align: center;
  border: 1px dashed var(--cx-navy-200); border-radius: var(--cx-radius-lg); padding: var(--cx-space-8);
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.cx-trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--cx-space-6); justify-content: center;
  padding: var(--cx-space-6) var(--cx-space-4);
  background: var(--cx-navy-50); border-top: 1px solid var(--cx-navy-100); border-bottom: 1px solid var(--cx-navy-100);
}
.cx-trust-strip__item { display: flex; align-items: center; gap: var(--cx-space-2); font-size: 14px; color: var(--cx-navy-700); font-weight: 500; }
.cx-trust-strip__item svg { color: var(--cx-success); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Section titles
   -------------------------------------------------------------------------- */
.cx-section-title { font-size: clamp(1.3rem, 2vw, 1.75rem); margin: var(--cx-space-16) 0 var(--cx-space-6); color: var(--cx-navy-700); }

/* --------------------------------------------------------------------------
   Category tiles — fractional grid, not identical cards
   -------------------------------------------------------------------------- */
/* Large tile spans the full column height of the 3 stacked small tiles —
   with exactly 3 secondary categories this fills every cell (no dead grid
   space), rather than a 2x2 block that leaves one cell empty. */
.cx-category-grid { display: grid; grid-template-columns: 1fr; gap: var(--cx-space-6); }
@media (min-width: 700px) {
  .cx-category-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(3, 200px); gap: var(--cx-space-6); }
  .cx-category-tile--lg { grid-row: span 3; }
}
.cx-category-tile {
  position: relative; overflow: hidden; border-radius: var(--cx-radius-lg);
  background: var(--cx-navy-50); border: 1px solid var(--cx-navy-100);
  min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--cx-space-6);
  transition: transform 220ms var(--cx-ease-out), border-color 150ms ease, box-shadow 220ms ease;
}
.cx-category-tile:active { transform: scale(0.99); }
.cx-categories { padding-bottom: var(--cx-space-8); }

/* Sheen sweep — a light diagonal band that crosses the tile once on hover.
   transform-only (translate + rotate), never top/left, so it stays off the
   layout thread. Occasional interaction (a few times a session), so a
   little flourish here is appropriate per the motion spec's frequency rule. */
.cx-category-tile::before {
  content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-260%) rotate(12deg); pointer-events: none;
  transition: transform 550ms var(--cx-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cx-category-tile:hover { transform: translateY(-4px) rotate(-0.4deg); border-color: var(--cx-orange-600); box-shadow: 0 12px 24px -8px rgba(15,36,56,0.18); }
  .cx-category-tile:hover::before { transform: translateX(260%) rotate(12deg); }
  .cx-category-tile:hover .cx-category-tile__icon { transform: scale(1.1); color: var(--cx-orange-600); }
}
.cx-category-tile:focus-visible {
  outline: 2px solid var(--cx-orange-600); outline-offset: 2px;
  transform: translateY(-4px) rotate(-0.4deg); border-color: var(--cx-orange-600); box-shadow: 0 12px 24px -8px rgba(15,36,56,0.18);
}
.cx-category-tile:focus-visible::before { transform: translateX(260%) rotate(12deg); }
.cx-category-tile:focus-visible .cx-category-tile__icon { transform: scale(1.1); color: var(--cx-orange-600); }
.cx-category-tile__icon { transition: transform 220ms var(--cx-ease-out), color 200ms ease; display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cx-category-tile__visual {
  position: absolute; top: var(--cx-space-4); right: var(--cx-space-4); bottom: 56px; left: var(--cx-space-4);
  display: flex; align-items: center; justify-content: center;
}
.cx-category-tile__visual img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cx-category-tile__icon { color: var(--cx-navy-400); }
/* Icon fills most of its visual box — scales with the tile instead of a
   small fixed glyph, so it reads as a real product-category illustration. */
.cx-category-tile__icon svg { width: 80%; height: 80%; max-width: 120px; max-height: 120px; display: block; }
.cx-category-tile--lg .cx-category-tile__icon svg { max-width: 200px; max-height: 200px; }
.cx-category-tile--lg .cx-category-tile__visual { bottom: 64px; }
.cx-category-tile__label {
  position: relative; z-index: 1; color: var(--cx-navy-700); font-family: var(--font-heading); font-weight: 700;
  font-size: 19px; display: flex; flex-direction: column; gap: 2px;
}
.cx-category-tile--lg .cx-category-tile__label { font-size: 24px; }
.cx-category-tile__count { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--cx-slate); }
.cx-category-tile__arrow {
  position: absolute; top: var(--cx-space-4); right: var(--cx-space-4); z-index: 1;
  width: 32px; height: 32px; border-radius: 100px; background: var(--cx-white);
  display: flex; align-items: center; justify-content: center; color: var(--cx-navy-700);
  transition: transform 160ms var(--cx-ease-out), background-color 150ms ease, color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .cx-category-tile:hover .cx-category-tile__arrow { background: var(--cx-orange-600); color: var(--cx-navy-900); transform: translateX(3px) rotate(8deg); }
}
.cx-category-tile:focus-visible .cx-category-tile__arrow { background: var(--cx-orange-600); color: var(--cx-navy-900); transform: translateX(3px) rotate(8deg); }

/* --------------------------------------------------------------------------
   Product cards / grid — Component Library Section 3
   -------------------------------------------------------------------------- */
/* Results count + sort bar on category/shop archive pages — WooCommerce's
   own default markup, restyled into a clean bar instead of the plain
   default text. */
.cx-reveal-grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cx-space-4) var(--cx-space-6);
  padding: var(--cx-space-6) 0 var(--cx-space-4); }
.cx-reveal-grid .woocommerce-result-count {
  margin: 0; font-size: 14px; color: var(--cx-slate); order: 1;
}
.cx-reveal-grid .woocommerce-ordering { margin: 0 0 0 auto; order: 2; }
.cx-reveal-grid .woocommerce-ordering select {
  border: 1px solid var(--cx-mist); border-radius: var(--cx-radius-sm); padding: 8px 32px 8px 12px;
  font-size: 13px; color: var(--cx-navy-700); background-color: var(--cx-white);
  font-family: var(--font-body); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.cx-reveal-grid > ul.products { order: 3; flex: 1 1 100%; margin-top: var(--cx-space-2); }

.cx-product-grid, .cx-reveal-grid ul.products {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--cx-space-4);
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 700px) { .cx-product-grid, .cx-reveal-grid ul.products { grid-template-columns: repeat(3, 1fr); gap: var(--cx-space-6); } }
@media (min-width: 1100px) { .cx-product-grid, .cx-reveal-grid ul.products { grid-template-columns: repeat(4, 1fr); } }

.cx-card, ul.products li.product {
  position: relative; display: block; background: var(--cx-navy-50); border: 1px solid transparent;
  border-radius: var(--cx-radius-md); padding: var(--cx-space-4); box-shadow: none; overflow: hidden;
  transition: transform 220ms var(--cx-ease-out), box-shadow 220ms ease, border-color 150ms ease;
}
.cx-card::before, ul.products li.product::before {
  content: ''; position: absolute; top: 0; left: 0; width: 35%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: translateX(-320%) rotate(12deg); pointer-events: none; z-index: 1;
  transition: transform 550ms var(--cx-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cx-card:hover, ul.products li.product:hover {
    transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(15,36,56,0.16); border-color: var(--cx-navy-100);
  }
  .cx-card:hover::before, ul.products li.product:hover::before { transform: translateX(320%) rotate(12deg); }
}
.cx-card:focus-within, ul.products li.product:focus-within {
  transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(15,36,56,0.16); border-color: var(--cx-navy-100);
  outline: 2px solid var(--cx-orange-600); outline-offset: 2px;
}
.cx-card:focus-within::before, ul.products li.product:focus-within::before { transform: translateX(320%) rotate(12deg); }
.cx-card__media, ul.products li.product > a:first-child, ul.products li.product .woocommerce-loop-product__link { position: relative; display: block; }
.cx-card__media img, ul.products li.product img { border-radius: var(--cx-radius-sm); aspect-ratio: 1/1; object-fit: contain; background: var(--cx-off-white);
  transition: none !important; transform: none !important; } /* never animate product image on hover */
.cx-card__body { display: flex; flex-direction: column; gap: 4px; margin-top: var(--cx-space-3); }
.cx-card__name, ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 500; color: var(--cx-charcoal); }
.cx-card__price, ul.products li.product .price { font-family: var(--font-heading); font-weight: 700; color: var(--cx-navy-700); font-size: 17px; }

.cx-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* Variant pills + colour count — the "configurator" signal from the card */
.cx-card-variants { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.cx-variant-pill {
  font-size: 11px; font-weight: 500; color: var(--cx-navy-600); background: var(--cx-white);
  border: 1px solid var(--cx-navy-100); border-radius: 100px; padding: 2px 8px; white-space: nowrap;
}
.cx-variant-pill--more { color: var(--cx-slate); }
.cx-card-colours { font-size: 12px; color: var(--cx-slate); margin: 0; }

/* New ribbon — same slot Woo uses for its Sale flash */
.cx-new-ribbon, span.onsale {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--cx-orange-600); color: var(--cx-navy-900);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 100px; text-transform: uppercase;
}
.cx-badge {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 100px; padding: 2px 10px;
  font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap;
}
.cx-badge--benefit { background: var(--cx-orange-100); color: var(--cx-orange-700); }
.cx-badge--cod { background: var(--cx-navy-100); color: var(--cx-navy-700); }
.cx-badge--success { background: #E3F3EA; color: var(--cx-success); }
.cx-badge--warning { background: #FBF0DE; color: var(--cx-warning); }
.cx-badge--error   { background: #F8E1DF; color: var(--cx-error); }

.cx-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--cx-space-3) 0; }
.cx-delivery-line { font-size: 13px; color: var(--cx-slate); margin-bottom: var(--cx-space-2); }
.cx-careplus-line { font-size: 13px; color: var(--cx-navy-600); margin-bottom: var(--cx-space-3); }

.cx-featured__more { text-align: center; margin: var(--cx-space-8) 0 var(--cx-space-4); }

.cx-featured__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--cx-space-2); }
.cx-featured__head .cx-section-title { margin-bottom: var(--cx-space-2); }
.cx-featured__count { font-size: 13px; color: var(--cx-slate); }

/* Promo tile — breaks up the product grid like an in-grid banner, never a
   generic empty card. Sits in the same grid cell size as a product card. */
.cx-promo-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--cx-space-4);
  background: var(--cx-navy-900); color: #fff; border-radius: var(--cx-radius-md);
  padding: var(--cx-space-6) var(--cx-space-4);
  min-height: 100%;
  transition: transform 160ms var(--cx-ease-out);
}
.cx-promo-tile:active { transform: scale(0.99); }
.cx-promo-tile__eyebrow { font-size: 12px; font-weight: 600; color: var(--cx-orange-300); text-transform: uppercase; letter-spacing: 0.03em; }
.cx-promo-tile__title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; line-height: 1.3; }
.cx-promo-tile__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--cx-orange-300); }

/* Shop/category archive grid — CSS-only stagger (no JS dependency, so it
   works identically on the WooCommerce-rendered archive-product template
   without needing a data-cx-reveal hook on every loop item). Capped at
   ~4 items so a long grid never feels like it's slowly loading in. */
@keyframes cxFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
ul.products li.product { animation: cxFadeUp 480ms var(--cx-ease-out) both; }
ul.products li.product:nth-child(1) { animation-delay: 0ms; }
ul.products li.product:nth-child(2) { animation-delay: 40ms; }
ul.products li.product:nth-child(3) { animation-delay: 80ms; }
ul.products li.product:nth-child(4) { animation-delay: 120ms; }
ul.products li.product:nth-child(n+5) { animation-delay: 160ms; }

/* --------------------------------------------------------------------------
   Why CellXpress
   -------------------------------------------------------------------------- */
.cx-why { padding: var(--cx-space-16) 0; }
.cx-why__grid { display: grid; grid-template-columns: 1fr; gap: var(--cx-space-8); }
@media (min-width: 800px) { .cx-why__grid { grid-template-columns: repeat(3, 1fr); } }
.cx-why__item { border-top: 2px solid var(--cx-orange-600); padding-top: var(--cx-space-4); }
.cx-why__item h3 { font-size: 18px; color: var(--cx-navy-700); }
.cx-why__item p { color: var(--cx-slate); font-size: 15px; }

/* --------------------------------------------------------------------------
   Spec table — collapsible, native <details>
   -------------------------------------------------------------------------- */
.cx-spec-details { margin: var(--cx-space-8) 0; border-top: 1px solid var(--cx-mist); }
.cx-spec-summary { cursor: pointer; font-family: var(--font-heading); font-weight: 700; font-size: 17px; padding: var(--cx-space-4) 0; color: var(--cx-navy-700); }
.cx-spec-table { width: 100%; border-collapse: collapse; }
.cx-spec-table tr { border-bottom: 1px solid var(--cx-mist); }
.cx-spec-table th { text-align: left; color: var(--cx-slate); font-weight: 400; font-size: 14px; padding: var(--cx-space-3) 0; width: 40%; }
.cx-spec-table td { padding: var(--cx-space-3) 0; font-size: 14px; color: var(--cx-charcoal); }

/* --------------------------------------------------------------------------
   Cart COD note — Component Library Section 6
   -------------------------------------------------------------------------- */
.cx-cart-cod-note {
  background: var(--cx-navy-50); border: 1px solid var(--cx-navy-100); border-radius: var(--cx-radius-md);
  padding: var(--cx-space-4); font-size: 14px; color: var(--cx-navy-700); margin-bottom: var(--cx-space-4);
}

/* --------------------------------------------------------------------------
   Floating WhatsApp button
   -------------------------------------------------------------------------- */
.cx-whatsapp-float {
  position: fixed; right: var(--cx-space-4); bottom: var(--cx-space-4); z-index: var(--cx-z-float);
  width: 56px; height: 56px; border-radius: var(--cx-radius-lg); background: var(--cx-success);
  border: 1px solid var(--cx-navy-900); display: flex; align-items: center; justify-content: center;
  transition: transform 120ms var(--cx-ease-out);
}
.cx-whatsapp-float:active { transform: scale(0.97); }
.cx-whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* --------------------------------------------------------------------------
   Sticky mobile add-to-cart bar (single product)
   -------------------------------------------------------------------------- */
.cx-sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--cx-z-sticky);
  background: var(--cx-white); border-top: 1px solid var(--cx-mist);
  padding: var(--cx-space-3) var(--cx-space-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--cx-space-4);
  transform: translateY(100%); transition: transform 200ms var(--cx-ease-out);
}
.cx-sticky-atc.is-visible { transform: translateY(0); }
.cx-sticky-atc__price { font-family: var(--font-heading); font-weight: 700; color: var(--cx-navy-700); }
@media (min-width: 900px) { .cx-sticky-atc { display: none; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.cx-footer { background: var(--cx-navy-900); color: var(--cx-navy-200); margin-top: var(--cx-space-24); }
.cx-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--cx-space-8); padding: var(--cx-space-16) var(--cx-space-4) var(--cx-space-8); }
@media (min-width: 800px) { .cx-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.cx-footer__wordmark { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
.cx-footer__tagline { color: var(--cx-navy-400); font-size: 14px; margin-top: var(--cx-space-3); }
.cx-footer__heading { color: #fff; font-size: 14px; margin-bottom: var(--cx-space-3); }
.cx-footer__col ul li { margin-bottom: var(--cx-space-2); }
.cx-footer__col a { font-size: 14px; color: var(--cx-navy-200); }
.cx-footer__col a:hover { color: #fff; }
.cx-footer__trust li { font-size: 13px; color: var(--cx-navy-400); margin-bottom: var(--cx-space-2); }
.cx-footer__bottom { border-top: 1px solid var(--cx-navy-800); padding: var(--cx-space-4); font-size: 12px; color: var(--cx-navy-400); }

/* --------------------------------------------------------------------------
   Generic page wrapper (WooCommerce shop/cart/checkout/single render inside)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   3D tilt targets — perspective needs a stable box; the actual rotation is
   applied inline by JS (transform only), this just primes the GPU layer.
   -------------------------------------------------------------------------- */
.cx-tilt, ul.products li.product > a:first-child, .woocommerce-product-gallery__image, .cx-hero__product-link {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Card colour swatches — small dots under the product name
   -------------------------------------------------------------------------- */
.cx-card-swatches { display: flex; gap: 6px; margin: 2px 0; }
.cx-swatch-dot {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block;
  border: 2px solid var(--cx-white); box-shadow: 0 0 0 1px var(--cx-mist);
  cursor: pointer; transition: transform 120ms var(--cx-ease-out), box-shadow 120ms ease;
}
.cx-swatch-dot:hover { transform: scale(1.12); }
.cx-swatch-dot.is-selected { box-shadow: 0 0 0 2px var(--cx-orange-600); }

/* --------------------------------------------------------------------------
   Product-page variant configurator — swatches + spec pills replacing the
   default <select> dropdowns (selects remain in the DOM, hidden, so
   WooCommerce's own variation-matching JS keeps working unmodified).
   -------------------------------------------------------------------------- */
.cx-variation-block { margin: 0 0 var(--cx-space-6); padding-bottom: var(--cx-space-4); border-bottom: 1px solid var(--cx-mist); }
.cx-variation-label { font-size: 13px; font-weight: 600; color: var(--cx-charcoal); margin: 0 0 var(--cx-space-3); }
.cx-swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }

.cx-swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--cx-mist);
  padding: 0; cursor: pointer;
  transition: transform 120ms var(--cx-ease-out), box-shadow 150ms ease, border-color 150ms ease;
}
.cx-swatch:hover { transform: scale(1.08); }
.cx-swatch.is-selected { border-color: var(--cx-white); box-shadow: 0 0 0 2px var(--cx-orange-600); }
.cx-swatch:active { transform: scale(0.96); }

.cx-pill-btn {
  min-width: 64px; min-height: 40px; padding: 0 var(--cx-space-4);
  border: 1px solid var(--cx-mist); border-radius: var(--cx-radius-sm);
  background: var(--cx-white); color: var(--cx-charcoal); font-size: 14px; font-weight: 500;
  transition: transform 120ms var(--cx-ease-out), border-color 150ms ease, background-color 150ms ease;
}
.cx-pill-btn:hover { border-color: var(--cx-navy-400); }
.cx-pill-btn.is-selected { border-color: var(--cx-orange-600); background: var(--cx-orange-50); color: var(--cx-navy-900); font-weight: 600; }
.cx-pill-btn:active { transform: scale(0.97); }

.cx-variation-summary {
  font-size: 14px; color: var(--cx-slate); margin: 0 0 var(--cx-space-4);
  padding-top: var(--cx-space-2);
}

/* WooCommerce's own add-to-cart button, made the one unmistakable primary
   action once a variation is selected. */
.single_add_to_cart_button {
  background: var(--cx-orange-600) !important; color: var(--cx-navy-900) !important;
  border: none !important; border-radius: var(--cx-radius-md) !important;
  font-weight: 600 !important; min-height: 48px !important; padding: 0 var(--cx-space-8) !important;
}
.single_add_to_cart_button:hover { background: var(--cx-orange-700) !important; }

/* Safety net: this theme has no sidebar anywhere by design. */
#sidebar[role="complementary"] { display: none !important; }

.cx-page { padding: var(--cx-space-8) 0 var(--cx-space-16); }
.cx-page__title { color: var(--cx-navy-700); }

/* --------------------------------------------------------------------------
   Scroll-reveal — enhances an already-visible default, never gates content
   -------------------------------------------------------------------------- */
/* Visible by default — content must never depend on JS to become visible
   (Motion Spec / impeccable skill safety rule: transitions pause on hidden
   tabs and headless renderers, so a JS-gated reveal can ship blank). Only
   once cellxpress.js confirms it's running does it arm the hidden-start
   state via the .cx-motion-ready class on <html>. */
.cx-reveal { opacity: 1; transform: none; }
.cx-motion-ready .cx-reveal[data-cx-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 420ms var(--cx-ease-out), transform 420ms var(--cx-ease-out);
}
.cx-motion-ready .cx-reveal[data-cx-reveal].cx-reveal--in {
  opacity: 1; transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cx-reveal[data-cx-reveal] { opacity: 1; transform: none; }
}
