/* =========================================================================
   Nut'z — design system
   Ported from the 2026 prototype. Loaded after Woodmart's own stylesheets.
   ========================================================================= */

:root {
  /* Greens — header, footer, dark sections, primary text */
  --nz-green-900: #22362c;
  --nz-green-800: #2f4a3c;
  --nz-green-700: #3c5347;
  --nz-green-600: #4a6155;

  /* Sage — secondary sections and quiet surfaces */
  --nz-sage-600: #5a6a61;
  --nz-sage-500: #7f918a;
  --nz-sage-200: #bfcdc2;
  --nz-sage-100: #dde7df;

  /* Creams and sand — page background and cards */
  --nz-cream-50:  #f7f3ec;
  --nz-cream-100: #efe8da;
  --nz-cream-200: #e1d9c9;
  --nz-sand-300:  #d9d0be;

  /* Bronze and tan — CTAs, eyebrows, accents */
  --nz-tan-400:    #c6b49a;
  --nz-tan-500:    #b9a488;
  --nz-bronze-600: #a08c68;
  --nz-bronze-700: #6b5c44;
  --nz-terracotta: #b4694a;

  /* Ink */
  --nz-ink:        #1e2a24;
  --nz-ink-muted:  #4b5a52;

  /* Type */
  --nz-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --nz-sans:  'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape */
  --nz-radius:    4px;
  /* The design rounds everything — cards, panels, photos, buttons — at 3–4px.
     There is no second, larger radius in it. */
  --nz-radius-lg: 4px;
  --nz-border:    1px solid rgba(34, 54, 44, 0.12);
}

/* -------------------------------------------------------------------------
   Woodmart's own custom properties
   The parent theme drives nearly everything through these, so remapping them
   is far more reliable than overriding its selectors one by one. Doubled
   `:root:root` outranks the theme's `:root` regardless of file order.
   ------------------------------------------------------------------------- */

:root:root {
  /* Type */
  --wd-text-font: var(--nz-serif);
  --wd-text-font-size: 17px;
  --wd-text-font-weight: 400;
  --wd-text-color: var(--nz-ink);

  --wd-title-font: var(--nz-serif);
  --wd-title-font-weight: 500;
  --wd-title-color: var(--nz-green-900);

  --wd-entities-title-font: var(--nz-serif);
  --wd-entities-title-font-weight: 500;
  --wd-entities-title-color: var(--nz-green-900);
  --wd-entities-title-color-hover: var(--nz-bronze-700);

  --wd-widget-title-font: var(--nz-sans);
  --wd-widget-title-font-weight: 500;
  --wd-widget-title-color: var(--nz-bronze-700);

  --wd-alternative-font: var(--nz-sans);
  --wd-header-el-font: var(--nz-sans);

  /* Colour. Primary also paints prices (.amount), so it stays a dark,
     high-contrast green rather than the tan used on buttons. */
  --wd-primary-color: var(--nz-green-900);
  --wd-alternative-color: var(--nz-cream-200);
  --wd-link-color: var(--nz-green-800);
  --wd-link-color-hover: var(--nz-bronze-700);

  /* Shape — the theme ships fully rounded pills; the design is near-square. */
  --wd-brd-radius: var(--nz-radius);
  --wd-form-brd-radius: var(--nz-radius);
  --wd-form-brd-width: 1px;

  /* Buttons — accented is the primary tan CTA, default is the outlined one. */
  --btn-accented-bgcolor: var(--nz-tan-400);
  --btn-accented-color: var(--nz-green-900);
  --btn-accented-bgcolor-hover: var(--nz-bronze-600);
  --btn-accented-color-hover: var(--nz-cream-50);
  --btn-accented-brd-radius: var(--nz-radius);
  --btn-accented-box-shadow: none;
  --btn-accented-box-shadow-hover: none;

  --btn-default-bgcolor: transparent;
  --btn-default-color: var(--nz-green-900);
  --btn-default-bgcolor-hover: var(--nz-green-900);
  --btn-default-color-hover: var(--nz-cream-50);
  --btn-default-brd-radius: var(--nz-radius);
  --btn-default-box-shadow: none;
  --btn-default-box-shadow-hover: none;

  /* Woodmart reads these for every button it renders. The design sets buttons
     in Cormorant, sentence case — so they are set once, here. */
  --btn-font-family: var(--nz-serif);
  --btn-font-size: 15px;
  --btn-font-weight: 600;
  --btn-transform: none;
  --btn-accented-font-family: var(--nz-serif);
  --btn-accented-font-size: 15px;
  --btn-accented-font-weight: 600;
  --btn-accented-transform: none;
  --btn-default-font-family: var(--nz-serif);
  --btn-default-font-size: 15px;
  --btn-default-font-weight: 600;
  --btn-default-transform: none;
}

