
/* ================================================================
   BULK WEED UK — Design System v2.0
   Single source of truth. No competing token systems.
   Replaces all prior inline CSS (~52KB of accreted patches).
   ================================================================ */

/* === TOKENS ================================================== */
:root {
  /* Neutrals (warm, green-tinted) */
  --ink: #14201a;
  --ink-soft: #3d4a43;
  --muted: #6a766e;
  --faint: #9aa49d;
  --line: #e4e9e4;
  --line-strong: #d3dad3;
  --surface: #ffffff;
  --bg: #f6f8f5;
  --bg-alt: #eef2ec;

  /* Brand green (ONE family) */
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand: #16a34a;
  --brand-600: #15803d;
  --brand-700: #166534;
  --forest: #0c2d1b;
  --forest-900: #081f13;

  /* Accent (COA / certification) */
  --accent: #c79234;

  /* Semantic */
  --sale: #dc2626;
  --warn-bg: #fffbeb;
  --warn-line: #f0c869;
  --warn-ink: #8a5a10;

  /* Typography */
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-hero: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem);
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;
  --lh-tight: 1.18;
  --lh-snug: 1.4;
  --lh-base: 1.65;

  /* Spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Radius */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(12,28,20,.05);
  --shadow-sm: 0 2px 8px rgba(12,28,20,.06);
  --shadow-md: 0 8px 24px rgba(12,28,20,.09);
  --shadow-lg: 0 18px 40px rgba(12,28,20,.13);

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.33, 1, .68, 1);
  --dur-fast: 150ms;
  --dur: 220ms;
}


/* === BASE & TYPOGRAPHY ======================================= */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  font-weight: var(--fw-bold);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { line-height: var(--lh-base); max-width: 70ch; }

a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-600); }

/* Prose links get underlines */
.entry-content p a,
.woocommerce-product-details__short-description a,
.term-description a {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-color: var(--brand-200);
}
.entry-content p a:hover { text-decoration-color: var(--brand); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* Eyebrow kicker utility */
.bw-eyebrow,
.bw-hero .bw-eyebrow-text {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}


/* === HEADER & NAV ============================================ */
.main-header-bar,
.ast-primary-header-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.ast-header-sticky-active .main-header-bar {
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-navigation a,
.ast-header-sections-navigation a {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--brand);
}

/* Search bar */
.bwuk-search-wrapper input[type="search"],
.ast-search-box input.search-field {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.bwuk-search-wrapper input:focus,
.ast-search-box input.search-field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
  outline: none;
}

/* Cart icon */
.ast-site-header-cart .count {
  background: var(--brand);
  color: white;
  font-size: var(--fs-2xs);
}

/* Hubbar / navigation pill row */
.bwuk-hubbar {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--s-3) var(--gutter);
}
.bwuk-hubbar a {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
}
.bwuk-hubbar a:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Breadcrumbs — hide on homepage */
body.home .ast-breadcrumbs-wrapper { display: none; }
.ast-breadcrumbs-wrapper {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.ast-breadcrumbs-wrapper a { color: var(--brand); font-weight: var(--fw-medium); }
.ast-breadcrumbs-wrapper a:hover { text-decoration: underline; }


/* === TRUST STRIP ============================================= */
.bw-trust-strip,
.ast-above-header-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.bw-trust-strip svg,
.bw-trust-strip .trust-icon {
  color: var(--brand);
  fill: var(--brand);
}


/* === HOMEPAGE HERO =========================================== */
.bw-hero,
.bwuk-home-hero,
.entry-content > div.bwuk-home-corporate > section:first-of-type {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-900) 100%);
  padding: var(--s-8) var(--gutter) var(--s-7);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-5);
  position: relative;
  overflow: hidden;
}
/* Subtle radial glow */
.bw-hero::before,
.bwuk-home-hero::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 70%; height: 140%;
  background: radial-gradient(ellipse, rgba(22,163,74,.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero eyebrow */
.bw-hero .bw-eyebrow-text,
.bwuk-home-hero .bw-eyebrow-text {
  color: var(--brand);
  margin-bottom: var(--s-3);
}

/* Hero heading */
.bw-hero h1,
.bwuk-home-hero h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-heavy);
  color: white;
  line-height: var(--lh-tight);
  max-width: 800px;
  margin-bottom: var(--s-4);
}

