/* ===========================================================================
   Floor Protect - mobile navigation chrome
   Loaded after brand.css. Desktop is untouched; everything below only turns on
   at <=1024px, where the Elementor header band and utility strip are replaced
   by a sticky bar, a slide-in drawer and a fixed bottom action bar.
   Open state = .fp-nav-open on <html>.
   =========================================================================== */

.fp-mbar, .fp-mscrim, .fp-mdrawer, .fp-mtabs { display: none; }

@media (max-width: 1024px) {

  /* --- retire the desktop chrome ----------------------------------------- */
  body.fp-chrome .fp-topbar,
  body.elementor-template-canvas .fp-topbar { display: none; }
  body.fp-chrome:not(.fp-shell) .elementor > .e-con:first-child,
  body.elementor-template-canvas .elementor > .e-con:first-child { display: none; }

  /* --- sticky top bar ----------------------------------------------------- */
  .fp-mbar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 60;
    background: var(--fp-stone); border-bottom: 1px solid var(--fp-line);
    padding: 5px 18px; min-height: 54px;
    font-family: Manrope, 'Helvetica Neue', Arial, sans-serif;
  }
  body.admin-bar .fp-mbar { top: 46px; }

  .fp-mbar .fp-mbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-width: 44px; min-height: 44px; cursor: pointer;
    background: none; border: 0; padding: 0; margin: 0;
    color: var(--fp-ink); text-decoration: none;
    font-family: inherit; font-size: 11px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
  }
  .fp-mbar .fp-mbtn-menu { justify-content: flex-start; justify-self: start; }
  .fp-mbar .fp-mbtn-cart { justify-content: flex-end; justify-self: end; }
  .fp-mbar .fp-mbtn svg { width: 22px; height: 22px; }
  .fp-mbar .fp-mbtn:hover, .fp-mbar .fp-mbtn:focus-visible { color: var(--fp-accent); }

    .fp-mbar .fp-mlogo { justify-self: center; display: block; line-height: 0; }
  .fp-mbar .fp-badge { top: -6px; right: -6px; }