/* -------------------------------------------------------------------------
   Elementor global kit
   Page and product layouts are built in Elementor, which resolves its colours
   and fonts from globals defined on `.elementor-kit-11`. Remapping them here
   restyles every Elementor page at once. `body.elementor-kit-11` outranks the
   kit's own single-class selector.
   ------------------------------------------------------------------------- */

body.elementor-kit-11 {
  /* Core globals */
  --e-global-color-primary: var(--nz-green-900);
  --e-global-color-secondary: var(--nz-green-800);
  --e-global-color-text: var(--nz-ink);
  --e-global-color-accent: var(--nz-bronze-700);

  /* Named palette entries used throughout the existing pages.
     The originals are a warm sand, two sages, a stray blue and two browns. */
  --e-global-color-aaf8558: var(--nz-cream-200);
  --e-global-color-0a86082: var(--nz-sage-200);
  --e-global-color-e3a8f68: var(--nz-sage-100);
  --e-global-color-5fd3156: var(--nz-green-900);
  --e-global-color-3c8d8b0: var(--nz-green-900);
  --e-global-color-6abf441: var(--nz-green-800);
  --e-global-color-aea3d5f: var(--nz-green-900);
  --e-global-color-813ae28: var(--nz-cream-100);

  /* Typography. The design is serif-led, so headings and body both resolve to
     Cormorant; Jost stays on the interface-flavoured globals. */
  --e-global-typography-primary-font-family: 'Cormorant Garamond';
  --e-global-typography-secondary-font-family: 'Cormorant Garamond';
  --e-global-typography-text-font-family: 'Cormorant Garamond';
  --e-global-typography-accent-font-family: 'Jost';
  --e-global-typography-2b6de53-font-family: 'Jost';
  --e-global-typography-4e96591-font-family: 'Cormorant Garamond';
}

/* -------------------------------------------------------------------------
   Base typography
   ------------------------------------------------------------------------- */