/* Hero description */
.bw-hero .bw-hero-desc,
.bwuk-home-hero p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,.75);
  line-height: var(--lh-snug);
  max-width: 650px;
  margin-bottom: var(--s-5);
}

/* Hero keyword pills */
.bw-hero .bw-keyword-pill,
.bwuk-home-hero span {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  padding: var(--s-1) var(--s-3);
  margin: var(--s-1) var(--s-1) var(--s-1) 0;
}

/* Hero CTA buttons */
.bw-hero .bw-btn-primary,
.bwuk-home-hero a.bw-cta-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  background: var(--brand);
  color: white;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: background var(--dur), transform var(--dur-fast);
  margin: var(--s-2) var(--s-2) var(--s-2) 0;
}
.bw-hero .bw-btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }

.bw-hero .bw-btn-secondary,
.bwuk-home-hero a.bw-cta-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  background: transparent;
  color: white;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.35);
  transition: all var(--dur);
  margin: var(--s-2) var(--s-2) var(--s-2) 0;
}
.bw-hero .bw-btn-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }


/* === ROUTE STRIP (quick-link pills below hero) =============== */
.bw-route-strip,
.bwuk-route-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
  padding: var(--s-4) var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bw-route-strip a,
.bwuk-route-strip a {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.bw-route-strip a:hover,
.bwuk-route-strip a:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}


/* === ANSWER GRID (3-col info cards below hero) =============== */
.bw-answer-grid,
.bwuk-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
  padding: var(--s-6) var(--gutter);
}
.bw-answer-grid article,
.bwuk-answer-grid article,
.bwuk-answer-grid > * {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  transition: box-shadow var(--dur), transform var(--dur);
}
.bw-answer-grid article:hover,
.bwuk-answer-grid article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.bwuk-answer-grid h3 { font-size: var(--fs-lg); color: var(--ink); margin-bottom: var(--s-2); }
.bwuk-answer-grid p { color: var(--ink-soft); font-size: var(--fs-base); }


/* === HOMEPAGE SECTIONS (generic) ============================= */
/* Hide junk spacers from WordPress editor */
.home .entry-content > div > p:empty,
.home .entry-content > div > hr {
  display: none;
}
/* Also collapse within the inner wrapper */
.home .bw-content-wrapper > p:empty,
.home .bw-content-wrapper > hr,
.bw-content-wrapper > p:empty,
.bw-content-wrapper > hr {
  display: none;
}

/* Hide the decorative section */
.bw-content-wrapper > section:nth-of-type(2) { display: none; }

/* Section spacing */
.bwuk-home-corporate > section,
.bw-content-wrapper > section {
  padding: var(--s-7) var(--gutter);
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* Alternating section backgrounds */
.bw-categories, .bw-how-it-works, .bw-faq,
.bw-content-wrapper > section:nth-of-type(odd) {
  background: var(--bg);
}
.bw-staff-picks, .bw-compliance,
.bw-content-wrapper > section:nth-of-type(even) {
  background: var(--surface);
}

/* Section headings — clean, no green bars */
.bwuk-home-corporate h2,
.bw-content-wrapper > section h2 {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--ink);
  margin-bottom: var(--s-2);
  border: none;
  padding-bottom: 0;
}

/* Section descriptions */
.bwuk-home-corporate > section > p:first-of-type,
.bw-content-wrapper > section > p:first-of-type {
  color: var(--ink-soft);
  font-size: var(--fs-base);
  margin-bottom: var(--s-5);
}


/* === CATEGORY CARDS ========================================== */
.product-category.product,
.bw-cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur);
}
.product-category.product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--brand-200);
}
.product-category.product img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  transition: transform var(--dur) var(--ease);
}
.product-category.product:hover img {
  transform: scale(1.04);
}
.product-category .woocommerce-loop-category__title,
.bw-cat-card .cat-title {
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  text-transform: none;
  padding: var(--s-3) var(--s-4);
}
.product-category .woocommerce-loop-category__title .count {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin-left: var(--s-2);
}