body.fp-chrome .fp-mlogo img,
  body.elementor-template-canvas .fp-mlogo img { width: 144px; height: auto; display: block; }

  /* --- scrim -------------------------------------------------------------- */
  .fp-mscrim {
    display: block; position: fixed; inset: 0; z-index: 70;
    background: rgba(34, 32, 28, .55);
    opacity: 0; pointer-events: none; transition: opacity .26s ease;
  }
  .fp-nav-open .fp-mscrim { opacity: 1; pointer-events: auto; }

  /* --- drawer ------------------------------------------------------------- */
  .fp-mdrawer {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
    width: 87%; max-width: 340px;
    background: var(--fp-surface);
    font-family: Manrope, 'Helvetica Neue', Arial, sans-serif;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateX(-101%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    visibility: hidden; padding-bottom: 20px;
  }
  body.admin-bar .fp-mdrawer { top: 46px; }
  .fp-nav-open .fp-mdrawer { transform: translateX(0); visibility: visible; }
  .fp-nav-open body { overflow: hidden; }

  .fp-mdrawer-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--fp-line); flex: 0 0 auto;
  }
  body.fp-chrome .fp-mdrawer-logo,
  body.elementor-template-canvas .fp-mdrawer-logo { width: 140px; height: auto; display: block; }
  .fp-mclose {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -11px; cursor: pointer;
    background: none; border: 0; padding: 0; color: var(--fp-ink);
  }
  .fp-mclose svg { width: 22px; height: 22px; }

  .fp-msearch {
    display: flex; align-items: center; gap: 9px; flex: 0 0 auto;
    margin: 14px 18px 2px; padding: 11px 12px;
    background: var(--fp-stone); border: 1px solid var(--fp-line); border-radius: 2px;
  }
  .fp-msearch-ico { display: inline-flex; color: var(--fp-muted); }
  .fp-msearch-ico svg { width: 18px; height: 18px; }
  .fp-msearch input[type=search] {
    flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
    font-family: inherit; font-size: 15px; color: var(--fp-ink); padding: 0;
  }
  .fp-msearch input[type=search]::placeholder { color: var(--fp-muted); }

  .fp-mlinks { list-style: none; margin: 10px 0 0; padding: 0; flex: 0 0 auto; }
  .fp-mlinks li { margin: 0; }
  .fp-mlinks a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; text-decoration: none;
    font-family: Archivo, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--fp-ink);
    border-bottom: 1px solid var(--fp-line);
  }
  .fp-mlinks a svg { width: 15px; height: 15px; color: var(--fp-muted); flex: 0 0 15px; }
  .fp-mlinks a.is-active { color: var(--fp-accent); }
  .fp-mlinks a.is-active svg { color: var(--fp-accent); }

  .fp-mhead {
    margin: 20px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--fp-muted);
  }
  .fp-mranges { list-style: none; margin: 0; padding: 0; flex: 0 0 auto; }
  .fp-mranges a {
    display: block; padding: 9px 18px; text-decoration: none;
    font-size: 14.5px; line-height: 1.35; color: var(--fp-muted);
  }
  .fp-mranges a:hover { color: var(--fp-accent); }

  .fp-maccount { margin-top: 16px; border-top: 1px solid var(--fp-line); flex: 0 0 auto; }
  .fp-maccount a {
    display: flex; align-items: center; gap: 10px; padding: 13px 18px;
    font-size: 14px; font-weight: 600; color: var(--fp-ink); text-decoration: none;
    border-bottom: 1px solid var(--fp-line);
  }
  .fp-maccount svg { width: 19px; height: 19px; color: var(--fp-muted); flex: 0 0 19px; }
  .fp-mcount {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; text-align: center;
    background: var(--fp-accent); color: #fff; font-size: 10.5px; line-height: 18px;
  }

  .fp-mfoot { margin-top: auto; padding: 22px 18px 6px; flex: 0 0 auto; }
  .fp-mcall {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 16px; border-radius: 2px;
    background: var(--fp-accent); color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 700; letter-spacing: .2px;
  }
  .fp-mcall:hover, .fp-mcall:focus-visible { background: var(--fp-accent-dark); color: #fff; }
  .fp-mcall svg { width: 18px; height: 18px; }
  .fp-maddr { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--fp-muted); }
  .fp-mdrawer .fp-social { margin-top: 14px; }
  .fp-mdrawer .fp-social a.fp-soc { border-color: var(--fp-line); color: var(--fp-ink); }
  .fp-mdrawer .fp-social a.fp-soc:hover { background: var(--fp-accent); border-color: var(--fp-accent); color: #fff; }

  /* --- fixed bottom action bar -------------------------------------------- */
  .fp-mtabs {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--fp-surface); border-top: 1px solid var(--fp-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    font-family: Manrope, 'Helvetica Neue', Arial, sans-serif;
  }
  .fp-mtabs .fp-tab {
    flex: 1 1 0; min-width: 0; min-height: 56px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    padding: 8px 2px; color: var(--fp-ink); text-decoration: none;
  }
  .fp-tab-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; }
  .fp-tab-ico svg { width: 21px; height: 21px; display: block; }
  .fp-tab-lb { font-size: 10.5px; font-weight: 600; letter-spacing: .3px; color: var(--fp-muted); }
  .fp-mtabs .fp-tab-call { color: var(--fp-accent); }
  .fp-mtabs .fp-tab-call .fp-tab-lb { color: var(--fp-accent); }
  .fp-mtabs .fp-tab:active { background: var(--fp-stone); }

  /* keep the footer clear of the fixed bar (Woodmart also writes body padding) */
  body.fp-chrome,
  body.elementor-template-canvas { padding-bottom: 62px !important; }

  /* Woodmart's own sticky toolbar would double up with ours */
  body.fp-chrome .wd-toolbar,
  body.elementor-template-canvas .wd-toolbar { display: none !important; }
}

/* :has() fallback - if the first-child rule ever misses, this still catches
   the header band by its nav. Kept in its own rule so parsers that do not
   understand :has() only drop this one. */
@media (max-width: 1024px) {
  body.fp-chrome:not(.fp-shell) .elementor > .e-con:has(.fp-nav) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-mdrawer, .fp-mscrim { transition: none; }
}

/* MOBILE BAR TIGHTEN - narrow phones give the wordmark a little less room */
@media (max-width: 400px) {
  body.fp-chrome .fp-mlogo img,
  body.elementor-template-canvas .fp-mlogo img { width: 132px; }
  .fp-mbar { padding-left: 16px; padding-right: 16px; }
}
