/* ==========================================================================
   Minh Anh UX v65 — Studio Banners, Lively Depth & End-to-End B2B Journey
   Additive layer over v23/v24/v25 tokens (#F8F7F2 · #202A28 · #795B29)
   ========================================================================== */

body.ma-ux-v65 {
  --ma65-gold-accent: #987638;
  --ma65-gold-border: #d9caa8;
  --ma65-surface-warm: #f3efe6;
  --ma65-shadow-sm: 0 4px 16px rgba(32, 42, 40, 0.045);
  --ma65-shadow-md: 0 12px 32px rgba(32, 42, 40, 0.085);
  --ma65-shadow-tray: 0 16px 40px rgba(24, 24, 24, 0.22);
}

/* 1. B2B Quick-Path Navigation Bar (Fixes unstyled `ma23-nav` jammed links) */
body.ma-ux-v65 .ma65-quickbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--ma23-line);
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.ma-ux-v65 .ma65-quickbar::-webkit-scrollbar {
  display: none;
}
body.ma-ux-v65 .ma65-quickbar-label {
  flex: 0 0 auto;
  font: 700 0.75rem/16px var(--ma23-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ma23-gold);
}
body.ma-ux-v65 .ma65-quickbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
body.ma-ux-v65 .ma65-quickbar-links a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  font: 600 0.84rem/20px var(--ma23-font);
  color: var(--ma23-ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ma23-line);
  transition: background-color 220ms var(--ma23-curve), border-color 220ms var(--ma23-curve), transform 220ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-quickbar-links a:hover {
  background: var(--ma23-gold-soft);
  border-color: var(--ma65-gold-border);
  color: var(--ma23-ink);
  transform: translateY(-1px);
}
body.ma-ux-v65 .ma65-quickbar-links a[aria-current="page"] {
  background: var(--ma23-ink);
  border-color: var(--ma23-ink);
  color: var(--ma23-paper);
}

/* 2. Hero Section Upgrade — Crisp Ink Typography, Dual CTA & Studio Banner */
body.ma-ux-v65 .ma23-hero {
  grid-template-columns: 1.04fr 1fr;
  gap: 44px;
  padding-block: 44px 36px;
}
body.ma-ux-v65 .ma23-hero h1 {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--ma23-ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
body.ma-ux-v65 .ma23-hero .ma23-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ma23-gold-soft);
  border: 1px solid var(--ma65-gold-border);
  color: #63491e;
  margin-bottom: 18px;
}
body.ma-ux-v65 .ma65-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
body.ma-ux-v65 .ma65-btn-primary,
body.ma-ux-v65 .ma23-surface .ma23-button.ma65-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--ma23-ink);
  color: var(--ma23-paper);
  font: 600 1rem/24px var(--ma23-font);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(32, 42, 40, 0.16);
  transition: background-color 240ms var(--ma23-curve), transform 240ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-btn-primary:hover {
  background: #2c3a36;
  color: var(--ma23-paper);
  transform: translateY(-2px);
}
body.ma-ux-v65 .ma65-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--ma23-ink);
  background: var(--ma23-paper);
  color: var(--ma23-ink);
  font: 600 1rem/24px var(--ma23-font);
  text-decoration: none;
  transition: background-color 240ms var(--ma23-curve), transform 240ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-btn-secondary:hover {
  background: var(--ma23-gold-soft);
  border-color: var(--ma23-gold);
  color: var(--ma23-ink);
  transform: translateY(-2px);
}
body.ma-ux-v65 .ma65-hero-sublinks {
  margin: 12px 0 0;
  font: var(--ma23-sm);
  color: var(--ma23-muted);
}
body.ma-ux-v65 .ma65-hero-sublinks a {
  font-weight: 600;
  color: var(--ma23-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.ma-ux-v65 .ma23-hero-art.ma65-hero-showcase {
  display: block;
}
body.ma-ux-v65 .ma65-hero-figure {
  margin: 0;
  padding: 10px;
  background: var(--ma23-paper);
  border: 1px solid var(--ma65-gold-border);
  border-radius: 20px;
  box-shadow: var(--ma65-shadow-md);
}
body.ma-ux-v65 .ma65-hero-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ma65-surface-warm);
  aspect-ratio: 4 / 3;
}
body.ma-ux-v65 .ma65-hero-picture--wide,
body.ma-ux-v65 .ma65-hero-media:has(.ma65-hero-picture--wide) {
  aspect-ratio: 16 / 9;
}
body.ma-ux-v65 .ma65-hero-media picture,
body.ma-ux-v65 .ma65-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}
body.ma-ux-v65 .ma65-hero-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(248, 247, 242, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(152, 118, 56, 0.28);
  color: var(--ma23-ink);
  font: 600 0.78rem/18px var(--ma23-font);
}
body.ma-ux-v65 .ma65-hero-caption {
  margin: 0;
  padding: 10px 8px 4px;
  font: var(--ma23-xs);
  color: var(--ma23-muted);
}
body.ma-ux-v65 .ma65-hero-caption a {
  font-weight: 600;
  color: var(--ma23-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 3. Interactive 3-Track B2B Buyer Journey Strip */
body.ma-ux-v65 .ma65-journey-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-block: 20px 12px;
}
body.ma-ux-v65 .ma65-journey-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f2 100%);
  border: 1px solid var(--ma23-line);
  border-top: 3px solid var(--ma65-gold-accent);
  box-shadow: var(--ma65-shadow-sm);
  text-decoration: none;
  transition: transform 280ms var(--ma23-curve), box-shadow 280ms var(--ma23-curve), border-color 280ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-journey-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ma65-shadow-md);
  border-color: var(--ma65-gold-border);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-journey-step {
  font: 700 0.75rem/16px var(--ma23-font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ma23-gold);
}
body.ma-ux-v65 .ma65-journey-card strong {
  font: 700 1.08rem/26px var(--ma23-font);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-journey-card > span:nth-child(3) {
  font: var(--ma23-sm);
  color: var(--ma23-muted);
  margin-bottom: 6px;
}
body.ma-ux-v65 .ma65-journey-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.875rem/20px var(--ma23-font);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-journey-card:hover .ma65-journey-go {
  color: var(--ma23-gold);
}

/* 4. Lively Application Cards, Benefits, Centered Tagline & Connected 3 Steps */
body.ma-ux-v65 .ma23-benefit,
body.ma-ux-v65 .ma23-application,
body.ma-ux-v65 .ma23-product {
  box-shadow: var(--ma65-shadow-sm);
  transition: transform 320ms var(--ma23-curve), box-shadow 320ms var(--ma23-curve), border-color 320ms var(--ma23-curve);
}
body.ma-ux-v65 .ma23-benefit:hover,
body.ma-ux-v65 .ma23-application:hover,
body.ma-ux-v65 .ma23-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--ma65-shadow-md);
  border-color: var(--ma65-gold-border);
}
body.ma-ux-v65 .ma23-application-art {
  overflow: hidden;
  border-radius: 12px;
  background: var(--ma65-surface-warm);
}
body.ma-ux-v65 .ma23-application-art picture,
body.ma-ux-v65 .ma23-application-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 520ms var(--ma23-curve);
}
body.ma-ux-v65 .ma23-application:hover .ma23-application-art img {
  transform: scale(1.045);
}
body.ma-ux-v65 .ma23-application-art .ma23-icon-tile {
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(152, 118, 56, 0.25);
  box-shadow: 0 4px 12px rgba(32, 42, 40, 0.1);
}
body.ma-ux-v65 .ma65-app-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(32, 42, 40, 0.78);
  backdrop-filter: blur(6px);
  color: #f8f7f2;
  font: 600 0.72rem/16px var(--ma23-font);
}
body.ma-ux-v65 .ma65-editorial-note {
  margin: 16px 0 0;
  font: var(--ma23-xs);
  color: var(--ma23-muted);
}
body.ma-ux-v65 .ma65-editorial-note a {
  font-weight: 600;
  color: var(--ma23-gold);
  text-decoration: underline;
}

