/* ==========================================================================
   OKayCN (www.okaycn.com) — Blocksy Production Skin: Dispatch Gate v3
   Loaded via zz-okc-dispatch-gate-v3.php (wp_head pri 95).
   Delete single mu-plugin file = instant rollback. Zero template edits.
   ========================================================================== */
:root {
  --okc-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --okc-disp: var(--okc-sans);
  --okc-mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --theme-font-stack-default: var(--okc-sans);
  --theme-font-family: var(--okc-sans);

  /* Custom non-Tailwind Dispatch Gate v3 Palette */
  --okc-ink: #14161F;
  --okc-text: #474A55;
  --okc-mut: #6B6E78;
  --okc-surf: #F8F7F4;
  --okc-carton: #EFEDE7;
  --okc-bd: #E3E0D8;
  --okc-line: #C9C4B8;
  --okc-brand-500: #332C9E;
  --okc-brand-600: #332C9E;  /* 10.53:1 AAA w/ white */
  --okc-brand-700: #27217F;  /* 13.04:1 AAA w/ white */
  --okc-brand-100: #C9C4B8;
  --okc-brand-50: #EEEDF8;
  --okc-dark: #0F1117;
  --okc-periwinkle: #A9AEFF; /* 9.15:1 AAA on #0F1117 */
  --okc-alert: #9F2A1F;

  /* Precision 2/4/8px Radii */
  --okc-r-sm: 4px;
  --okc-r-md: 4px;
  --okc-r-lg: 8px;
  --theme-border-radius: 4px;
  --theme-button-border-radius: 4px;
  --theme-button-background-initial-color: #332C9E;
  --theme-button-background-hover-color: #27217F;
}

body {
  background-color: #F8F7F4;
  color: #474A55;
  font-family: var(--okc-sans);
}
h1, h2, h3, h4, .okc h1, .okc h2, .okc h3 {
  font-family: var(--okc-sans);
  font-weight: 600;
  color: #14161F;
}

/* Header & Cards: zero static shadows, 1px hairline border */
[data-header*="type-1"] .ct-header {
  background: rgba(248, 247, 244, 0.96);
  border-bottom: 1px solid #E3E0D8;
}
ul.products li.product {
  background: #FFFFFF;
  border: 1px solid #E3E0D8;
  border-radius: 4px;
  box-shadow: none;
}
ul.products li.product:hover {
  border-color: #C9C4B8;
  box-shadow: none;
}
ul.products li.product > figure {
  background: #EFEDE7;
  overflow: hidden;
  position: relative;
}
ul.products li.product > figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(20, 22, 31, 0.06);
  pointer-events: none;
}
/* Strictly preserve zero-side-effect CSS watermark crop */
ul.products li.product > figure img,
ul.products li.product > figure img.wp-post-image {
  transform: scale(1.12);
  transform-origin: center top;
}

/* Primary Buttons (10.53:1 AAA) */
.okc-btn-brand,
.single-product button.single_add_to_cart_button,
[data-wpcf7-id="614"] input[type="submit"],
[data-wpcf7-id="614"] button[type="submit"] {
  background: #332C9E !important;
  color: #FFFFFF !important;
  border-radius: 4px;
  font-weight: 600;
}
.okc-btn-brand:hover,
.single-product button.single_add_to_cart_button:hover,
[data-wpcf7-id="614"] input[type="submit"]:hover,
[data-wpcf7-id="614"] button[type="submit"]:hover {
  background: #27217F !important;
  color: #FFFFFF !important;
}

/* PDP Empty Qty (hide +/- steppers) + Scoped Form Validation */
.single-product .quantity input.qty::-webkit-outer-spin-button,
.single-product .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.single-product .quantity input.qty[type="number"] {
  -moz-appearance: textfield;
}
.single-product .quantity .ct-increase,
.single-product .quantity .ct-decrease {
  display: none !important;
}
[data-wpcf7-id="614"] .wpcf7-not-valid {
  border: 1.5px solid #9F2A1F !important;
}
[data-wpcf7-id="614"] .wpcf7-not-valid-tip {
  color: #9F2A1F;
  font-size: 14px;
  margin-top: 5px;
}

/* Unified Dark Footer (#0F1117) & Live Override Polish */
.okf,
[data-footer*="type-1"] .ct-footer {
  background-color: #0F1117 !important;
  color: #9AA0AE;
}
.okf a:hover,
.okf-all a {
  color: #A9AEFF !important;
}
.okf-all a:hover {
  color: #FFFFFF !important;
}

/* Override legacy blue focus rings & 800 heading weights from earlier mu-plugins */
body.woocommerce-page .woocommerce-ordering select:focus,
.okc .wpcf7 input:focus,
.okc .wpcf7 textarea:focus,
[data-wpcf7-id="614"] input:focus,
[data-wpcf7-id="614"] textarea:focus {
  border-color: #332C9E !important;
  box-shadow: 0 0 0 3px rgba(51, 44, 158, 0.18) !important;
}
body.post-type-archive-product .hero-section .page-title,
body.tax-product_cat .hero-section .page-title {
  font-weight: 600;
}