/* === PRODUCT CARDS (single definition) ======================= */
.ast-article-single.product,
li.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ast-article-single.product:hover,
li.product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ast-article-single.product img.attachment-woocommerce_thumbnail,
li.product img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}

/* Product card: category kicker */
.ast-article-single.product .ast-woo-product-category,
li.product .ast-woo-product-category {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: var(--fw-medium);
  margin-bottom: var(--s-1);
}

/* Product card: title */
.ast-article-single.product .woocommerce-loop-product__title,
li.product .woocommerce-loop-product__title,
.woocommerce-loop-product__title {
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product card: price */
.ast-article-single.product .price,
li.product .price {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.ast-article-single.product .price del { color: var(--faint); font-size: var(--fs-sm); }
.ast-article-single.product .price ins { color: var(--sale); text-decoration: none; }

/* Product card: badges (ONE restrained style) */
.bw-product-badge {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  margin: 2px 4px 2px 0;
}

/* Sale badge */
.onsale {
  background: var(--sale);
  color: white;
  font-family: var(--font-head);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  border-radius: var(--r-sm);
  padding: var(--s-1) var(--s-2);
}

/* Product card: add-to-cart button */
.ast-article-single.product .button,
li.product .button {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-4);
  transition: background var(--dur);
  text-align: center;
}
.ast-article-single.product .button:hover,
li.product .button:hover {
  background: var(--brand-600);
}


/* === FASTEST ROUTES (3-col feature cards) ==================== */
.bw-categories .bw-routes-grid,
#shop-categories > div:first-of-type > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.bw-categories .bw-routes-grid > *,
#shop-categories > div:first-of-type > div > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  transition: box-shadow var(--dur), transform var(--dur);
}
#shop-categories > div:first-of-type > div > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
#shop-categories > div:first-of-type > div h3 {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  color: var(--ink);
  margin-bottom: var(--s-2);
}
#shop-categories > div:first-of-type > div p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-3);
}
#shop-categories > div:first-of-type > div a {
  color: var(--brand);
  font-weight: var(--fw-semibold);
}


/* === HOW WHOLESALE WORKS ===================================== */
.bw-how-it-works,
#buyer-flow {
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--gutter);
}
#buyer-flow ol {
  margin-bottom: var(--s-4);
  padding-left: var(--s-5);
}
#buyer-flow li {
  margin-bottom: var(--s-3);
  color: var(--ink-soft);
}
#buyer-flow strong {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}
#buyer-flow a {
  color: var(--brand);
  font-weight: var(--fw-semibold);
}


/* === COMPLIANCE & TERMINOLOGY ================================ */
.bw-compliance,
#compliance {
  background: var(--surface);
}
#compliance > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
#compliance > div > div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
#compliance h3 {
  font-size: var(--fs-lg);
  color: var(--ink);
  margin-bottom: var(--s-3);
}
#compliance a {
  color: var(--brand);
  font-weight: var(--fw-semibold);
}


/* === FAQ ====================================================== */
.bw-faq,
#faq {
  background: var(--bg);
}
#faq > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-3);
}
#faq > div > div:first-child {
  font-family: var(--font-head);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  font-size: var(--fs-base);
  margin-bottom: var(--s-2);
}
#faq > div > div:last-of-type,
#faq > div > p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}


/* === EXPLORE THE WHOLE SITE ================================== */
.bw-sitemap,
#site-map {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-900) 100%);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--gutter);
}
#site-map h2 {
  color: white;
  margin-bottom: var(--s-5);
}
#site-map h3 {
  color: rgba(255,255,255,.7);
  font-size: var(--fs-md);
  margin-bottom: var(--s-3);
}
#site-map a {
  display: inline-block;
  color: var(--brand-200);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin: var(--s-1);
  transition: all var(--dur);
}
#site-map a:hover {
  background: rgba(255,255,255,.12);
  color: white;
}


