/*
Theme Name: BigMarket Child
Theme URI: https://bigmarket.local
Description: B2B fasteners wholesale child theme (industrial navy + safety orange). Parent: Kadence WP.
Author: BigMarket Dev Team
Author URI: https://bigmarket.local
Template: kadence
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: bigmarket
*/

/* --- Design Tokens --- */
:root {
  --bm-navy:        #111827;
  --bm-navy-700:    #1f2937;
  --bm-navy-500:    #374151;
  --bm-orange:      #ea580c;
  --bm-orange-600:  #c2410c;
  --bm-orange-50:   #fff7ed;
  --bm-steel:       #6b7280;
  --bm-line:        #e5e7eb;
  --bm-bg:          #fafafa;
  --bm-white:       #ffffff;
  --bm-success:     #10b981;
  --bm-warning:     #f59e0b;
  --bm-danger:      #ef4444;

  --bm-radius:      6px;
  --bm-radius-lg:   10px;
  --bm-shadow:      0 1px 2px rgba(17, 24, 39, 0.04), 0 2px 8px rgba(17, 24, 39, 0.06);
  --bm-shadow-md:   0 4px 12px rgba(17, 24, 39, 0.08);

  --bm-font-sans:   'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bm-font-mono:   'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* --- Base typography --- */
body, .site {
  font-family: var(--bm-font-sans);
  color: var(--bm-navy);
  background: var(--bm-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .product_title {
  font-family: var(--bm-font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bm-navy);
}

/* --- Buttons --- */
.button, .wp-block-button__link, button.single_add_to_cart_button,
a.button, .wc-block-components-button {
  background: var(--bm-orange);
  color: #fff;
  border: 0;
  border-radius: var(--bm-radius);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: var(--bm-shadow);
  transition: background .15s ease, transform .05s ease;
}
.button:hover, .wp-block-button__link:hover, button.single_add_to_cart_button:hover,
a.button:hover, .wc-block-components-button:hover {
  background: var(--bm-orange-600);
  color: #fff;
}
.button.button-outline, .button.is-style-outline {
  background: transparent;
  color: var(--bm-navy);
  border: 1px solid var(--bm-line);
}
.button.button-outline:hover {
  background: var(--bm-navy);
  color: #fff;
  border-color: var(--bm-navy);
}

/* PDP / archive add-to-cart.
   WooCommerce ships `.woocommerce button.button.alt` at specificity (0,3,0) with its
   purple #7f54b3, which beats our plain `.button` (0,1,0). Match-and-exceed it here
   so the theme orange actually wins. */
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce button.single_add_to_cart_button {
  background: var(--bm-orange);
  color: #fff;
  border: 0;
  border-radius: var(--bm-radius);
  font-weight: 600;
  box-shadow: var(--bm-shadow);
  transition: background .15s ease;
}
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce button.single_add_to_cart_button:hover {
  background: var(--bm-orange-600);
  color: #fff;
}

/* --- Links --- */
a { color: var(--bm-navy); }
a:hover { color: var(--bm-orange); }

/* --- Utility bar (top strip) --- */
.bm-utility-bar {
  background: var(--bm-navy);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bm-utility-bar a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-right: 18px;
}
.bm-utility-bar a:hover { color: var(--bm-orange); }
.bm-utility-bar .bm-utility-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bm-utility-bar .bm-utility-left i,
.bm-utility-bar .bm-utility-right i { margin-right: 6px; opacity: .85; }
.bm-utility-bar .bm-utility-right { display: flex; gap: 18px; align-items: center; }
.bm-utility-bar .bm-lang-switcher { display: inline-flex; gap: 10px; }
.bm-utility-bar .bm-lang-switcher a.active { color: var(--bm-orange); font-weight: 600; }

/* --- Header main row --- */
.bm-header-main {
  background: #fff;
  border-bottom: 1px solid var(--bm-line);
  padding: 14px 0;
}
.bm-header-main .bm-header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.bm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--bm-navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.bm-logo .bm-logo-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  background: var(--bm-orange);
  color: #fff;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.bm-logo .bm-logo-tag {
  font-size: 11px;
  color: var(--bm-steel);
  font-weight: 500;
  display: block;
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Logo image (Carkeat wordmark) — header bg=white, footer bg=navy */
.bm-logo .bm-logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.bm-footer .bm-footer-brand .bm-logo .bm-logo-img--light {
  height: 56px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.bm-search input[type=search] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  font-size: 14px;
  background: #f9fafb;
}
.bm-search input[type=search]:focus {
  outline: 0;
  border-color: var(--bm-orange);
  background: #fff;
}
.bm-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bm-navy);
  color: #fff;
  border-radius: var(--bm-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.bm-cart-icon:hover { background: var(--bm-navy-700); color: #fff; }
.bm-cart-icon .bm-cart-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--bm-orange);
  color: #fff;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* --- Primary nav --- */
.bm-nav {
  background: #fff;
  border-bottom: 1px solid var(--bm-line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--bm-shadow);
}
.bm-nav .bm-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.bm-nav .bm-nav-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bm-nav .bm-nav-wrap::-webkit-scrollbar { display: none; }
.bm-nav .bm-nav-wrap > a {
  display: inline-flex;
  align-items: center;
  padding: 13px 9px;
  color: var(--bm-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.bm-nav .bm-nav-wrap > a:hover {
  color: var(--bm-orange);
  border-bottom-color: var(--bm-orange);
}
.bm-nav .bm-nav-wrap > a.active {
  color: var(--bm-orange);
  border-bottom-color: var(--bm-orange);
}
.bm-nav .bm-nav-cta {
  flex-shrink: 0;
  align-self: center;
  padding: 8px 16px;
  background: var(--bm-orange);
  color: #fff;
  border-radius: var(--bm-radius);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.bm-nav .bm-nav-cta:hover { background: var(--bm-orange-600); color: #fff; }

/* --- Hero: Taobao-style 3 columns (replicated from dawn/shop/shopify-theme hero-taobao)
   left: Actions/Spec tabs | center: slideshow | right: user + news + promos --- */
.bm-hero3 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 16px;
  align-items: stretch;
}

/* ---- left panel ---- */
.bm-hp {
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bm-hp__nav { display: flex; border-bottom: 1px solid var(--bm-line); }
.bm-hp__nav button {
  flex: 1;
  padding: 12px 8px;
  background: #f9fafb;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--bm-steel);
  cursor: pointer;
}
.bm-hp__nav button.is-active {
  background: #fff;
  color: var(--bm-orange);
  border-bottom-color: var(--bm-orange);
}
.bm-hp__pane { display: none; padding: 8px; }
.bm-hp__pane.is-active { display: block; }
.bm-act {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--bm-radius);
  text-decoration: none;
  color: var(--bm-navy);
}
.bm-act:hover { background: var(--bm-orange-50); color: var(--bm-navy); }
.bm-act__ico {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bm-orange-50);
  color: var(--bm-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bm-act__ico svg { width: 16px; height: 16px; }
.bm-act__txt { display: flex; flex-direction: column; line-height: 1.25; }
.bm-act__txt b { font-size: 13px; font-weight: 600; }
.bm-act__txt small { font-size: 11px; color: var(--bm-steel); }
.bm-spec { padding: 10px 10px 4px; }
.bm-spec__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bm-steel);
  margin-bottom: 6px;
}
.bm-spec__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-spec__tags a {
  font-size: 11.5px;
  padding: 3px 9px;
  border: 1px solid var(--bm-line);
  border-radius: 20px;
  color: var(--bm-navy);
  text-decoration: none;
  background: #fafafa;
}
.bm-spec__tags a:hover { border-color: var(--bm-orange); color: var(--bm-orange); }

/* ---- center slideshow ---- */
.bm-hs {
  position: relative;
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  min-height: 340px;
  background: #111827;
}
.bm-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.bm-slide.is-active { opacity: 1; position: relative; }
.bm-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bm-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(17,24,39,.92) 0%, rgba(17,24,39,.55) 60%, rgba(17,24,39,.25) 100%);
}
.bm-slide__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 40px 44px;
}
.bm-slide__text { max-width: 460px; color: #fff; }
.bm-slide__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bm-orange);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.bm-slide__title {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 12px;
  font-weight: 800;
}
.bm-slide__desc { font-size: 14.5px; color: rgba(255,255,255,.85); margin: 0 0 20px; line-height: 1.6; }
.bm-hs__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--bm-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.bm-hs__arrow svg { width: 16px; height: 16px; }
.bm-hs__arrow--prev { left: 12px; }
.bm-hs__arrow--next { right: 12px; }
.bm-hs__arrow:hover { background: #fff; }
.bm-hs__dots {
  position: absolute;
  bottom: 14px;
  left: 44px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.bm-hs__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.bm-hs__dot.is-active { background: var(--bm-orange); width: 22px; border-radius: 4px; }

/* ---- right side ---- */
.bm-hside { display: flex; flex-direction: column; gap: 12px; }
.bm-hcard {
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  padding: 16px;
}
.bm-huser__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bm-huser__avatar {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bm-orange-50);
  color: var(--bm-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bm-huser__avatar svg { width: 20px; height: 20px; }
.bm-huser__hi { font-size: 12.5px; color: var(--bm-steel); line-height: 1.35; }
.bm-huser__hi b { display: block; color: var(--bm-navy); font-size: 13.5px; }
.bm-huser__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.bm-btn-o {
  display: block;
  text-align: center;
  padding: 8px 0;
  border-radius: var(--bm-radius);
  background: var(--bm-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.bm-btn-o:hover { background: var(--bm-orange-600); color: #fff; }
.bm-btn-d {
  display: block;
  text-align: center;
  padding: 8px 0;
  border-radius: var(--bm-radius);
  background: var(--bm-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.bm-btn-d:hover { background: #000; color: #fff; }
.bm-huser__benefits { list-style: none; margin: 0; padding: 0; }
.bm-huser__benefits li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--bm-steel);
  padding: 3px 0;
}
.bm-huser__benefits svg { width: 13px; height: 13px; color: var(--bm-success); flex: 0 0 13px; }

@media (max-width: 1100px) {
  .bm-hero3 { grid-template-columns: 1fr; }
  .bm-hs { min-height: 280px; }
}
@media (max-width: 600px) {
  .bm-hero3 { padding: 16px; }
  .bm-slide__inner { padding: 28px 24px; }
}


/* --- Category page banner (real image, dark overlay) --- */
.bm-cat-banner {
  position: relative;
  background-color: #111827;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 64px 24px;
  margin-bottom: 24px;
}
.bm-cat-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.78);
}
.bm-cat-banner .bm-cat-banner-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.bm-cat-banner h1 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 34px);
  margin: 0 0 8px;
  font-weight: 700;
}
.bm-cat-banner .bm-cat-banner-desc {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .bm-cat-banner { padding: 40px 20px; }
}
.bm-hero .bm-hero-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.bm-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.02em;
}
.bm-hero h1 .bm-accent { color: var(--bm-orange); }
.bm-hero p.bm-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
  max-width: 580px;
}
.bm-hero .bm-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.bm-hero .bm-hero-ctas .button {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--bm-radius);
}
.bm-hero .bm-hero-ctas .bm-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.bm-hero .bm-hero-ctas .bm-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: #fff;
}
.bm-hero .bm-hero-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 580px;
}
.bm-hero .bm-hero-stat {
  border-left: 2px solid var(--bm-orange);
  padding-left: 14px;
}
.bm-hero .bm-hero-stat .n {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.bm-hero .bm-hero-stat .l {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bm-hero .bm-hero-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--bm-radius-lg);
  padding: 28px;
}
.bm-hero .bm-hero-card h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 16px;
}
.bm-hero .bm-hero-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.bm-hero .bm-hero-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  display: flex;
  gap: 10px;
}
.bm-hero .bm-hero-card li:last-child { border-bottom: 0; }
.bm-hero .bm-hero-card li::before {
  content: "✓";
  color: var(--bm-orange);
  font-weight: 700;
}
.bm-hero .bm-hero-card .button { width: 100%; text-align: center; }

