/* Wager Machine Works — Custom Theme Styles */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  /* Rajdhani is a condensed body face and reads smaller than Inter/system fonts
   * at the same pixel size. Bump root so Tailwind's rem-based utilities
   * (text-sm, text-base, text-lg…) all scale proportionally. */
  font-size: 17px;
}
@media (min-width: 768px) {
  html { font-size: 18px; }
}
body {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  line-height: 1.55;
  background: var(--wmw-bg);
  color: var(--wmw-text);
}
/* Dynamic top padding matches the sticky header (alert + nav) height so mobile
 * menu dropdowns never sit under the alert bar when it wraps to 2-3 lines. */
main { padding-top: var(--wmw-top-offset, 132px) !important; }

/* Footer scripture line — gentle warm glow + orange cross so the verse lifts
 * off the dark page instead of reading as secondary microcopy. */
.wmw-scripture {
  color: #F6D8C0; /* leave literal: neon sign flame decoration */
  font-size: 0.95rem;
  line-height: 1.55;
  text-shadow:
    0 0 12px rgb(var(--wmw-orange-rgb) / 0.28),
    0 0 28px rgb(var(--wmw-orange-rgb) / 0.12),
    0 1px 2px rgba(0, 0, 0, 0.4); /* leave literal: black shadow */
  animation: wmw-scripture-pulse 6s ease-in-out infinite;
}
.wmw-scripture .wmw-cross {
  color: rgb(var(--wmw-orange-rgb));
  filter: drop-shadow(0 0 6px rgb(var(--wmw-orange-rgb) / 0.55));
}
@keyframes wmw-scripture-pulse {
  0%, 100% { text-shadow: 0 0 12px rgb(var(--wmw-orange-rgb) / 0.28), 0 0 28px rgb(var(--wmw-orange-rgb) / 0.12), 0 1px 2px rgba(0, 0, 0, 0.4); } /* leave literal: black shadow */
  50%      { text-shadow: 0 0 18px rgb(var(--wmw-orange-rgb) / 0.42), 0 0 40px rgb(var(--wmw-orange-rgb) / 0.18), 0 1px 2px rgba(0, 0, 0, 0.4); } /* leave literal: black shadow */
}
@media (prefers-reduced-motion: reduce) {
  .wmw-scripture { animation: none; }
}

/* ── Light-mode overrides ──────────────────────────────────────────────────── */

/* Product category thumbnail mat: always white so product-photo white BGs blend flush.
 * bg-steel-100 = #33302C in light mode (dark!), which creates a dark mat around images. */
.wmw-cat-thumb { background-color: #fff; }
:root[data-theme="dark"] .wmw-cat-thumb { background-color: rgb(var(--steel-100-rgb)); }

/* Hero overlays: steel-900 = #E9E5DF (cream) in light mode, so the Tailwind gradient
 * classes wash the hero with cream rather than darkening it. Override to real dark grads. */
:root:not([data-theme="dark"]) .wmw-hero-img { opacity: 0.72; }
:root:not([data-theme="dark"]) .wmw-hero-ov1 {
  background: linear-gradient(to bottom right, rgba(0,0,0,0.44) 0%, rgba(0,0,0,0.22) 50%, rgba(0,0,0,0.52) 100%);
}
:root:not([data-theme="dark"]) .wmw-hero-ov2 {
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.14) 40%, transparent 100%);
}

/* Hero text: hero always has a dark background (image + dark overlays), so force
 * white in light mode. Dark mode inherits cream from the inverted token scale. */