/* === SEO CONTENT BLOCKS (below section 22) =================== */
.bw-seo-content,
.bw-seo-section {
  background: var(--surface);
  padding: var(--s-6) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.bw-seo-section h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-4);
}
.bw-seo-section > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.bw-seo-section > div > * {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.bw-seo-section h3 {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.bw-seo-section p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}
.bw-seo-section a {
  color: var(--brand);
  font-weight: var(--fw-semibold);
}

/* === SHOP / CATEGORY ARCHIVE PAGES =========================== */
/* Archive header */
.tax-product_cat .ast-archive-description,
.post-type-archive-product .ast-archive-description {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: var(--s-6) 0 var(--s-5);
}
.tax-product_cat .ast-archive-description .page-title,
.post-type-archive-product .page-title {
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-heavy);
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.tax-product_cat .ast-archive-description > p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: var(--lh-base);
  max-width: 900px;
}
.tax-product_cat .ast-archive-description > p a {
  color: var(--brand);
  font-weight: var(--fw-semibold);
}

/* Navigation links as pills (run-together fix) */
.tax-product_cat .ast-archive-description > p > a:nth-of-type(n+7) {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand);
  padding: var(--s-1) var(--s-3);
  margin: 3px 4px 3px 0;
  border-radius: var(--r-pill);
  border: 1px solid var(--brand-200);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: all var(--dur);
}
.tax-product_cat .ast-archive-description > p > a:nth-of-type(n+7):hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Category breadcrumbs */
.tax-product_cat .ast-breadcrumbs-wrapper {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.tax-product_cat .ast-breadcrumbs-wrapper a { color: var(--brand); font-weight: var(--fw-medium); }

/* Result count + sorting */
.woocommerce-result-count {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.woocommerce-ordering select {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3);
  color: var(--ink-soft);
}

/* Subcategory filter pills */
.bwuk-shop-filter a {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  transition: all var(--dur);
}
.bwuk-shop-filter a:hover,
.bwuk-shop-filter a.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Product grid */
.products.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

/* Pagination */
.woocommerce-pagination {
  margin: var(--s-6) 0;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}
.woocommerce-pagination ul {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  transition: all var(--dur);
}
.woocommerce-pagination ul li a:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.woocommerce-pagination ul li span.current {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  font-weight: var(--fw-bold);
}

/* Category bottom description sections */
.woocommerce-category-bottom-description {
  margin-top: var(--s-7);
  padding-top: var(--s-7);
  border-top: 2px solid var(--line);
}
.bwuk-cat-seo {
  background: var(--surface);
  padding: var(--s-6);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin-bottom: var(--s-6);
}
.bwuk-cat-seo h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-4);
}
.bwuk-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.bwuk-card-grid > * {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.bwuk-card-grid h3 { font-size: var(--fs-lg); color: var(--ink); margin-bottom: var(--s-2); }
.bwuk-card-grid p { color: var(--ink-soft); font-size: var(--fs-sm); }
.bwuk-card-grid a { color: var(--brand); font-weight: var(--fw-semibold); }

/* Category FAQ */
.woocommerce-category-bottom-description .bwuk-faq {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: var(--s-6);
  margin-bottom: var(--s-6);
  border: 1px solid var(--line);
}
.woocommerce-category-bottom-description .bwuk-faq h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-5);
}
.woocommerce-category-bottom-description .bwuk-faq > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-3);
}

