/**
 * WRAPING Montserrat v1.2
 * Typography only. Keep original black/gold palette, banner, brand wordmark,
 * product photography, dimensions, layout, animations and navigation behavior.
 */
html body {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

/* Standard shop typography, without touching custom hero/banner artwork. */
html body :is(.woocommerce, .woocommerce-page, .products, .product, .product-grid, .site-main)
:is(p, a, button, label, input, textarea, select, small, h1, h2, h3, h4, h5, h6,
    .price, .amount, .product-title, .product_title, .woocommerce-loop-product__title) {
  font-family: 'Montserrat', Arial, sans-serif !important;
}
html body :is(.woocommerce, .woocommerce-page, .products, .product, .product-grid)
:is(.price, .amount, .woocommerce-Price-amount, .button, button) {
  font-weight: 700 !important;
}
html body :is(.woocommerce, .woocommerce-page, .products, .product, .product-grid)
:is(.product-title, .product_title, .woocommerce-loop-product__title) {
  font-weight: 700 !important;
}

/* Header/menu – the logo is intentionally excluded. */
html body :is(.main-nav, .site-navigation, .primary-navigation, .wd-nav,
              .site-header, .header-nav, .nav-menu, .main-menu)
:is(a, button, .menu-item, .nav-link) {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 700 !important;
}
html body :is(.mega-menu, .megamenu, .mega-dropdown,
              [class*='mega-menu'], [class*='mega_menu'])
:is(a, button, li, span:not([class*='icon'])) {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 600 !important;
}

/* CSS selectors cover conventional sidebars. The JS marks WRAPING's bespoke
   category tree with .wrp-montserrat-sidebar when its real markup is custom. */
html body :is(.wrp-montserrat-sidebar, .widget_product_categories,
              .product-categories, .wc-block-product-categories,
              .category-tree, .categories-tree, .wrapping-category-tree,
              [class*='category-tree'], [class*='categories-tree'])
:is(a, button, p, li, label, span:not([class*='icon'])) {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 600 !important;
}
html body .wrp-montserrat-sidebar .wrp-montserrat-text {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12.8px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.15px !important;
}
html body .wrp-montserrat-sidebar .wrp-montserrat-parent {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.46 !important;
  letter-spacing: -0.25px !important;
}
html body .wrp-montserrat-sidebar .wrp-montserrat-title {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.065em !important;
}
html body .wrp-montserrat-sidebar .wrp-montserrat-eyebrow {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.5 !important;
}
/* No forced text colors: retain the site's carefully chosen gold/ivory tones. */

@media (max-width: 767px) {
  html body .wrp-montserrat-sidebar .wrp-montserrat-text { font-size: 12.5px !important; }
  html body .wrp-montserrat-sidebar .wrp-montserrat-parent { font-size: 12.8px !important; }
}

/* V1.7 – category names in ALL header dropdowns, independent of menu name.
   Styles the actual text and link wrappers, never icons, colors, or layout.
   JS tags menu panels using heading + geometry, including small 1-item menus.
*/
html body .wrp-montserrat-dropdown-v17,
html body .wrp-montserrat-dropdown-v17 :is(a, button, [role="menuitem"], li, p, span, small, strong, b, em, label) {
  font-family: 'Montserrat', Arial, sans-serif !important;
}
html body .wrp-montserrat-dropdown-v17 :is(a, button, [role="menuitem"], li, p, span, small, strong, b, em, label):not(.wrp-montserrat-dropdown-heading-v17) {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.1px !important;
}
html body .wrp-montserrat-dropdown-v17 .wrp-montserrat-dropdown-heading-v17 {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
}
/* Native WP/Woodmart menu fallbacks, including dropdowns without expected titles.
   Only nested menus – not the always-visible nav triggers. */
html body :is(header, nav, .site-header, .main-nav, .header-nav, .wd-header, .site-navigation)
:is(ul.sub-menu, .sub-menu, .mega-menu, .mega-dropdown, .wd-dropdown, .dropdown-menu, [role="menu"])
:is(a, button, [role="menuitem"], span:not([class*="icon"])) {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
/* Portal menu wrappers may be siblings of the header. */
html body :is(.wrp-mega-menu, .wrapping-mega-menu, .nf-mega-menu,
              .wd-dropdown-menu, .wd-dropdown, .mega-menu__panel)
:is(a, button, [role="menuitem"], span:not([class*="icon"])) {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}
@media (max-width: 767px) {
  html body .wrp-montserrat-dropdown-v17 :is(a, button, [role="menuitem"], span) {
    font-size: 13px !important;
  }
}