:root:not([data-theme="dark"]) .wmw-hero h1 { color: #fff; }
:root:not([data-theme="dark"]) .wmw-hero .font-body { color: rgb(212, 208, 203); }
/* Eyebrow, secondary CTA, and spec watermarks are token-colored and go near-invisible
 * against the dark hero image in light mode — pin them to legible values. */
:root:not([data-theme="dark"]) .wmw-hero .wmw-hero-eyebrow { color: #F6A07A; }
:root:not([data-theme="dark"]) .wmw-hero .wmw-hero-eyebrow-dash { background: #F6A07A; }
:root:not([data-theme="dark"]) .wmw-hero .wmw-hero-cta-ghost { color: rgba(255,255,255,0.90); border-color: rgba(255,255,255,0.55); }
:root:not([data-theme="dark"]) .wmw-hero .spec { color: rgba(255,255,255,1); }

/* Footer scripture: #F6D8C0 (pale peach) is near-invisible on the light cream footer.
 * In light mode use near-black text so the verse reads clearly; keep the orange glow. */
:root:not([data-theme="dark"]) .wmw-scripture {
  color: #2A2320;
  text-shadow:
    0 0 14px rgb(var(--wmw-orange-rgb) / 0.45),
    0 0 34px rgb(var(--wmw-orange-rgb) / 0.20);
  animation: wmw-scripture-pulse-light 6s ease-in-out infinite;
}
@keyframes wmw-scripture-pulse-light {
  0%, 100% { text-shadow: 0 0 14px rgb(var(--wmw-orange-rgb) / 0.45), 0 0 34px rgb(var(--wmw-orange-rgb) / 0.20); }
  50%       { text-shadow: 0 0 22px rgb(var(--wmw-orange-rgb) / 0.60), 0 0 52px rgb(var(--wmw-orange-rgb) / 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-theme="dark"]) .wmw-scripture { animation: none; }
}

/* ─────────────────────────────────────────────────────────────────────────── */

/* Keep stencil + condensed display faces at their designed weights */
.font-stencil { font-weight: 400; }
.font-condensed { font-weight: 600; }
/* Spec labels stay fixed-px to preserve the micro-caps look */
.spec { font-size: 11px; }

/* Noise texture overlay — opacity controlled via token (0.035 dark / 0.02 light) */
.noise::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: var(--wmw-noise-opacity);
  pointer-events: none; z-index: 1;
}

/* Blueprint grid */
.grid-bg {
  background-image:
    linear-gradient(rgb(var(--wmw-orange-rgb) / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--wmw-orange-rgb) / 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Stamped borders */
.stamped { border: 2px solid rgb(var(--steel-50-rgb) / 0.07); }
.stamped-brand { border: 2px solid rgb(var(--wmw-orange-rgb) / 0.25); }

/* Spec label. Previously color #7D786F which measured ~4.0:1 on bg-steel-700
 * — below WCAG AA 4.5:1 for small text. Lifted to steel-300 (#A9A49C) which
 * clears 5.9:1 on #1A1917 and 6.8:1 on #100F0A. */
.spec {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgb(var(--steel-200-rgb));
}

/* Hazard stripe */
.hazard {
  background: repeating-linear-gradient(
    -45deg,
    rgb(var(--wmw-orange-rgb)), rgb(var(--wmw-orange-rgb)) 8px,
    rgb(var(--wmw-orange-deep-rgb)) 8px, rgb(var(--wmw-orange-deep-rgb)) 16px
  );
}

/* FAQ accordion arrow rotation */
details[open] summary svg { transform: rotate(180deg); }

/* ──────────────────────────────────────────────────────────────
 * FluentCart product detail + cart + checkout readability
 * FC's default templates use dark-on-light; our theme is dark.
 * Force high-contrast text so product pages are readable.
 * ────────────────────────────────────────────────────────────── */
.fluent-cart-product,
.fluent-cart-product-page,
.fluent-cart-single-product,
.fluent-cart-cart,
.fluent-cart-checkout {
  color: var(--wmw-text);
}

.fluent-cart-product h1,
.fluent-cart-product h2,
.fluent-cart-product h3,
.fluent-cart-product .fct-product-title,
.fct-product-title,
.fct-product-name {
  color: var(--wmw-text) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 0.04em;
}

.fluent-cart-product .fct-product-sku,
.fluent-cart-product .fct-product-description,
.fluent-cart-product .fct-product-short-description,
.fluent-cart-product p,
.fluent-cart-product label,
.fluent-cart-product .fct-quantity-label,
.fct-product-sku,
.fct-quantity-label {
  color: rgb(var(--steel-100-rgb)) !important;
}

.fluent-cart-product .fct-product-item-price,
.fluent-cart-product .fct-product-price,
.fluent-cart-product .fct-price,
.fct-product-item-price,
.fct-product-price,
.fct-price {
  color: rgb(var(--wmw-orange-rgb)) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.75rem !important;
  letter-spacing: 0.02em;
}

body .fct-product-title { font-size: 1.75rem !important; line-height: 1.1 !important; margin-bottom: 0.75rem !important; }
body .fct-product-variant-title,
body .fct-product-variant-item .fct-product-variant-title { color: var(--wmw-text) !important; font-weight: 600 !important; }
body .fct-product-variant-item:not(.selected) { color: rgb(var(--steel-100-rgb)) !important; }
body .fct-product-sku,
body .fct-quantity-label,
body label { color: rgb(var(--steel-200-rgb)) !important; font-family: 'Chakra Petch', sans-serif !important; font-size: 0.75rem !important; letter-spacing: 0.14em !important; text-transform: uppercase !important; }

.fluent-cart-product .fct-product-variant-item {
  background: rgb(var(--steel-700-rgb) / 0.6) !important;
  border: 1px solid rgb(var(--steel-50-rgb) / 0.1) !important;
  color: var(--wmw-text) !important;
}
.fluent-cart-product .fct-product-variant-item.selected {
  border-color: rgb(var(--wmw-orange-rgb)) !important;
  background: rgb(var(--wmw-orange-rgb) / 0.08) !important;
}
.fluent-cart-product .fct-product-variant-title {
  color: var(--wmw-text) !important;
}

.fluent-cart-product .fluent-cart-add-to-cart-button,
.fluent-cart-add-to-cart-button {
  background: rgb(var(--wmw-orange-rgb)) !important;
  color: #fff !important; /* leave literal: white on orange */
  border: none !important;
  font-family: 'Chakra Petch', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}
.fluent-cart-product .fluent-cart-add-to-cart-button:hover,
.fluent-cart-add-to-cart-button:hover {
  background: rgb(var(--wmw-orange-lit-rgb)) !important;
}

.fluent-cart-product .fluent-cart-direct-checkout-button,
.fluent-cart-direct-checkout-button {
  background: rgb(var(--steel-700-rgb)) !important;
  color: var(--wmw-text) !important;
  border: 1px solid rgb(var(--steel-50-rgb) / 0.2) !important;
  font-family: 'Chakra Petch', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

.fluent-cart-product .fct-quantity-wrapper,
.fct-quantity-wrapper {
  background: rgb(var(--steel-700-rgb) / 0.6);
  border: 1px solid rgb(var(--steel-50-rgb) / 0.1);
}
.fluent-cart-product .fct-quantity-wrapper input,
.fct-quantity-wrapper input {
  color: var(--wmw-text) !important;
  background: transparent !important;
}

.fluent-cart-product .fct-product-gallery-thumb,
.fct-product-gallery-thumb {
  background: #fff; /* leave literal: product image bg */
  border: 1px solid rgb(var(--steel-50-rgb) / 0.08);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
 * FluentCart product-detail design polish (UAT round 1)
 * Fixes: heading colors (FC defaults to #2f3448 dark navy which
 * disappears on our dark bg), description rhythm + section breaks,
 * Related Products section on-brand with the orange-bar pattern.
 * ═══════════════════════════════════════════════════════════ */

/* Force brand palette on all FC product headings.
 * FC's default stylesheet paints H1/H2/H3 #2f3448 (dark navy). On our
 * steel-900 page background that color is near-invisible. These selectors
 * reach the actual heading elements (not just the wrapper divs). */
body .fct-product-title h1,
body #fct-product-summary-title,
body h1.fct-product-title,
body h2.fct-product-title,
body .fct-product-card-title,
body .fct-product-list-heading {
  color: var(--wmw-text) !important;
}

/* Product title — upsize to anchor the buy area, use brand stencil face */
body #fct-product-summary-title,
body .fct-product-title h1 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(2rem, 3.6vw, 2.75rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.02 !important;
  margin: 0 0 10px !important;
  text-transform: uppercase;
}

/* Related Products section heading — becomes a proper section header
 * matching the site-wide pattern (orange bar + Bebas Neue stencil) */
body .fct-product-list-heading {
  color: var(--wmw-text) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.1 !important;
  margin: 56px 0 24px !important;
  padding-left: 44px;
  position: relative;
  text-transform: uppercase;
}

body .fct-product-list-heading::before {
  background: rgb(var(--wmw-orange-rgb));
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
}

/* Related product cards — brand typography, readable titles */
body .fct-product-card-title {
  color: var(--wmw-text) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.15;
}

/* Also normalize the related-product card background to match stamped pattern */
body .fct-product-card {
  background: rgb(var(--steel-700-rgb) / 0.6) !important;
  border: 2px solid rgb(var(--steel-50-rgb) / 0.07) !important;
  border-radius: 0 !important;
}

body .fct-product-card:hover {
  border-color: rgb(var(--wmw-orange-rgb) / 0.25) !important;
}

/* Related-card pricing + "From" prefix — FC defaults to dark navy, force brand */
body .fct-product-card-prices,
body .fct-product-card .fct-price,
body .fct-product-card [class*="price"],
body .fct-product-card-price-from,
body .fct-product-card .fct-product-price-range {
  color: rgb(var(--wmw-orange-rgb)) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.02em !important;
}

body .fct-product-card-price-from,
body .fct-product-card .fct-price-prefix {
  color: rgb(var(--steel-200-rgb)) !important;
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

/* Related-card View Options button — brand treatment (muted tile → hover orange) */
body .fct-product-card .fct-view-options,
body .fct-product-card a[class*="view"],
body .fct-product-card button {
  background: transparent !important;
  border: 1px solid rgb(var(--wmw-orange-rgb) / 0.3) !important;
  color: rgb(var(--wmw-orange-rgb)) !important;
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  transition: background .12s, color .12s, border-color .12s;
}

body .fct-product-card .fct-view-options:hover,
body .fct-product-card a[class*="view"]:hover,
body .fct-product-card button:hover {
  background: rgb(var(--wmw-orange-rgb)) !important;
  border-color: rgb(var(--wmw-orange-rgb)) !important;
  color: #ffffff !important; /* leave literal: white on orange */
}

/* Related-card description (the "Fits Steiner MPS" line etc.) */
body .fct-product-card-description,
body .fct-product-card p {
  color: rgb(var(--steel-200-rgb)) !important;
  font-size: 12px !important;
  line-height: 1.45;
}

/* ── Description panel: better reading rhythm ──────────────── */

.wmw-panel-inner p {
  line-height: 1.72;
  margin: 0 0 18px;
}

.wmw-panel-inner p:last-child {
  margin-bottom: 0;
}

/* Section-label paragraphs are tagged by product-tabs.js as .wmw-section-label
 * only when the leading <strong> ends with a colon (IRON LOCATION:, COATINGS:,
 * THE PROCESS:, TIMELINE:, NOTE:, DISCLAIMER:). Plain bold terms like dimensions
 * are NOT tagged and keep inline-bold formatting. */
.wmw-panel-inner p.wmw-section-label {
  margin-top: 32px;
}

.wmw-panel-inner p.wmw-section-label > strong:first-child {
  color: rgb(var(--wmw-orange-rgb));
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* Inline bolded terms (dimensions, durations, specific values) keep a subtle
 * emphasis but stay in-flow with the paragraph — not section headings. */
.wmw-panel-inner p:not(.wmw-section-label) > strong {
  color: var(--wmw-text);
  font-weight: 600;
}

/* Legal page prose (Terms, Privacy, Shipping, Returns).
 * Generous vertical rhythm so each section breathes: big gap above h2,
 * clear separation between body paragraphs, open line-height. The page
 * is long-form reading on a dark bg — readability is the whole point. */
.wmw-legal-content {
  color: rgb(var(--steel-100-rgb));
  font: 500 16px/1.9 'Rajdhani', sans-serif;
  letter-spacing: 0.01em;
}
.wmw-legal-content h2 {
  font: 400 28px/1.1 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wmw-text);
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(var(--steel-50-rgb) / 0.1);
}
.wmw-legal-content > h2:first-child { margin-top: 0; }
.wmw-legal-content h3 {
  font: 700 13px/1.2 'Chakra Petch', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wmw-text);
  margin: 2.5rem 0 0.75rem;
}
.wmw-legal-content p {
  margin: 0 0 1.25rem;
}
.wmw-legal-content ul, .wmw-legal-content ol {
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.75rem;
}
.wmw-legal-content ul { list-style-type: disc; }
.wmw-legal-content ol { list-style-type: decimal; }
.wmw-legal-content li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}
.wmw-legal-content li::marker { color: rgb(var(--wmw-orange-rgb)); }

/* Product description bullets — Tailwind Preflight strips list styling, so
 * restore discs/decimals inside the rendered product copy. The description
 * lands in the native Woo tab panel (.woocommerce-Tabs-panel--description /
 * #tab-description / .entry-content) and, when the custom tabs rebuild it,
 * .wmw-panel-inner / .wmw-description-slot. Scope everything under the single
 * product wrapper so no other list on the site is affected. */
.wmw-woo-single .woocommerce-Tabs-panel--description ul,
.wmw-woo-single #tab-description ul,
.wmw-woo-single .entry-content ul,
.wmw-woo-single .wmw-panel-inner ul,
.wmw-woo-single .wmw-description-slot ul,
.woocommerce-product-details__short-description ul {
  list-style: disc; margin: 0.5rem 0 1.25rem; padding-left: 1.5rem;
}
.wmw-woo-single .woocommerce-Tabs-panel--description ol,
.wmw-woo-single #tab-description ol,
.wmw-woo-single .entry-content ol,
.wmw-woo-single .wmw-panel-inner ol,
.wmw-woo-single .wmw-description-slot ol,
.woocommerce-product-details__short-description ol {
  list-style: decimal; margin: 0.5rem 0 1.25rem; padding-left: 1.5rem;
}
.wmw-woo-single .woocommerce-Tabs-panel--description li,
.wmw-woo-single #tab-description li,
.wmw-woo-single .entry-content li,
.wmw-woo-single .wmw-panel-inner li,
.wmw-woo-single .wmw-description-slot li,
.woocommerce-product-details__short-description li { margin-bottom: 0.4rem; display: list-item; }
.wmw-woo-single .woocommerce-Tabs-panel--description li::marker,
.wmw-woo-single #tab-description li::marker,
.wmw-woo-single .entry-content li::marker,
.wmw-woo-single .wmw-panel-inner li::marker,
.wmw-woo-single .wmw-description-slot li::marker,
.woocommerce-product-details__short-description li::marker { color: rgb(var(--wmw-orange-rgb)); }
.wmw-legal-content strong { color: var(--wmw-text); font-weight: 700; }
.wmw-legal-content em { color: rgb(var(--steel-200-rgb)); font-style: italic; }
.wmw-legal-content a { color: rgb(var(--wmw-orange-rgb)); text-decoration: none; }
.wmw-legal-content a:hover { text-decoration: underline; }

/* Extra breathing room between the last paragraph and the next h2 so
 * sections don't crowd each other even when a section ends short. */
.wmw-legal-content h2 + p { margin-top: 0.5rem; }
.wmw-legal-content p + h2,
.wmw-legal-content ul + h2,
.wmw-legal-content ol + h2 { margin-top: 3.5rem; }

/* Additional Info panel — section heading we emit */
.wmw-panel-inner .wmw-section-heading {
  color: rgb(var(--wmw-orange-rgb));
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 28px 0 10px;
  text-transform: uppercase;
}

/* SKU line — small caps spec style (matches theme.css .spec pattern) */
body .fct-product-sku {
  color: rgb(var(--steel-300-rgb)) !important;
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

/* Price range shown above the picker (informational, pre-selection).
 * Needs to be legible but clearly secondary to the active variant price below. */
body .fct-product-prices.fct-price-range,
body .fct-product-summary .fct-price-range {
  color: rgb(var(--steel-100-rgb)) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.15 !important;
  margin: 8px 0 !important;
}

body .fct-product-prices.fct-price-range .fct-min-price,
body .fct-product-prices.fct-price-range .fct-max-price {
  color: rgb(var(--steel-100-rgb)) !important;
}

/* The dash/separator between min and max */
body .fct-product-prices.fct-price-range {
  color: rgb(var(--steel-300-rgb)) !important; /* dim for separator text nodes */
}

body .fct-product-prices.fct-price-range .fct-min-price,
body .fct-product-prices.fct-price-range .fct-max-price {
  color: var(--wmw-text) !important; /* bright for the actual prices */
}

/* ═══════════════════════════════════════════════════════════════════════════
 * FluentCart side-drawer cart — brand overhaul
 * FC's default drawer has hardcoded dark-navy text on a light bg. We use
 * maximum-specificity selectors on every leaf element so FC's internal rules
 * lose the cascade tie.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* Drawer shell + viewport sizing.
 * Layout: full height (use dynamic viewport on iOS so Safari chrome collapsing
 * doesn't leave an invisible band), width 420px desktop / 100vw mobile. */
html body .fct-cart-drawer,
html body .fct-cart-drawer.open,
html body .fct-cart-drawer.admin_bar_enabled {
  background: rgb(var(--steel-700-rgb)) !important;
  color: var(--wmw-text) !important;
  width: 420px !important;
  max-width: 420px !important;
  min-width: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.5) !important; /* leave literal: black shadow */
  border-left: 2px solid rgb(var(--wmw-orange-rgb) / 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translate3d(100%, 0, 0) !important;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform;
}
html body .fct-cart-drawer.open {
  transform: translate3d(0, 0, 0) !important;
}
html body .fct-cart-drawer-overlay {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 200ms ease !important;
}
html body .fct-cart-drawer-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  html body .fct-cart-drawer,
  html body .fct-cart-drawer-overlay {
    transition: none !important;
  }
}
@media (max-width: 640px) {
  html body .fct-cart-drawer,
  html body .fct-cart-drawer.open {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    border-left: 0 !important;
  }
}

/* Lock scroll behind the drawer.
 * The JS shim adds .wmw-drawer-open to body when the FC drawer opens.
 * We pin body to kill iOS Safari rubber-band scrolling that `overflow:hidden`
 * alone can't stop. The shim also stores/restores scrollY so closing the
 * drawer drops the user back exactly where they were. */
body.wmw-drawer-open {
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
}

/* Header */
html body .fct-cart-drawer-header {
  background: rgb(var(--steel-700-rgb)) !important;
  color: var(--wmw-text) !important;
  border-bottom: 2px solid rgb(var(--steel-50-rgb) / 0.1) !important;
  padding: 16px 20px !important;
  position: relative !important;
}
html body .fct-cart-drawer-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(-45deg, rgb(var(--wmw-orange-rgb)) 0 8px, rgb(var(--wmw-orange-deep-rgb)) 8px 16px);
}
html body .fct-cart-drawer-header h2,
html body .fct-cart-drawer-header [class*="title"],
html body .fct-cart-drawer-header span,
html body .fct-cart-drawer-header p {
  color: var(--wmw-text) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}
html body .fct-cart-drawer-close-button {
  color: var(--wmw-text) !important;
  background: transparent !important;
  border: 0 !important;
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.12s ease !important;
  cursor: pointer !important;
}
html body .fct-cart-drawer-close-button:hover {
  color: rgb(var(--wmw-orange-rgb)) !important;
}
html body .fct-cart-drawer-close-button svg,
html body .fct-cart-drawer-close-button path {
  stroke: currentColor !important;
  fill: none !important;
  color: inherit !important;
}

/* Scrollable body */
html body .fct-cart-drawer-content-wrapper,
html body .fct-cart-drawer-list,
html body .fct-cart-drawer-list-content {
  background: transparent !important;
  color: var(--wmw-text) !important;
  max-height: none !important;
  height: auto !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Cart item rows */
html body .fct-cart-drawer .fct-cart-item,
html body .fct-cart-drawer li[data-cart-items] {
  background: transparent !important;
  color: var(--wmw-text) !important;
  border-bottom: 1px solid rgb(var(--steel-50-rgb) / 0.08) !important;
  padding: 18px 20px !important;
  margin: 0 !important;
  list-style: none !important;
}
html body .fct-cart-drawer .fct-cart-item-info {
  display: flex !important;
  gap: 14px !important;
  align-items: flex-start !important;
}
html body .fct-cart-drawer .fct-cart-item-image {
  flex: 0 0 auto !important;
  width: 72px !important;
  height: 72px !important;
  background: #ffffff !important; /* leave literal: product image bg */
  border: 1px solid rgb(var(--steel-50-rgb) / 0.08) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body .fct-cart-drawer .fct-cart-item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 6px !important;
}
html body .fct-cart-drawer .fct-cart-item-details {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
html body .fct-cart-drawer .fct-cart-item-title,
html body .fct-cart-drawer .fct-cart-item-title a,
html body .fct-cart-drawer .fct-cart-item-title span,
html body .fct-cart-drawer h3.fct-cart-item-title,
html body .fct-cart-drawer [data-fluent-cart-cart-list-item-title] {
  color: var(--wmw-text) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  margin: 0 0 4px !important;
}
html body .fct-cart-drawer .fct-cart-item-title a:hover,
html body .fct-cart-drawer .fct-cart-item-title a:hover span {
  color: rgb(var(--wmw-orange-rgb)) !important;
}
/* Variant text (e.g. "Glock 17 · None") */
html body .fct-cart-drawer .fct-cart-item-variant,
html body .fct-cart-drawer .fct-cart-item-variation,
html body .fct-cart-drawer .fct-cart-item-details p,
html body .fct-cart-drawer .fct-cart-item-details .variation-title,
html body .fct-cart-drawer [class*="variant-title"],
html body .fct-cart-drawer [data-fluent-cart-cart-list-item-variant],
html body .fct-cart-drawer [data-fluent-cart-cart-list-item-variation] {
  color: rgb(var(--steel-200-rgb)) !important;
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  margin: 0 0 8px !important;
}

/* Quantity stepper */
html body .fct-cart-drawer .fct-cart-item-qty,
html body .fct-cart-drawer .fct-qty-wrapper,
html body .fct-cart-drawer [class*="qty-wrapper"] {
  background: rgb(var(--steel-700-rgb) / 0.6) !important;
  border: 1px solid rgb(var(--steel-50-rgb) / 0.1) !important;
  border-radius: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  overflow: hidden !important;
}
html body .fct-cart-drawer .qty-btn,
html body .fct-cart-drawer .decrease-btn,
html body .fct-cart-drawer .increase-btn,
html body .fct-cart-drawer button[class*="qty-btn"] {
  background: transparent !important;
  color: var(--wmw-text) !important;
  border: 0 !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 18px !important;
  cursor: pointer !important;
  transition: color 0.12s ease !important;
}
html body .fct-cart-drawer .qty-btn:hover {
  color: rgb(var(--wmw-orange-rgb)) !important;
}
html body .fct-cart-drawer .qty-btn svg path,
html body .fct-cart-drawer .qty-btn svg line {
  stroke: currentColor !important;
}
html body .fct-cart-drawer .fct-cart-item-qty input,
html body .fct-cart-drawer input[type="number"][class*="qty"] {
  background: transparent !important;
  color: var(--wmw-text) !important;
  border: 0 !important;
  width: 40px !important;
  height: 32px !important;
  text-align: center !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  -moz-appearance: textfield !important;
}

/* Delete / remove button */
html body .fct-cart-drawer .fct-cart-item-delete-button,
html body .fct-cart-drawer [class*="delete-button"] {
  background: transparent !important;
  color: rgb(var(--steel-300-rgb)) !important;
  border: 0 !important;
  cursor: pointer !important;
  transition: color 0.12s ease !important;
}
html body .fct-cart-drawer .fct-cart-item-delete-button:hover {
  color: rgb(var(--wmw-orange-rgb)) !important;
}
html body .fct-cart-drawer .fct-cart-item-delete-button svg,
html body .fct-cart-drawer .fct-cart-item-delete-button svg path,
html body .fct-cart-drawer .fct-cart-item-delete-button svg line {
  stroke: currentColor !important;
  fill: none !important;
}

/* Line / item price (unit price AND line total — FC uses two separate selectors) */
html body .fct-cart-drawer .fct-cart-item-price,
html body .fct-cart-drawer [class*="item-price"],
html body .fct-cart-drawer [data-fluent-cart-cart-list-item-price],
html body .fct-cart-drawer [data-fluent-cart-cart-list-item-total-price],
html body .fct-cart-drawer [class*="item-total-price"] {
  color: var(--wmw-text) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  font-variant-numeric: tabular-nums !important;
}

/* Footer — summary + checkout CTA */
html body .fct-cart-drawer-footer,
html body .fct-cart-drawer-footer-actions,
html body .fct-cart-drawer-footer > div,
html body .fct-cart-drawer [class*="footer-actions"] {
  background: rgb(var(--steel-700-rgb)) !important;
  background-color: rgb(var(--steel-700-rgb)) !important;
}
html body .fct-cart-drawer-footer-actions,
html body .fct-cart-drawer [class*="footer-actions"] {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .fct-cart-drawer-footer {
  background: rgb(var(--steel-700-rgb)) !important;
  color: var(--wmw-text) !important;
  border-top: 2px solid rgb(var(--wmw-orange-rgb) / 0.25) !important;
  padding: 20px !important;
  padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
html body .fct-cart-drawer-footer .fct-cart-total-wrapper,
html body .fct-cart-drawer-footer [data-fluent-cart-cart-total-wrapper],
html body .fct-cart-drawer [class*="cart-total"] {
  background: transparent !important;
  color: var(--wmw-text) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  font-family: 'Bebas Neue', sans-serif !important;
}
html body .fct-cart-drawer-footer .fct-cart-total-wrapper > span:first-child,
html body .fct-cart-drawer-footer [data-fluent-cart-cart-total-wrapper] > span:first-child {
  color: rgb(var(--steel-200-rgb)) !important;
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}
html body .fct-cart-drawer-footer .fct-cart-total-wrapper > span:last-child,
html body .fct-cart-drawer-footer [data-fluent-cart-cart-total-wrapper] > span:last-child,
html body .fct-cart-drawer-footer [data-fluent-cart-cart-total-price] {
  color: rgb(var(--wmw-orange-rgb)) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
}

/* Checkout button */
html body .fct-cart-drawer .checkout-button,
html body .fct-cart-drawer-footer .checkout-button,
html body .fct-cart-drawer a.checkout-button {
  background: rgb(var(--wmw-orange-rgb)) !important;
  color: #ffffff !important; /* leave literal: white on orange */
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 16px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 16px rgb(var(--wmw-orange-rgb) / 0.35) !important;
  transition: background 0.12s ease !important;
  text-decoration: none !important;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  display: flex !important;
  width: 100% !important;
  min-height: 52px !important;
  cursor: pointer !important;
}
html body .fct-cart-drawer .checkout-button:hover {
  background: rgb(var(--wmw-orange-lit-rgb)) !important;
  color: #ffffff !important; /* leave literal: white on orange */
}

/* Overlay — darker + subtle blur so the dark drawer pops */
html body .fct-cart-drawer-overlay,
html body .fct-cart-drawer-overlay.active {
  background: rgb(var(--steel-900-rgb) / 0.72) !important;
  backdrop-filter: blur(3px) !important;
}

/* Empty-cart illustration tweaks — FC ships a light-bg illustration */
html body .fct-cart-drawer .fluent-cart-cart-empty-content {
  color: rgb(var(--steel-200-rgb)) !important;
}
html body .fct-cart-drawer .fluent-cart-cart-empty-content svg path[fill="#D5DDEA"],
html body .fct-cart-drawer .fluent-cart-cart-empty-content svg path[fill="#D6DCE8"] {
  fill: rgb(var(--steel-500-rgb)) !important;
}

/* Product-page Add-to-Cart button — match other brand CTAs. The spinner
 * that FC injects during loading was reading as "button turned white" to the
 * user, so we keep the button opaque orange and tint the spinner white-on-orange. */
html body .fluent-cart-add-to-cart-button,
html body .fluent-cart-product .fluent-cart-add-to-cart-button {
  background: rgb(var(--wmw-orange-rgb)) !important;
  color: #ffffff !important; /* leave literal: white on orange */
  padding: 14px 22px !important;
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 24px rgb(var(--wmw-orange-rgb) / 0.35) !important;
  transition: background 0.12s, transform 0.08s !important;
  position: relative !important;
}
html body .fluent-cart-add-to-cart-button:active {
  transform: scale(0.98) !important;
}
html body .fluent-cart-add-to-cart-button.is-loading,
html body .fluent-cart-add-to-cart-button[disabled] {
  background: rgb(var(--wmw-orange-rgb)) !important;
  opacity: 1 !important;
  cursor: wait !important;
}
html body .fluent-cart-add-to-cart-button .fluent-cart-loader,
html body .fluent-cart-add-to-cart-button [class*="loader"],
html body .fluent-cart-add-to-cart-button [class*="spinner"] {
  border-color: rgba(255, 255, 255, 0.35) !important; /* leave literal: white alpha on orange */
  border-top-color: #ffffff !important; /* leave literal: white on orange */
  color: #ffffff !important; /* leave literal: white on orange */
}
html body .fluent-cart-direct-checkout-button,
html body .fluent-cart-product .fluent-cart-direct-checkout-button {
  padding: 14px 22px !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
  border-radius: 0 !important;
  font-family: 'Chakra Petch', sans-serif !important;
  text-transform: uppercase !important;
}

/* Toast notifications (toastify) — match brand instead of the default neon */
body .toastify {
  background: linear-gradient(135deg, rgb(var(--wmw-orange-rgb)), rgb(var(--wmw-orange-deep-rgb))) !important;
  color: #ffffff !important; /* leave literal: white on orange */
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  border-radius: 0 !important;
  box-shadow: var(--wmw-shadow) !important; /* theme-aware: subtle in light, deeper in dark */
}

/* ════════════════════════════════════════════════════════════════════════
 * Post-Woo UI fixes (see docs/woo-ui-audit.md)
 * ════════════════════════════════════════════════════════════════════════ */

/* P0 — Logo blowout. WooCommerce's global image CSS (loaded only on Woo
 * templated pages) overrides Tailwind's h-9/h-10 height on the logo SVG, so it
 * renders at natural size. Pin both logos override-proof by src (theme.css
 * always loads, so this beats the Woo cascade regardless of load order).
 * changes_5: about 2x per Nate (44px -> 88px desktop, 60px on phones so the
 * bar still fits next to the menu button). */
#site-top a img[src*="logo-light"],
#main-nav a img[src*="logo-light"],
#site-top a img[src*="wmw-logo-full"],
#main-nav a img[src*="wmw-logo-full"] {
  height: 60px !important;
  width: auto !important;
  max-width: 280px !important;
}
@media (min-width: 1024px) {
  #site-top a img[src*="logo-light"],
  #main-nav a img[src*="logo-light"],
  #site-top a img[src*="wmw-logo-full"],
  #main-nav a img[src*="wmw-logo-full"] {
    height: 88px !important;
    max-width: 300px !important;
  }
}
footer a img[src*="logo-light"],
.site-footer img[src*="logo-light"],
footer img[src*="logo-light"],
footer img[src*="wmw-logo-full"] {
  height: 44px !important;
  width: auto !important;
  max-width: 240px !important;
}

/* ════════════════════════════════════════════════════════════════════════
 * Logo per theme mode — show light SVG in dark mode, full-color PNG in light.
 * Pure CSS: no JS required. Controlled by data-theme on <html>.
 * Default theme is light, so .wmw-logo-light starts visible.
 * ════════════════════════════════════════════════════════════════════════ */

/* Default (dark) and explicit dark: show light logo, hide full logo */
.wmw-logo-dark  { display: block; }
.wmw-logo-light { display: none; }

/* Cerakote code overlay on coating swatches (coating-codes.js stamps the span).
 * A dark caption bar across the bottom of each swatch so the code reads on any
 * swatch color; pointer-events off so the swatch link still receives the click. */
.wc-pao-addon-image-swatch { position: relative; display: inline-block; }
.wmw-swatch-code {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(16, 15, 10, 0.66);
  color: #fff; /* white on the dark caption bar */
  font: 700 8px/1.5 'Chakra Petch', system-ui, sans-serif;
  letter-spacing: 0.02em; text-transform: uppercase; text-align: center;
  padding: 1px 1px; pointer-events: none; white-space: nowrap; overflow: hidden;
}

/* text-steel-900 is only ever used as near-black text on the CONSTANT orange
 * brand bands (notice bar, turnaround, CTAs) and light accents. The steel-900
 * token flips to near-WHITE in light mode (it doubles as the darkest *surface*),
 * which turned every orange band into near-white-on-orange (~2.5:1) in light.
 * Text on the constant orange must itself be constant, so pin it to dark ink in
 * both themes. Utility-level specificity; loads after Tailwind so it wins. */
.text-steel-900 { color: #1A1917; }
.text-steel-900\/80 { color: rgba(26, 25, 23, 0.8); }
.text-steel-900\/70 { color: rgba(26, 25, 23, 0.7); }

[data-theme="light"] .wmw-logo-dark  { display: none; }
[data-theme="light"] .wmw-logo-light { display: block; }

[data-theme="dark"] .wmw-logo-dark  { display: block; }
[data-theme="dark"] .wmw-logo-light { display: none; }

/* P1 — Single product Woo controls (add-to-cart was Woo-default purple, qty +
 * variation selects unstyled). theme.css always loads, so these apply on the
 * woocommerce.php single-product template. */
.woocommerce div.product form.cart .button.single_add_to_cart_button,
.woocommerce div.product form.cart button.single_add_to_cart_button {
  background: rgb(var(--wmw-orange-rgb)) !important;
  color: #fff !important; /* leave literal: white on orange */
  font-family: 'Chakra Petch', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 16px 26px !important;
  box-shadow: 0 6px 20px -6px rgb(var(--wmw-orange-rgb) / 0.45), 0 2px 0 0 #C44E24 !important; /* #C44E24 leave literal: checkout off-palette */
  transition: background 0.12s ease !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover { background: rgb(var(--wmw-orange-lit-rgb)) !important; }
.woocommerce div.product form.cart .single_add_to_cart_button:disabled { background: #B8462A !important; opacity: 1 !important; cursor: wait !important; } /* #B8462A leave literal: checkout off-palette */

/* Quantity stepper */
.woocommerce div.product form.cart .quantity .qty,
.woocommerce .quantity input.qty {
  background: var(--wmw-ck-void) !important; /* theme-aware recessed surface */
  border: 1px solid var(--wmw-ck-void-soft) !important; /* theme-aware recessed surface */
  border-left: 2px solid rgb(var(--steel-500-rgb)) !important;
  border-radius: 0 !important;
  color: var(--wmw-text) !important;
  font: 600 16px 'Rajdhani', sans-serif !important;
  height: 52px !important;
  width: 72px !important;
  text-align: center !important;
}

/* Variation dropdowns (Model / Coating) */
.woocommerce div.product .variations select,
.woocommerce div.product table.variations select {
  background: var(--wmw-ck-void) !important; /* theme-aware recessed surface */
  border: 1px solid var(--wmw-ck-void-soft) !important; /* theme-aware recessed surface */
  border-left: 2px solid rgb(var(--steel-500-rgb)) !important;
  border-radius: 0 !important;
  color: var(--wmw-text) !important;
  font: 500 15px 'Rajdhani', sans-serif !important;
  padding: 12px 14px !important;
  min-height: 48px !important;
}
.woocommerce div.product .variations select:focus,
.woocommerce div.product form.cart .quantity .qty:focus {
  border-left-color: rgb(var(--wmw-orange-rgb)) !important;
  box-shadow: 0 0 0 3px rgb(var(--wmw-orange-rgb) / 0.2) !important;
  outline: none !important;
}
.woocommerce div.product .variations label {
  color: rgb(var(--steel-200-rgb)) !important;
  font: 600 11px 'Chakra Petch', sans-serif !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}
/* "Clear" link under variations + reset */
.woocommerce div.product .reset_variations { color: rgb(var(--wmw-orange-rgb)) !important; }
/* Variation price/availability text */
.woocommerce div.product .woocommerce-variation-price .price { color: rgb(var(--wmw-orange-rgb)) !important; }

/* ════════════════════════════════════════════════════════════════════════
 * Post-Woo UI fixes round 2 (footer/reviews/product page) — see woo-ui-audit
 * ════════════════════════════════════════════════════════════════════════ */

/* Form primitives used by the review form + others. These lived only in
 * account.css (account page) so the review form on PRODUCT pages rendered as
 * unstyled overlapping white inputs. Promote to theme.css (always loads). */
.wmw-field { margin-bottom: 16px; }
.wmw-label {
  display: block;
  font: 600 10px/1 'Chakra Petch', system-ui, sans-serif;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgb(var(--steel-200-rgb)); margin-bottom: 6px;
}
.wmw-input, .wmw-textarea, textarea.wmw-input {
  background: var(--wmw-ck-void); color: var(--wmw-text); /* theme-aware recessed surface */
  border: 1px solid var(--wmw-ck-void-soft); border-left: 2px solid rgb(var(--steel-500-rgb)); /* theme-aware recessed surface */
  border-radius: 0; padding: 12px 16px; min-height: 48px; width: 100%;
  font: 500 16px/1.4 'Rajdhani', system-ui, sans-serif;
}
textarea.wmw-input { min-height: 120px; }
.wmw-input::placeholder { color: rgb(var(--steel-400-rgb)); opacity: 1; }
.wmw-input:focus, .wmw-textarea:focus {
  border-left-color: rgb(var(--wmw-orange-rgb)); box-shadow: 0 0 0 3px rgb(var(--wmw-orange-rgb) / 0.2); outline: none;
}
.wmw-btn-primary {
  background: rgb(var(--wmw-orange-rgb)); color: #fff; border: 0; border-radius: 0; cursor: pointer; /* #fff leave literal: white on orange */
  font: 700 13px 'Chakra Petch', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 26px;
}
.wmw-btn-primary:hover { background: rgb(var(--wmw-orange-lit-rgb)); }

/* ── Woo single-product: notices, tabs, express buttons (my checkout fixes
 *    were scoped to cart/checkout; product pages need them too). ───────── */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--wmw-ck-bg) !important; border-top: 3px solid rgb(var(--wmw-orange-rgb)) !important; /* theme-aware recessed surface */
  border-left: 0 !important; color: var(--wmw-text) !important; border-radius: 0 !important;
  box-shadow: none !important;
}
.woocommerce-message a, .woocommerce-info a { color: rgb(var(--wmw-orange-rgb)) !important; }
.woocommerce-message .button, .woocommerce-info .button {
  background: transparent !important; color: rgb(var(--wmw-orange-rgb)) !important; border: 1px solid rgb(var(--wmw-orange-rgb)) !important;
}

/* Product tabs (Description / Additional info / Reviews) — were white */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--wmw-ck-void-soft) !important; padding: 0 !important; /* theme-aware recessed surface */
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--wmw-ck-void-soft) !important; } /* theme-aware recessed surface */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  margin: 0 4px -1px 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: rgb(var(--steel-200-rgb)) !important; font: 700 12px 'Chakra Petch', sans-serif !important;
  letter-spacing: 0.14em !important; text-transform: uppercase !important;
  padding: 12px 18px !important; border-bottom: 2px solid transparent !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--wmw-accent-ink) !important; border-bottom-color: var(--wmw-accent-ink) !important; }
.woocommerce div.product .woocommerce-tabs .panel { color: rgb(var(--steel-100-rgb)) !important; padding-top: 20px !important; }
.woocommerce div.product .woocommerce-tabs .panel h2 { color: var(--wmw-text) !important; font-family: 'Bebas Neue', sans-serif !important; }

/* Description panel accent text — bright orange (#F66332) on the light product
 * card is ~2.5:1 (AA fail). The description's strong labels, links, active tab
 * and section labels use it; swap to the AA-safe orange-ink token (dark orange
 * in light, bright orange in dark) so it reads in both themes. */
.wmw-woo-single .woocommerce-Tabs-panel--description strong,
.wmw-woo-single .woocommerce-Tabs-panel--description a,
.wmw-woo-single .wmw-panel-inner strong,
.wmw-woo-single .wmw-panel-inner a,
.wmw-woo-single .wmw-section-label { color: var(--wmw-accent-ink) !important; }
.wmw-woo-single .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .wmw-woo-single .woocommerce-tabs ul.tabs li.active a,
.wmw-woo-single .woocommerce-tabs ul.tabs li.active a,
.wmw-woo-single .wmw-tab.is-active {
  color: var(--wmw-accent-ink) !important; border-bottom-color: var(--wmw-accent-ink) !important;
}

/* Express buttons (Apple Pay / Google Pay) run on CART + CHECKOUT only
 * (gateway express_checkout_button_locations). Keep them off the single
 * product page — the add-to-cart → slide-out drawer is the flow there — plus
 * always hide the stray order-attribution hidden inputs. */
.single-product #wc-stripe-express-checkout-element,
.single-product #wc-stripe-express-checkout-button-separator,
.single-product .wc-stripe-product-checkout-container,
.single-product .wc-stripe-express-checkout-wrapper,
.single-product .payment_method_stripe .wc-stripe-payment-request-wrapper,
#wc-stripe-express-checkout__order-attribution-inputs { display: none !important; }

/* Native Woo product review form (the white overlapping boxes when our custom
 * one isn't used) — theme its inputs dark too as a safety net. */
#review_form #respond input[type="text"],
#review_form #respond input[type="email"],
#review_form #respond textarea {
  background: var(--wmw-ck-void) !important; color: var(--wmw-text) !important; /* theme-aware recessed surface */
  border: 1px solid var(--wmw-ck-void-soft) !important; border-left: 2px solid rgb(var(--steel-500-rgb)) !important; /* theme-aware recessed surface */
  border-radius: 0 !important; width: 100% !important;
}

/* ── My Account form inputs (edit-address, edit-account) ──────────────────
 * These render unstyled white on the dark account pages — a later cascade rule
 * beats account.css's themed inputs. Force the dark skin here (always-loaded
 * theme.css) with !important so it wins regardless of load order. */
.wmw-woo-account input[type="text"],
.wmw-woo-account input[type="email"],
.wmw-woo-account input[type="tel"],
.wmw-woo-account input[type="number"],
.wmw-woo-account input[type="password"],
.wmw-woo-account select,
.wmw-woo-account textarea,
.wmw-woo-account .select2-container--default .select2-selection--single {
  background: var(--wmw-ck-void) !important; /* theme-aware recessed surface */
  border: 1px solid var(--wmw-ck-void-soft) !important; /* theme-aware recessed surface */
  border-left: 2px solid rgb(var(--steel-500-rgb)) !important;
  border-radius: 0 !important;
  color: var(--wmw-text) !important;
  padding: 13px 15px !important;
  min-height: 48px !important;
  font: 500 16px/1.3 'Rajdhani', system-ui, sans-serif !important;
}
.wmw-woo-account input:focus,
.wmw-woo-account select:focus,
.wmw-woo-account textarea:focus {
  border-left-color: rgb(var(--wmw-orange-rgb)) !important;
  box-shadow: 0 0 0 3px rgb(var(--wmw-orange-rgb) / 0.2) !important;
  outline: none !important;
}
.wmw-woo-account .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--wmw-text) !important;
  line-height: 46px !important;
}
.wmw-woo-account input::placeholder,
.wmw-woo-account textarea::placeholder { color: rgb(var(--steel-300-rgb)) !important; }