/* --- Category grid — dark tiles, CARFAST-aligned (dawn project) --- */
.bm-section { padding: 72px 24px; max-width: 1200px; margin: 0 auto; }
.bm-section-header {
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bm-section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0;
}
.bm-section-header p {
  font-size: 15px;
  color: var(--bm-steel);
  margin: 4px 0 0;
}
.bm-section-header .bm-eyebrow {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--bm-orange);
  font-weight: 700;
  margin-bottom: 6px;
}
.bm-section-header .bm-viewall {
  font-size: 14px;
  font-weight: 600;
  color: var(--bm-orange);
  text-decoration: none;
}
.bm-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bm-cat-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  background: linear-gradient(160deg, #1b2547 0%, #111a38 100%);
  border: 1px solid #232f5c;
  border-radius: var(--bm-radius-lg);
  padding: 22px 20px;
  text-align: left;
  text-decoration: none;
  color: #fff;
  transition: transform .15s ease, border-color .15s ease;
  position: relative;
  overflow: hidden;
}
.bm-cat-card:hover {
  border-color: var(--bm-orange);
  transform: translateY(-3px);
  color: #fff;
}
.bm-cat-card .bm-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}
.bm-cat-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: #fff;
}
.bm-cat-card .bm-cat-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.62);
  margin: 0 0 auto;
  line-height: 1.5;
  min-height: 0;
}
.bm-cat-card .bm-cat-count {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 2px 10px;
  margin: 12px 0 12px;
  letter-spacing: 0.02em;
}
.bm-cat-card .bm-cat-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--bm-navy);
  background: rgba(255,255,255,0.92);
  border-radius: var(--bm-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  gap: 4px;
}
.bm-cat-card .bm-cat-cta::after { content: "→"; transition: transform .15s ease; }
.bm-cat-card:hover .bm-cat-cta { background: var(--bm-orange); color: #fff; }
.bm-cat-card:hover .bm-cat-cta::after { transform: translateX(3px); }

/* --- Feature cards (payment / freight / credit) --- */
.bm-features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bm-feature {
  background: linear-gradient(160deg, #1b2547 0%, #111a38 100%);
  border: 1px solid #232f5c;
  border-radius: var(--bm-radius-lg);
  padding: 28px 24px;
  color: #fff;
}
.bm-feature .bm-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.bm-feature h3 { color: #fff; font-size: 17px; margin: 0 0 8px; }
.bm-feature p { color: rgba(255,255,255,0.65); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* --- Newsletter band (CARFAST-aligned) --- */
.bm-newsletter {
  background: var(--bm-orange);
  color: #fff;
  padding: 40px 24px;
}
.bm-newsletter .bm-newsletter-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.bm-newsletter h3 { color: #fff; font-size: 24px; margin: 0 0 6px; font-weight: 800; }
.bm-newsletter p { color: rgba(255,255,255,0.9); font-size: 14px; margin: 0; }
.bm-newsletter form { display: flex; gap: 10px; }
.bm-newsletter input[type=email] {
  min-width: 280px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--bm-radius);
  font-size: 14px;
  font-family: inherit;
}
.bm-newsletter button {
  padding: 12px 22px;
  background: var(--bm-navy);
  color: #fff;
  border: 0;
  border-radius: var(--bm-radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.bm-newsletter button:hover { background: #000; }
@media (max-width: 800px) {
  .bm-newsletter .bm-newsletter-wrap { grid-template-columns: 1fr; }
  .bm-newsletter form { flex-wrap: wrap; }
  .bm-newsletter input[type=email] { flex: 1; min-width: 0; }
}
.bm-cat-card .bm-cat-cta::after { content: "→"; transition: transform .15s ease; }
.bm-cat-card:hover .bm-cat-cta::after { transform: translateX(3px); }

/* --- Featured tabs / product cards (dawn: featured-tabs + brand-slider) --- */
.bm-ftabs__nav { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--bm-line); }
.bm-ftabs__nav button {
  padding: 10px 18px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--bm-steel);
  cursor: pointer;
}
.bm-ftabs__nav button.is-active { color: var(--bm-orange); border-bottom-color: var(--bm-orange); }
.bm-ftabs__pane { display: none; }
.bm-ftabs__pane.is-active { display: block; }
.bm-pgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bm-pcard {
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  transition: border-color .15s ease;
}
.bm-pcard:hover { border-color: var(--bm-orange); }
.bm-pcard > a { display: block; text-decoration: none; color: inherit; }
.bm-pcard__thumb { display: block; aspect-ratio: 1/1; background: #f3f4f6; overflow: hidden; }
.bm-pcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-pcard__ph {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 130px;
  color: #cbd5e1; font-weight: 800; font-size: 22px;
}
.bm-pcard__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bm-navy);
  margin: 12px 14px 6px;
  line-height: 1.45;
  min-height: 38px;
}
.bm-pcard__price { display: block; margin: 0 14px 14px; font-size: 13.5px; font-weight: 700; color: var(--bm-navy); }
.bm-pcard__price .woocommerce-Price-amount { color: var(--bm-orange); }

/* --- Blog cards (dawn: blog-posts) --- */
.bm-blogs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bm-blog {
  display: block;
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
}
.bm-blog:hover { border-color: var(--bm-orange); color: inherit; }
.bm-blog__date { font-size: 11.5px; color: var(--bm-steel); letter-spacing: .05em; text-transform: uppercase; }
.bm-blog h3 { font-size: 16px; color: var(--bm-navy); margin: 8px 0 8px; line-height: 1.4; }
.bm-blog p { font-size: 13px; color: var(--bm-steel); line-height: 1.6; margin: 0 0 12px; }
.bm-blog__more { font-size: 13px; font-weight: 600; color: var(--bm-orange); }

/* --- Feature card eyebrow + CTA (dawn: promo-banners) --- */
.bm-feature-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bm-orange);
  margin-bottom: 8px;
}
.bm-feature--cta { display: block; text-decoration: none; color: #fff; }
.bm-feature--cta:hover { border-color: var(--bm-orange); color: #fff; }
.bm-feature-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  background: var(--bm-orange);
  color: #fff;
  border-radius: var(--bm-radius);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .bm-pgrid { grid-template-columns: repeat(2, 1fr); }
  .bm-blogs { grid-template-columns: 1fr; }
}

/* --- Trust strip --- */
.bm-trust {
  background: #fff;
  border-top: 1px solid var(--bm-line);
  border-bottom: 1px solid var(--bm-line);
  padding: 36px 24px;
}
.bm-trust-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.bm-trust-item .bm-trust-n {
  font-size: 28px;
  font-weight: 800;
  color: var(--bm-navy);
  line-height: 1;
}
.bm-trust-item .bm-trust-l {
  font-size: 13px;
  color: var(--bm-steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* --- Footer --- */
.bm-footer {
  background: var(--bm-navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 24px 24px;
  font-size: 14px;
  line-height: 1.7;
}
.bm-footer .bm-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.bm-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  font-weight: 700;
}
.bm-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: block;
  padding: 4px 0;
}
.bm-footer a:hover { color: var(--bm-orange); }
.bm-footer .bm-footer-brand .bm-logo { color: #fff; }
.bm-footer .bm-footer-brand .bm-logo .bm-logo-tag { color: rgba(255,255,255,0.5); }
.bm-footer .bm-footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.bm-footer .bm-footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}
.bm-footer .bm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* --- Shop header (kill big grey band) --- */
.woocommerce-products-header,
.woocommerce .page-header,
.page-header,
header.woocommerce-products-header,
.woocommerce div.product .woocommerce-breadcrumb {
  background: transparent !important;
  padding: 32px 24px 16px !important;
  border: 0 !important;
  text-align: left !important;
  min-height: 0 !important;
}
.woocommerce-products-header::before,
.woocommerce-products-header::after,
.page-header::before,
.page-header::after { display: none !important; }
.woocommerce-products-header h1,
.woocommerce .page-header .page-title,
.page-header .page-title {
  font-size: 28px !important;
  color: var(--bm-navy) !important;
  margin: 0 !important;
  font-weight: 700 !important;
}
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--bm-steel);
  margin: 12px 0 0 !important;
}

/* Kill Kadence page-header banner (the giant grey band) */
.kadence-page-header,
header.page-header,
.entry-header,
header.entry-header,
.site-header ~ .content-area > header,
.woocommerce-page .entry-header,
.woocommerce-products-header__title,
section.entry-hero,
.entry-hero,
section.entry-hero.product-archive-hero-section,
.entry-hero.product-archive-hero-section,
.entry-hero-layout-standard,
.entry-hero .entry-header,
section.entry-hero .entry-header,
.entry-hero .entry-hero-container-inner,
.entry-hero .hero-container.site-container,
.entry-hero .hero-section-overlay {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  padding: 16px 24px !important;
  min-height: 0 !important;
  height: auto !important;
  border: 0 !important;
  margin: 0 !important;
  display: block !important;
}
.hero-section-overlay {
  display: none !important;
}
.kadence-page-header .kadence-page-header-inner,
.page-header-inner { padding: 0 !important; background: transparent !important; }

/* Hide the giant "Shop" centered band specifically */
.woocommerce .page-title,
.woocommerce-products-header h1.woocommerce-products-header__title,
header.entry-header > .entry-title-wrap,
.kadence-page-header .page-title,
header.entry-header h1.page-title.archive-title {
  display: block !important;
  font-size: 28px !important;
  background: transparent !important;
  text-align: left !important;
  color: var(--bm-navy) !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  font-weight: 700 !important;
}
.entry-hero .entry-hero-container-inner { padding: 16px 24px !important; }
.entry-hero .hero-container.site-container { padding: 0 !important; }

/* Defeat the bg color set by Kadence on content-bg */
.content-bg, .entry-content-wrap {
  background: var(--bm-bg) !important;
}

/* Most aggressive: use very high-specificity override */
body.woocommerce.archive section.entry-hero.product-archive-hero-section.entry-hero-layout-standard,
body.woocommerce.archive .entry-hero.product-archive-hero-section,
body.woocommerce.archive .entry-hero-container-inner,
body.woocommerce.archive .hero-container.site-container,
body.woocommerce.archive .entry-hero .entry-header.product-archive-title {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  min-height: 0 !important;
  height: auto !important;
  padding-top: 16px !important;
  padding-bottom: 0 !important;
}
body.woocommerce.archive .entry-hero .entry-hero-container-inner { padding: 0 24px !important; }
body.woocommerce.archive .hero-section-overlay { display: none !important; }
body.woocommerce.archive .content-area { margin-top: 1rem !important; }

/* NUCLEAR: Direct, late-loaded rules — must beat Kadence's content.min.css */
.entry-hero-container-inner,
.entry-hero .entry-hero-container-inner,
section.entry-hero .entry-hero-container-inner,
.entry-hero-container-inner.entry-hero-container-inner {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}
.entry-hero-container-inner .entry-header,
.entry-hero .entry-header,
section.entry-hero .entry-header {
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 16px 0 !important;
}
.entry-hero-container-inner .entry-header h1,
.entry-hero-container-inner .page-title,
header.entry-header .page-title.archive-title {
  font-size: 28px !important;
  text-align: left !important;
  color: var(--bm-navy) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Product cards --- */
.woocommerce ul.products li.product,
.wc-block-grid .wc-block-grid__product {
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  padding: 0 !important;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--bm-orange);
  box-shadow: var(--bm-shadow-md);
}
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: block;
  padding: 20px 20px 8px;
}
.woocommerce ul.products li.product img {
  border-radius: var(--bm-radius);
  margin: 0 0 14px !important;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3f4f6;
}
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  color: var(--bm-navy);
  margin: 0 0 8px !important;
}
.woocommerce ul.products li.product .price {
  font-size: 14px !important;
  color: var(--bm-navy) !important;
  font-weight: 700 !important;
  padding: 0 20px !important;
  margin: 0 0 12px !important;
  display: block;
}
.woocommerce ul.products li.product .price .amount { color: var(--bm-navy); }
.woocommerce ul.products li.product .button {
  margin: 0 20px 20px !important;
  width: calc(100% - 40px) !important;
  display: block;
  text-align: center;
}

/* --- Stock dot --- */
.bm-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bm-steel);
  padding: 0 20px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bm-stock::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bm-success);
  display: inline-block;
}
.bm-stock.is-low::before { background: var(--bm-warning); }
.bm-stock.is-out::before { background: var(--bm-danger); }

/* --- PDP --- */
.woocommerce div.product {
  background: #fff;
  border-radius: var(--bm-radius-lg);
  padding: 32px;
  border: 1px solid var(--bm-line);
}
.woocommerce div.product .product_title {
  font-size: 28px !important;
  margin: 0 0 12px !important;
}
.woocommerce div.product .price {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--bm-orange) !important;
  margin: 8px 0 20px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 24px 0 0 !important;
  border-bottom: 1px solid var(--bm-line) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 12px 18px !important;
  font-weight: 600 !important;
  color: var(--bm-steel) !important;
  border-bottom: 2px solid transparent !important;
  display: inline-block;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--bm-orange) !important;
  border-bottom-color: var(--bm-orange) !important;
}