body,
body.wd {
  background-color: var(--nz-cream-50);
  color: var(--nz-ink);
  font-family: var(--nz-serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.wd-entities-title,
.woocommerce-loop-product__title,
.product_title,
.widget-title {
  font-family: var(--nz-serif);
  color: var(--nz-green-900);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* The prototype leans on an italic second line for its display headings. */
.nz-display em,
h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
}

p { line-height: 1.65; }

a { color: var(--nz-green-800); }
a:hover { color: var(--nz-bronze-700); }

/* Eyebrow labels — small, letterspaced, Jost. Used above section headings. */
.nz-eyebrow,
.wd-product .wd-product-cats,
.product_meta {
  font-family: var(--nz-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nz-bronze-700);
}

/* Interface rather than prose. Buttons are deliberately absent: the design
   sets them in Cormorant, sentence case — see the block below. */
.wd-nav > li > a,
.menu-item > a,
input, select, textarea,
.wd-tools-element,
.woocommerce-tabs .wc-tabs li a,
label {
  font-family: var(--nz-sans);
  letter-spacing: 0.02em;
}

/* Buttons, including WooCommerce's own: Cormorant 15/600, sentence case, no
   tracking. Woodmart sets these uppercase in Jost through its button classes,
   which is the one thing that made the shop pages read as a different site.
   The classes are doubled to outrank it. */
.btn.btn,
.button.button,
button.button,
.wd-buy-now-btn.wd-buy-now-btn,
.single_add_to_cart_button.single_add_to_cart_button,
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: var(--nz-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

/* Breadcrumbs: Jost 12/500, sentence case, sage. */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.nz-crumbs,
.nz-crumbs a {
  font-family: var(--nz-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--nz-sage-600);
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

/* The outer bar carries Woodmart's own `whb-with-bg` colour, so the selector
   has to match that specificity or you get a brown band with a narrow green
   strip down the middle. */
.whb-header .whb-row.whb-top-bar,
.whb-header .whb-row.whb-top-bar.whb-with-bg,
.whb-top-bar-inner {
  background-color: var(--nz-green-900);
  color: var(--nz-cream-50);
  font-family: var(--nz-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.whb-top-bar a { color: var(--nz-cream-50); }

.whb-header .whb-row.whb-general-header,
.whb-header .whb-row.whb-general-header.whb-with-bg,
.whb-general-header-inner,
.whb-header:not(.whb-sticked) .whb-general-header {
  background-color: var(--nz-green-900);
  color: var(--nz-cream-50);
}

/* Same measure as the page content (.nz-wrap: 1222px, 24px gutter). Woodmart's
   container has a 15px gutter, which put the logo and the CTA a few pixels
   outside the content column at every width. On the left the column's -10px
   margin is cancelled by the logo's own 10px padding; on the right nothing
   cancels it, so the CTA hung 10px past the edge — that margin goes. */
.whb-header .whb-row > .container {
  max-width: 1222px;
  padding-left: 24px;
  padding-right: 24px;
}
.whb-header :is(.whb-col-right, .whb-mobile-right) { margin-right: 0; }

/* Sticky row (set in the header builder, 64px as in the design): the same
   green at 96% so content scrolling under it stays faintly legible, as in the
   design. */
.whb-header.whb-sticked .whb-general-header {
  background-color: rgba(34, 54, 44, 0.96);
}

.whb-header .wd-nav > li > a,
.whb-header .wd-tools-element > a,
.whb-header .wd-header-nav a {
  color: var(--nz-cream-50);
  font-family: var(--nz-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
}

.whb-header .wd-nav > li > a:hover,
.whb-header .wd-tools-element > a:hover {
  color: var(--nz-tan-400);
}

/* Woodmart draws an underline marker on hover; soften it to the tan accent. */
.whb-header .wd-nav[class*="wd-style-underline"] > li > a > span:after {
  background-color: var(--nz-tan-400);
}

/* Cart counter bubble */
.whb-header .wd-tools-element .wd-tools-count,
.whb-header .wd-cart-number {
  background-color: var(--nz-tan-400);
  color: var(--nz-green-900);
  font-family: var(--nz-sans);
  font-weight: 500;
}

/* Language switcher. Deliberately no filled chip: the switcher sits on the
   dark header, and a tan fill there reads as a stray brown block. The current
   language is marked with weight and full opacity instead. */
.whb-header .wpml-ls-item a,
.whb-header .wd-switcher-lang a {
  font-family: var(--nz-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nz-cream-50);
  opacity: .7;
}
.whb-header .wpml-ls-current-language > a,
.whb-header .wd-switcher-lang .active a {
  background-color: transparent;
  color: var(--nz-cream-50);
  font-weight: 500;
  opacity: 1;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn, .button,
button[type="submit"],
input[type="submit"],
.wd-buy-now-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  font-family: var(--nz-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  border-radius: var(--nz-radius);
  padding: 15px 28px;
  box-shadow: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

/* Colour and radius come from the remapped --btn-* properties above, so the
   only thing left is the outline the default button needs to read as a
   secondary action on a cream background. */
.btn-style-default,
.wd-add-btn > a,
.woocommerce a.button:not(.alt),
.woocommerce button.button:not(.alt) {
  border: 1px solid rgba(34, 54, 44, 0.3);
}
.btn-style-default:hover,
.wd-add-btn > a:hover,
.woocommerce a.button:not(.alt):hover,
.woocommerce button.button:not(.alt):hover {
  border-color: var(--nz-green-900);
}

/* -------------------------------------------------------------------------
   Shop grid and product cards
   ------------------------------------------------------------------------- */

.wd-page-content,
.wd-content-area {
  background-color: var(--nz-cream-50);
}

.wd-product.product-grid-item {
  background-color: var(--nz-cream-50);
  border: var(--nz-border);
  border-radius: var(--nz-radius-lg);
  padding: 0 0 18px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.wd-product.product-grid-item:hover {
  border-color: rgba(34, 54, 44, 0.28);
}

/* The image sits on a warm panel, as in the prototype's cards. */
.wd-product .product-image-link,
.wd-product .product-element-top {
  background-color: var(--nz-cream-100);
  border-radius: 0;
  margin-bottom: 16px;
}

/* Everything below the image is inset; the image itself stays full-bleed. */
.wd-product.product-grid-item > .product-wrapper > *:not(.product-element-top),
.wd-product.product-grid-item .wd-entities-title,
.wd-product.product-grid-item .wd-product-cats,
.wd-product.product-grid-item .price,
.wd-product.product-grid-item .wd-product-stock,
.wd-product.product-grid-item .star-rating,
.wd-product.product-grid-item .wd-add-btn,
.wd-product.product-grid-item .wd-swatches-grid {
  padding-left: 18px;
  padding-right: 18px;
}

.wd-product .wd-entities-title,
.wd-product .wd-entities-title a,
.woocommerce-loop-product__title {
  font-family: var(--nz-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--nz-green-900);
  line-height: 1.2;
}

.wd-product .wd-product-cats,
.wd-product .wd-product-cats a {
  font-family: var(--nz-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nz-bronze-700);
}

.wd-product .price,
.woocommerce .price,
.woocommerce div.product p.price {
  font-family: var(--nz-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--nz-green-900);
}
.woocommerce .price del { color: var(--nz-ink-muted); font-weight: 400; }
.woocommerce .price ins { text-decoration: none; color: var(--nz-terracotta); }

/* Star ratings in the warm bronze rather than Woodmart's default yellow. */
.wd-product .star-rating span:before,
.woocommerce .star-rating span:before {
  color: var(--nz-bronze-600);
}

/* Sale / stock badges */
.product-labels .product-label {
  font-family: var(--nz-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--nz-radius);
}
.product-labels .product-label.onsale {
  background-color: var(--nz-terracotta);
  color: #fff;
}
.product-labels .product-label.out-of-stock {
  background-color: var(--nz-sage-600);
  color: var(--nz-cream-50);
}

/* -------------------------------------------------------------------------
   Single product
   ------------------------------------------------------------------------- */

.single-product .product_title {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  margin-bottom: 8px;
}

.woocommerce div.product form.cart .variations label,
.woocommerce div.product .quantity input,
.wd-swatch {
  font-family: var(--nz-sans);
}

.woocommerce-tabs .wc-tabs li a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nz-ink-muted);
}
.woocommerce-tabs .wc-tabs li.active a {
  color: var(--nz-green-900);
  border-bottom-color: var(--nz-tan-400);
}

/* -------------------------------------------------------------------------
   Cart, checkout, account
   ------------------------------------------------------------------------- */

.woocommerce table.shop_table,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
  border-radius: var(--nz-radius-lg);
  border: var(--nz-border);
}
.woocommerce table.shop_table th {
  font-family: var(--nz-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nz-bronze-700);
}

.woocommerce form .form-row label,
.woocommerce-checkout h3,
.woocommerce-account h2 {
  font-family: var(--nz-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nz-ink-muted);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single {
  font-family: var(--nz-sans);
  font-size: 14px;
  border: var(--nz-border);
  border-radius: var(--nz-radius);
  background-color: #fff;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--nz-tan-400);
  outline: none;
}

/* Woodmart paints these in its own flat green/blue/red at a specificity a
   single class cannot beat, so the classes are doubled. Cart, checkout and
   account all surface notices; they have to read as Nut'z, not as WooCommerce. */
.woocommerce-info.woocommerce-info,
.woocommerce-message.woocommerce-message {
  background-color: var(--nz-green-800);
  border-top-color: var(--nz-tan-400);
  border-radius: var(--nz-radius);
  color: var(--nz-cream-50);
  font-family: var(--nz-sans);
  font-size: 14px;
}
.woocommerce-error.woocommerce-error {
  background-color: var(--nz-terracotta);
  border-top-color: #8e4c33;
  border-radius: var(--nz-radius);
  color: #fff;
  font-family: var(--nz-sans);
  font-size: 14px;
}
.woocommerce-info.woocommerce-info a,
.woocommerce-message.woocommerce-message a,
.woocommerce-error.woocommerce-error a {
  color: inherit;
}
/* The inline button inside a notice ("View cart"), on a dark ground. */
.woocommerce-info.woocommerce-info .button,
.woocommerce-message.woocommerce-message .button,
.woocommerce-error.woocommerce-error .button {
  background-color: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.woocommerce-info.woocommerce-info .button:hover,
.woocommerce-message.woocommerce-message .button:hover,
.woocommerce-error.woocommerce-error .button:hover {
  background-color: var(--nz-cream-50);
  color: var(--nz-green-900);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.wd-footer,
.footer-container {
  background-color: var(--nz-green-900);
  color: var(--nz-cream-50);
}
.wd-footer a,
.footer-container a {
  color: var(--nz-cream-50);
  opacity: .82;
}
.wd-footer a:hover,
.footer-container a:hover {
  color: var(--nz-tan-400);
  opacity: 1;
}
.wd-footer .widget-title,
.footer-container .widget-title {
  font-family: var(--nz-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nz-tan-400);
}

/* -------------------------------------------------------------------------
   Section helpers, for the marketing pages
   ------------------------------------------------------------------------- */

.nz-section-cream { background-color: var(--nz-cream-50); }
.nz-section-sand  { background-color: var(--nz-cream-100); }
.nz-section-sage  { background-color: var(--nz-sage-500); color: var(--nz-cream-50); }
.nz-section-dark  { background-color: var(--nz-green-900); color: var(--nz-cream-50); }

.nz-section-sage h1, .nz-section-sage h2, .nz-section-sage h3,
.nz-section-dark h1, .nz-section-dark h2, .nz-section-dark h3 {
  color: var(--nz-cream-50);
}

.nz-card {
  background-color: var(--nz-cream-100);
  border-radius: var(--nz-radius-lg);
  padding: 28px 30px;
}
.nz-card--tan  { background-color: var(--nz-tan-400); }
.nz-card--sage { background-color: var(--nz-sage-200); }

/* -------------------------------------------------------------------------
   Fixes after review
   ------------------------------------------------------------------------- */

/* The shipping notice is a Woodmart info-box widget carrying its own brown
   panel, which showed as a block behind the text in the green top bar. */
.whb-top-bar .wd-info-box,
.whb-top-bar .info-box-wrapper .wd-info-box {
  background-color: transparent;
  color: var(--nz-cream-50);
}
.whb-top-bar .info-box-title,
.whb-top-bar .info-box-content {
  color: var(--nz-cream-50);
}

/* Woodmart pads the content wrapper and paints it white, which left a white
   band under the header and above the footer on the full-bleed templates. */
.wd-page-content { background-color: var(--nz-cream-50); }

.page-template-nutz-home .wd-content-layout,
.page-template-nutz-page .wd-content-layout,
.woocommerce-shop .wd-content-layout,
.single-product .wd-content-layout,
.tax-product_cat .wd-content-layout,
main.wd-content-layout:has(.nz-main) {
  padding-top: 0;
  padding-bottom: 0;
  /* On blog and archive views the theme turns this wrapper into a column grid
     for its own post loop, which squeezed our full-width main into one cell. */
  display: block;
  grid-template-columns: none;
}

/* Struck-through prices: a hairline in a muted tone rather than a hard rule
   straight through the figures. */
.woocommerce del,
.nz-pcard__price del,
.price del {
  text-decoration-line: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(34, 54, 44, 0.45);
  color: var(--nz-ink-muted);
  opacity: .75;
  margin-right: 6px;
}
.woocommerce del .amount { color: inherit; }
.woocommerce ins,
.price ins {
  text-decoration: none;
  color: var(--nz-terracotta);
}

/* -------------------------------------------------------------------------
   Products mega dropdown
   Woodmart already renders a full-width dark panel here; the design turns it
   into columns with a small-caps heading per family and serif product names.
   ------------------------------------------------------------------------- */

.whb-header .nz-has-mega .wd-dropdown-menu.wd-design-full-width,
.whb-header .nz-has-mega .wd-dropdown-menu {
  background-color: var(--nz-green-900);
  border: 0;
  border-top: 1px solid rgba(247, 243, 236, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  padding: 34px 0 38px;
}

.whb-header .nz-has-mega .wd-dropdown-menu .wd-sub-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  max-width: 1222px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Each top-level child becomes a column. */
.whb-header .nz-has-mega .wd-dropdown-menu .wd-sub-menu > li {
  min-width: 190px;
  list-style: none;
}

/* The family name: small caps in tan, like the design's column headings. */
.whb-header .nz-has-mega .wd-dropdown-menu .wd-sub-menu > li > a {
  display: block;
  font-family: var(--nz-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nz-tan-400);
  padding: 0 0 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(247, 243, 236, 0.14);
}
.whb-header .nz-has-mega .wd-dropdown-menu .wd-sub-menu > li > a:hover { color: var(--nz-cream-50); }

/* The products underneath. */
.whb-header .nz-has-mega .wd-dropdown-menu .sub-sub-menu { padding: 0; margin: 0; }
.whb-header .nz-has-mega .wd-dropdown-menu .sub-sub-menu li { list-style: none; }
.whb-header .nz-has-mega .wd-dropdown-menu .sub-sub-menu a {
  display: block;
  font-family: var(--nz-serif);
  font-size: 1.12rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(247, 243, 236, 0.86);
  padding: 7px 0;
  border: 0;
}
.whb-header .nz-has-mega .wd-dropdown-menu .sub-sub-menu a:hover {
  color: var(--nz-tan-400);
  padding-left: 4px;
}

/* The Produits panel is a Woodmart mega-menu built from a content block, not
   a nav list, so its text inherits the page link colour — dark green on dark
   green. Everything inside the dark panel is set to cream here. */
.whb-header .wd-dropdown-menu.color-scheme-dark,
.whb-header .wd-dropdown-menu.color-scheme-dark p,
.whb-header .wd-dropdown-menu.color-scheme-dark li,
.whb-header .wd-dropdown-menu.color-scheme-dark span,
.whb-header .wd-dropdown-menu.color-scheme-dark a {
  color: rgba(247, 243, 236, 0.88);
}
.whb-header .wd-dropdown-menu.color-scheme-dark a:hover {
  color: var(--nz-tan-400);
}
.whb-header .wd-dropdown-menu.color-scheme-dark h1,
.whb-header .wd-dropdown-menu.color-scheme-dark h2,
.whb-header .wd-dropdown-menu.color-scheme-dark h3,
.whb-header .wd-dropdown-menu.color-scheme-dark h4,
.whb-header .wd-dropdown-menu.color-scheme-dark .widget-title,
.whb-header .wd-dropdown-menu.color-scheme-dark .wd-entities-title {
  color: var(--nz-cream-50);
}
.whb-header .wd-dropdown-menu.color-scheme-dark .price,
.whb-header .wd-dropdown-menu.color-scheme-dark .amount {
  color: var(--nz-tan-400);
}

/* -------------------------------------------------------------------------
   Products mega panel (rendered by inc/mega-menu.php)
   ------------------------------------------------------------------------- */

.whb-header .nz-has-mega { position: static; }

/* A centred 880px box hanging off the bar, as in the design — not a full-bleed
   band. The transform is reused for the open/closed state, so both values carry
   the centring offset. */
.nz-mega {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 880px;
  max-width: calc(100vw - 48px);
  z-index: 400;
  background-color: var(--nz-green-900);
  border-radius: 0 0 var(--nz-radius) var(--nz-radius);
  box-shadow: 0 30px 60px rgba(20, 32, 26, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.whb-header .nz-has-mega:hover > .nz-mega,
.whb-header .nz-has-mega:focus-within > .nz-mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nz-mega__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}
/* Hairlines between the three columns, which is where the design's padding
   lands rather than in a gap. */
.nz-mega__col,
.nz-mega__cta {
  padding: 26px 28px;
  border-left: 1px solid rgba(247, 243, 236, 0.1);
}
.nz-mega__col:first-child { border-left: 0; }

.nz-mega__heading {
  display: block;
  font-family: var(--nz-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nz-tan-400);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(247, 243, 236, 0.14);
}

.whb-header .nz-mega__row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: var(--nz-radius);
  text-decoration: none;
  transition: background-color .15s ease;
}
.whb-header .nz-mega__row:hover { background-color: rgba(247, 243, 236, 0.07); }

.nz-mega__thumb {
  display: block;
  background-color: rgba(247, 243, 236, 0.08);
  border-radius: var(--nz-radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.nz-mega__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 3px; }

.nz-mega__text { display: flex; flex-direction: column; min-width: 0; }
.whb-header .nz-mega__name {
  font-family: var(--nz-serif);
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--nz-cream-50);
}
.whb-header .nz-mega__need {
  font-family: var(--nz-sans);
  font-size: 11px;
  line-height: 1.4;
  color: rgba(247, 243, 236, 0.55);
  margin-top: 2px;
  /* The French subtitles run long; the design's rows are one short line each,
     so the line is capped rather than left to push the rows apart. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.whb-header .nz-mega__price {
  font-family: var(--nz-serif);
  font-size: 1rem;
  color: var(--nz-tan-400);
  white-space: nowrap;
}
.nz-mega__price .nz-pcard__from { display: none; }

/* The design leaves this column on the panel's own ground, with no card. */
.nz-mega__ctaImg {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--nz-radius);
  display: block;
  margin-bottom: 14px;
}
.whb-header .nz-mega__cta p {
  font-family: var(--nz-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(247, 243, 236, 0.8);
  margin: 0 0 16px;
}
.nz-mega__ctaBtn {
  display: inline-block;
  font-family: var(--nz-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 18px;
}

@media (max-width: 1100px) {
  .nz-mega__inner { grid-template-columns: 1fr 1fr; }
  .nz-mega__cta { grid-column: 1 / -1; }
}

/* Our panel replaces the theme's dropdown on that item. */
.whb-header .nz-has-mega > .wd-dropdown-menu,
.whb-header .nz-has-mega > .sub-menu,
.whb-header .nz-has-mega > .wd-dropdown {
  display: none !important;
}

/* In the panel only the figure is shown, not the "from" prefix. */
.whb-header .nz-mega__price .nz-pcard__from { display: none !important; }
.whb-header .nz-mega__row { grid-template-columns: 40px 1fr minmax(64px, auto); }
.whb-header .nz-mega__price { text-align: right; min-width: 64px; }

/* .amount inherits the primary colour, which is dark green for cream pages —
   invisible on the dark panel. */
.whb-header .nz-mega .amount,
.whb-header .nz-mega .woocommerce-Price-amount,
.whb-header .nz-mega .woocommerce-Price-currencySymbol {
  color: var(--nz-tan-400);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   Header: language switcher and routine CTA, per the design reference
   ------------------------------------------------------------------------- */

/* Boxed language codes, the active one filled. The flag is dropped: the design
   shows plain two-letter codes. */
.whb-header .wpml-ls-item > a {
  border: 1px solid rgba(247, 243, 236, 0.35);
  border-radius: 3px;
  padding: 7px 12px;
  margin-left: 4px;
  opacity: 1;
}
.whb-header .wpml-ls-item > a .wpml-ls-flag { display: none; }
.whb-header .wpml-ls-current-language > a {
  background-color: var(--nz-tan-400);
  border-color: var(--nz-tan-400);
  color: var(--nz-green-900);
}
.whb-header .wpml-ls-item > a:hover { border-color: var(--nz-cream-50); }

/* The last menu item is the routine call to action. */
.whb-header .menu-item-14305 > a {
  background-color: var(--nz-tan-400);
  color: var(--nz-green-900) !important;
  border-radius: 4px;
  padding: 11px 20px;
  margin-left: 10px;
}
.whb-header .menu-item-14305 > a:hover {
  background-color: var(--nz-bronze-600);
  color: var(--nz-cream-50) !important;
}
.whb-header .menu-item-14305 > a:after { display: none; }

/* -------------------------------------------------------------------------
   Header tools, placed right of the cart as in the design
   ------------------------------------------------------------------------- */

.whb-header .nz-headtools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 18px;
}

.nz-langs { display: flex; gap: 4px; }
.whb-header .nz-lang {
  font-family: var(--nz-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--nz-cream-50);
  border: 1px solid rgba(247, 243, 236, 0.32);
  border-radius: 3px;
  padding: 7px 11px;
  text-decoration: none;
  line-height: 1;
}
.whb-header .nz-lang:hover { border-color: var(--nz-cream-50); }
.whb-header .nz-lang.is-active {
  background-color: var(--nz-tan-400);
  border-color: var(--nz-tan-400);
  color: var(--nz-green-900);
}

.whb-header .nz-headcta {
  font-family: var(--nz-sans);
  font-size: 13px;
  color: var(--nz-green-900);
  background-color: var(--nz-tan-400);
  border-radius: 4px;
  padding: 12px 22px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.whb-header .nz-headcta:hover { background-color: var(--nz-bronze-600); color: var(--nz-cream-50); }

/* The old in-menu versions are replaced by the block above. */
.whb-header .menu-item-14305,
.whb-header .wpml-ls-menu-item { display: none !important; }

/* The cart reads "Panier 1" in the design, without the running total. */
.whb-header .wd-header-cart .wd-tools-text .subtotal-divider,
.whb-header .wd-header-cart .wd-cart-subtotal,
.whb-header .wd-header-cart .subtotal-divider,
.whb-header .wd-header-cart .amount { display: none !important; }

/* Order in the right-hand column: account, languages, cart, call to action.
   Desktop only: this column is Woodmart's `whb-visible-lg`, and an
   unconditional display here un-hid it on phones, pushing the mobile header
   (burger, logo, cart) off the screen. */
@media (min-width: 1025px) {
  .whb-header .whb-col-right { display: flex; align-items: center; }
}
.whb-header .whb-col-right .wd-header-my-account { order: 1; }
.whb-header .whb-col-right .nz-langs { order: 2; margin: 0 14px 0 10px; }
.whb-header .whb-col-right .wd-header-cart { order: 3; }
.whb-header .whb-col-right .nz-headcta { order: 4; margin-left: 16px; }
.whb-header .nz-headtools { display: contents; }

/* -------------------------------------------------------------------------
   The "More" dropdown
   A narrow dark panel: title in Cormorant, a muted Jost line under it. Woodmart
   styles its simple dropdown as an uppercase list, which is a different object
   entirely, so every property the design fixes is restated here.
   ------------------------------------------------------------------------- */

.whb-header .wd-dropdown-menu.wd-design-default {
  background-color: var(--nz-green-900);
  border: 1px solid var(--nz-green-700);
  border-radius: var(--nz-radius);
  box-shadow: 0 24px 50px rgba(34, 54, 44, 0.14);
  padding: 10px;
  min-width: 280px;
  width: 280px;
}
.whb-header .wd-dropdown-menu.wd-design-default .wd-sub-menu {
  display: block;
  padding: 0;
  margin: 0;
  max-width: none;
}
.whb-header .wd-dropdown-menu.wd-design-default .wd-sub-menu > li {
  min-width: 0;
  border: none;
  list-style: none;
}

.whb-header .wd-dropdown-menu.wd-design-default .wd-sub-menu > li > a,
.whb-header .wd-dropdown-menu.wd-design-default a {
  display: block;
  padding: 9px 11px;
  border: none;
  border-radius: var(--nz-radius);
  font-family: var(--nz-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.3;
  color: #f0ede4;
}
.whb-header .wd-dropdown-menu.wd-design-default a:hover {
  background-color: rgba(247, 243, 236, 0.07);
  color: var(--nz-cream-50);
}

.whb-header .wd-dropdown-menu .nz-subline {
  display: block;
  margin-top: 2px;
  font-family: var(--nz-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: #c6d6ca;
}