/* Fix misaligned Tagline Banner on Home & Hub */
body.ma-ux-v65 .ma23-tagline {
  text-align: center;
  background: linear-gradient(135deg, #202a28 0%, #2c3a36 100%);
  border: 1px solid #354540;
  border-radius: 20px;
  padding: 56px 32px;
  box-shadow: var(--ma65-shadow-md);
}
body.ma-ux-v65 .ma23-tagline [data-ma23-tagline] {
  color: #f8f7f2;
  margin-inline: auto;
}
body.ma-ux-v65 .ma23-tagline .ma23-tagline-note {
  color: #d9ded2;
  margin-inline: auto;
}

/* Equal-height connected 3-step cards */
body.ma-ux-v65 .ma23-steps {
  align-items: stretch;
  gap: 24px;
}
body.ma-ux-v65 .ma23-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ma23-paper);
  border: 1px solid var(--ma23-line);
  border-left: 4px solid var(--ma65-gold-accent);
  box-shadow: var(--ma65-shadow-sm);
}
body.ma-ux-v65 .ma23-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ma23-gold-soft);
  font: 700 1.15rem/1 var(--ma23-font);
  color: var(--ma23-gold);
  margin-bottom: 16px;
}

/* 5. Application Child Pages (`/giai-phap-bao-bi/{slug}/`) Split Banner & Checklist Cards */
body.ma-ux-v65 .ma-funnel-page .ma65-app-subhero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: 20px;
  background: var(--ma23-paper);
  border: 1px solid var(--ma65-gold-border);
  box-shadow: var(--ma65-shadow-sm);
  margin-bottom: 32px;
}
body.ma-ux-v65 .ma65-subhero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
body.ma-ux-v65 .ma65-subhero-media {
  margin: 0;
}
body.ma-ux-v65 .ma65-subhero-media picture,
body.ma-ux-v65 .ma65-subhero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}
body.ma-ux-v65 .ma65-subhero-media figcaption {
  margin-top: 8px;
  font: var(--ma23-xs);
  color: var(--ma23-muted);
}
body.ma-ux-v65 .ma-funnel-page section > ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
body.ma-ux-v65 .ma-funnel-page section > ul > li {
  position: relative;
  padding: 18px 18px 18px 44px;
  border-radius: 14px;
  background: var(--ma23-paper);
  border: 1px solid var(--ma23-line);
  box-shadow: var(--ma65-shadow-sm);
  color: var(--ma23-ink);
  font: 500 0.95rem/22px var(--ma23-font);
}
body.ma-ux-v65 .ma-funnel-page section > ul > li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ma23-gold-soft);
  color: var(--ma23-gold);
  font: 700 0.75rem/20px var(--ma23-font);
  text-align: center;
}

/* RFQ Line Item subtle remove link */
.founda-request .founda-remove-item,
button.founda-remove-item {
  background: transparent !important;
  color: #94a3b8 !important;
  border: none !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  min-height: auto !important;
  height: auto !important;
  width: auto !important;
  display: inline-block !important;
  transition: color 0.2s ease !important;
}
.founda-request .founda-remove-item:hover,
button.founda-remove-item:hover {
  color: #dc2626 !important;
  background: transparent !important;
  text-decoration: underline !important;
}

/* 6. Shop Archive (`/san-pham/`) Above-the-Fold Compaction */
.wd-page-title.without-title,
.wd-page-title .wd-nav-product-cat,
.wd-page-title .wd-btn-show-cat,
.wd-nav-product-cat {
  display: none !important;
}