/* --- Tier table --- */
.bm-tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  overflow: hidden;
}
.bm-tier-table thead {
  background: var(--bm-navy);
  color: #fff;
}
.bm-tier-table th, .bm-tier-table td {
  padding: 10px 14px;
  text-align: left;
}
.bm-tier-table tbody tr { border-top: 1px solid var(--bm-line); }
.bm-tier-table tbody tr:nth-child(even) { background: #fafafa; }
.bm-tier-table tbody tr.is-current {
  background: var(--bm-orange-50);
  font-weight: 700;
}
.bm-tier-table tbody tr.is-current td:last-child { color: var(--bm-orange); }

/* --- Responsive --- */
.bm-cat-also {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--bm-steel);
}
.bm-cat-also a { color: var(--bm-orange); text-decoration: none; font-weight: 600; }
.bm-cat-also a:hover { text-decoration: underline; }
@media (max-width: 1200px) {
  .bm-cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .bm-hero .bm-hero-wrap { grid-template-columns: 1fr; }
  .bm-hero { padding: 56px 20px; }
  .bm-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .bm-trust-wrap { grid-template-columns: repeat(2, 1fr); }
  .bm-footer .bm-footer-wrap { grid-template-columns: 1fr 1fr; }
  .bm-header-main .bm-header-wrap { grid-template-columns: 1fr; }
  .bm-search { order: 3; }
}
@media (max-width: 600px) {
  .bm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-cat-card { padding: 20px 16px; }
  .bm-cat-card .bm-cat-icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 12px; }
  .bm-cat-card h3 { font-size: 15px; }
  .bm-cat-card .bm-cat-desc { font-size: 12px; min-height: 0; }
  .bm-footer .bm-footer-wrap { grid-template-columns: 1fr; }
  .bm-hero .bm-hero-stats { grid-template-columns: 1fr; }
}
/* ============================================================
   Section library styles
   Mirrors dawn sections: page-head / faq / topic grid /
   contact-form / data table / downloads / stats / cta band
   ============================================================ */

/* page-head (dawn: .page-head + .eyebrow + .h-section + .page-head__sub) */
.bm-page-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 28px;
  text-align: center;
}
.bm-page-head .bm-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--bm-orange);
  margin-bottom: 10px;
}
.bm-h-section {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--bm-navy);
  margin: 0 0 12px;
  line-height: 1.15;
}
.bm-page-head__sub {
  font-size: 15.5px;
  color: var(--bm-steel);
  margin: 0 auto;
  max-width: 640px;
  line-height: 1.65;
}

/* section-head */
.bm-section-head { max-width: 1200px; margin: 0 auto 24px; padding: 0 24px; }
.bm-section-head .bm-eyebrow {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--bm-orange); margin-bottom: 8px;
}
.bm-section-head__sub { font-size: 14.5px; color: var(--bm-steel); margin: 6px 0 0; }

/* faq accordion (dawn: .faq / .faq__item / .faq__q / .faq__a) */
.bm-faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.bm-faq__item {
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
}
.bm-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bm-navy);
  text-align: left;
  cursor: pointer;
}
.bm-faq__q:hover { color: var(--bm-orange); }
.bm-faq__ico {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bm-orange-50);
  color: var(--bm-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s ease;
}
.bm-faq__item.is-open .bm-faq__ico { transform: rotate(45deg); }
.bm-faq__a { display: none; }
.bm-faq__item.is-open .bm-faq__a { display: block; }
.bm-faq__a-inner {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bm-steel);
}

/* topic grid (dawn: .help-topics / .help-topic) */
.bm-topics {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bm-topic {
  display: block;
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.bm-topic:hover { border-color: var(--bm-orange); transform: translateY(-2px); color: inherit; }
.bm-topic__ico {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--bm-orange-50); color: var(--bm-orange);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.bm-topic__ico svg { width: 20px; height: 20px; }
.bm-topic strong { display: block; font-size: 15px; color: var(--bm-navy); margin-bottom: 5px; }
.bm-topic span { font-size: 13px; color: var(--bm-steel); line-height: 1.55; }

/* contact form (dawn: .contact-form / __row / __field / __submit) */
.bm-contact-form {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.bm-contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bm-contact-form__field { margin-bottom: 14px; }
.bm-contact-form__field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--bm-navy); margin-bottom: 5px;
}
.bm-contact-form__field input,
.bm-contact-form__field select,
.bm-contact-form__field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--bm-line); border-radius: var(--bm-radius);
  font: inherit; font-size: 14px; background: #fff;
}
.bm-contact-form__field input:focus,
.bm-contact-form__field textarea:focus,
.bm-contact-form__field select:focus { border-color: var(--bm-orange); outline: 0; }
.bm-contact-form__submit { border: 0; cursor: pointer; font-family: inherit; }

/* data table (dawn: size guide / standards tables) */
.bm-table-wrap {
  max-width: 1000px; margin: 0 auto; padding: 0 24px 44px; overflow-x: auto;
}
.bm-dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.bm-dtable th {
  background: var(--bm-navy); color: #fff; text-align: left;
  padding: 11px 14px; font-weight: 600;
}
.bm-dtable td { padding: 10px 14px; border-bottom: 1px solid var(--bm-line); color: var(--bm-navy); }
.bm-dtable tbody tr:nth-child(even) { background: #fafafa; }

/* downloads (dawn: main-downloads) */
.bm-downloads {
  max-width: 900px; margin: 0 auto; padding: 0 24px 44px;
  display: grid; gap: 12px;
}
.bm-dl {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg); padding: 16px 18px;
  text-decoration: none; color: inherit;
}
.bm-dl:hover { border-color: var(--bm-orange); color: inherit; }
.bm-dl__ico {
  flex: 0 0 40px; height: 40px; border-radius: 9px;
  background: var(--bm-orange-50); color: var(--bm-orange);
  display: inline-flex; align-items: center; justify-content: center;
}
.bm-dl__ico svg { width: 18px; height: 18px; }
.bm-dl__txt { flex: 1; display: flex; flex-direction: column; }
.bm-dl__txt strong { font-size: 14.5px; color: var(--bm-navy); }
.bm-dl__txt small { font-size: 12.5px; color: var(--bm-steel); }
.bm-dl__cta { font-size: 13px; font-weight: 600; color: var(--bm-orange); }