/* Category disclaimer */
.bwuk-disclaimer {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
}
.bwuk-disclaimer p { color: var(--warn-ink); font-size: var(--fs-sm); }
.bwuk-disclaimer strong { color: #78350f; }


/* === SINGLE PRODUCT PAGE ===================================== */
.single-product .entry-summary .product_title {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.single-product .entry-summary .price {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.single-product .entry-summary .price del { color: var(--faint); font-size: var(--fs-md); }
.single-product .entry-summary .price ins { color: var(--sale); text-decoration: none; }

.single-product .woocommerce-product-details__short-description {
  font-family: var(--font-body);
  color: var(--ink-soft);
  line-height: var(--lh-base);
  font-size: var(--fs-base);
}

/* Variation selects */
.single-product .variations th label {
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  color: var(--ink);
  font-size: var(--fs-base);
}
.single-product .variations td select {
  font-family: var(--font-body);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-base);
  color: var(--ink-soft);
  min-width: 200px;
  transition: border-color var(--dur);
}
.single-product .variations td select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
  outline: none;
}

/* Quantity input */
.single-product .quantity .qty {
  font-family: var(--font-body);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: var(--s-3);
  font-size: var(--fs-base);
  width: 70px;
  text-align: center;
}

/* Add to cart button */
.single-product .single_add_to_cart_button {
  background: var(--brand) !important;
  color: white !important;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  padding: var(--s-3) var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur), box-shadow var(--dur), transform var(--dur-fast);
}
.single-product .single_add_to_cart_button:hover {
  background: var(--brand-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Product meta */
.single-product .product_meta {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.single-product .product_meta a { color: var(--brand); font-weight: var(--fw-semibold); }
.single-product .product_meta span { display: block; margin-bottom: var(--s-2); }

/* Product tabs */
.single-product .woocommerce-tabs { margin-top: var(--s-7); }
.single-product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin: 0 0 var(--s-5);
}
.single-product .woocommerce-tabs ul.tabs li {
  border: none;
  background: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.single-product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-head);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--muted);
  padding: var(--s-3) var(--s-5);
  display: block;
  border-bottom: 2px solid transparent;
  transition: all var(--dur);
}
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--brand); border-bottom-color: var(--brand); }
.single-product .woocommerce-tabs ul.tabs li a:hover { color: var(--ink); }

.single-product .woocommerce-Tabs-panel {
  font-family: var(--font-body);
  color: var(--ink-soft);
  line-height: var(--lh-base);
}

/* Related products */
.single-product .related.products > h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-5);
}


/* === CART ==================================================== */
.woocommerce-cart .shop_table {
  font-family: var(--font-body);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.woocommerce-cart .shop_table th {
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  background: var(--bg-alt);
  color: var(--ink);
  padding: var(--s-4);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.woocommerce-cart .shop_table td {
  padding: var(--s-4);
  vertical-align: middle;
  border-top: 1px solid var(--line);
}
.woocommerce-cart .coupon .input-text {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-body);
}


/* === CHECKOUT ================================================ */
.woocommerce-checkout .form-row label {
  font-family: var(--font-head);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  font-size: var(--fs-sm);
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  font-family: var(--font-body);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-base);
  transition: border-color var(--dur);
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
  outline: none;
}
.woocommerce-checkout #place_order {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  padding: var(--s-4) var(--s-6);
  transition: background var(--dur);
}
.woocommerce-checkout #place_order:hover { background: var(--brand-600); }


/* === FOOTER ================================================== */
.site-footer,
footer.site-footer {
  background: var(--forest-900);
  color: rgba(255,255,255,.62);
  font-family: var(--font-body);
}
.site-footer a { color: var(--brand-200); transition: color var(--dur); }
.site-footer a:hover { color: white; }

.site-footer .widget-title,
.site-footer h4 {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
  margin-bottom: var(--s-4);
}
.site-footer .widget ul li {
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
}

/* Copyright bar */
.ast-small-footer,
.site-below-footer-wrap {
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: var(--fs-xs);
  color: var(--faint);
  padding: var(--s-4) var(--gutter);
}


/* === WOOCOMMERCE GLOBAL ====================================== */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--brand);
  font-family: var(--font-body);
}
.woocommerce-error {
  border-top-color: var(--sale);
}
.woocommerce a.button,
.woocommerce button.button {
  font-family: var(--font-head);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-sm);
  transition: all var(--dur);
}


/* === RESPONSIVE ============================================== */
@media (max-width: 1024px) {
  .products.columns-4 { grid-template-columns: repeat(3, 1fr); }
  #shop-categories > div:first-of-type > div {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }

  .products.columns-4 { grid-template-columns: repeat(2, 1fr); }
  #shop-categories > div:first-of-type > div {
    grid-template-columns: 1fr;
  }
  #compliance > div {
    grid-template-columns: 1fr;
  }
  .bw-seo-section > div {
    grid-template-columns: 1fr;
  }

  .bwuk-answer-grid { grid-template-columns: 1fr; }
  .bwuk-card-grid { grid-template-columns: 1fr; }

  .bw-route-strip, .bwuk-route-strip { gap: var(--s-2); }
  .bw-route-strip a, .bwuk-route-strip a { font-size: var(--fs-xs); padding: var(--s-1) var(--s-3); }

  .bwuk-home-corporate > section,
  .bw-content-wrapper > section {
    padding: var(--s-6) var(--s-4);
  }

  .tax-product_cat .ast-archive-description .page-title {
    font-size: var(--fs-2xl);
  }
  .bwuk-cat-seo { padding: var(--s-5); }
  .woocommerce-category-bottom-description .bwuk-faq { padding: var(--s-5); }
}