body.ma-ux-v65.post-type-archive-product .wd-page-title.without-title,
body.ma-ux-v65.tax-product_cat .wd-page-title.without-title {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

body.ma-ux-v65.post-type-archive-product .wd-page-title,
body.ma-ux-v65.tax-product_cat .wd-page-title {
  padding-block: 14px 10px;
  margin-bottom: 12px;
}
body.ma-ux-v65 .ma-catalog-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 24px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--ma23-paper);
  border: 1px solid var(--ma23-line);
  box-shadow: var(--ma65-shadow-sm);
}
body.ma-ux-v65 .ma-catalog-intro .ma-eyebrow {
  width: 100%;
  margin: 0 0 -6px;
  font: 700 0.72rem/16px var(--ma23-font);
  color: var(--ma23-gold);
}
body.ma-ux-v65 .ma-catalog-intro h1 {
  font: 700 1.65rem/1.2 var(--ma23-font);
  margin: 0;
  max-width: none;
}
body.ma-ux-v65 .ma-catalog-intro p:not(.ma-eyebrow) {
  margin: 0;
  font: var(--ma23-sm);
  max-width: 640px;
  flex: 1 1 360px;
}
body.ma-ux-v65 .ma-catalog-intro .ma-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ma23-ink);
  color: var(--ma23-paper);
  font: 600 0.875rem/20px var(--ma23-font);
  text-decoration: none;
}
body.ma-ux-v65 .ma65-shop-quickstrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--ma23-soft);
  border: 1px solid var(--ma23-line);
}
body.ma-ux-v65 .ma65-shop-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
body.ma-ux-v65 .ma65-shop-pills-label {
  font: 700 0.78rem/18px var(--ma23-font);
  color: var(--ma23-muted);
  margin-right: 4px;
}
body.ma-ux-v65 .ma65-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ma23-paper);
  border: 1px solid var(--ma23-line);
  color: var(--ma23-ink);
  font: 600 0.8rem/18px var(--ma23-font);
  text-decoration: none;
  transition: background-color 200ms var(--ma23-curve), border-color 200ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-pill:hover {
  background: var(--ma23-gold-soft);
  border-color: var(--ma23-gold);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-shop-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.ma-ux-v65 .ma65-tool-link {
  font: 600 0.82rem/18px var(--ma23-font);
  color: var(--ma23-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.ma-ux-v65 .ma65-tool-link--accent {
  color: var(--ma23-gold);
}

/* `/catalog-b2b/` header & bottom PDF note compaction */
body.ma-ux-v65 .ma26-shell .ma26-resource-nav {
  display: none;
}
body.ma-ux-v65 .ma26-shell > .ma26-document.ma26-empty {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--ma23-soft);
  border: 1px dashed var(--ma23-line);
  border-radius: 12px;
}
body.ma-ux-v65 .ma26-shell > .ma26-document.ma26-empty h2 {
  font: 600 1.05rem/24px var(--ma23-font);
  margin-bottom: 4px;
}

/* 7. Process (`/quy-trinh-bao-gia/`), About & RFQ/Sample Improvements */
body.ma-ux-v65.ma25-document-page .wd-page-title {
  padding-block: 20px 16px;
  margin-bottom: 16px;
}
body.ma-ux-v65 .ma65-doc-banner {
  margin: 0 auto 24px;
  max-width: 960px;
  padding: 8px;
  background: var(--ma23-paper);
  border: 1px solid var(--ma65-gold-border);
  border-radius: 18px;
  box-shadow: var(--ma65-shadow-sm);
}
body.ma-ux-v65 .ma65-doc-banner picture,
body.ma-ux-v65 .ma65-doc-banner img {
  display: block;
  width: 100%;
  max-height: 360px;
  aspect-ratio: 20 / 9;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 12px;
}
body.ma-ux-v65 .ma65-doc-banner figcaption {
  padding: 8px 8px 2px;
  font: var(--ma23-xs);
  color: var(--ma23-muted);
}
body.ma-ux-v65 .ma65-process-layout {
  display: block;
  max-width: 960px;
  margin-inline: auto;
}
body.ma-ux-v65 .ma65-process-layout .ma25-prose > ol {
  list-style: none;
  counter-reset: ma65step;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body.ma-ux-v65 .ma65-process-layout .ma25-prose > ol > li {
  counter-increment: ma65step;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--ma23-paper);
  border: 1px solid var(--ma23-line);
  border-left: 4px solid var(--ma65-gold-accent);
  box-shadow: var(--ma65-shadow-sm);
}
body.ma-ux-v65 .ma65-process-layout .ma25-prose > ol > li::before {
  content: "Bước 0" counter(ma65step);
  display: block;
  font: 700 0.75rem/16px var(--ma23-font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ma23-gold);
  margin-bottom: 6px;
}

/* RFQ / Sample empty-state action buttons + compact header */
body.ma-ux-v65 .ma-funnel-rfq-heading h1 {
  font: 700 2rem/1.18 var(--ma23-font);
  margin-bottom: 12px;
}
body.ma-ux-v65 .founda-rfq-moq a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  margin-top: 8px;
  margin-right: 8px;
  border-radius: 8px;
  background: #c89d58;
  color: #0b0f15;
  font: 700 0.875rem/20px var(--ma23-font);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(200, 157, 88, 0.25);
  transition: all 0.2s ease;
}
body.ma-ux-v65 .founda-rfq-moq a:hover {
  background: #dfb46f;
  color: #0b0f15;
  transform: translateY(-1px);
}
body.ma-ux-v65 .founda-rfq-moq a.ma65-empty-rfp-link {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  font-weight: 600;
  box-shadow: none;
}
body.ma-ux-v65 .founda-rfq-moq a.ma65-empty-rfp-link:hover {
  border-color: #64748b;
  color: #0f172a;
  background: #f8fafc;
}

/* 8. PDP 3-Step Reassurance Strip & Generic Search Switcher */
body.ma-ux-v65 .ma65-pdp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
  padding: 12px;
  border-radius: 12px;
  background: var(--ma23-paper);
  border: 1px solid var(--ma23-line);
}
body.ma-ux-v65 .ma65-pdp-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.ma-ux-v65 .ma65-pdp-step span {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ma23-gold-soft);
  color: var(--ma23-gold);
  font: 700 0.75rem/24px var(--ma23-font);
  text-align: center;
}
body.ma-ux-v65 .ma65-pdp-step small {
  font: 500 0.78rem/16px var(--ma23-font);
  color: var(--ma23-ink);
}

body.ma-ux-v65 .ma65-search-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--ma23-gold-soft);
  border: 1px solid var(--ma65-gold-border);
}
body.ma-ux-v65 .ma65-btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ma23-ink);
  color: var(--ma23-paper);
  font: 600 0.875rem/20px var(--ma23-font);
  text-decoration: none;
}