/* stats (dawn: about / wholesale stat rows) */
.bm-stats {
  max-width: 1000px; margin: 0 auto; padding: 8px 24px 44px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.bm-stat {
  background: linear-gradient(160deg,#1b2547 0%,#111a38 100%);
  border: 1px solid #232f5c; border-radius: var(--bm-radius-lg);
  padding: 22px; text-align: center; color: #fff;
}
.bm-stat__n { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.bm-stat__l {
  display: block; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .07em; color: rgba(255,255,255,.7); margin-top: 8px;
}

/* cta band */
.bm-cta-band {
  max-width: 1200px; margin: 0 auto 48px;
  background: var(--bm-navy); color: #fff;
  border-radius: var(--bm-radius-lg);
  padding: 32px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.bm-cta-band h2 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.bm-cta-band p { color: rgba(255,255,255,.8); font-size: 14px; margin: 0; }

@media (max-width: 900px) {
  .bm-topics { grid-template-columns: repeat(2, 1fr); }
  .bm-stats { grid-template-columns: repeat(2, 1fr); }
  .bm-contact-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bm-topics { grid-template-columns: 1fr; }
  .bm-cta-band { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Header — mirrors dawn sections/header.liquid
   1 .bm-announce   announcement bar
   2 .bm-top-nav    icon nav (dropdown + B2B badge)
   3 .bm-menubar    dark sticky bar + mega category panel
   ============================================================ */
.bm-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- 1. announcement (dawn .bm-announce) --- */
.bm-announce {
  background: var(--bm-orange);
  color: #fff;
  font-size: 13px;
}
.bm-announce__inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 7px 24px; text-align: center;
}
.bm-announce__inner a { color: #fff; font-weight: 600; text-decoration: underline; }

/* --- 2. top nav with icons (dawn .bm-top-nav) --- */
.bm-top-nav {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.bm-nav-item { position: relative; }
.bm-top-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 12px;
  color: var(--bm-navy); text-decoration: none;
  font-size: 13.5px; font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.bm-top-nav__link:hover { color: var(--bm-orange); border-bottom-color: var(--bm-orange); }
.bm-nav-ico { width: 17px; height: 17px; flex: 0 0 17px; }
.bm-top-nav__link .caret { width: 13px; height: 13px; opacity: .6; }
.bm-nav-badge {
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  padding: 1px 5px; border-radius: 3px; line-height: 1.5;
  background: var(--bm-orange); color: #fff;
}
/* dropdown */
.bm-top-nav__drop {
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  box-shadow: 0 12px 28px rgba(17,24,39,.12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.bm-nav-item.has-dropdown:hover .bm-top-nav__drop,
.bm-nav-item.has-dropdown:focus-within .bm-top-nav__drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.bm-top-nav__drop li a {
  display: block; padding: 8px 12px; border-radius: var(--bm-radius);
  font-size: 13px; color: var(--bm-navy); text-decoration: none;
}
.bm-top-nav__drop li a:hover { background: var(--bm-orange-50); color: var(--bm-orange); }

/* --- 3. dark menubar (dawn .bm-menubar) --- */
.bm-menubar {
  background: var(--bm-navy);
  position: relative;
  z-index: 70;
}
.bm-menubar__inner {
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
/* Shop Categories button + mega */
.bm-mega { position: relative; flex: 0 0 auto; }
.bm-cat-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bm-orange); color: #fff; border: 0;
  padding: 13px 16px; font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.bm-cat-toggle:hover { background: var(--bm-orange-600); color: #fff; }
.bm-cat-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.bm-cat-toggle__bars i { display: block; width: 15px; height: 2px; background: #fff; border-radius: 1px; }

/* mega panel */
.bm-catpanel {
  position: absolute; top: 100%; left: 0; z-index: 80;
  width: 880px; max-width: calc(100vw - 48px);
  background: #fff; border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  box-shadow: 0 18px 40px rgba(17,24,39,.16);
  overflow: hidden;
  display: none;
}
.bm-catpanel.is-open { display: block; }
.bm-catnav__topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; background: var(--bm-navy); color: #fff;
}
.bm-catnav__topbar-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bm-catnav__topbar-all { color: #fff; font-size: 12.5px; text-decoration: none; opacity: .85; }
.bm-catnav__topbar-all:hover { color: #fff; opacity: 1; text-decoration: underline; }
.bm-catnav { display: grid; grid-template-columns: 240px 1fr; min-height: 320px; }
.bm-catnav__list { margin: 0; padding: 8px; list-style: none; border-right: 1px solid var(--bm-line); background: #fafafa; }
.bm-catnav__item { }
.bm-catnav__primary {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--bm-radius);
  color: var(--bm-navy); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.bm-catnav__primary small { color: var(--bm-steel); font-size: 11px; font-weight: 500; }
.bm-catnav__caret { width: 13px; height: 13px; margin-left: auto; opacity: .35; }
.bm-catnav__item:hover .bm-catnav__primary,
.bm-catnav__item.is-active .bm-catnav__primary { background: var(--bm-orange-50); color: var(--bm-orange); }
.bm-catnav__item:hover .bm-catnav__caret,
.bm-catnav__item.is-active .bm-catnav__caret { opacity: 1; }
/* right pane */
.bm-catnav__pane { padding: 16px 18px; position: relative; }
.bm-catnav__sub { display: none; }
.bm-catnav__sub.is-active { display: block; }
.bm-catnav__subhead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--bm-line);
}
.bm-catnav__subhead strong { font-size: 15px; }
.bm-catnav__subhead strong a { color: var(--bm-navy); text-decoration: none; }
.bm-catnav__subhead strong a:hover { color: var(--bm-orange); }
.bm-catnav__viewall { font-size: 12.5px; color: var(--bm-orange); text-decoration: none; font-weight: 600; }
.bm-catnav__subgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; }
.bm-catnav__link {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--bm-navy); text-decoration: none;
  padding: 5px 0;
}
.bm-catnav__link:hover { color: var(--bm-orange); }
.bm-catnav__dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--bm-orange); flex: 0 0 4px;
}
.bm-catnav__chips { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.bm-catnav__chip {
  font-size: 11.5px; font-weight: 600; color: var(--bm-navy);
  background: #f3f4f6; border: 1px solid var(--bm-line);
  border-radius: 20px; padding: 4px 11px; text-decoration: none;
}
.bm-catnav__chip:hover { border-color: var(--bm-orange); color: var(--bm-orange); }
/* promo cards inside the panel */
.bm-catnav__promo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--bm-line);
}
.bm-catnav__promo-card {
  display: block; padding: 12px 14px; border-radius: var(--bm-radius);
  background: linear-gradient(160deg,#1b2547 0%,#111a38 100%);
  color: #fff; text-decoration: none;
}
.bm-catnav__promo-card:hover { color: #fff; }
.bm-catnav__promo-card strong { display: block; font-size: 13px; margin-bottom: 2px; }
.bm-catnav__promo-card span { font-size: 11.5px; color: rgba(255,255,255,.7); }

/* menubar search */
.bm-menubar__search {
  flex: 1; display: flex; align-items: stretch; gap: 0; min-width: 0;
  background: #fff; border-radius: var(--bm-radius); overflow: hidden;
}
.bm-menubar__select {
  border: 0; border-right: 1px solid var(--bm-line);
  padding: 0 10px; font: inherit; font-size: 12.5px;
  background: #f9fafb; color: var(--bm-navy); max-width: 160px;
}
.bm-menubar__input {
  flex: 1; min-width: 0; border: 0; padding: 10px 12px;
  font: inherit; font-size: 13.5px;
}
.bm-menubar__input:focus { outline: 0; }
.bm-menubar__btn {
  border: 0; background: var(--bm-orange); color: #fff;
  padding: 0 20px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.bm-menubar__btn:hover { background: var(--bm-orange-600); }

/* WhatsApp */
.bm-menubar__wa {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.bm-menubar__wa svg { width: 18px; height: 18px; color: #25D366; }
.bm-menubar__wa:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1100px) {
  .bm-menubar__inner { flex-wrap: wrap; }
  .bm-menubar__search { order: 3; width: 100%; }
  .bm-catnav { grid-template-columns: 190px 1fr; }
}
@media (max-width: 700px) {
  .bm-top-nav { overflow-x: auto; flex-wrap: nowrap; }
  .bm-catnav { grid-template-columns: 1fr; }
  .bm-catnav__list { border-right: 0; border-bottom: 1px solid var(--bm-line); }
  .bm-catnav__subgrid { grid-template-columns: repeat(2, 1fr); }
  .bm-menubar__wa span { display: none; }
}

/* ==================================================================
   PDP 复刻 dawn main-product
   对照 dawn: sections/main-product.liquid + snippets/product-media.liquid
   + snippets/product-taobao-buy.liquid
   1) 竖排缩略图  2) hover zoom 提示  3) 数量 +/- 步进器
   4) 库存 in/out 标记  5) 加购旁的次按钮（询价）
   ================================================================== */

/* --- 1) 竖排缩略图（dawn: .pdp__gallery--vertical） --- */
.woocommerce div.product div.images.woocommerce-product-gallery {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  flex: 1 1 auto;
  min-width: 0;
}
.woocommerce div.product .flex-control-thumbs {
  order: -1;
  display: flex;
  flex-direction: column;
  flex: 0 0 84px;
  width: 84px;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.woocommerce div.product .flex-control-thumbs li {
  float: none;
  width: 84px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.woocommerce div.product .flex-control-thumbs li img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  opacity: .85;
  transition: border-color .15s ease, opacity .15s ease;
}
.woocommerce div.product .flex-control-thumbs li img:hover { opacity: 1; }
.woocommerce div.product .flex-control-thumbs li img.flex-active {
  border-color: var(--bm-orange);
  opacity: 1;
}

/* --- 2) hover zoom 提示（dawn: .pdp__zoom-hint） --- */
.bm-zoom-wrap { position: relative; overflow: hidden; border-radius: var(--bm-radius-lg); }
.bm-zoom-wrap img { transition: transform .35s ease; }
.bm-zoom-wrap:hover img { transform: scale(1.6); }
.bm-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  font-size: 11.5px;
  pointer-events: none;
}
.bm-zoom-hint svg { width: 13px; height: 13px; }

/* --- 3) 数量步进器（dawn: .qty__btn） --- */
.bm-qty { display: inline-flex; align-items: stretch; }
.bm-qty__btn {
  width: 34px;
  border: 1px solid var(--bm-line);
  background: #fff;
  color: var(--bm-navy);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.bm-qty__btn:hover { background: var(--bm-orange-50); border-color: var(--bm-orange); }
.bm-qty .qty {
  width: 58px !important;
  text-align: center;
  border: 1px solid var(--bm-line);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  -moz-appearance: textfield;
}
.bm-qty .qty::-webkit-outer-spin-button,
.bm-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- 4) 库存标记（dawn: .ptb-stock--in / --out） --- */
.woocommerce div.product p.stock { font-size: 13px; }
.woocommerce div.product p.stock.in-stock::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--bm-success);
}
.woocommerce div.product p.stock.out-of-stock::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--bm-danger);
}

/* --- 5) 加购 + 询价 双按钮（dawn: btn--primary / btn--outline） --- */
.bm-pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bm-pdp-actions .single_add_to_cart_button { margin: 0 !important; }
.bm-btn-outline {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--bm-navy);
  border-radius: var(--bm-radius);
  color: var(--bm-navy);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  background: transparent;
}
.bm-btn-outline:hover { background: var(--bm-navy); color: #fff; }

@media (max-width: 600px) {
  .woocommerce div.product div.images.woocommerce-product-gallery { flex-direction: column; }
  .woocommerce div.product .flex-control-thumbs {
    order: 0; flex-direction: row; width: 100%; flex: 1 1 auto; overflow-x: auto;
  }
}

/* --- 6) 批量下单表（dawn: product-taobao-buy） --- */
.bm-ptb { margin: 28px 0; }
.bm-ptb__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.bm-ptb__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-orange); margin-bottom: 4px; }
.bm-ptb__title { font-size: 19px; margin: 0; color: var(--bm-navy); }
.bm-ptb__hint { font-size: 12px; color: var(--bm-steel); }
.bm-ptb__scroll { overflow-x: auto; border: 1px solid var(--bm-line); border-radius: var(--bm-radius-lg); background: #fff; }
.bm-ptb__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bm-ptb__table th { background: var(--bm-navy); color: #fff; text-align: left; padding: 10px 12px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.bm-ptb__table td { padding: 10px 12px; border-top: 1px solid var(--bm-line); vertical-align: middle; }
.bm-ptb__row.is-out { opacity: .6; }
.bm-ptb__spec { font-weight: 600; color: var(--bm-navy); }
.bm-ptb__stock { font-size: 12px; padding: 3px 8px; border-radius: 20px; }
.bm-ptb__stock--in { background: #e7f8ef; color: #0f6e56; }
.bm-ptb__stock--out { background: #fdecec; color: #a32d2d; }
.bm-ptb__actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.bm-ptb__btn { padding: 12px 22px; border-radius: var(--bm-radius); font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.bm-ptb__btn--primary { background: var(--bm-orange); color: #fff; }
.bm-ptb__btn--primary:hover { background: var(--bm-orange-600); }
.bm-ptb__btn--outline { background: transparent; border-color: var(--bm-navy); color: var(--bm-navy); }
.bm-ptb__btn--outline:hover { background: var(--bm-navy); color: #fff; }

/* --- 7) Buy it now（dawn: .pdp-buybox__buynow） --- */
.bm-buynow { background: var(--bm-navy) !important; color: #fff !important; border-color: var(--bm-navy) !important; }
.bm-buynow:hover { background: #000 !important; color: #fff !important; }

/* ==================================================================
   PDP 像素级对齐 dawn
   源：assets/component-product.css（.pdp-keyinfo / .pdp-buybox）
   结构：左列 6.5fr（图册 + 详情tabs 滚动） / 右列 3.5fr（buybox sticky）
   ================================================================== */
.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 3.5fr);
  gap: 28px;
  align-items: start;
}
.woocommerce div.product div.images { grid-column: 1; min-width: 0; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1; margin-top: 20px; }
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products { grid-column: 1 / -1; }
.woocommerce div.product div.summary {
  grid-column: 2;
  min-width: 0;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  scrollbar-width: thin;
  /* buybox 卡片（dawn .pdp-buybox） */
  border: 1px solid var(--bm-line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 2px 14px rgba(20, 33, 61, .06);
  margin-bottom: 0;
}

/* 图册 = 缩略图 132px 单列 + 主图（dawn .pdp__gallery--vertical） */
.woocommerce div.product div.images.woocommerce-product-gallery { display: block; }
.woocommerce div.product .flex-control-thumbs {
  order: 0; float: left;
  width: 132px; margin: 0 16px 0 0;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 560px; overflow-y: auto; padding: 0; scrollbar-width: thin;
}
.woocommerce div.product .flex-control-thumbs li { width: 132px; height: 132px; float: none; margin: 0; padding: 0; }
.woocommerce div.product .flex-control-thumbs li img {
  width: 132px; height: 132px; object-fit: contain;
  border: 1.5px solid var(--bm-line); border-radius: 10px;
  padding: 4px; background: #fff; opacity: 1;
}
.woocommerce div.product .flex-control-thumbs li img.flex-active {
  border-color: var(--bm-orange); box-shadow: 0 0 0 1px var(--bm-orange);
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { max-height: 560px; }

/* zoom 提示（dawn .pdp__zoom-hint：白底胶囊、右下 12px） */
.bm-zoom-hint {
  right: 12px; bottom: 12px; gap: 6px; padding: 6px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .92);
  color: #6b7280; font-size: 12px;
  box-shadow: 0 1px 2px rgba(20, 33, 61, .06);
}
.bm-zoom-hint svg { width: 14px; height: 14px; }

/* 购买框内部（dawn .pdp-buybox__*） */
.woocommerce div.product div.summary .product_title { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.woocommerce div.product div.summary p.price,
.woocommerce div.product div.summary span.price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  padding: 10px 12px; margin-bottom: 12px;
  background: var(--bm-orange-50);
  border: 1px solid var(--bm-orange-50); border-radius: 6px;
}
.woocommerce div.product div.summary p.price .woocommerce-Price-amount,
.woocommerce div.product div.summary span.price .woocommerce-Price-amount {
  color: var(--bm-orange); font-weight: 800; font-size: 22px; line-height: 1;
}
.woocommerce div.product div.summary del .woocommerce-Price-amount { font-size: 13px; color: var(--bm-steel); }

/* 数量行（dawn .pdp-buybox__qtyrow：120x38） */
.bm-qty { width: 120px; height: 38px; }
.bm-qty__btn { width: 38px; height: 100%; border: 1px solid var(--bm-line); background: #fff; font-size: 18px; color: var(--bm-navy); }
.bm-qty .qty { flex: 1; width: auto !important; height: 100%; border: 1px solid var(--bm-line); border-left: 0; border-right: 0; font-size: 15px; font-weight: 600; }

/* 操作按钮（dawn .pdp-buybox__actions：两列、44px 高、22px 圆角） */
.bm-pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bm-pdp-actions .single_add_to_cart_button,
.bm-pdp-actions .bm-buynow {
  height: 44px; border-radius: 22px; font-size: 15px; font-weight: 700;
  border: none; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
}
.bm-pdp-actions .single_add_to_cart_button { background: var(--bm-orange); color: #fff; }
.bm-pdp-actions .bm-buynow { background: var(--bm-orange); color: #fff; }
.bm-pdp-actions .bm-buynow:hover { filter: brightness(1.05); }
/* 询价：虚线胶囊（dawn .pdp-buybox__quote 42px / 21px 圆角） */
.bm-pdp-actions .bm-btn-outline {
  grid-column: 1 / -1; height: 42px; border-radius: 21px;
  border: 1px dashed var(--bm-orange); background: var(--bm-orange-50);
  color: var(--bm-orange); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
/* 收藏（dawn .pdp-buybox__collect 38px / 20px 圆角） */
.bm-pdp-collect {
  grid-column: 1 / -1; margin-top: 10px; height: 38px; border-radius: 20px;
  border: 1px solid var(--bm-line); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--bm-navy); cursor: pointer;
}
.bm-pdp-collect:hover { border-color: var(--bm-orange); color: var(--bm-orange); }

/* 规格 swatch（dawn .swatch：min 46x44、1.5px 边框、选中橙） */
.bm-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.bm-swatch {
  min-width: 46px; height: 44px; padding: 0 14px; border-radius: 6px;
  border: 1.5px solid var(--bm-line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--bm-navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.bm-swatch:hover { border-color: var(--bm-navy); }
.bm-swatch.is-active { border-color: var(--bm-orange); background: var(--bm-orange-50); color: var(--bm-orange-600); }
.bm-swatch.is-disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.woocommerce div.product div.summary table.variations { margin-bottom: 12px; }
.woocommerce div.product div.summary table.variations select {
  min-width: 120px; height: 38px; border-radius: 6px; border: 1px solid var(--bm-line); padding: 0 10px;
}
.bm-vgroup__label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.bm-vgroup__label .val { color: var(--bm-steel); font-weight: 500; }

/* 详情 tabs（dawn .pdp-detailtabs） */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--bm-line); margin: 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none; background: none; margin: 0; padding: 0; border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block; padding: 12px 18px; font-weight: 600; font-size: 15px;
  color: var(--bm-steel); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--bm-orange); border-color: var(--bm-orange);
}
.woocommerce div.product .woocommerce-tabs .panel { padding: 18px 0; }

@media (max-width: 900px) {
  .woocommerce div.product { grid-template-columns: 1fr; gap: 20px; }
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce div.product .woocommerce-tabs { grid-column: 1; }
  .woocommerce div.product div.summary { position: static; max-height: none; overflow: visible; }
  .bm-pdp-actions { grid-template-columns: 1fr; }
  .woocommerce div.product .flex-control-thumbs {
    float: none; width: auto; flex-direction: row; max-height: none; overflow-x: auto; margin: 8px 0 0;
  }
  .woocommerce div.product .flex-control-thumbs li,
  .woocommerce div.product .flex-control-thumbs li img { width: 84px; height: 84px; }
}

/* ==================================================================
   PDP 像素级对齐 dawn main-product.liquid
   源：assets/component-product.css（.pdp-keyinfo / .pdp-buybox）

   结构（dawn 真实 + JS DOM 重组后）：
     .product (grid 6.5fr / 3.5fr, 2 行)
       ├─ .product_title          grid-column: 1 / -1, row 1 (全宽标题)
       ├─ .images                 col 1, row 2 (内含 shopcard + thumbs + main + tabs)
       └─ .summary (buybox)       col 2, row 2 sticky top:96 max-height:calc(100vh-112px)
     ↑ .pdp-keyinfo 高度 = max(left, right) → sticky 自然只到 left 列结束
     之后是 .product 外的独立 sections：.bm-ptb / .bm-faq / .related / .upsells

   关键修复（铁律 3）：
     .summary sticky 范围 = .product grid 容器高度 = max(left 高度, right buybox 高度)
     当 left 列含 detailtabs 时，sticky 会跟着 left 走到底，
     然后 .product 结束 → sticky 自然解除，不再越界到 related products。
   ================================================================== */

/* 容器 grid — 只 2 行（head + body），完全对齐 dawn main-product.liquid 结构。
   - row 1: 标题全宽 (col 1/-1)
   - row 2: 图册 + tabs 左列 (col 1) | buybox sticky 右列 (col 2)
   - .bm-ptb / .related.products / .bm-faq 都在 .product 外（独立 section） */
.woocommerce div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 3.5fr) !important;
  gap: 28px !important;
  align-items: start !important;
  grid-template-rows: auto 1fr !important;
}

/* 标题跨两列全宽（dawn .pdp-keyinfo__head / .pdp-keyinfo__title） */
.woocommerce div.product .product_title {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  color: var(--bm-navy) !important;
  padding: 0 !important;
}

/* 左列：图册 + tabs（dawn .pdp-left）— row 2 col 1
   tabs 由 JS 从 .product 移到这里（dawn .pdp-detailtabs），grid row 内部占位 */
.woocommerce div.product div.images {
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

/* 右列：buybox（dawn .pdp-right + .pdp-buybox）
   row 2 col 2 sticky top:96 max-height:calc(100vh-112px) overflow-y:auto
   sticky 范围 = .product grid 容器高度 = max(left 列高（含 tabs）, buybox 高）。
   当 left 列高 ≥ viewport-112px 时，sticky 一直持续到 left 列结束；
   .product 结束（独立 sections 不算）时 sticky 自然解除。 */
.woocommerce div.product div.summary {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  min-width: 0 !important;
  width: auto !important;
  float: none !important;
  position: sticky !important;
  top: 96px !important;
  max-height: calc(100vh - 112px) !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  border: 1px solid var(--bm-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 16px !important;
  box-shadow: 0 2px 14px rgba(20, 33, 61, .06) !important;
  margin-bottom: 0 !important;
}
/* summary 内顶部 highlights 4 项（dawn .pdp-shopcard .pdp-highlights） */
.woocommerce div.product div.summary .bm-shopcard {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 20px !important;
  padding: 10px 12px !important;
  margin: 0 0 12px !important;
  border: 1px solid var(--bm-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
}
.bm-shopcard__item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--bm-navy) !important;
}
.bm-shopcard__ico {
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: var(--bm-orange) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* summary 内价格（dawn .pdp-buybox__price） */
.woocommerce div.product div.summary p.price,
.woocommerce div.product div.summary span.price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  margin: 0 0 12px !important;
  background: var(--bm-orange-50) !important;
  border: 1px solid var(--bm-orange-50) !important;
  border-radius: 6px !important;
}
.woocommerce div.product div.summary p.price .woocommerce-Price-amount,
.woocommerce div.product div.summary span.price .woocommerce-Price-amount {
  color: var(--bm-orange) !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}
.woocommerce div.product div.summary del .woocommerce-Price-amount {
  font-size: 13px !important;
  color: var(--bm-steel) !important;
  font-weight: 500 !important;
}

/* summary 内服务 3 项（dawn .pdp-service） */
.woocommerce div.product div.summary .bm-service {
  display: grid !important;
  gap: 7px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.bm-service__row {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 13px !important;
  color: var(--bm-steel) !important;
}
.bm-service__row svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--bm-orange) !important;
  flex: 0 0 auto !important;
}

/* summary 内 stock row */
.woocommerce div.product div.summary .bm-stock-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
}
.woocommerce div.product div.summary .bm-stock-row .stock {
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
.woocommerce div.product div.summary .bm-stock-row .stock.in-stock { color: var(--bm-success) !important; }
.woocommerce div.product div.summary .bm-stock-row .stock.out-of-stock { color: var(--bm-danger) !important; }

/* 左列底部：详情 tabs（dawn .pdp-detailtabs）
   JS 把 .woocommerce-tabs 移到 .images 内，所以这里不再需要 grid 规则。
   仅给移到 .images 内的 .woocommerce-tabs 加视觉对齐。 */
.woocommerce div.product div.images .woocommerce-tabs {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin-top: 20px !important;
  padding: 0 !important;
  border: 1px solid var(--bm-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 4px !important;
  border-bottom: 2px solid var(--bm-line) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block !important;
  float: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 18px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--bm-steel) !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  text-decoration: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--bm-orange) !important;
  border-color: var(--bm-orange) !important;
}
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 18px 0 !important;
  margin: 0 !important;
  display: none !important;
}
/* WC 11 默认第一个 tab 可见（无 JS fallback）；
   JS 接管后会用 aria-hidden / active className 控制。 */
.woocommerce div.product .woocommerce-tabs .panel.active,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel--description {
  display: block !important;
}

/* 详情 tabs 内参数 grid（dawn .pdp-params 2 列） */
.bm-params {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  border: 1px solid var(--bm-line) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}
.bm-params__item {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--bm-line) !important;
  border-right: 1px solid var(--bm-line) !important;
}
.bm-params__item:nth-child(2n) { border-right: none !important; }
.bm-params__item span { font-size: 12px !important; color: var(--bm-steel) !important; }
.bm-params__item b { font-size: 14px !important; font-weight: 600 !important; color: var(--bm-navy) !important; }
.bm-params__item a { color: var(--bm-orange) !important; font-weight: 700 !important; text-decoration: none !important; }
.bm-params__item a:hover { text-decoration: underline !important; }

/* ==================================================================
   独立 full-width sections（JS 已把它们移到 .product 外）
   源：dawn main-product.liquid 的 FAQ / Bulk-buy / Related products
   现在 .bm-ptb / .related.products / .bm-faq 是 .entry 的兄弟元素，
   不能再用 .woocommerce div.product > selector（会失效），用全局 selector。
   ================================================================== */
.bm-ptb,
.related.products,
.upsells.products,
.bm-faq {
  width: 100% !important;
  max-width: var(--bm-page-max, 1280px) !important;
  margin: 40px auto !important;
  padding: 0 var(--bm-gutter, 20px) !important;
  float: none !important;
  clear: both !important;
  display: block !important;
}

/* section-head 视觉（dawn .section-head + .eyebrow + .h-section） */
.section-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  margin: 0 0 18px !important;
  gap: 12px !important;
}
.section-head .eyebrow {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: var(--bm-orange) !important;
  margin-bottom: 4px !important;
}
.section-head .h-section {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--bm-navy) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* 兼容旧 .bm-ptb__head / .bm-faq__head（没被 section-head 包装的部分） */
.bm-ptb__head,
.bm-faq__head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  margin: 0 0 18px !important;
  gap: 12px !important;
}
.bm-ptb__eyebrow,
.bm-faq__eyebrow {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: var(--bm-orange) !important;
  margin-bottom: 4px !important;
}
.bm-ptb__title,
.bm-faq__title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--bm-navy) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* FAQ 折叠（dawn .faq / .faq__item） */
.bm-faq__list {
  display: grid !important;
  gap: 12px !important;
}
.bm-faq__item {
  border: 1px solid var(--bm-line) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  transition: border-color .2s ease !important;
}
.bm-faq__item.is-open {
  border-color: var(--bm-orange) !important;
}
.bm-faq__q {
  width: 100% !important;
  text-align: left !important;
  background: none !important;
  border: none !important;
  padding: 18px 20px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  color: var(--bm-navy) !important;
  font-family: inherit !important;
}
.bm-faq__ico {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
  position: relative !important;
  transition: transform .25s !important;
}
.bm-faq__ico::before, .bm-faq__ico::after {
  content: "" !important;
  position: absolute !important;
  background: var(--bm-navy) !important;
  border-radius: 2px !important;
}
.bm-faq__ico::before { top: 10px !important; left: 4px !important; right: 4px !important; height: 2px !important; }
.bm-faq__ico::after  { left: 10px !important; top: 4px !important; bottom: 4px !important; width: 2px !important; transition: transform .25s !important; }
.bm-faq__item.is-open .bm-faq__ico::after { transform: scaleY(0) !important; }
.bm-faq__a { max-height: 0 !important; overflow: hidden !important; transition: max-height .3s ease !important; }
.bm-faq__item.is-open .bm-faq__a { max-height: 320px !important; }
.bm-faq__a-inner {
  padding: 0 20px 18px !important;
  color: var(--bm-steel) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* 详情 tabs 内 Recommended（dawn product-grid 4 列） */
.bm-related-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
.bm-related-card {
  display: block !important;
  text-decoration: none !important;
  color: var(--bm-navy) !important;
  background: transparent !important;
  padding: 0 !important;
}
.bm-related-card__img {
  background: #fff !important;
  border: 1px solid var(--bm-line) !important;
  border-radius: 8px !important;
  padding: 8px !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.bm-related-card__img img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  width: auto !important;
  height: auto !important;
}
.bm-related-card__title {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
  line-height: 1.35 !important;
  color: var(--bm-navy) !important;
}
.bm-related-card__price {
  font-size: 14px !important;
  color: var(--bm-orange) !important;
  font-weight: 700 !important;
  margin-top: 4px !important;
}

/* ===== 图册 grid 布局：缩略图 132px 在左，主图在右（dawn .pdp__gallery--vertical） ===== */
.woocommerce div.product div.images.woocommerce-product-gallery {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.woocommerce div.product div.images > .bm-shopcard {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  margin: 0 0 4px !important;
}
.woocommerce div.product .flex-control-thumbs {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 132px !important;
  max-width: 132px !important;
  max-height: 560px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow-y: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  scrollbar-width: thin !important;
}
.woocommerce div.product .flex-control-thumbs li {
  width: 132px !important;
  height: 132px !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .flex-control-thumbs li img {
  width: 132px !important;
  height: 132px !important;
  object-fit: contain !important;
  border: 1.5px solid var(--bm-line) !important;
  border-radius: 10px !important;
  padding: 4px !important;
  background: #fff !important;
  opacity: 1 !important;
}
.woocommerce div.product .flex-control-thumbs li img.flex-active {
  border-color: var(--bm-orange) !important;
  box-shadow: 0 0 0 1px var(--bm-orange) !important;
}
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  grid-column: 2 !important;
  grid-row: 2 !important;
  max-height: 560px !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  overflow: hidden !important;
}

/* 桌面端：tabs 跨满 .images 整个宽度（不再掉进 132px 缩略图列）
   修：description tab 文字塌成竖排（dawn .pdp-detailtabs 在 .pdp-left 容器内跨满） */
.woocommerce div.product div.images .woocommerce-tabs {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin-top: 20px !important;
}

.bm-pdp-actions .single_add_to_cart_button,
.bm-pdp-actions .bm-buynow {
  height: 44px !important;
  border-radius: 22px !important;
  line-height: 1 !important;
  min-height: 44px !important;
}
.bm-pdp-actions .bm-btn-outline {
  height: 40px !important;
  border-radius: 20px !important;
  line-height: 1 !important;
  min-height: 40px !important;
}
.bm-pdp-collect {
  height: 38px !important;
  border-radius: 20px !important;
  line-height: 1 !important;
  min-height: 38px !important;
}
.bm-qty { width: 120px !important; height: 38px !important; }

/* 图册右移对齐缩略图右边的 main image（grid 已在更早规则定义）；
   .images 现在是 grid 容器（不是 block），不需要 min-height hack。
   缩略图 132px + gap 16px = main 图左偏 148px。 */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  margin-left: 0 !important; /* grid column 2 自动定位，不需要 margin */
  max-height: 560px !important;
}

/* mobile: stack to 1 column */
@media (max-width: 900px) {
  .woocommerce div.product { grid-template-columns: 1fr !important; gap: 20px !important; grid-template-rows: auto auto auto !important; }
  .woocommerce div.product .product_title,
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary { grid-column: 1 !important; grid-row: auto !important; }
  .woocommerce div.product div.images .woocommerce-tabs { grid-column: 1 / -1 !important; }
  .woocommerce div.product div.summary {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .woocommerce div.product div.images {
    grid-template-columns: 84px minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .woocommerce div.product .flex-control-thumbs {
    width: 84px !important;
    max-width: 84px !important;
    flex-direction: column !important;
    max-height: 560px !important;
    overflow-y: auto !important;
  }
  .woocommerce div.product .flex-control-thumbs li,
  .woocommerce div.product .flex-control-thumbs li img { width: 84px !important; height: 84px !important; }
  .bm-params { grid-template-columns: 1fr !important; }
  .bm-params__item { border-right: none !important; }
}

/* ==================================================================== *
 *  Classic cart (woocommerce_cart shortcode) — dawn-aligned
 * ==================================================================== */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  text-align: left;
}
.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
/* Explicit placement: the notices wrapper is also a direct child of
   .woocommerce and would otherwise consume grid cell 1 and push the
   cart form into the narrow totals column. */
.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1; grid-row: 2; min-width: 0; }
.woocommerce-cart .cart-collaterals { grid-column: 2; grid-row: 2; }
@media (max-width: 900px) {
  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals { grid-column: 1; grid-row: auto; }
}
@media (max-width: 900px) {
  .woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
}
.woocommerce table.shop_table {
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: var(--bm-white);
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--bm-bg);
  font-family: var(--bm-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bm-steel);
  padding: 12px 14px;
  text-align: left;
}
.woocommerce table.shop_table td {
  border-top: 1px solid var(--bm-line);
  padding: 14px;
  vertical-align: middle;
  font-size: 14px;
}
.woocommerce table.shop_table img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--bm-radius);
  border: 1px solid var(--bm-line);
}
.woocommerce table.shop_table .product-name a {
  color: var(--bm-navy);
  font-weight: 600;
  text-decoration: none;
}
.woocommerce table.shop_table .product-name a:hover { color: var(--bm-orange); }
.woocommerce table.shop_table .amount,
.woocommerce table.shop_table .woocommerce-Price-amount { font-weight: 600; }
.woocommerce table.shop_table td.product-subtotal { font-weight: 700; color: var(--bm-orange); }
.woocommerce table.shop_table .remove {
  color: var(--bm-steel) !important;
  font-size: 18px;
  width: 26px; height: 26px;
  line-height: 24px;
  border: 1px solid var(--bm-line);
  border-radius: 50%;
  text-align: center;
}
.woocommerce table.shop_table .remove:hover { background: var(--bm-danger); color: #fff !important; border-color: var(--bm-danger); }
.woocommerce .quantity .qty {
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  padding: 8px 10px;
  width: 72px;
  font-size: 14px;
  text-align: center;
}
.woocommerce-cart .actions { text-align: left; }
.woocommerce-cart .actions .coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.woocommerce-cart .actions .coupon .input-text {
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  padding: 9px 12px;
  width: 200px;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit {
  font-family: var(--bm-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--bm-radius);
  background: var(--bm-navy);
  color: #fff;
  border: 1px solid var(--bm-navy);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover {
  background: var(--bm-orange);
  border-color: var(--bm-orange);
  color: #fff;
}
.woocommerce a.button.disabled, .woocommerce button.button:disabled,
.woocommerce button.button.disabled, .woocommerce button.button:disabled[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.woocommerce .cart-collaterals .cart_totals {
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  background: var(--bm-white);
  padding: 20px;
  box-shadow: var(--bm-shadow);
}
.woocommerce .cart-collaterals .cart_totals h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--bm-navy);
}
.woocommerce .cart-collaterals .cart_totals table.shop_table { border: 0; box-shadow: none; }
.woocommerce .cart-collaterals .cart_totals th { background: transparent; padding: 8px 0; text-transform: none; font-size: 13px; }
.woocommerce .cart-collaterals .cart_totals td { border-top: 0; padding: 8px 0; }
.woocommerce .cart-collaterals .order-total .woocommerce-Price-amount { color: var(--bm-orange); font-size: 18px; }
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: block;
  text-align: center;
  background: var(--bm-orange);
  border-color: var(--bm-orange);
  font-size: 15px;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover { background: var(--bm-orange-600); border-color: var(--bm-orange-600); }
/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-width: 3px;
  border-radius: var(--bm-radius);
  background: var(--bm-white);
  box-shadow: var(--bm-shadow);
  font-size: 14px;
  padding: 14px 18px 14px 44px !important;
}
.woocommerce-message { border-top-color: var(--bm-success); }
.woocommerce-info { border-top-color: var(--bm-navy); }
.woocommerce-error { border-top-color: var(--bm-danger); }
/* Cart empty */
.woocommerce-cart .cart-empty { text-align: center; padding: 48px 0 12px; font-size: 18px; font-weight: 600; color: var(--bm-navy); }
.woocommerce-cart .return-to-shop { text-align: center; padding-bottom: 40px; }

/* ==================================================================== *
 *  My Account wishlist endpoint (bm-wishlist plugin)
 * ==================================================================== */
.bm-wl { max-width: 780px; }
.bm-wl h2 { font-size: 20px; font-weight: 700; color: var(--bm-navy); margin: 0 0 16px; }
.bm-wl__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  background: var(--bm-white);
  margin-bottom: 12px;
}
.bm-wl__thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--bm-radius); border: 1px solid var(--bm-line); }
.bm-wl__title { display: block; font-weight: 600; color: var(--bm-navy); text-decoration: none; font-size: 14px; }
.bm-wl__title:hover { color: var(--bm-orange); }
.bm-wl__price { font-size: 13px; color: var(--bm-steel); }
.bm-wl__add { padding: 10px 16px !important; }
.bm-wl__batch { margin: 0 0 16px; }

/* ==================================================================== *
 *  T/T slip upload (bm-b2b-pay)
 * ==================================================================== */
.bm-tt-slip {
  border: 1px dashed var(--bm-steel);
  border-radius: var(--bm-radius-lg);
  background: var(--bm-white);
  padding: 20px;
  margin-top: 24px;
  max-width: 560px;
}
.bm-tt-slip h2 { font-size: 17px; font-weight: 700; color: var(--bm-navy); margin: 0 0 8px; }
.bm-tt-slip p { font-size: 13px; color: var(--bm-steel); margin: 0 0 12px; }

/* ==================================================================== *
 *  Header layout aligned to Shopify storefront (2026-09-15)
 *  Row2: logo left + main nav centred. Row3: categories + search +
 *  account/cart/whatsapp. The old standalone search row is gone.
 * ==================================================================== */
.bm-header-main .bm-header-wrap { grid-template-columns: auto 1fr; }
.bm-header-main .bm-top-nav { justify-content: center; grid-column: 2; }
@media (max-width: 1100px) {
  .bm-header-main .bm-header-wrap { grid-template-columns: auto 1fr; }
  .bm-header-main .bm-top-nav { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
}

/* Menubar right-side: cart + sign-in (mirrors Shopify row 3) */
.bm-menubar__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #fff;
  padding: 8px;
  border-radius: var(--bm-radius);
  transition: background 0.15s ease;
}
.bm-menubar__cart:hover { background: rgba(255,255,255,0.12); }
.bm-menubar__cart svg { width: 22px; height: 22px; }
.bm-menubar__cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--bm-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border-radius: 9px;
}
.bm-menubar__account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--bm-radius);
  transition: background 0.15s ease;
}
.bm-menubar__account:hover { background: rgba(255,255,255,0.12); }
.bm-menubar__account svg { width: 19px; height: 19px; opacity: 0.85; }
.bm-menubar__account b { font-weight: 600; }
.bm-menubar__account i { font-style: normal; opacity: 0.45; }
.bm-menubar__account span { opacity: 0.8; }

