/*
 * MerchFuse 1.15.1.0 - Accessible Brand Design System
 * Flat orangish-red, black and neutral palette. No decorative gradients.
 * Loaded after every existing storefront stylesheet so these tokens and
 * component rules are the final visual authority.
 */

:root {
  color-scheme: light;

  /* Brand palette. #d92b22 supports white text at 4.86:1. */
  --mf-brand: #d92b22;
  --mf-brand-hover: #b9231b;
  --mf-brand-active: #9f1f18;
  --mf-brand-link: #b92c22;
  --mf-brand-soft: #fff0ed;
  --mf-brand-soft-strong: #ffe3de;
  --mf-on-brand: #ffffff;

  /* Neutral palette. */
  --mf-surface: #ffffff;
  --mf-surface-2: #f7f7f5;
  --mf-surface-3: #efefec;
  --mf-surface-raised: #ffffff;
  --mf-ink: #111111;
  --mf-text: #191919;
  --mf-muted: #595959;
  --mf-muted-2: #666666;
  --mf-border: #d4d4d0;
  --mf-border-strong: #767676;
  --mf-black: #111111;
  --mf-white: #ffffff;
  --mf-focus: #b92c22;
  --mf-focus-contrast: #ffffff;
  --mf-success: #1f6d3d;
  --mf-warning: #8a5700;
  --mf-error: #b42318;

  /* Compatibility aliases used throughout legacy bundles. */
  --mf-dark: var(--mf-ink);
  --mf-dark-hover: #000000;
  --mf-cream: var(--mf-surface);
  --mf-bg: var(--mf-surface);
  --mf-bg-subtle: var(--mf-surface-2);
  --mf-bg-soft: var(--mf-surface-2);
  --mf-muted-2: #666666;
  --mf-border-dk: var(--mf-border-strong);
  --mf-sage-soft: var(--mf-surface-2);
  --mf-accent: var(--mf-brand);
  --mf-accent-red: var(--mf-brand);
  --mf-accent-red-dark: var(--mf-brand-hover);
  --mf-accent-soft: var(--mf-brand-soft);
  --mf-error: #b42318;
  --mf-release-red: var(--mf-brand);
  --mf-release-red-dark: var(--mf-brand-hover);
  --mf-release-paper: var(--mf-surface-2);
  --mf-release-paper-2: var(--mf-surface);
  --mf-release-ink: var(--mf-ink);
  --mf-release-muted: var(--mf-muted);
  --mf-release-line: rgba(17, 17, 17, 0.16);
  --mf-co-accent: var(--mf-brand);
  --mf-co-ink: var(--mf-ink);
  --mf-pdp-accent: var(--mf-brand);
  --mf-pdp-ink: var(--mf-ink);
  --mf-pdp-muted: var(--mf-muted);
  --mf-pdp-border: var(--mf-border);
  --mf-pdp-soft: var(--mf-surface-2);

  /* One deliberate typography system, with no remote font dependency. */
  --mf-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mf-font-display: Georgia, "Times New Roman", Times, serif;

  --mf-control-height: 48px;
  --mf-control-radius: 8px;
  --mf-card-radius: 12px;
  --mf-shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.08);
  --mf-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  --mf-shadow-md: 0 14px 36px rgba(17, 17, 17, 0.11);
}

html[data-mf-theme="dark"] {
  color-scheme: dark;
  --mf-surface: #111111;
  --mf-surface-2: #191919;
  --mf-surface-3: #242424;
  --mf-surface-raised: #1e1e1e;
  --mf-ink: #f7f7f5;
  --mf-text: #f0f0ee;
  --mf-muted: #c9c9c7;
  --mf-muted-2: #bcbcb9;
  --mf-border: #4f4f4f;
  --mf-border-strong: #767676;
  --mf-focus: #ff766d;
  --mf-focus-contrast: #111111;
  --mf-brand-soft: #391c19;
  --mf-brand-soft-strong: #4b211d;
  --mf-release-line: rgba(255, 255, 255, 0.2);
  --mf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --mf-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  --mf-shadow-md: 0 14px 36px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   Base typography, contrast and interaction
   -------------------------------------------------------------------------- */
html,
body.mf-site {
  background: var(--mf-surface) !important;
  color: var(--mf-text) !important;
}

body.mf-site {
  font-family: var(--mf-font-body) !important;
  font-size: 15px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body.mf-site :where(button, input, select, textarea) {
  font-family: var(--mf-font-body) !important;
}

body.mf-site :where(h1, h2, h3, h4, h5, h6),
body.mf-site :where(.mf-product__title, .entry-title, .page-title) {
  color: var(--mf-ink) !important;
  font-family: var(--mf-font-display) !important;
  font-weight: 600;
  text-wrap: balance;
}

body.mf-site :where(p, li, dd, dt, figcaption, label, small) {
  color: inherit;
}

body.mf-site :where(a:not(.mf-btn):not(.button):not(.wp-element-button)) {
  color: var(--mf-brand-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

body.mf-site :where(a:not(.mf-btn):not(.button):not(.wp-element-button)):hover {
  color: var(--mf-brand-hover);
  text-decoration: underline;
}

body.mf-site :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--mf-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 1px var(--mf-focus-contrast) !important;
}

body.mf-site :where(button, .button, .mf-btn, input[type="button"], input[type="submit"], input[type="reset"]) {
  min-height: 44px;
}

body.mf-site :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  min-height: var(--mf-control-height);
  border: 1px solid var(--mf-border-strong) !important;
  border-radius: var(--mf-control-radius) !important;
  background: var(--mf-surface-raised) !important;
  color: var(--mf-text) !important;
  box-shadow: none !important;
}

body.mf-site :where(input, textarea)::placeholder {
  color: var(--mf-muted) !important;
  opacity: 1;
}

body.mf-site :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--mf-brand);
}