/* 9. Sticky Floating B2B Quote Tray */
body.ma-ux-v65 .ma65-quote-tray {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 9990;
  width: min(860px, calc(100vw - 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 340ms var(--ma23-curve), opacity 260ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-quote-tray.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
body.ma-ux-v65 .ma65-quote-tray-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(24, 29, 28, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(223, 210, 175, 0.35);
  box-shadow: var(--ma65-shadow-tray);
  color: #f8f7f2;
}
body.ma-ux-v65 .ma65-quote-tray-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
body.ma-ux-v65 .ma65-quote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 8px;
  border-radius: 10px;
  background: #dfd2af;
  color: #202a28;
  font: 800 1rem/1 var(--ma23-font);
}
body.ma-ux-v65 .ma65-quote-tray-status strong {
  display: block;
  font: 700 0.92rem/20px var(--ma23-font);
  color: #ffffff;
}
body.ma-ux-v65 .ma65-quote-tray-status small {
  display: block;
  font: 400 0.76rem/16px var(--ma23-font);
  color: #cfd6d2;
}
body.ma-ux-v65 .ma65-quote-tray-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
body.ma-ux-v65 .ma65-tray-sample {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(223, 210, 175, 0.45);
  color: #f8f7f2;
  font: 600 0.84rem/20px var(--ma23-font);
  text-decoration: none;
}
body.ma-ux-v65 .ma65-tray-submit {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #dfd2af;
  color: #202a28;
  font: 700 0.86rem/20px var(--ma23-font);
  text-decoration: none;
}
body.ma-ux-v65 .ma65-tray-submit:hover {
  background: #efe5c8;
  color: #202a28;
}

/* 10. Scroll-Reveal Micro-Interactions (Progressive Enhancement) */
body.ma-ux-v65.ma65-anim-ready [data-ma65-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms var(--ma23-curve), transform 480ms var(--ma23-curve);
}
body.ma-ux-v65.ma65-anim-ready [data-ma65-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* 11. v66 Topic Visual Library Components (Home Formats, Service Strip, Sample Split Hero, News Topic Hub, Category Cards) */
.ma23-section.ma65-format-topics {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  display: block !important;
}
body.ma-ux-v65 .ma65-format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
body.ma-ux-v65 .ma65-format-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--ma23-line);
  text-decoration: none;
  color: var(--ma23-ink);
  transition: transform 240ms var(--ma23-curve), box-shadow 240ms var(--ma23-curve), border-color 240ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-format-card:hover {
  transform: translateY(-4px);
  border-color: var(--ma65-gold-border);
  box-shadow: var(--ma65-shadow-hover);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-format-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ma23-surface);
}
body.ma-ux-v65 .ma65-format-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-format-card:hover .ma65-format-media img {
  transform: scale(1.04);
}
body.ma-ux-v65 .ma65-format-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 29, 28, 0.84);
  backdrop-filter: blur(6px);
  color: #f8f7f2;
  font: 600 0.72rem/16px var(--ma23-font);
}
body.ma-ux-v65 .ma65-format-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px;
}
body.ma-ux-v65 .ma65-format-body h3 {
  margin: 0;
  font: 700 1.02rem/1.32 var(--ma23-font);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-format-body p {
  margin: 0;
  font: 400 0.86rem/1.48 var(--ma23-font);
  color: var(--ma23-muted);
  flex: 1;
}
body.ma-ux-v65 .ma65-format-go {
  margin-top: 4px;
  font: 600 0.84rem/20px var(--ma23-font);
  color: var(--ma23-gold);
}

/* Services Page 3-Card Topic Strip */
body.ma-ux-v65 .ma65-service-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 26px;
}
body.ma-ux-v65 .ma65-service-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--ma23-line);
}
body.ma-ux-v65 .ma65-service-pic {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ma23-surface);
}
body.ma-ux-v65 .ma65-service-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.ma-ux-v65 .ma65-service-card > div {
  padding: 12px 14px 14px;
}
body.ma-ux-v65 .ma65-service-tag {
  display: inline-block;
  margin-bottom: 4px;
  font: 700 0.7rem/16px var(--ma23-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ma23-gold);
}
body.ma-ux-v65 .ma65-service-card h3 {
  margin: 0 0 6px !important;
  font: 700 0.96rem/1.32 var(--ma23-font) !important;
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-service-card p {
  margin: 0 !important;
  font: 400 0.83rem/1.46 var(--ma23-font) !important;
  color: var(--ma23-muted);
}

/* Sample Request (`/yeu-cau-gui-mau/`) Split Hero */
body.ma-ux-v65 .ma65-sample-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: center;
  margin: 18px 0 24px;
  padding: 24px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbfaf6 0%, #f3efe4 100%);
  border: 1px solid var(--ma65-gold-border);
}
body.ma-ux-v65 .ma65-sample-copy h1 {
  margin: 6px 0 10px;
  font: 700 clamp(1.55rem, 2.6vw, 2.1rem)/1.2 var(--ma23-font);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-sample-copy > p:not(.ma23-eyebrow) {
  margin: 0 0 14px;
  font: 400 0.96rem/1.55 var(--ma23-font);
  color: var(--ma23-muted);
}
body.ma-ux-v65 .ma65-sample-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.ma-ux-v65 .ma65-sample-checks li {
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--ma23-line);
  font: 600 0.78rem/18px var(--ma23-font);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-sample-media {
  margin: 0;
}
body.ma-ux-v65 .ma65-sample-picture {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ma23-line);
  background: #ffffff;
}
body.ma-ux-v65 .ma65-sample-picture img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
body.ma-ux-v65 .ma65-sample-media figcaption {
  margin-top: 8px;
  font: 400 0.76rem/1.4 var(--ma23-font);
  color: var(--ma23-muted);
}