/* ==================================================================== *
 *  Footer aligned to Shopify storefront (2026-09-15)
 *  Brand col: CARKEAT wordmark + blurb + email/CTA row.
 *  Columns: COMPANY / CUSTOMER SERVICE / RESOURCES.
 *  Bottom: copyright + payment badges + legal links + back-to-top.
 * ==================================================================== */
.bm-footer-logotype {
  display: inline-block;
  font-family: var(--bm-font-sans);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
}
.bm-footer-logotype span { color: var(--bm-orange); }
.bm-footer-brand p { margin-top: 14px; color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.7; }
.bm-footer-news { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.bm-footer-news input[type=email] {
  flex: 1 1 150px;
  min-width: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--bm-radius);
  padding: 11px 14px;
  color: #fff;
  font-size: 13px;
}
.bm-footer-news input[type=email]::placeholder { color: rgba(255,255,255,0.45); }
.bm-footer-news input[type=email]:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.bm-footer-news button {
  background: #fff;
  color: var(--bm-navy);
  border: 1px solid #fff;
  border-radius: var(--bm-radius);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bm-footer-news button:hover { background: var(--bm-orange); border-color: var(--bm-orange); color: #fff; }
.bm-footer .bm-footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.bm-footer .bm-footer-legal a { color: rgba(255,255,255,0.55); font-size: 12px; text-decoration: none; }
.bm-footer .bm-footer-legal a:hover { color: #fff; }
.bm-footer-top {
  position: absolute;
  right: 28px;
  bottom: 52px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--bm-navy);
  border-radius: var(--bm-radius);
  font-size: 18px;
  text-decoration: none;
  box-shadow: var(--bm-shadow-md);
}
.bm-footer-top:hover { background: var(--bm-orange); color: #fff; }
.bm-footer { position: relative; }
.bm-footer .bm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==================================================================== *
 *  Taobao-style cart UX (2026-09-15)
 * ==================================================================== */
.bm-cart-strip {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bm-orange-50);
  border: 1px solid #fed7aa;
  border-radius: var(--bm-radius-lg);
  margin-bottom: 18px;
}
.bm-cart-strip span { font-size: 12.5px; color: var(--bm-orange-600); display: inline-flex; align-items: center; gap: 7px; }
.bm-cart-strip b { font-size: 15px; }

.woocommerce-cart table.shop_table td.product-name .bm-cart-tier { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.bm-cart-tier__on {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #067a52;
  background: #d9f5ec;
  border: 1px solid #9fe1cb;
  border-radius: 4px;
  padding: 3px 8px;
  width: fit-content;
}
.bm-cart-tier__next {
  display: inline-block;
  font-size: 12px;
  color: var(--bm-orange-600);
  background: var(--bm-orange-50);
  border: 1px dashed var(--bm-orange);
  border-radius: 4px;
  padding: 3px 8px;
  width: fit-content;
}
.bm-cart-line-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bm-cart-line-actions .remove { text-indent: 0; }
.bm-cart-wish { font-size: 12.5px; color: var(--bm-steel); text-decoration: none; white-space: nowrap; }
.bm-cart-wish:hover { color: var(--bm-orange); }

/* Sticky checkout bar */
.bm-cart-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--bm-line);
  border-top: 2px solid var(--bm-orange);
  border-radius: var(--bm-radius-lg);
  box-shadow: 0 -4px 18px rgba(17,24,39,0.08);
  padding: 14px 20px;
  margin: 20px 0 8px;
}
.bm-cart-bar__continue { font-size: 13.5px; color: var(--bm-navy); text-decoration: none; font-weight: 600; }
.bm-cart-bar__continue:hover { color: var(--bm-orange); }
.bm-cart-bar__sum { font-size: 14px; color: var(--bm-steel); }
.bm-cart-bar__sum b { color: var(--bm-orange); font-size: 19px; font-weight: 800; }
.bm-cart-bar__checkout {
  background: var(--bm-orange);
  border-color: var(--bm-orange);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: var(--bm-radius);
  text-decoration: none;
}
.bm-cart-bar__checkout:hover { background: var(--bm-orange-600); border-color: var(--bm-orange-600); }

/* Empty-cart picks */
.bm-cart-empty-guide { margin-top: 24px; }
.bm-cart-empty-guide h3 { font-size: 17px; font-weight: 700; color: var(--bm-navy); margin: 0 0 14px; }
.bm-cart-empty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .bm-cart-empty-grid { grid-template-columns: repeat(2, 1fr); } }
.bm-cart-empty-card {
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  background: #fff;
  padding: 12px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.bm-cart-empty-card:hover { box-shadow: var(--bm-shadow-md); transform: translateY(-2px); }
.bm-cart-empty-card__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--bm-radius); }
.bm-cart-empty-card__name { font-size: 13px; color: var(--bm-navy); font-weight: 600; margin-top: 8px; line-height: 1.4; }
.bm-cart-empty-card__price { font-size: 13px; color: var(--bm-orange); font-weight: 700; margin-top: 4px; }
.bm-cart-empty-more { margin-top: 18px; }