body.mf-site ::selection {
  background: var(--mf-brand);
  color: var(--mf-on-brand);
}

/* --------------------------------------------------------------------------
   Flat-color rule: remove decorative gradients from visible UI surfaces.
   Artwork and editorial photographs remain untouched.
   -------------------------------------------------------------------------- */
body.mf-site :where(
  button,
  .button,
  .mf-btn,
  .wp-element-button,
  .mf-product-card,
  .mf-rp-card,
  .mf-ref-trust-card,
  .mf-trust,
  .mf-trust__item,
  .mf-pdp-format-card,
  .mf-pdp-size-card,
  .mf-pdp-selection,
  .mf-pdp-trust-summary,
  .mf-pdp-support__item,
  .mf-p18-card,
  .mf-education,
  .mf-education__section,
  .mf-education-card,
  .mf-static-hero,
  .mf-live-hero,
  .mf-ci-hero,
  .mf-ci-home-studio,
  .mf-ci-wall-preview,
  .mf-blog-shop-panel,
  .mf-blog-content .mf-brand-box,
  .mf-blog-content .mf-flags,
  .mf-blog-content .mf-note,
  .mf-blog-content .mf-poster-entry,
  .mf-footer-brand,
  .mf-footer-newsletter,
  .mf-footer-trust__item,
  .mf-footer-support,
  .mf-wall-pdp,
  .mf-wall-pdp__button,
  .mf-cart-empty,
  .mf-shop-toolbar .orderby
) {
  background-image: none !important;
}

body.mf-site :where(.mf-skeleton, .mf-ref-img-placeholder, .mf-menu-feature-card__placeholder, .mf-categories__img--placeholder, .mf-editorial__img--placeholder, .mf-live-cat__placeholder) {
  animation: none !important;
  background: var(--mf-surface-3) !important;
}

body.mf-site :where(.mf-ref-promo, .mf-ref-promo--dark, .mf-static-hero, .mf-ci-hero, .mf-blog-shop-panel) {
  background: var(--mf-surface-2) !important;
}

body.mf-site :where(.mf-ref-promo--dark, .mf-ref-promo--dark .mf-ref-promo__content) {
  background: #111111 !important;
  color: #ffffff !important;
}

body.mf-site :where(.mf-ref-promo__media::after, .mf-ref-promo--dark.mf-ref-promo--has-image::after, .mf-cat-banner__scrim, .mf-ci-hero::after) {
  background: rgba(0, 0, 0, 0.56) !important;
  background-image: none !important;
}

body.mf-site :where(.mf-description__content.is-collapsed::after, .mf-description__content.is-collapsed:after) {
  background: transparent !important;
  background-image: none !important;
  border-bottom: 1px solid var(--mf-border) !important;
}

/* --------------------------------------------------------------------------
   Button hierarchy and guaranteed white CTA text
   -------------------------------------------------------------------------- */