@media (max-width: 480px) {
  h1 { font-size: var(--fs-xl); }
  .products.columns-4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }

  .bwuk-home-corporate > section,
  .bw-content-wrapper > section {
    padding: var(--s-5) var(--s-3);
  }

  .tax-product_cat .ast-archive-description .page-title {
    font-size: var(--fs-xl);
  }
  .bwuk-cat-seo { padding: var(--s-4); }
  .bwuk-card-grid > * { padding: var(--s-4); }

  .single-product .entry-summary .product_title { font-size: var(--fs-xl); }
  .single-product .entry-summary .price { font-size: var(--fs-lg); }
}

@media (max-width: 360px) {
  .products.columns-4 { grid-template-columns: 1fr; }
}


/* === PATCH: Astra Override Fixes ================================ */

/* Trust strip: force horizontal flex layout */
.bw-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  padding: var(--s-2) var(--gutter);
  flex-wrap: wrap;
}
.bw-trust-strip > * {
  white-space: nowrap;
  font-size: var(--fs-sm);
}

/* Category/shop filter bar */
.bwuk-shop-filter {
  background: var(--forest);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-3) var(--gutter);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
}
.bwuk-shop-filter a {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}
.bwuk-shop-filter a:hover,
.bwuk-shop-filter a.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Kill green underline bars on ALL headings */
h2::after, h2::before,
h3::after, h3::before,
.entry-content h2::after,
.entry-content h2::before {
  display: none;
  content: none;
  border: none;
  height: 0;
}

/* Ensure category page title visibility */
.tax-product_cat .page-title,
.post-type-archive-product .page-title {
  color: var(--ink);
}

/* Force body background */
body { background: var(--bg); }

/* Empty hubbar second row - hide empty placeholders */
.bwuk-hubbar > div > div:empty,
.bwuk-hubbar > div > a:empty {
  display: none;
}


/* === PATCH 2: Astra Color Overrides ============================= */

/* Fix h1/h2/h3 colors Astra overrides to white/blue */
body .site-content h1, body .site-content h2, body .site-content h3, body .site-content h4 { color: var(--ink) !important; }

/* Hero headings must stay white (specificity must beat body .site-content h1) */
body .site-content .bw-hero h1,
body .site-content .bw-hero h2,
body .site-content .bwuk-home-hero h1,
body .site-content .bwuk-home-hero h2,
.bw-hero h1, .bw-hero h2,
.bwuk-home-hero h1, .bwuk-home-hero h2 { color: #fff !important; }

/* Explore section headings must stay white (specificity fix) */
body .site-content .bw-sitemap h2,
body .site-content .bw-sitemap h3,
body .site-content #site-map h2,
body .site-content #site-map h3,
.bw-sitemap h2, .bw-sitemap h3,
#site-map h2, #site-map h3 {
  color: #fff !important;
}

/* Product page title & price */
.single-product .product_title { color: var(--ink) !important; }
.single-product .entry-summary .price { color: var(--ink); }
.single-product .entry-summary .price ins { color: var(--sale); }
.single-product .entry-summary .price del { color: var(--faint); }

/* Add-to-cart buttons (Astra overrides background) */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button {
  background: var(--brand) !important;
  color: white !important;
  border: none;
}
.single-product .single_add_to_cart_button:hover {
  background: var(--brand-600);
}

/* WooCommerce buttons global */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--brand);
  color: white;
  border: none;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--brand-600);
}

/* Category page title (Astra sets to white) */
.tax-product_cat h1.page-title,
.post-type-archive-product h1.page-title {
  color: var(--ink);
}

/* Product card titles (Astra override) */
.woocommerce-loop-product__title {
  color: var(--ink);
}

/* Popular routes pills - ensure visibility */
.bwuk-row--popular a {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}
.bwuk-row--popular a:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}