/* Info cards under totals */
.bm-cart-info { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bm-cart-info__card {
  border: 1px solid var(--bm-line);
  border-left: 3px solid var(--bm-orange);
  border-radius: var(--bm-radius);
  background: #fff;
  padding: 12px 14px;
}
.bm-cart-info__card b { font-size: 13px; color: var(--bm-navy); }
.bm-cart-info__card p { font-size: 12.5px; color: var(--bm-steel); margin: 5px 0 0; line-height: 1.55; }
.bm-cart-info__card a { color: var(--bm-orange); }

/* Cross-sells heading */
.woocommerce-cart .cross-sells > h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--bm-navy);
  margin: 34px 0 14px;
}

/* Cart table column widths (prevent name column collapsing) */
.woocommerce-cart table.shop_table td.product-thumbnail { width: 88px; }
.woocommerce-cart table.shop_table td.product-name { min-width: 260px; }
.woocommerce-cart table.shop_table td.product-name a { display: block; line-height: 1.5; }
.woocommerce-cart table.shop_table img { display: block; }
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal { white-space: nowrap; }

/* ==================================================================== *
 *  Layout hardening (2026-09-15) — no overlaps, uniform page width,
 *  compact rhythm. Fixes: sticky bar covering table, cart columns
 *  overlapping, uneven page widths.
 * ==================================================================== */