/* News & Packaging Knowledge Hub (`/tin-tuc/`) */
body.ma-ux-v65 .ma65-topic-hub {
  margin: 8px 0 28px;
}
body.ma-ux-v65 .ma65-topic-hub-head {
  max-width: 780px;
  margin-bottom: 22px;
}
body.ma-ux-v65 .ma65-topic-hub-head h2 {
  margin: 6px 0 10px;
  font: 700 clamp(1.45rem, 2.4vw, 1.95rem)/1.24 var(--ma23-font);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-topic-hub-head > p:not(.ma23-eyebrow) {
  margin: 0;
  font: 400 0.95rem/1.55 var(--ma23-font);
  color: var(--ma23-muted);
}
body.ma-ux-v65 .ma65-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
body.ma-ux-v65 .ma65-topic-card {
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--ma23-line);
  transition: transform 240ms var(--ma23-curve), box-shadow 240ms var(--ma23-curve), border-color 240ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--ma65-gold-border);
  box-shadow: var(--ma65-shadow-hover);
}
body.ma-ux-v65 .ma65-topic-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-topic-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ma23-surface);
}
body.ma-ux-v65 .ma65-topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms var(--ma23-curve);
}
body.ma-ux-v65 .ma65-topic-card:hover .ma65-topic-media img {
  transform: scale(1.04);
}
body.ma-ux-v65 .ma65-topic-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 29, 28, 0.84);
  color: #f8f7f2;
  font: 600 0.72rem/16px var(--ma23-font);
}
body.ma-ux-v65 .ma65-topic-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 18px 18px;
}
body.ma-ux-v65 .ma65-topic-body h3 {
  margin: 0;
  font: 700 1.02rem/1.34 var(--ma23-font);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-topic-body p {
  margin: 0;
  font: 400 0.86rem/1.5 var(--ma23-font);
  color: var(--ma23-muted);
  flex: 1;
}
body.ma-ux-v65 .ma65-topic-cta {
  margin-top: 4px;
  font: 600 0.84rem/20px var(--ma23-font);
  color: var(--ma23-gold);
}

/* Product Category Archive (`tax-product_cat`) Tailored Topic Card */
body.ma-ux-v65.tax-product_cat .ma-catalog-intro {
  display: none !important;
}
body.ma-ux-v65 .ma65-cat-topic-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfaf6 0%, #f4f0e6 100%);
  border: 1px solid var(--ma65-gold-border);
}
body.ma-ux-v65 .ma65-cat-topic-media {
  width: 148px;
  height: 104px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ma23-line);
  background: #ffffff;
}
body.ma-ux-v65 .ma65-cat-topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.ma-ux-v65 .ma65-cat-topic-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
body.ma-ux-v65 .ma65-cat-topic-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ma23-gold-soft);
  color: var(--ma23-gold);
  font: 700 0.72rem/18px var(--ma23-font);
}
body.ma-ux-v65 .ma65-cat-topic-count {
  font: 600 0.75rem/18px var(--ma23-font);
  color: var(--ma23-muted);
}
body.ma-ux-v65 .ma65-cat-topic-copy h1 {
  margin: 0 0 4px;
  font: 700 1.32rem/1.22 var(--ma23-font);
  color: var(--ma23-ink);
}
body.ma-ux-v65 .ma65-cat-topic-copy p {
  margin: 0;
  font: 400 0.86rem/1.44 var(--ma23-font);
  color: var(--ma23-muted);
}
body.ma-ux-v65 .ma65-cat-topic-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.ma-ux-v65 .ma65-cat-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--ma23-ink);
  color: #f8f7f2;
  font: 600 0.82rem/20px var(--ma23-font);
  text-decoration: none;
  white-space: nowrap;
}
body.ma-ux-v65 .ma65-cat-btn-primary:hover {
  background: #2b3835;
  color: #ffffff;
}
body.ma-ux-v65 .ma65-cat-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--ma23-line);
  color: var(--ma23-ink);
  font: 600 0.8rem/18px var(--ma23-font);
  text-decoration: none;
  white-space: nowrap;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  body.ma-ux-v65 .ma23-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 28px 24px;
  }
  body.ma-ux-v65 .ma65-format-grid,
  body.ma-ux-v65 .ma65-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.ma-ux-v65 .ma65-journey-strip,
  body.ma-ux-v65 .ma65-service-topics,
  body.ma-ux-v65 .ma65-sample-hero,
  body.ma-ux-v65 .ma-funnel-page .ma65-app-subhero,
  body.ma-ux-v65 .ma-funnel-page section > ul,
  body.ma-ux-v65 .ma65-process-layout .ma25-prose > ol,
  body.ma-ux-v65 .ma65-pdp-steps {
    grid-template-columns: 1fr;
  }
  body.ma-ux-v65 .ma65-cat-topic-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  body.ma-ux-v65 .ma65-cat-topic-media {
    width: 112px;
    height: 84px;
  }
  body.ma-ux-v65 .ma65-cat-topic-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 760px) {
  body.ma-ux-v65 .ma65-format-grid,
  body.ma-ux-v65 .ma65-topic-grid {
    grid-template-columns: 1fr;
  }
  body.ma-ux-v65 .ma65-sample-hero {
    padding: 16px;
    gap: 16px;
  }
  body.ma-ux-v65 .ma65-cat-topic-card {
    padding: 10px 12px;
    gap: 10px 12px;
    grid-template-columns: 88px minmax(0, 1fr);
  }
  body.ma-ux-v65 .ma65-cat-topic-media {
    width: 88px;
    height: 68px;
  }
  body.ma-ux-v65 .ma65-cat-topic-copy h1 {
    font-size: 1.12rem;
  }
  body.ma-ux-v65 .ma65-cat-topic-copy p {
    font-size: 0.78rem;
    line-height: 1.36;
  }
  body.ma-ux-v65 .ma65-cat-topic-actions > a {
    flex: 1;
  }
  body.ma-ux-v65 .ma65-hero-actions,
  body.ma-ux-v65 .ma65-subhero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  body.ma-ux-v65 .ma65-hero-actions > a,
  body.ma-ux-v65 .ma65-subhero-actions > a {
    width: 100%;
  }
  body.ma-ux-v65.post-type-archive-product .wd-nav-product-cat,
  body.ma-ux-v65.tax-product_cat .wd-nav-product-cat,
  body.ma-ux-v65 .wd-page-title .wd-nav-product-cat-wrap,
  body.ma-ux-v65 .ma-cat-toggle-bar {
    display: none !important;
  }
  body.ma-ux-v65 .ma-catalog-intro {
    padding: 12px 14px;
    gap: 8px 12px;
    margin-bottom: 10px;
  }
  body.ma-ux-v65 .ma-catalog-intro h1 {
    font-size: 1.25rem;
  }
  body.ma-ux-v65 .ma-catalog-intro p:not(.ma-eyebrow) {
    font-size: 0.82rem;
    line-height: 1.38;
  }
  body.ma-ux-v65 .ma65-shop-quickstrip {
    padding: 8px 12px;
    margin-bottom: 10px;
  }
  body.ma-ux-v65 .ma65-shop-pills-label {
    display: none;
  }
  body.ma-ux-v65 .ma65-shop-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
  }
  body.ma-ux-v65 .ma65-pill {
    flex: 0 0 auto;
  }
  body.ma-ux-v65 .ma65-quote-tray-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  body.ma-ux-v65 .ma65-quote-tray-status small {
    display: none;
  }
  body.ma-ux-v65 .ma65-quote-tray-actions {
    width: 100%;
  }
  body.ma-ux-v65 .ma65-quote-tray-actions > a {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ma-ux-v65 *,
  body.ma-ux-v65.ma65-anim-ready [data-ma65-reveal] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


/* ==========================================================================
   Minh Anh B2B Form & Visual Hierarchy Redesign (v70)
   Eliminates solid black button confusion; creates clean, distinct layers
   for Headers, Stepper, Progressive Toggles, Primary CTAs & Secondary Actions
   ========================================================================== */

/* 1. Header & Stage Eyebrow Distinction */
.founda-form-stage,
.founda-request-stage,
.ma-contact-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  background: rgba(200, 157, 88, 0.14) !important;
  color: #8a6428 !important;
  border: 1px solid rgba(200, 157, 88, 0.32) !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  margin: 0 0 10px 0 !important;
  width: fit-content !important;
}

.founda-request > header h2,
.ma-contact-cta-copy h2 {
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.01em !important;
}

.founda-request legend {
  display: block !important;
  width: 100% !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  padding-bottom: 10px !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  margin-bottom: 18px !important;
}