body.mf-site :where(
  .mf-btn--primary,
  .single_add_to_cart_button:not(:disabled),
  .checkout-button,
  #place_order,
  .wc-proceed-to-checkout a,
  .woocommerce-form-login__submit,
  .woocommerce-form-register__submit,
  .woocommerce-Button,
  .wc-block-components-button.contained,
  .wc-block-cart__submit-button,
  .wc-block-components-checkout-place-order-button,
  .mf-footer-newsletter__form button[type="submit"]
) {
  border: 1px solid var(--mf-brand) !important;
  background: var(--mf-brand) !important;
  color: var(--mf-on-brand) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body.mf-site :where(
  .mf-btn--primary,
  .single_add_to_cart_button:not(:disabled),
  .checkout-button,
  #place_order,
  .wc-proceed-to-checkout a,
  .woocommerce-form-login__submit,
  .woocommerce-form-register__submit,
  .woocommerce-Button,
  .wc-block-components-button.contained,
  .wc-block-cart__submit-button,
  .wc-block-components-checkout-place-order-button,
  .mf-footer-newsletter__form button[type="submit"]
):hover {
  border-color: var(--mf-brand-hover) !important;
  background: var(--mf-brand-hover) !important;
  color: var(--mf-on-brand) !important;
}

body.mf-site :where(
  .mf-btn--primary,
  .single_add_to_cart_button,
  .checkout-button,
  #place_order,
  .wc-proceed-to-checkout a,
  .woocommerce-Button,
  .mf-footer-newsletter__form button
) :where(.mf-icon, span, strong, small) {
  color: inherit !important;
}

body.mf-site :where(.mf-btn--secondary, .mf-pdp-buy-now, .button.alt:not(.single_add_to_cart_button)) {
  border: 1px solid var(--mf-ink) !important;
  background: var(--mf-surface-raised) !important;
  color: var(--mf-ink) !important;
  box-shadow: none !important;
}

body.mf-site :where(.mf-btn--secondary, .mf-pdp-buy-now, .button.alt:not(.single_add_to_cart_button)):hover {
  border-color: var(--mf-ink) !important;
  background: var(--mf-ink) !important;
  color: var(--mf-surface) !important;
}

body.mf-site :where(button:disabled, .button.disabled, .button[aria-disabled="true"], .single_add_to_cart_button:disabled, .mf-pdp-buy-now:disabled) {
  border-color: #a7a7a7 !important;
  background: #d2d2d2 !important;
  color: #424242 !important;
  filter: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

html[data-mf-theme="dark"] body.mf-site :where(button:disabled, .button.disabled, .button[aria-disabled="true"], .single_add_to_cart_button:disabled, .mf-pdp-buy-now:disabled) {
  border-color: #666666 !important;
  background: #333333 !important;
  color: #c9c9c7 !important;
}

/* --------------------------------------------------------------------------
   Header and theme switcher
   -------------------------------------------------------------------------- */
body.mf-site .mf-header {
  border-bottom: 1px solid #333333 !important;
  background: #0d0d0d !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.mf-site .mf-header :where(a, button, .mf-icon, .mf-nav > li > a) {
  color: #ffffff !important;
}

body.mf-site .mf-header :where(.mf-icon-btn, .mf-menu-toggle, .mf-mobile-nav-close) {
  border-color: transparent !important;
  background: transparent !important;
}

body.mf-site .mf-header :where(.mf-icon-btn, .mf-menu-toggle, .mf-mobile-nav-close):hover {
  background: #272727 !important;
  color: #ffffff !important;
}

body.mf-site .mf-header .mf-nav > li > a:hover,
body.mf-site .mf-header .mf-nav > li.current-menu-item > a,
body.mf-site .mf-header .mf-nav > li.current-menu-ancestor > a {
  color: #ff766d !important;
  text-decoration: none !important;
}

body.mf-site .mf-cart-count {
  border: 1px solid #ffffff !important;
  background: var(--mf-brand) !important;
  color: #ffffff !important;
}

body.mf-site .mf-theme-toggle {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border: 1px solid #555555 !important;
  border-radius: 50% !important;
  background: #171717 !important;
  color: #ffffff !important;
  cursor: pointer;
}

body.mf-site .mf-theme-toggle:hover {
  border-color: #ff766d !important;
  background: #262626 !important;
}

body.mf-site .mf-theme-toggle .mf-icon {
  width: 19px !important;
  height: 19px !important;
}

body.mf-site .mf-theme-toggle__sun,
body.mf-site .mf-theme-toggle__moon {
  grid-area: 1 / 1;
  display: inline-grid;
  place-items: center;
}

html[data-mf-theme="light"] body.mf-site .mf-theme-toggle__sun,
html[data-mf-theme="dark"] body.mf-site .mf-theme-toggle__moon {
  opacity: 0;
  transform: scale(0.72);
}

html[data-mf-theme="light"] body.mf-site .mf-theme-toggle__moon,
html[data-mf-theme="dark"] body.mf-site .mf-theme-toggle__sun {
  opacity: 1;
  transform: scale(1);
}

body.mf-site .mf-theme-toggle__sun,
body.mf-site .mf-theme-toggle__moon {
  transition: opacity 160ms ease, transform 160ms ease;
}

body.mf-site .mf-announce {
  background: var(--mf-brand) !important;
  color: #ffffff !important;
}

body.mf-site .mf-announce a {
  color: #ffffff !important;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Product page: clearer decisions, larger controls and one CTA hierarchy
   -------------------------------------------------------------------------- */
body.single-product.mf-product-page-v2 .mf-product {
  --mf-pdp-border: var(--mf-border);
  --mf-pdp-soft: var(--mf-surface-2);
  --mf-pdp-ink: var(--mf-ink);
  --mf-pdp-muted: var(--mf-muted);
  --mf-pdp-accent: var(--mf-brand);
  color: var(--mf-text);
}

body.single-product.mf-product-page-v2 .mf-product__layout {
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr) !important;
  gap: clamp(34px, 4.6vw, 72px) !important;
}

body.single-product.mf-product-page-v2 .mf-product__summary {
  top: calc(var(--mf-header-height, 78px) + 18px) !important;
  max-height: calc(100vh - var(--mf-header-height, 78px) - 30px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 4px !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-eyebrow {
  color: var(--mf-brand-link) !important;
  font-family: var(--mf-font-body) !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
}

body.single-product.mf-product-page-v2 .mf-product__title {
  max-width: 18ch;
  margin-bottom: 16px !important;
  font-size: clamp(2.35rem, 3.35vw, 4.1rem) !important;
  line-height: 0.99 !important;
  letter-spacing: -0.045em !important;
}

body.single-product.mf-product-page-v2 .mf-product__price {
  color: var(--mf-ink) !important;
  font-family: var(--mf-font-body) !important;
  font-size: clamp(1.4rem, 2vw, 1.85rem) !important;
}

body.single-product.mf-product-page-v2 .mf-product__short-desc {
  max-width: 68ch;
  color: var(--mf-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-configurator {
  margin-top: 10px !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--mf-border) !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-section-heading h2 {
  font-family: var(--mf-font-body) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-step {
  width: 28px !important;
  height: 28px !important;
  border: 2px solid var(--mf-ink) !important;
  background: var(--mf-surface) !important;
  color: var(--mf-ink) !important;
  font-size: 0.76rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-required {
  color: var(--mf-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

body.single-product.mf-product-page-v2 :where(.mf-pdp-format-card, .mf-pdp-size-card) {
  border: 1px solid var(--mf-border-strong) !important;
  border-radius: var(--mf-card-radius) !important;
  background: var(--mf-surface-raised) !important;
  color: var(--mf-text) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.single-product.mf-product-page-v2 :where(.mf-pdp-format-card, .mf-pdp-size-card):hover {
  border-color: var(--mf-brand) !important;
  background: var(--mf-brand-soft) !important;
  color: var(--mf-text) !important;
}

body.single-product.mf-product-page-v2 :where(.mf-pdp-format-card, .mf-pdp-size-card).is-selected {
  border: 2px solid var(--mf-brand) !important;
  background: var(--mf-brand-soft) !important;
  box-shadow: none !important;
}

body.single-product.mf-product-page-v2 :where(.mf-pdp-format-card, .mf-pdp-size-card).is-selected::after {
  width: 24px !important;
  height: 24px !important;
  top: 10px !important;
  right: 10px !important;
  background: var(--mf-brand) !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-format-card {
  min-height: 122px !important;
  padding: 17px !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-format-card__body strong {
  color: var(--mf-ink) !important;
  font-size: 1rem !important;
}

body.single-product.mf-product-page-v2 :where(.mf-pdp-format-card__body small, .mf-pdp-format-card__price) {
  color: var(--mf-muted) !important;
  font-size: 0.79rem !important;
  line-height: 1.45 !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-format-card__price {
  color: var(--mf-ink) !important;
  font-weight: 800 !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-grid {
  gap: 10px !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-card {
  min-height: 112px !important;
  padding: 14px !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-card strong {
  color: var(--mf-ink) !important;
  font-size: 0.96rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-card :where(span, small) {
  color: var(--mf-muted) !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-card span {
  font-size: 0.76rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-card small {
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-card em {
  color: var(--mf-ink) !important;
  font-size: 0.8rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-card:disabled {
  border-color: var(--mf-border) !important;
  background: var(--mf-surface-2) !important;
  color: var(--mf-muted) !important;
  opacity: 0.78 !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-text-button {
  min-height: 44px !important;
  padding: 8px 4px !important;
  color: var(--mf-brand-link) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-guide {
  border: 1px solid var(--mf-border) !important;
  background: var(--mf-surface-2) !important;
  color: var(--mf-muted) !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-selection {
  position: relative;
  min-height: 64px;
  margin: 18px 0 14px !important;
  padding: 13px 16px 13px 48px !important;
  border: 1px solid var(--mf-border-strong) !important;
  border-radius: var(--mf-card-radius) !important;
  background: var(--mf-surface-2) !important;
  color: var(--mf-text) !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-selection::before {
  content: "i";
  position: absolute;
  left: 15px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--mf-ink);
  border-radius: 50%;
  color: var(--mf-ink);
  font-family: Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(-50%);
}

body.single-product.mf-product-page-v2 .mf-pdp-selection strong {
  color: var(--mf-ink) !important;
  font-size: 0.88rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-selection span {
  color: var(--mf-muted) !important;
  font-size: 0.79rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-selection.is-ready {
  border-color: var(--mf-success) !important;
  background: #eef8f1 !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-selection.is-ready::before {
  content: "✓";
  border-color: var(--mf-success);
  background: var(--mf-success);
  color: #ffffff;
  font-family: var(--mf-font-body);
}

body.single-product.mf-product-page-v2 .mf-pdp-selection.is-error,
body.single-product.mf-product-page-v2 .mf-pdp-variation-status.is-error {
  border-color: var(--mf-error) !important;
  background: #fff1f0 !important;
  color: var(--mf-error) !important;
}

html[data-mf-theme="dark"] body.single-product.mf-product-page-v2 .mf-pdp-selection.is-ready {
  background: #173322 !important;
}

html[data-mf-theme="dark"] body.single-product.mf-product-page-v2 :where(.mf-pdp-selection.is-error, .mf-pdp-variation-status.is-error) {
  background: #3b1714 !important;
  color: #ffb4ad !important;
}

body.single-product.mf-product-page-v2 .mf-product__cart-row {
  gap: 10px !important;
}

body.single-product.mf-product-page-v2 .mf-product__add-btn,
body.single-product.mf-product-page-v2 .single_add_to_cart_button {
  min-height: 56px !important;
  border-radius: var(--mf-control-radius) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.025em !important;
}

body.single-product.mf-product-page-v2 .mf-qty,
body.single-product.mf-product-page-v2 .quantity {
  min-height: 56px !important;
  border-color: var(--mf-border-strong) !important;
  border-radius: var(--mf-control-radius) !important;
  background: var(--mf-surface-raised) !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-secondary-actions {
  grid-template-columns: minmax(0, 1fr) 96px !important;
  margin-top: 10px !important;
}

body.single-product.mf-product-page-v2 :where(.mf-pdp-buy-now, .mf-pdp-wishlist) {
  min-height: 52px !important;
  border-radius: var(--mf-control-radius) !important;
  font-weight: 800 !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-wishlist {
  border: 1px solid var(--mf-border-strong) !important;
  background: var(--mf-surface-raised) !important;
  color: var(--mf-ink) !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-wishlist:hover,
body.single-product.mf-product-page-v2 .mf-pdp-wishlist[aria-pressed="true"] {
  border-color: var(--mf-brand) !important;
  background: var(--mf-brand-soft) !important;
  color: var(--mf-brand-link) !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-express-payment {
  margin-top: 2px !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-trust-summary {
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-card-radius) !important;
  background: var(--mf-surface-2) !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-trust-summary > div {
  min-height: 96px;
  padding: 15px !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-trust-summary strong {
  color: var(--mf-ink) !important;
  font-size: 0.79rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-trust-summary span {
  color: var(--mf-muted) !important;
  font-size: 0.73rem !important;
}

body.single-product.mf-product-page-v2 :where(.mf-pdp-support__item, .mf-print-passport, .mf-p18-card) {
  border-color: var(--mf-border) !important;
  background: var(--mf-surface-raised) !important;
  color: var(--mf-text) !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-wall-cta,
body.single-product.mf-product-page-v2 .mf-wall-pdp__button {
  border: 1px solid var(--mf-ink) !important;
  border-radius: var(--mf-control-radius) !important;
  background: var(--mf-ink) !important;
  color: var(--mf-surface) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-wall-cta:hover,
body.single-product.mf-product-page-v2 .mf-wall-pdp__button:hover {
  border-color: var(--mf-brand) !important;
  background: var(--mf-brand) !important;
  color: #ffffff !important;
  transform: none !important;
}

body.single-product.mf-product-page-v2 .mf-wall-pdp {
  border: 1px solid var(--mf-border) !important;
  background: var(--mf-surface-2) !important;
  box-shadow: none !important;
}

body.single-product.mf-product-page-v2 .mf-product__summary .mf-trust--compact {
  gap: 10px !important;
}

body.single-product.mf-product-page-v2 .mf-trust--compact .mf-trust__item {
  min-height: 88px !important;
  border: 1px solid var(--mf-border-strong) !important;
  border-radius: var(--mf-card-radius) !important;
  background: var(--mf-surface-raised) !important;
  color: var(--mf-text) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.single-product.mf-product-page-v2 .mf-trust--compact .mf-trust__item::before {
  width: 4px !important;
  background: var(--mf-brand) !important;
}

body.single-product.mf-product-page-v2 .mf-trust--compact .mf-trust__icon {
  border-color: var(--mf-ink) !important;
  background: var(--mf-ink) !important;
  color: var(--mf-surface) !important;
}

body.single-product.mf-product-page-v2 .mf-trust--compact .mf-trust__copy strong {
  color: var(--mf-ink) !important;
  font-size: 0.78rem !important;
}

body.single-product.mf-product-page-v2 .mf-trust--compact .mf-trust__copy span {
  color: var(--mf-muted) !important;
  font-size: 0.7rem !important;
}

body.single-product.mf-product-page-v2 .mf-gallery__stage {
  border: 1px solid var(--mf-border) !important;
  border-radius: var(--mf-card-radius) !important;
  background: var(--mf-surface-2) !important;
}

body.single-product.mf-product-page-v2 .mf-gallery__role {
  border: 1px solid #767676 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #111111 !important;
  box-shadow: none !important;
}

body.single-product.mf-product-page-v2 .mf-product__extras {
  color: var(--mf-text) !important;
}

body.single-product.mf-product-page-v2 :where(.mf-education__section--quality, .mf-education-card) {
  border-color: var(--mf-border) !important;
  background: var(--mf-surface-2) !important;
  color: var(--mf-text) !important;
  box-shadow: none !important;
}

body.single-product.mf-product-page-v2 .mf-education__section--quality :where(h2, h3, p, .mf-education__eyebrow, .mf-education-card__label) {
  color: var(--mf-ink) !important;
  text-shadow: none !important;
}

body.single-product.mf-product-page-v2 .mf-product-evidence {
  border-color: var(--mf-border) !important;
  background: var(--mf-surface-2) !important;
}

/* --------------------------------------------------------------------------
   Shop, account, cart, checkout, pages and overlays
   -------------------------------------------------------------------------- */
body.mf-site :where(.mf-product-card, .mf-rp-card, .product, .mf-wishlist-card) {
  color: var(--mf-text);
}

body.mf-site :where(.mf-product-card__title, .mf-rp-title, .woocommerce-loop-product__title) {
  color: var(--mf-ink) !important;
}

body.mf-site :where(.mf-product-card__price, .mf-rp-price, .price) {
  color: var(--mf-ink) !important;
}

body.mf-site :where(.mf-shop-toolbar, .mf-cat-chips, .mf-filter-panel, .mf-search-overlay__panel, .mf-search-overlay__form, .mf-search-suggestions, .mf-page, .mf-static-page, .mf-wishlist, .woocommerce-account .woocommerce, .woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce) {
  color: var(--mf-text) !important;
}

body.mf-site :where(.mf-search-overlay__panel, .mf-search-overlay__form, .mf-search-suggestions, .mf-filter-panel, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content, .woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order, .woocommerce-billing-fields, .woocommerce-shipping-fields) {
  border-color: var(--mf-border) !important;
  background: var(--mf-surface-raised) !important;
}

body.mf-site :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  border: 1px solid var(--mf-border-strong) !important;
  background: var(--mf-surface-2) !important;
  color: var(--mf-text) !important;
}

body.mf-site .woocommerce-error {
  border-color: var(--mf-error) !important;
}

body.mf-site :where(table, th, td) {
  border-color: var(--mf-border) !important;
}

body.mf-site :where(.wc-block-components-order-summary, .wc-block-components-totals-wrapper, .wc-block-components-sidebar, .wc-block-components-panel, .wc-block-components-address-card) {
  border-color: var(--mf-border) !important;
  background: var(--mf-surface-raised) !important;
  color: var(--mf-text) !important;
}

/* --------------------------------------------------------------------------
   Footer: keep the approved black + red visual language everywhere
   -------------------------------------------------------------------------- */
body.mf-site .mf-footer {
  border-top: 1px solid #333333 !important;
  background: #0d0d0d !important;
  color: #ffffff !important;
}

body.mf-site .mf-footer :where(h1, h2, h3, h4, h5, h6, strong, dt) {
  color: #ffffff !important;
}

body.mf-site .mf-footer :where(p, small, dd) {
  color: #c7c7c7 !important;
}

body.mf-site .mf-footer :where(a:not(.mf-footer-primary-link), button) {
  color: #ffffff !important;
}

body.mf-site .mf-footer a:hover {
  color: #ff8a82 !important;
}

body.mf-site :where(.mf-footer-brand, .mf-footer-newsletter, .mf-footer-trust__item, .mf-footer-support) {
  border-color: #3f3f3f !important;
  background: #171717 !important;
  box-shadow: none !important;
}

body.mf-site .mf-footer-kicker {
  color: #ff8a82 !important;
}

body.mf-site .mf-footer-primary-link {
  border: 1px solid #ffffff !important;
  background: #ffffff !important;
  color: #111111 !important;
}

body.mf-site .mf-footer-primary-link:hover {
  border-color: var(--mf-brand) !important;
  background: var(--mf-brand) !important;
  color: #ffffff !important;
}

body.mf-site .mf-footer-newsletter__form {
  border: 1px solid #767676 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.mf-site .mf-footer-newsletter__form input[type="email"] {
  border: 0 !important;
  background: #ffffff !important;
  color: #111111 !important;
}

body.mf-site .mf-footer-newsletter__form input[type="email"]::placeholder {
  color: #595959 !important;
}

body.mf-site .mf-footer-newsletter__form button[type="submit"] {
  min-width: 112px;
  border-radius: 10px !important;
  font-weight: 800 !important;
}

body.mf-site .mf-footer__social a {
  border-color: #767676 !important;
  background: #171717 !important;
  color: #ffffff !important;
}

body.mf-site .mf-footer__social a:hover {
  border-color: var(--mf-brand) !important;
  background: var(--mf-brand) !important;
  color: #ffffff !important;
}

body.mf-site .mf-footer-trust__item .mf-icon {
  color: #ff8a82 !important;
}

/* --------------------------------------------------------------------------
   Dark mode component corrections for hard-coded legacy colors
   -------------------------------------------------------------------------- */
html[data-mf-theme="dark"] body.mf-site :where(
  .mf-site__main,
  .mf-product,
  .mf-product__extras,
  .mf-page,
  .mf-static-page,
  .mf-shop,
  .mf-archive,
  .mf-blog,
  .mf-hub,
  .woocommerce,
  .woocommerce-page
) {
  background: var(--mf-surface) !important;
  color: var(--mf-text) !important;
}

html[data-mf-theme="dark"] body.mf-site :where(
  .mf-product-card,
  .mf-rp-card,
  .mf-ref-trust-card,
  .mf-cat-chip,
  .mf-search-suggestions__item,
  .mf-search-suggestions__quick a,
  .mf-wall__gallery-item,
  .mf-wall__gallery-builder,
  .mf-p18-card,
  .mf-ci-card,
  .mf-guide__shop,
  .mf-journal-note,
  .mf-hub__glossary-cta,
  article,
  aside,
  details
) {
  border-color: var(--mf-border) !important;
  background-color: var(--mf-surface-raised) !important;
  color: var(--mf-text) !important;
}

html[data-mf-theme="dark"] body.mf-site :where(.mf-product-card__media, .mf-rp-img-wrap, .mf-gallery__stage, .mf-gallery__thumb-btn, .mf-ref-category figure, .mf-categories__media, .mf-live-cat__media) {
  background: #202020 !important;
}

html[data-mf-theme="dark"] body.mf-site :where(.mf-product-card__title, .mf-rp-title, .woocommerce-loop-product__title, .mf-cat-chip, summary, label, legend, th, td) {
  color: var(--mf-text) !important;
}

html[data-mf-theme="dark"] body.mf-site :where(.mf-product-card__meta, .mf-product-card__price .mf-price-from__label, .mf-rp-price .mf-price-from__label, .mf-breadcrumbs, .woocommerce-breadcrumb) {
  color: var(--mf-muted) !important;
}

html[data-mf-theme="dark"] body.mf-site :where(.mf-cat-chip:hover, .mf-cat-chip:focus-visible, .mf-search-suggestions__quick a:hover) {
  border-color: var(--mf-focus) !important;
  background: var(--mf-brand-soft) !important;
  color: #ffd7d3 !important;
}

html[data-mf-theme="dark"] body.mf-site :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) a {
  color: #ff9a93 !important;
}

/* --------------------------------------------------------------------------
   Responsive containment
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  body.single-product.mf-product-page-v2 .mf-product__layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr) !important;
    gap: 34px !important;
  }
}

@media (max-width: 1024px) {
  body.mf-site .mf-mobile-tools {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2px !important;
  }

  body.mf-site .mf-mobile-tools .mf-theme-toggle {
    display: inline-grid !important;
  }

  body.mf-site .mf-header__tools .mf-theme-toggle {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  body.mf-site .mf-mobile-tools .mf-theme-toggle {
    display: none !important;
  }
}

@media (max-width: 820px) {
  body.single-product.mf-product-page-v2 .mf-product__layout {
    display: block !important;
  }

  body.single-product.mf-product-page-v2 .mf-product__summary {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  body.single-product.mf-product-page-v2 .mf-product__title {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3.25rem) !important;
  }
}

@media (max-width: 600px) {
  body.mf-site {
    font-size: 15px;
  }

  body.single-product.mf-product-page-v2 .mf-pdp-format-grid {
    grid-template-columns: 1fr !important;
  }

  body.single-product.mf-product-page-v2 .mf-pdp-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.single-product.mf-product-page-v2 .mf-pdp-secondary-actions {
    grid-template-columns: minmax(0, 1fr) 92px !important;
  }

  body.mf-site .mf-footer-newsletter__form {
    grid-template-columns: 1fr !important;
  }

  body.mf-site .mf-footer-newsletter__form button[type="submit"] {
    width: 100% !important;
  }
}

@media (max-width: 380px) {
  body.single-product.mf-product-page-v2 .mf-pdp-size-grid {
    grid-template-columns: 1fr !important;
  }

  body.mf-site .mf-theme-toggle,
  body.mf-site .mf-header :where(.mf-icon-btn, .mf-menu-toggle) {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mf-site *,
  body.mf-site *::before,
  body.mf-site *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --mf-border: #767676;
    --mf-border-strong: #555555;
  }

  html[data-mf-theme="dark"] {
    --mf-border: #8a8a8a;
    --mf-border-strong: #bcbcbc;
  }
}

@media print {
  html,
  html[data-mf-theme="dark"],
  body.mf-site {
    color-scheme: light;
    background: #ffffff !important;
    color: #111111 !important;
  }

  body.mf-site .mf-theme-toggle {
    display: none !important;
  }
}

/* Product choice instructions remain visible, concise and high contrast. */
body.single-product.mf-product-page-v2 .mf-pdp-help {
  margin: 7px 0 11px !important;
  color: var(--mf-muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

/* Flat, non-gradient select affordance; preserves an obvious dropdown arrow. */
body.mf-site .mf-shop-toolbar .orderby {
  padding-right: 46px !important;
  background-color: var(--mf-surface-raised) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: right 17px center !important;
  background-repeat: no-repeat !important;
  background-size: 14px 8px !important;
}

html[data-mf-theme="dark"] body.mf-site .mf-shop-toolbar .orderby {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f7f7f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* Remaining legacy gradient surfaces are flattened without removing artwork. */
body.mf-site :where(
  .mf-ref-collection__hero,
  .mf-ref-collection__placeholder,
  .mf-menu-feature-card__media,
  .mf-menu-feature-card__placeholder,
  .mf-footer--premium .mf-footer__column,
  .mf-footer-hero__brand,
  .mf-footer--premium .mf-footer__column--support,
  .mf-wall__header,
  .mf-ci-wall-preview__art span,
  .mf-ci-ruler::before
) {
  background-image: none !important;
}

body.mf-site .mf-ref-collection__hero,
body.mf-site .mf-wall__header {
  background: var(--mf-surface-2) !important;
}

body.mf-site :where(.mf-ref-collection__placeholder, .mf-menu-feature-card__media, .mf-menu-feature-card__placeholder) {
  background: var(--mf-surface-3) !important;
}

body.mf-site :where(.mf-footer--premium .mf-footer__column, .mf-footer-hero__brand, .mf-footer--premium .mf-footer__column--support) {
  background: #171717 !important;
}

body.mf-site .mf-ci-wall-preview__art span {
  background: var(--mf-brand) !important;
}

body.mf-site .mf-ci-ruler::before {
  height: 1px !important;
  background: var(--mf-border-strong) !important;
}

/* Replace gradient-drawn plus/minus marks with real text glyphs. */
body.mf-site .mf-tabs__btn::after {
  content: "+" !important;
  background: var(--mf-surface-raised) !important;
  color: var(--mf-ink) !important;
  font-family: var(--mf-font-body) !important;
  font-size: 1.35rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

body.mf-site .mf-tabs__btn.is-active::after,
body.mf-site .mf-tabs__btn[aria-expanded="true"]::after {
  content: "−" !important;
  border-color: var(--mf-brand) !important;
  background: var(--mf-brand) !important;
  color: #ffffff !important;
}

/* Avoid a nested scrolling purchase column; keep the whole buying flow in the page scroll. */
body.single-product.mf-product-page-v2 .mf-product__summary {
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
  padding-right: 0 !important;
}

body.single-product.mf-product-page-v2 .mf-product__title {
  max-width: 20ch !important;
  font-size: clamp(2rem, 2.7vw, 3.35rem) !important;
  line-height: 1.02 !important;
}

body.single-product.mf-product-page-v2 :where(.mf-pdp-format-card__body small, .mf-pdp-format-card__price) {
  font-size: 0.82rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-card span {
  font-size: 0.8rem !important;
}

body.single-product.mf-product-page-v2 .mf-pdp-size-card small,
body.single-product.mf-product-page-v2 .mf-pdp-trust-summary span {
  font-size: 0.78rem !important;
}

body.mf-site :where(.mf-product-card__title, .mf-rp-title, .woocommerce-loop-product__title) {
  font-size: clamp(0.9rem, 1vw, 1rem) !important;
  line-height: 1.35 !important;
}

body.mf-site :where(.mf-product-card__price, .mf-rp-price) {
  font-size: 0.88rem !important;
}

/* Final readability and page-length corrections from the supplied product-page review. */
body.single-product.mf-product-page-v2 .mf-trust--compact .mf-trust__copy span {
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

body.single-product.mf-product-page-v2 .mf-gallery__role {
  min-height: 32px !important;
  padding: 6px 10px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
}

body.mf-site :where(.mf-footer-brand, .mf-footer-newsletter) {
  min-height: 240px !important;
  padding: clamp(24px, 3vw, 40px) !important;
}

body.mf-site .mf-footer :where(.mf-footer__column a, .mf-footer-support a) {
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}