/* 1. Cart two-column: flex (cannot overlap), table side shrinks safely */
.woocommerce-cart .woocommerce {
  display: flex !important;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: clip;
}
.woocommerce-cart .woocommerce-notices-wrapper { width: 100%; flex: 0 0 100%; }
.woocommerce-cart .woocommerce-cart-form { flex: 1 1 0; min-width: 0; }
.woocommerce-cart .cart-collaterals { flex: 0 0 340px; width: 340px; }
@media (max-width: 900px) {
  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals { flex: 1 1 100%; width: 100%; }
}

/* 2. Checkout bar: fixed full-width bottom dock (true taobao style),
    never floats over the table content */
.bm-cart-bar {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  max-width: none !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  margin: 0 !important;
  padding: 12px max(24px, calc((100% - 1200px) / 2)) !important;
  box-shadow: 0 -6px 20px rgba(17,24,39,0.12) !important;
}
body.woocommerce-cart { padding-bottom: 92px !important; }

/* 3. Uniform page width everywhere */
.bm-container,
.bm-header-wrap,
.bm-footer-wrap,
.bm-nav-inner { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* 4. Compact, consistent section rhythm (no giant gaps) */
.woocommerce-cart .bm-cart-strip { margin-bottom: 16px; }
.woocommerce-cart .entry-content,
.woocommerce-cart #content { padding-bottom: 0 !important; }
.woocommerce-cart .bm-cart-info { margin-top: 14px; }
.woocommerce-cart .cross-sells { margin-bottom: 0; }
.woocommerce-cart .bm-cart-bar + * { clear: both; }

/* 5. Global overflow protection (nothing can push page wide) */
.entry-content img,
.entry-content table,
.bm-cart-empty-grid { max-width: 100%; }
.woocommerce-cart .woocommerce-cart-form table.shop_table { table-layout: auto; }

/* 6. Global no-horizontal-scroll guard */
html, body { overflow-x: hidden; }

/* 7. Header dropdown must float above the dark menubar (z 60 < 70 bug).
      .bm-header-main creates a stacking context — its z-index must exceed
      the menubar's (70) or the dropdown's own z90 never escapes it. */
.bm-top-nav__drop { z-index: 90 !important; }
.bm-header-main { position: relative; z-index: 80; }

/* 8. Drop-down opens downward and directly covers the dark menubar
      (z 90 > 70, per user 2026-09-15: no hover bridge, no offset). */

/* 10. Anchor the dropdown to its nav item (relative restored — removing
      it in block 8 made the panel drift to the container bottom) */
.bm-top-nav .bm-nav-item.has-dropdown { position: relative; }
.bm-header-main .bm-top-nav__drop { position: absolute !important; top: 100% !important; left: 0 !important; }

/* ==================================================================== *
 *  1688-style batch 1 (2026-09-15)
 * ==================================================================== */
/* Card tier price range + MOQ */
.bm-card-tier { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 2px; }
.bm-card-tier__range { font-size: 15px; font-weight: 700; color: var(--bm-orange); }
.bm-card-tier__range em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--bm-steel); }
.bm-card-tier__moq {
  font-size: 11px;
  color: #067a52;
  background: #d9f5ec;
  border-radius: 3px;
  padding: 2px 6px;
  width: fit-content;
}

/* Catalog ordering toolbar (1688-style strip) */
.woocommerce .woocommerce-ordering { margin-bottom: 14px; }
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  padding: 9px 34px 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bm-navy);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none'/></svg>") no-repeat right 12px center;
  appearance: none;
  cursor: pointer;
}

/* Recently viewed strip */
.bm-recent { margin: 34px 0 0; max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 24px; }
.bm-recent__title { font-size: 17px; font-weight: 700; color: var(--bm-navy); margin: 0 0 12px; }
.bm-recent__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.bm-recent-card {
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  background: #fff;
  padding: 8px;
  text-decoration: none;
  display: block;
}
.bm-recent-card:hover { border-color: var(--bm-orange); }
.bm-recent-card__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.bm-recent-card__name { font-size: 12px; color: var(--bm-navy); line-height: 1.4; margin-top: 6px; }
.bm-recent-card__price { font-size: 12px; color: var(--bm-orange); font-weight: 700; margin-top: 3px; }

/* Sales trust toast (desktop) */
.bm-toast {
  position: fixed;
  left: 24px;
  bottom: 96px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--bm-shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.bm-toast.is-visible { opacity: 1; transform: translateY(0); }
.bm-toast__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bm-success); flex-shrink: 0; }
.bm-toast__text { font-size: 13px; color: var(--bm-navy); }
.bm-toast__text b { color: var(--bm-orange); }

/* Mobile bottom 5-grid nav */
.bm-mnav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  background: #fff;
  border-top: 1px solid var(--bm-line);
  box-shadow: 0 -4px 16px rgba(17,24,39,0.08);
}
.bm-mnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 10px;
  color: var(--bm-steel);
  text-decoration: none;
  font-size: 11px;
  position: relative;
}
.bm-mnav a svg { width: 22px; height: 22px; }
.bm-mnav__quote svg { color: var(--bm-orange); }
.bm-mnav__quote span { color: var(--bm-orange); font-weight: 600; }
.bm-mnav__count {
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -22px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--bm-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .bm-mnav { display: flex; }
  body:not(.woocommerce-cart) { padding-bottom: 58px; }
  .bm-toast { display: none; }
}

/* ==================================================================== *
 *  PDP buybox fixed-until-recently-viewed + meta removal (2026-09-16)
 * ==================================================================== */
.woocommerce div.product .product_meta { display: none !important; }
.woocommerce div.product div.summary.is-fixed {
  position: fixed !important;
  top: 96px !important;
  z-index: 60;
  max-height: calc(100vh - 130px) !important;
  overflow-y: auto !important;
  box-shadow: 0 8px 28px rgba(20,33,61,0.14) !important;
}

/* ==================================================================== *
 *  PDP Shopify-style two-column independent scroll (2026-09-16)
 *  Viewport-locked: left col (shopcard+gallery+tabs) scrolls on its
 *  own, right buybox stays put; page continues after left col ends.
 * ==================================================================== */
@media (min-width: 1025px) {
  .woocommerce div.product {
    height: calc(100vh - 96px);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }
  .woocommerce div.product div.images {
    grid-row: 1 / -1;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
  }
  .woocommerce div.product div.summary {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    grid-row: 1 / -1;
    scrollbar-width: thin;
  }
}

/* ==================================================================== *
 *  REVERT to Shopify-theme PDP architecture (2026-09-16):
 *  .pdp-right standard sticky (mirrors _ref/dawn-src component-product.css
 *  ".pdp-right { position: sticky; top: calc(var(--header-h) + 16px);
 *  max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto }")
 *  — removes last night's viewport-locked two-column scroll, and fixes
 *  sticky breakage caused by body overflow-x:hidden.
 * ==================================================================== */
:root { --bm-header-h: 60px; }
html, body { overflow-x: clip !important; }
@media (min-width: 1025px) {
  .woocommerce div.product {
    height: auto !important;
    overflow: visible !important;
    grid-template-rows: none !important;
    align-items: start !important;
  }
  .woocommerce div.product div.images {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    grid-row: auto !important;
    padding-right: 0;
  }
  .woocommerce div.product div.summary {
    position: sticky !important;
    top: calc(var(--bm-header-h) + 16px) !important;
    max-height: calc(100vh - var(--bm-header-h) - 32px) !important;
    overflow-y: auto !important;
    height: auto !important;
    grid-row: auto !important;
    align-self: start !important;
  }
}

/* ==================================================================== *
 *  Taobao-style endless reco feed in buy box (2026-09-16)
 * ==================================================================== */
.bm-reco { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bm-line); }
.bm-reco__title { font-size: 15px; font-weight: 700; color: var(--bm-navy); margin: 0 0 10px; }
.bm-reco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bm-reco-card {
  border: 1px solid var(--bm-line);
  border-radius: 8px;
  padding: 8px;
  text-decoration: none;
  display: block;
  background: #fff;
  transition: border-color 0.15s ease;
}
.bm-reco-card:hover { border-color: var(--bm-orange); }
.bm-reco-card__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.bm-reco-card__name { font-size: 12px; color: var(--bm-navy); line-height: 1.4; margin-top: 6px; }
.bm-reco-card__price { font-size: 13px; color: var(--bm-orange); font-weight: 700; margin-top: 3px; }
.bm-reco-more { text-align: center; font-size: 12px; color: var(--bm-steel); padding: 10px 0 2px; }

/* ==================================================================== *
 *  Buy box two-row compact layout (2026-09-16)
 *  row1: qty + Add to cart + Buy it now
 *  row2: Request a quote + Add to wishlist
 * ==================================================================== */