/* 2. Modern B2B Stepper (3-Step Progress Indicator) */
body.ma-design-v23 .founda-request .founda-stepper,
.founda-request .founda-stepper {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 20px 0 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.ma-design-v23 .founda-request .founda-stepper li,
.founda-request .founda-stepper li {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}

body.ma-design-v23 .founda-request .founda-stepper li[aria-current],
.founda-request .founda-stepper li[aria-current] {
  border-color: #c89d58 !important;
  background: rgba(200, 157, 88, 0.12) !important;
  color: #8a6428 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(200, 157, 88, 0.16) !important;
}

/* 3. Section Containers (Intake Guide & Step Cards) */
.ma26-intake-guide,
body.ma-contact-page .ma-contact-drawer-panel .ma26-intake-guide {
  background: #fdfbf7 !important;
  border: 1.5px solid #e5d8be !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

.founda-request .founda-request-step {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

/* 4. Fix Black Button Overrides: Progressive Catalog Picker Toggle */
.wp-theme-minhanh .founda-rfq button.ma-progressive-trigger--picker,
.founda-request button.ma-progressive-trigger--picker,
button.ma-progressive-trigger--picker {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 18px 0 !important;
  padding: 13px 18px !important;
  background: #f8fafc !important;
  border: 1.5px dashed #c89d58 !important;
  border-radius: 10px !important;
  color: #1e293b !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.wp-theme-minhanh .founda-rfq button.ma-progressive-trigger--picker:hover,
button.ma-progressive-trigger--picker:hover,
button.ma-progressive-trigger--picker.is-open {
  background: #ffffff !important;
  border-style: solid !important;
  border-color: #c89d58 !important;
  box-shadow: 0 6px 16px rgba(200, 157, 88, 0.2) !important;
}

.ma-progressive-trigger-icon {
  font-size: 16px !important;
  margin-right: 8px !important;
}

.ma-progressive-trigger-title {
  flex: 1 !important;
  text-align: left !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

.ma-progressive-trigger-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(200, 157, 88, 0.15) !important;
  color: #8a6428 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* 5. Fix Intake Guide Action Button ("Mô tả mẫu / nhu cầu cần tìm") */
.ma26-actions :is(a, button),
.ma26-actions > :first-child {
  background: #ffffff !important;
  border: 1.5px solid #c89d58 !important;
  color: #8a6428 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(200, 157, 88, 0.15) !important;
}

.ma26-actions :is(a, button):hover {
  background: #c89d58 !important;
  color: #0b0f15 !important;
  transform: translateY(-1px) !important;
}

/* 6. Primary CTA Buttons (Next, Submit, Send RFQ) */
.wp-theme-minhanh .founda-rfq button.founda-request-send,
.founda-request .founda-request-send,
.wp-theme-minhanh .founda-rfq button[type="submit"]:not(.founda-remove-item):not(.founda-request-update):not(.ma-btn-save-qty),
.founda-request button[type="submit"]:not(.founda-remove-item):not(.founda-request-update):not(.ma-btn-save-qty),
body.ma-design-v23 .founda-request .founda-step-controls button[data-step-next],
.founda-step-controls button[data-step-next],
.founda-step-controls button:not([data-step-back]) {
  background: #c89d58 !important;
  border: 1.5px solid #c89d58 !important;
  color: #0b0f15 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(200, 157, 88, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.wp-theme-minhanh .founda-rfq button.founda-request-send:hover,
.founda-request .founda-request-send:hover,
.wp-theme-minhanh .founda-rfq button[type="submit"]:not(.founda-remove-item):not(.founda-request-update):not(.ma-btn-save-qty):hover,
.founda-request button[type="submit"]:not(.founda-remove-item):not(.founda-request-update):not(.ma-btn-save-qty):hover,
body.ma-design-v23 .founda-request .founda-step-controls button[data-step-next]:hover,
.founda-step-controls button[data-step-next]:hover {
  background: #dfb46f !important;
  border-color: #dfb46f !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(200, 157, 88, 0.35) !important;
}

/* 7. Secondary Actions (Back button & Return to Edit trigger) */
body.ma-design-v23 .founda-request .founda-step-controls [data-step-back],
.founda-step-controls [data-step-back],
.wp-theme-minhanh .founda-rfq button[data-step-goto],
.founda-request button[data-step-goto],
.founda-rfq-edit-trigger,
.wp-theme-minhanh .founda-rfq button.ma26-selection-return,
.founda-request button.ma26-selection-return,
button.ma26-selection-return {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: all 0.2s ease !important;
}

body.ma-design-v23 .founda-request .founda-step-controls [data-step-back]:hover,
.founda-step-controls [data-step-back]:hover,
.wp-theme-minhanh .founda-rfq button[data-step-goto]:hover,
.founda-request button[data-step-goto]:hover,
.founda-rfq-edit-trigger:hover,
.wp-theme-minhanh .founda-rfq button.ma26-selection-return:hover,
button.ma26-selection-return:hover {
  border-color: #64748b !important;
  color: #0f172a !important;
  background: #f8fafc !important;
}

/* 8. List Actions ("Cập nhật danh sách", "Tiếp tục chọn mẫu", "Yêu cầu gửi mẫu") */
.wp-theme-minhanh .founda-rfq .founda-request-list-actions :is(a, button),
body.ma-design-v23 .founda-request .founda-request-list-actions :is(a, button),
.founda-request .founda-request-list-actions :is(a, button) {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.wp-theme-minhanh .founda-rfq .founda-request-list-actions :is(a, button):hover,
body.ma-design-v23 .founda-request .founda-request-list-actions :is(a, button):hover,
.founda-request .founda-request-list-actions :is(a, button):hover {
  border-color: #c89d58 !important;
  color: #8a6428 !important;
  background: #fdfbf7 !important;
}

.founda-request .ma28-list-action:nth-child(3) {
  border: 1.5px solid #e5d8be !important;
  border-radius: 12px !important;
  background: #fdfbf7 !important;
}

/* 9. Notice Box / MOQ Box */
.founda-rfq-moq,
#founda-rfq-cart {
  background: #fbf8f2 !important;
  border: 1px solid #e8dfcf !important;
  border-left: 4px solid #c89d58 !important;
  color: #5c4827 !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
}

/* 10. Form Inputs, Selects & Textareas */
.founda-request input[type="text"],
.founda-request input[type="email"],
.founda-request input[type="tel"],
.founda-request input[type="number"],
.founda-request select,
.founda-request textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 10px 14px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.founda-request input:focus,
.founda-request select:focus,
.founda-request textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #c89d58 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(200, 157, 88, 0.2) !important;
}

/* 11. Stepper Controls Container */
body.ma-design-v23 .founda-request .founda-step-controls,
.founda-request .founda-step-controls {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
}

/* 12. Progressive Advanced Options Drawer/Disclosure */
.founda-progressive-trigger,
.founda-request details.ma-progressive summary {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  cursor: pointer !important;
}

/* 13. Quick Catalog Picker Buttons & UI Elements */
.founda-picker button[data-picker-search-button],
.founda-picker button[type="submit"],
.founda-picker-search button {
  background: #c89d58 !important;
  color: #14110b !important;
  border: 1px solid #b88d48 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(200, 157, 88, 0.25) !important;
  transition: all 0.2s ease !important;
}

.founda-picker button[data-picker-search-button]:hover,
.founda-picker button[type="submit"]:hover,
.founda-picker-search button:hover {
  background: #b88d48 !important;
  color: #000000 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(200, 157, 88, 0.35) !important;
}

/* 14. B2B 3-Tier MOQ & Supply Policy (v70) */
.ma65-moq-tiers {
  margin: 36px 0 40px;
  padding: 32px 28px;
  background: var(--ma23-paper, #ffffff);
  border: 1px solid var(--ma23-line, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ma65-moq-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.ma65-moq-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c89d58;
  margin-bottom: 8px;
}

.ma65-moq-header h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.ma65-moq-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.ma65-moq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ma65-moq-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ma65-moq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #c89d58;
}

.ma65-moq-card--featured {
  background: #fffdf9;
  border-color: #c89d58;
  box-shadow: 0 4px 18px rgba(200, 157, 88, 0.12);
  position: relative;
}

.ma65-moq-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  margin-bottom: 14px;
}

.ma65-moq-badge--featured {
  background: #c89d58;
  color: #14110b;
}

.ma65-moq-spec {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.ma65-moq-val {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.ma65-moq-unit {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.ma65-moq-target {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #cbd5e1;
}

.ma65-moq-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ma65-moq-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.ma65-moq-foot a {
  color: #795b29;
  font-weight: 700;
  text-decoration: underline;
}

/* 15. Surface Finishing & Deep Processing Matrix Table (v70) */
.ma65-finishing-matrix {
  margin: 36px 0 44px;
  padding: 32px 28px;
  background: var(--ma23-paper, #ffffff);
  border: 1px solid var(--ma23-line, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ma65-matrix-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.ma65-matrix-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c89d58;
  margin-bottom: 8px;
}

.ma65-matrix-header h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.ma65-matrix-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.ma65-matrix-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ma65-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
}

.ma65-matrix-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.ma65-matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
}

.ma65-matrix-table tr:last-child td {
  border-bottom: none;
}

.ma65-matrix-table tr:hover td {
  background: #f8fafc;
}

.ma65-cell-tech {
  min-width: 160px;
}

.ma65-cell-tech strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.ma65-cell-tech small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.ma65-cell-num {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.ma65-matrix-cta {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-top: 14px;
}

.ma65-matrix-cta a {
  color: #795b29;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .ma65-moq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ma65-moq-tiers,
  .ma65-finishing-matrix {
    padding: 20px 16px;
  }
}

/* Dark & Classic Gold Themes for MOQ Tiers & Finishing Matrix */
html[data-theme="dark"] .ma65-moq-tiers,
body[data-theme="dark"] .ma65-moq-tiers,
body.ma-dark-mode .ma65-moq-tiers,
html[data-theme="dark"] .ma65-finishing-matrix,
body[data-theme="dark"] .ma65-finishing-matrix,
body.ma-dark-mode .ma65-finishing-matrix {
  background: #111722 !important;
  border-color: #233042 !important;
}

html[data-theme="dark"] .ma65-moq-header h2,
body[data-theme="dark"] .ma65-moq-header h2,
body.ma-dark-mode .ma65-moq-header h2,
html[data-theme="dark"] .ma65-matrix-header h2,
body[data-theme="dark"] .ma65-matrix-header h2,
body.ma-dark-mode .ma65-matrix-header h2,
html[data-theme="dark"] .ma65-moq-val,
body[data-theme="dark"] .ma65-moq-val,
body.ma-dark-mode .ma65-moq-val,
html[data-theme="dark"] .ma65-cell-tech strong,
body[data-theme="dark"] .ma65-cell-tech strong,
body.ma-dark-mode .ma65-cell-tech strong,
html[data-theme="dark"] .ma65-cell-num,
body[data-theme="dark"] .ma65-cell-num,
body.ma-dark-mode .ma65-cell-num {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .ma65-moq-desc,
body[data-theme="dark"] .ma65-moq-desc,
body.ma-dark-mode .ma65-moq-desc,
html[data-theme="dark"] .ma65-matrix-desc,
body[data-theme="dark"] .ma65-matrix-desc,
body.ma-dark-mode .ma65-matrix-desc,
html[data-theme="dark"] .ma65-moq-target,
body[data-theme="dark"] .ma65-moq-target,
body.ma-dark-mode .ma65-moq-target,
html[data-theme="dark"] .ma65-moq-features,
body[data-theme="dark"] .ma65-moq-features,
body.ma-dark-mode .ma65-moq-features,
html[data-theme="dark"] .ma65-matrix-table td,
body[data-theme="dark"] .ma65-matrix-table td,
body.ma-dark-mode .ma65-matrix-table td {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .ma65-moq-card,
body[data-theme="dark"] .ma65-moq-card,
body.ma-dark-mode .ma65-moq-card {
  background: #17202e !important;
  border-color: #26354a !important;
}

html[data-theme="dark"] .ma65-moq-card--featured,
body[data-theme="dark"] .ma65-moq-card--featured,
body.ma-dark-mode .ma65-moq-card--featured {
  background: #1b2637 !important;
  border-color: #d6ae66 !important;
}

html[data-theme="dark"] .ma65-matrix-table th,
body[data-theme="dark"] .ma65-matrix-table th,
body.ma-dark-mode .ma65-matrix-table th {
  background: #192332 !important;
  color: #cbd5e1 !important;
  border-color: #2d3c50 !important;
}

html[data-theme="dark"] .ma65-matrix-table-wrap,
body[data-theme="dark"] .ma65-matrix-table-wrap,
body.ma-dark-mode .ma65-matrix-table-wrap {
  border-color: #26354a !important;
}

html[data-theme="dark"] .ma65-matrix-table td,
body[data-theme="dark"] .ma65-matrix-table td,
body.ma-dark-mode .ma65-matrix-table td {
  border-color: #1e2b3c !important;
}

html[data-theme="dark"] .ma65-matrix-table tr:hover td,
body[data-theme="dark"] .ma65-matrix-table tr:hover td,
body.ma-dark-mode .ma65-matrix-table tr:hover td {
  background: #1c283a !important;
}

/* Classic Gold theme */
html[data-theme="classic-gold"] .ma65-moq-tiers,
body[data-theme="classic-gold"] .ma65-moq-tiers,
body.ma-theme-classic-gold .ma65-moq-tiers,
html[data-theme="classic-gold"] .ma65-finishing-matrix,
body[data-theme="classic-gold"] .ma65-finishing-matrix,
body.ma-theme-classic-gold .ma65-finishing-matrix {
  background: #141822 !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
}

html[data-theme="classic-gold"] .ma65-moq-card,
body[data-theme="classic-gold"] .ma65-moq-card,
body.ma-theme-classic-gold .ma65-moq-card {
  background: #181d2a !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
}

html[data-theme="classic-gold"] .ma65-moq-card--featured,
body[data-theme="classic-gold"] .ma65-moq-card--featured,
body.ma-theme-classic-gold .ma65-moq-card--featured {
  background: #1d2333 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15) !important;
}


/* ==========================================================================
   MINHANH_UX_V65: MEGA MENU ENHANCEMENT & PDP PACKAGING STUDIO TRIGGER
   ========================================================================== */

/* 1. PDP Packaging Studio Trigger Card */
.ma-pdp-studio-card {
  margin: 18px 0 16px;
  position: relative;
}

.ma-pdp-studio-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, rgba(200, 150, 62, 0.08) 0%, rgba(26, 38, 57, 0.04) 100%);
  border: 1.5px solid rgba(200, 150, 62, 0.45);
  border-radius: 12px;
  padding: 16px 18px 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ma-pdp-studio-btn:hover {
  background: linear-gradient(135deg, rgba(200, 150, 62, 0.14) 0%, rgba(26, 38, 57, 0.08) 100%);
  border-color: #c8963e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.18);
}

.ma-pdp-studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a37222;
  margin-bottom: 8px;
}

.ma-pdp-studio-badge .ma-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8963e;
  box-shadow: 0 0 6px rgba(200, 150, 62, 0.8);
  animation: maPulse 2s infinite;
}

@keyframes maPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ma-pdp-studio-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ma-pdp-studio-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1a2639;
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 38, 57, 0.25);
  transition: transform 0.3s ease;
}

.ma-pdp-studio-btn:hover .ma-pdp-studio-icon {
  transform: rotate(8deg) scale(1.05);
}

.ma-pdp-studio-text {
  flex: 1;
  min-width: 0;
}

.ma-pdp-studio-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a2639;
  margin-bottom: 2px;
  line-height: 1.3;
}

.ma-pdp-studio-text span {
  display: block;
  font-size: 12.5px;
  color: #556987;
  line-height: 1.4;
}

.ma-pdp-studio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: #c8963e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 3px 10px rgba(200, 150, 62, 0.3);
}

.ma-pdp-studio-btn:hover .ma-pdp-studio-pill {
  background: #b08130;
  transform: translateX(3px);
}

/* Dark mode PDP studio card */
html[data-theme="dark"] .ma-pdp-studio-btn,
body[data-theme="dark"] .ma-pdp-studio-btn,
body.ma-dark-mode .ma-pdp-studio-btn {
  background: linear-gradient(135deg, rgba(200, 150, 62, 0.12) 0%, rgba(20, 27, 40, 0.8) 100%);
  border-color: rgba(200, 150, 62, 0.4);
}

html[data-theme="dark"] .ma-pdp-studio-text strong,
body[data-theme="dark"] .ma-pdp-studio-text strong,
body.ma-dark-mode .ma-pdp-studio-text strong {
  color: #f1f5f9;
}

html[data-theme="dark"] .ma-pdp-studio-text span,
body[data-theme="dark"] .ma-pdp-studio-text span,
body.ma-dark-mode .ma-pdp-studio-text span {
  color: #94a3b8;
}

/* 2. Mega Menu Products Dropdown Enhancement */
.whb-header .menu-item-691 .wd-dropdown-menu,
.main-nav .menu-item-691 .wd-dropdown-menu {
  padding: 24px 0 28px !important;
  background: #ffffff !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-top: 3px solid #c8963e !important;
}

.whb-header .menu-item-691:not(:hover) .wd-dropdown-menu,
.main-nav .menu-item-691:not(:hover) .wd-dropdown-menu {
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.whb-header .menu-item-691:hover .wd-dropdown-menu,
.main-nav .menu-item-691:hover .wd-dropdown-menu {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.whb-header .menu-item-691 .wd-dropdown-menu .container.wd-entry-content {
  max-width: 1320px !important;
  padding: 0 32px !important;
}

/* 4-column balanced grid */
.whb-header .menu-item-691 .wd-sub-menu {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px 30px !important;
  align-items: start !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Category column headings (item-level-1) */
.whb-header .menu-item-691 .wd-sub-menu > li.item-level-1 {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 0 10px 0 !important;
}

.whb-header .menu-item-691 .wd-sub-menu > li.item-level-1 > a.woodmart-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  transition: all 0.2s ease !important;
}

.whb-header .menu-item-691 .wd-sub-menu > li.item-level-1 > a.woodmart-nav-link:hover {
  background: #fdf8ed !important;
  border-color: #c8963e !important;
  color: #b08130 !important;
}

/* Sub-categories (item-level-2) */
.whb-header .menu-item-691 .sub-sub-menu {
  list-style: none !important;
  margin: 6px 0 0 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.whb-header .menu-item-691 .sub-sub-menu > li > a.woodmart-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.18s ease !important;
}

.whb-header .menu-item-691 .sub-sub-menu > li > a.woodmart-nav-link:hover {
  background: #f1f5f9 !important;
  color: #c8963e !important;
  transform: translateX(3px) !important;
}

/* Category Thumbnail Images - Always crisp 32x32px square */
.whb-header .menu-item-691 .wd-nav-img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  padding: 1px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  margin-right: 2px !important;
}

.whb-header .menu-item-691 .woodmart-nav-link:hover .wd-nav-img {
  transform: scale(1.1) !important;
  border-color: #c8963e !important;
}

/* Dark mode for Mega Menu */
html[data-theme="dark"] .whb-header .menu-item-691 .wd-dropdown-menu,
body[data-theme="dark"] .whb-header .menu-item-691 .wd-dropdown-menu,
body.ma-dark-mode .whb-header .menu-item-691 .wd-dropdown-menu {
  background: #141b27 !important;
  border-color: #243044 !important;
  border-top-color: #d4af37 !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .whb-header .menu-item-691 .wd-sub-menu > li.item-level-1 > a.woodmart-nav-link,
body[data-theme="dark"] .whb-header .menu-item-691 .wd-sub-menu > li.item-level-1 > a.woodmart-nav-link,
body.ma-dark-mode .whb-header .menu-item-691 .wd-sub-menu > li.item-level-1 > a.woodmart-nav-link {
  background: rgba(212, 175, 55, 0.12) !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .whb-header .menu-item-691 .sub-sub-menu > li > a.woodmart-nav-link,
body[data-theme="dark"] .whb-header .menu-item-691 .sub-sub-menu > li > a.woodmart-nav-link,
body.ma-dark-mode .whb-header .menu-item-691 .sub-sub-menu > li > a.woodmart-nav-link {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .whb-header .menu-item-691 .sub-sub-menu > li > a.woodmart-nav-link:hover,
body[data-theme="dark"] .whb-header .menu-item-691 .sub-sub-menu > li > a.woodmart-nav-link:hover,
body.ma-dark-mode .whb-header .menu-item-691 .sub-sub-menu > li > a.woodmart-nav-link:hover {
  background: #1e293b !important;
  color: #d4af37 !important;
}

html[data-theme="dark"] .whb-header .menu-item-691 .wd-nav-img,
body[data-theme="dark"] .whb-header .menu-item-691 .wd-nav-img,
body.ma-dark-mode .whb-header .menu-item-691 .wd-nav-img {
  background: #1e293b !important;
  border-color: #334155 !important;
}

/* 3. Mega Menu 4th Column B2B Spotlight Card */
.whb-header .menu-item-691 .ma-megamenu-spotlight-col {
  grid-column: 4 / 5 !important;
  grid-row: 1 / 8 !important;
  background: linear-gradient(145deg, #182333 0%, #0f1722 100%) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 14px !important;
  padding: 24px 20px !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
  margin-top: 2px !important;
}

.ma-spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4af37;
  margin-bottom: 10px;
}

.ma-spotlight-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 8px;
}

.ma-spotlight-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0 0 18px;
}

.ma-spotlight-btn-studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: #c8963e;
  border: none;
  cursor: pointer;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(200, 150, 62, 0.35);
}

.ma-spotlight-btn-studio:hover {
  background: #d4af37;
  transform: translateY(-1px);
}

.ma-spotlight-btn-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1 !important;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.ma-spotlight-btn-sample:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4);
}
