/* Rosaifa 4.17.0 — production runtime hardening.
   Shared fixed-header geometry, global footer signature, compact mobile nav,
   accessibility preferences and layout-stability primitives. */

/* Single authoritative fixed-header presentation. Geometry is measured by runtime-v4170.js. */
body.rf-v4136-fixed-header .rf-site-header {
  position: fixed !important;
  top: var(--rf-v4136-header-top, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1500 !important;
  transform: none !important;
  box-shadow: 0 8px 28px rgba(55,34,22,.065), 0 1px 0 rgba(47,36,29,.055);
}
.rf-v4136-header-spacer {
  display: block;
  height: var(--rf-v4136-header-height, 0px);
  pointer-events: none;
}
body.rf-v4136-fixed-header .rf-sticky-header-spacer { display: none !important; }

/* Keep anchor/focus landings clear of the measured fixed header. */
html { scroll-padding-top: calc(var(--rf-v4136-header-height, 0px) + 16px); }
:target { scroll-margin-top: calc(var(--rf-v4136-header-height, 0px) + 16px); }

/* Footer uses the approved Rosaifa logo source and established copper rendering. */
.rf-footer-wordmark-image {
  display: block;
  line-height: 1;
  max-width: min(100%, 430px);
}
.rf-footer-wordmark-image .custom-logo-link,
.rf-footer-wordmark-image .rf-fallback-logo {
  align-items: center;
  display: inline-flex;
  max-width: 100%;
  text-decoration: none;
}
.rf-footer-wordmark-image .custom-logo,
.rf-footer-wordmark-image .rf-fallback-logo img {
  display: block;
  width: min(100%, 390px);
  height: auto;
  max-height: 112px;
  max-width: 390px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  transform: scaleX(1.065);
  transform-origin: left center;
  filter: contrast(1.09) saturate(1.03)
    drop-shadow(.26px 0 0 rgba(105,65,48,.42))
    drop-shadow(-.26px 0 0 rgba(105,65,48,.42))
    drop-shadow(0 .20px 0 rgba(105,65,48,.28));
}

/* Preserve the approved compact global mobile quick-nav footprint. */
@media (max-width: 760px) {
  .rf-v411-mobile-nav {
    min-height: 56px !important;
    padding: 4px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(28,21,17,.14) !important;
  }
  .rf-v411-mobile-nav a { min-height: 46px !important; }
  .rf-v411-mobile-nav a svg { height: 19px !important; width: 19px !important; }
  .rf-v411-mobile-nav .rf-v411-nav-feature { margin-top: -11px !important; min-height: 50px !important; }
  body:not(.woocommerce-checkout) { padding-bottom: 70px !important; }

  .rf-footer-wordmark-image { max-width: 310px; }
  .rf-footer-wordmark-image .custom-logo,
  .rf-footer-wordmark-image .rf-fallback-logo img {
    width: min(100%, 300px);
    max-height: 88px;
  }
}

/* Interaction and number rendering hardening. */
:where(a, button, [role="button"], input, select, textarea, summary) { touch-action: manipulation; }
:where(.woocommerce-Price-amount, .amount, .rf-price, .rf-cart-count, [data-rf-cart-qty-value]) {
  font-variant-numeric: tabular-nums lining-nums;
}
.rf-mobile-drawer,
.rf-v3-drawer { overscroll-behavior: contain; }

@supports (scrollbar-gutter: stable) {
  html { scrollbar-gutter: stable; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body.rf-v4136-fixed-header .rf-site-header { transition: none !important; }
  .rf-trustbar-track { animation: none !important; transform: none !important; }
  .rf-hero-slider-track { transition: none !important; }
}