.woocommerce div.product form.cart {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.woocommerce div.product form.cart .bm-qty { grid-column: 1; width: 104px; height: 34px; }
.woocommerce div.product form.cart .bm-qty__btn { width: 30px; font-size: 15px; }
.woocommerce div.product form.cart .bm-qty .qty { font-size: 13px; }
.woocommerce div.product form.cart .single_add_to_cart_button { grid-column: 2; }
.bm-pdp-actions { display: contents !important; }
.woocommerce div.product form.cart .bm-buynow { grid-column: 3; }
.woocommerce div.product form.cart .bm-btn-outline { grid-column: 1 / 3; }
.woocommerce div.product form.cart .bm-pdp-collect { grid-column: 3; margin-top: 0; }
/* compact sizes (two-row adaptation) */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .bm-buynow { height: 38px; border-radius: 19px; font-size: 13px; }
.woocommerce div.product form.cart .bm-btn-outline { height: 38px; border-radius: 19px; font-size: 13px; }
.woocommerce div.product form.cart .bm-pdp-collect { height: 38px; border-radius: 19px; font-size: 12px; }
/* tier table fully removed from PDP right column */
.bm-tier-table { display: none !important; }
/* buynow carries .bm-btn-outline too — exclude it from the quote's col span */
.woocommerce div.product form.cart .bm-btn-outline:not(.bm-buynow) { grid-column: 1 / 3; }
.woocommerce div.product form.cart .bm-buynow { grid-column: 3 !important; }

/* ==================================================================== *
 *  FINAL buy box layout (2026-09-16 user correction):
 *  qty + Add to cart row = UNCHANGED (original flow);
 *  only the 3 buttons (.bm-pdp-actions) compact into two rows:
 *    row1: Buy it now | Request a quote
 *    row2: Add to wishlist (full width)
 * ==================================================================== */
.woocommerce div.product form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  grid-template-columns: none !important;
  align-items: center;
}
.woocommerce div.product form.cart .bm-qty { grid-column: auto !important; width: 120px !important; height: 38px !important; }
.woocommerce div.product form.cart .bm-qty__btn { width: 38px !important; font-size: 18px !important; }
.woocommerce div.product form.cart .bm-qty .qty { font-size: 15px !important; }
.woocommerce div.product form.cart .single_add_to_cart_button { grid-column: auto !important; }
.bm-pdp-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}
.bm-pdp-actions .bm-buynow { grid-column: auto !important; height: 38px !important; border-radius: 19px !important; font-size: 13px !important; }
.bm-pdp-actions .bm-btn-outline { grid-column: auto !important; height: 38px !important; border-radius: 19px !important; font-size: 13px !important; }
.bm-pdp-actions .bm-pdp-collect { grid-column: 1 / -1 !important; height: 34px !important; margin-top: 0 !important; font-size: 12px !important; }
/* actions container takes the full row below qty+Add-to-cart */
.bm-pdp-actions { flex: 1 1 100% !important; }
.bm-pdp-actions .bm-buynow { white-space: nowrap; }
.bm-pdp-actions .bm-btn-outline { white-space: nowrap; }
/* FINAL: explicit grid areas — qty/ATC row untouched; 3 buttons in 2 rows */
.woocommerce div.product form.cart {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
}
.woocommerce div.product form.cart .bm-qty { grid-row: 1 !important; grid-column: 1 !important; }
.woocommerce div.product form.cart .single_add_to_cart_button { grid-row: 1 !important; grid-column: 2 !important; }
.bm-pdp-actions {
  grid-row: 2 !important;
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  flex: none !important;
}
.bm-pdp-actions .bm-buynow { grid-column: auto !important; grid-row: auto !important; height: 40px !important; }
.bm-pdp-actions .bm-btn-outline { grid-column: auto !important; grid-row: auto !important; height: 40px !important; }
.bm-pdp-actions .bm-pdp-collect { grid-column: 1 / -1 !important; grid-row: auto !important; height: 36px !important; margin-top: 0 !important; }
/* FINAL v2: grid-areas layout inside .bm-pdp-actions
   row1: qty | Add to cart | Buy it now
   row2: Request a quote | Add to wishlist            */
.bm-pdp-actions {
  display: grid !important;
  grid-template-columns: auto 1fr 1fr !important;
  grid-template-areas:
    "qty atc buy"
    "quote wl wl" !important;
  gap: 8px !important;
  align-items: center !important;
  width: 100% !important;
  flex: none !important;
  grid-row: auto !important;
  grid-column: auto !important;
}
.woocommerce div.product form.cart .bm-qty { grid-area: qty !important; width: 108px !important; height: 36px !important; }
.woocommerce div.product form.cart .single_add_to_cart_button { grid-area: atc !important; height: 40px !important; }
.woocommerce div.product form.cart .bm-buynow { grid-area: buy !important; height: 40px !important; }
.woocommerce div.product form.cart .bm-btn-outline:not(.bm-buynow) { grid-area: quote !important; height: 38px !important; }
.woocommerce div.product form.cart .bm-pdp-collect { grid-area: wl !important; height: 36px !important; margin-top: 0 !important; }

/* ==================================================================== *
 *  Reco feed moved OUT of the right buy-box column (2026-09-16 user):
 *  lives at the bottom of the LEFT column (after detail tabs);
 *  wide-column adaptive grid, right column stays clean.
 * ==================================================================== */
.bm-reco { margin: 26px 0 8px; padding-top: 18px; }
.bm-reco-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.woocommerce div.product div.summary .bm-reco { display: none !important; }
/* reco spans the full left-column width (images is a gallery grid) */
.woocommerce div.product div.images .bm-reco { grid-column: 1 / -1; }

/* ==================================================================== *
 *  FIX (2026-09-16): variable-product form broken by buy-box grid.
 *  WC renders the variations form as form.cart too — the two-row grid
 *  rules squeezed the Spec/Quantity swatch rows into a narrow column.
 *  Variations form reverts to native flow; grid stays simple-form only.
 * ==================================================================== */
.woocommerce div.product form.cart.variations_form {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  gap: 0 !important;
}
.woocommerce div.product form.cart.variations_form table.variations,
.woocommerce div.product form.cart.variations_form .bm-vgroup {
  display: block !important;
  width: 100% !important;
  grid-area: auto !important;
  grid-row: auto !important;
  grid-column: auto !important;
}
.woocommerce div.product form.cart.variations_form .bm-vgroup__label {
  display: flex !important;
  justify-content: space-between !important;
  text-align: left;
}
.woocommerce div.product form.cart.variations_form .bm-swatch {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 8px 8px 0;
}
/* inside the variations form the actions block keeps the same two-row grid */
.woocommerce div.product form.cart.variations_form .bm-pdp-actions {
  display: grid !important;
  grid-template-columns: auto 1fr 1fr !important;
  grid-template-areas: "qty atc buy" "quote wl wl" !important;
  gap: 8px !important;
  margin-top: 12px;
}

/* ==================================================================== *
 *  Reco feed FINAL position: full-width strip ABOVE THE FOOTER
 *  (2026-09-16 user). Page-bottom placement, window-scroll loading.
 * ==================================================================== */
.bm-reco--prefooter {
  margin: 0;
  padding: 30px 0 38px;
  background: #fff;
  border-top: 1px solid var(--bm-line);
}
.bm-reco--prefooter .bm-reco__wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bm-reco--prefooter .bm-reco__title { font-size: 20px; margin: 0 0 16px; }
.bm-reco--prefooter .bm-reco-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
/* old placements stay dead */
.woocommerce div.product div.summary .bm-reco,
.woocommerce div.product div.images .bm-reco { display: none !important; }

/* ==================================================================== *
 *  Home hero row fixes (2026-09-16 user):
 *  1) kill the huge blank between the hero row and the next section
 *  2) auth card fills the column height — bottom edge flush with hero
 * ==================================================================== */
.bm-hero3 + .bm-section { padding-top: 24px; }
.bm-hero3 + .bm-section .bm-section-header { margin-top: 0; }
.bm-hside { min-height: 100%; }
.bm-hside .bm-hcard {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.bm-hside .bm-huser__benefits { margin-top: auto; padding-top: 10px; }

/* ==================================================================== *
 *  Hero right column: taobao-style quick grid + announcements (2026-09-16)
 *  Column packs full height — no empty space.
 * ==================================================================== */
.bm-hquick {
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  padding: 12px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 4px;
}
.bm-hquick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--bm-navy);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.bm-hquick a:hover { background: var(--bm-orange-50); color: var(--bm-orange-600); }
.bm-hquick svg { width: 19px; height: 19px; color: var(--bm-orange); }
.bm-hnews {
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bm-hnews__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 700;
  color: var(--bm-navy);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bm-line);
}
.bm-hnews__head a { font-size: 11.5px; font-weight: 500; color: var(--bm-steel); text-decoration: none; }
.bm-hnews__head a:hover { color: var(--bm-orange); }
.bm-hnews ul { list-style: none; margin: 6px 0 0; padding: 0; }
.bm-hnews li { padding: 5px 0; }
.bm-hnews li a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--bm-steel);
  text-decoration: none;
  line-height: 1.35;
}
.bm-hnews li a::before {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bm-orange);
}
.bm-hnews li a:hover { color: var(--bm-orange-600); }

/* ==================================================================== *
 *  Hero row refinements (2026-09-16 user round 2):
 *  - active slide fills the whole slider (no navy gap under the image)
 *  - left panel capped: never taller than the slider (grid stretch does
 *    the rest; inner scroll if content ever exceeds)
 * ==================================================================== */
.bm-slide.is-active { position: absolute !important; inset: 0; height: 100%; }
.bm-hs { min-height: 380px; }
.bm-hp { max-height: 100%; overflow: hidden; }

/* ==================================================================== *
 *  Buy box spacing/size standardization (2026-09-16 user round 3)
 * ==================================================================== */
.bm-pdp-actions {
  gap: 10px !important;
}
.woocommerce div.product form.cart .bm-qty { width: 110px !important; height: 40px !important; }
.woocommerce div.product form.cart .bm-qty__btn { width: 32px !important; height: 38px !important; font-size: 16px !important; }
.woocommerce div.product form.cart .bm-qty .qty { height: 36px !important; font-size: 14px !important; }
.woocommerce div.product form.cart .single_add_to_cart_button,
.bm-pdp-actions .bm-buynow,
.bm-pdp-actions .bm-btn-outline { height: 40px !important; border-radius: 20px !important; font-size: 13px !important; line-height: 1 !important; }
.bm-pdp-actions .bm-pdp-collect {
  height: 40px !important;
  border-radius: 20px !important;
  font-size: 12.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  line-height: 1 !important;
}
.bm-pdp-actions .bm-pdp-collect * { position: static !important; }
/* gallery: slides stack normalized + thumb active ring */
.flex-control-thumbs li img { border: 2px solid transparent; border-radius: 6px; transition: border-color .15s ease, opacity .15s ease; opacity: .75; }
.flex-control-thumbs li img.flex-active { border-color: var(--bm-orange); opacity: 1; }

/* ==================================================================== *
 *  PDP DESIGN SPEC (2026-09-16, approved) — tokens 4/8/12/16/24
 * ==================================================================== */
/* A. Gallery: 96px thumbs, gap 12, main square 1:1 */
.woocommerce div.product div.images.woocommerce-product-gallery {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 12px !important;
}
.woocommerce div.product .flex-control-thumbs {
  width: 96px !important;
  max-width: 96px !important;
  gap: 8px !important;
}
.woocommerce div.product .flex-control-thumbs li,
.woocommerce div.product .flex-control-thumbs li img {
  width: 96px !important;
  height: 96px !important;
  border-radius: 8px !important;
  padding: 0 !important;
}
.woocommerce div.product .flex-control-thumbs li img {
  object-fit: cover !important;
  border: 2px solid transparent !important;
  opacity: .75 !important;
}
.woocommerce div.product .flex-control-thumbs li img:hover { opacity: 1 !important; }
.woocommerce div.product .flex-control-thumbs li img.flex-active {
  border-color: var(--bm-orange) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  max-height: none !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 10px !important;
  border: 0.5px solid var(--bm-line) !important;
}
/* B. Tabs: uniform 42px, padding 16 */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 12px 16px !important;
  font-size: 13.5px !important;
}
/* C. Spec chips: 3-col grid, 40px, radius 8 (selected stays brand orange) */
.woocommerce div.product div.summary table.variations .bm-vgroup__tags,
.woocommerce div.product div.summary .bm-vgroup__tags {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}
.woocommerce div.product div.summary .bm-swatch {
  height: 40px !important;
  border-radius: 8px !important;
  justify-content: center !important;
  font-size: 12.5px !important;
}
/* Title: max 3 lines */
.woocommerce div.product div.summary .product_title {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
/* spec chips: real container class is .bm-swatches */
.woocommerce div.product div.summary .bm-swatches {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

/* gallery slides: !important wins over third-party inline styles
   (mystery script sets width/float/display inline on slides) */
.flex-viewport .woocommerce-product-gallery__image {
  display: none !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.flex-viewport .woocommerce-product-gallery__image.flex-active-slide {
  display: block !important;
}

/* hero user card: Sign in / Register compact per design spec */
.bm-huser__btns { gap: 8px !important; margin-bottom: 10px !important; }
.bm-huser__btns .bm-btn-o,
.bm-huser__btns .bm-btn-d {
  padding: 7px 0 !important;
  height: 34px !important;
  line-height: 20px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
}
.bm-huser__avatar { flex: 0 0 36px !important; height: 36px !important; }
.bm-huser__avatar svg { width: 18px !important; height: 18px !important; }