/* ── Woo single product: brand the title + price ─────────────────────────
 * Default render showed the title in the body font and the price in an
 * off-brand yellow/olive. Title -> Bebas stencil; price -> brand orange. */
.woocommerce div.product .product_title,
.woocommerce div.product h1.product_title {
  font-family: 'Bebas Neue', system-ui, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  color: var(--wmw-text) !important;
  line-height: 1.02 !important;
  font-size: clamp(1.9rem, 4vw, 2.7rem) !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .price,
.woocommerce div.product .price .amount,
.woocommerce div.product p.price .amount,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price .amount bdi {
  color: rgb(var(--wmw-orange-rgb)) !important;
  font-family: 'Bebas Neue', system-ui, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
}
.woocommerce div.product p.price { font-size: 2rem !important; margin: 6px 0 14px !important; }
/* Variable-range strikethrough = muted + subordinate; active price stays orange. */
.woocommerce div.product p.price del,
.woocommerce div.product p.price del .amount,
.woocommerce div.product p.price del bdi {
  color: rgb(var(--steel-200-rgb)) !important;
  opacity: 0.65 !important;
  font-size: 0.7em !important;
}
.woocommerce div.product p.price ins,
.woocommerce div.product p.price ins .amount {
  color: rgb(var(--wmw-orange-rgb)) !important;
  text-decoration: none !important;
}

/* ── Audit polish pass ───────────────────────────────────────────────────── */

/* D-06 — product description readability: constrain measure, space paragraphs,
 * turn run-in bold labels into orange mini-labels, style bare/converted links. */
.woocommerce div.product .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-product-details__short-description {
  max-width: 72ch;
  line-height: 1.65;
  overflow-wrap: anywhere; /* D-02: long pasted URLs were forcing mobile h-overflow */
}
/* Global mobile-overflow guard: media + wide content stay inside the viewport. */
.woocommerce div.product img,
.woocommerce div.product table { max-width: 100%; }
.woocommerce div.product .woocommerce-Tabs-panel p,
.woocommerce div.product .woocommerce-product-details__short-description p { margin: 0 0 1em; }
.woocommerce div.product .woocommerce-Tabs-panel strong,
.woocommerce div.product .woocommerce-product-details__short-description strong {
  color: rgb(var(--wmw-orange-rgb));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Chakra Petch', system-ui, sans-serif;
  font-weight: 700;
}
.woocommerce div.product .woocommerce-Tabs-panel a,
.woocommerce div.product .woocommerce-product-details__short-description a,
.woocommerce div.product .woocommerce-Tabs-panel a:visited { color: rgb(var(--wmw-orange-rgb)); word-break: break-word; }

/* D-16 — single-product buy box: looser vertical rhythm on the variation rows
 * and before the qty/CTA so the mobile buy box isn't cramped. */
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th { padding: 10px 0 !important; }
.woocommerce div.product form.cart .variations { margin-bottom: 6px !important; }
.woocommerce div.product form.cart .single_variation_wrap .woocommerce-variation-add-to-cart { margin-top: 12px !important; }

/* D-15 — footer newsletter inputs were near-invisible on the dark footer. */
form[data-wmw-form="footer"] input {
  border: 1px solid rgb(var(--steel-200-rgb) / 0.28) !important;
  background: rgb(var(--steel-700-rgb) / 0.85) !important;
}
form[data-wmw-form="footer"] input:focus { border-color: rgb(var(--wmw-orange-rgb) / 0.5) !important; }

/* Account orders table: VIEW / ORDER AGAIN buttons were default light-grey;
 * stamp them on-brand (orange outline). */
.woocommerce-account .woocommerce-orders-table a.woocommerce-button,
.woocommerce-account .woocommerce-MyAccount-content a.button,
.woocommerce-account table.account-orders-table a.button {
  background: transparent !important;
  color: rgb(var(--wmw-orange-rgb)) !important;
  border: 1px solid rgb(var(--wmw-orange-rgb)) !important;
  border-radius: 0 !important;
  font-family: 'Chakra Petch', system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  padding: 9px 16px !important;
  transition: background 0.12s, color 0.12s !important;
}
.woocommerce-account .woocommerce-orders-table a.woocommerce-button:hover,
.woocommerce-account .woocommerce-MyAccount-content a.button:hover {
  background: rgb(var(--wmw-orange-rgb)) !important;
  color: #fff !important; /* leave literal: white on orange */
}

/* ── Task 6.3: Theme toggle button ─────────────────────────────────────── */
.wmw-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgb(var(--steel-50-rgb) / 0.2);
  border-radius: 50%;
  color: rgb(var(--steel-50-rgb));
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.wmw-theme-toggle:hover {
  border-color: var(--wmw-accent);
  color: var(--wmw-accent);
}

.wmw-toggle-sun,
.wmw-toggle-moon {
  width: 18px;
  height: 18px;
  display: none;
}

/* Dark mode: show sun icon (clicking switches to light) */
[data-theme="dark"] .wmw-theme-toggle .wmw-toggle-sun { display: block; }
[data-theme="dark"] .wmw-theme-toggle .wmw-toggle-moon { display: none; }

/* Light mode: show moon icon (clicking switches to dark) */
[data-theme="light"] .wmw-theme-toggle .wmw-toggle-sun { display: none; }
[data-theme="light"] .wmw-theme-toggle .wmw-toggle-moon { display: block; }

/* Default (no data-theme attr): default is dark, so show sun */
:root:not([data-theme="light"]) .wmw-theme-toggle .wmw-toggle-sun { display: block; }
:root:not([data-theme="light"]) .wmw-theme-toggle .wmw-toggle-moon { display: none; }

/* Mobile toggle: inherit button layout from mobile nav row */
.wmw-theme-toggle--mobile {
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════════
 * Product photo lightbox (changes_5). assets/js/product-lightbox.js.
 * Always a dark backdrop (photos read best on dark) in both themes.
 * ════════════════════════════════════════════════════════════════════════ */
html.wmw-lightbox-open { overflow: hidden; }
.wmw-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 10, 8, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 16px 48px;
}
.wmw-lightbox[hidden] { display: none; }
.wmw-lightbox__img {
  max-width: min(100%, 1400px); max-height: 100%;
  object-fit: contain; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.wmw-lightbox__close,
.wmw-lightbox__nav {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25); cursor: pointer;
  transition: background 0.15s;
}
.wmw-lightbox__close:hover,
.wmw-lightbox__nav:hover { background: #f66332; border-color: #f66332; }
.wmw-lightbox__close:focus-visible,
.wmw-lightbox__nav:focus-visible { outline: 2px solid #f66332; outline-offset: 2px; }
.wmw-lightbox__close svg,
.wmw-lightbox__nav svg { width: 22px; height: 22px; }
.wmw-lightbox__close { top: 16px; right: 16px; }
.wmw-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.wmw-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.wmw-lightbox.is-single .wmw-lightbox__nav { display: none; }
.wmw-lightbox__count {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, 0.75); font: 600 12px/1 'Chakra Petch', system-ui, sans-serif;
  letter-spacing: 0.18em;
}
@media (max-width: 640px) {
  .wmw-lightbox__nav { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
}

/* Variation tables: Woo's select min-width made the serrations table overflow phones. */
table.variations { table-layout: fixed; width: 100%; }
table.variations th.label { width: 34%; text-align: left; line-height: 1.3; }
.variations select { width: 100% !important; min-width: 0 !important; }
@media (max-width: 600px) {
  table.variations, table.variations tbody, table.variations tr, table.variations th, table.variations td { display: block; width: 100%; }
  table.variations th.label { padding-bottom: 4px; }
}
/* Long unbroken optic lists in product titles ("407C/507C/508T/507COMP") */
.product_title, .wmw-product-card h3 { overflow-wrap: anywhere; }
/* Out-of-stock text was Woo's #aa0000 (unreadable on dark) */
p.stock.out-of-stock { color: var(--wmw-error, #C0392B) !important; }
/* Gift card amount + recipient fields (plugin defaults) */
.nyp input.nyp-input, .woocommerce_gc_giftcard_form input, .woocommerce_gc_giftcard_form textarea {
  background: var(--wmw-ck-void) !important; border: 1px solid var(--wmw-border) !important; color: rgb(var(--steel-50-rgb)) !important;
  border-radius: 0 !important; min-height: 46px; padding: 10px 12px !important; font-family: 'Rajdhani', system-ui, sans-serif !important; font-size: 16px !important;
}
