/* EmoBuild 0.6.46 – WoodMart native mobile menu, tabs and navigation.
   Enqueued as its own cache-busted late style. No link/menu duplication. */
@media (max-width: 1024px) {
  html body .mobile-nav {
    --emo46-navy: #133e65;
    --emo46-border: #cbdde9;
    --emo46-focus: #ae7418;
    background: #f7fbfe !important;
  }
  /* WoodMart's real tab markup: ul.wd-nav-mob-tab > li.mobile-tab-title > a. */
  html body .mobile-nav ul.wd-nav.wd-nav-mob-tab {
    --nav-gap: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 14px 15px 16px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg,#f4faff 0%,#eaf4fc 100%) !important;
    border: 0 !important;
    border-bottom: 1px solid #cbdde9 !important;
  }
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-tab-title {
    display: block !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-tab-title > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 65px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 11px 10px !important;
    border: 2px solid transparent !important;
    border-radius: 18px !important;
    color: #173d60 !important;
    font-size: clamp(15px, 4vw, 18px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -.01em !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: border-color .16s ease, box-shadow .16s ease !important;
    box-shadow: 0 4px 12px rgba(18,58,91,.055) !important;
  }
  html body .mobile-nav .wd-nav-mob-tab .mobile-pages-title > a {
    background: linear-gradient(135deg,#eff7ff 0%,#d9ecfa 100%) !important;
    border-color: #a8cae2 !important;
  }
  html body .mobile-nav .wd-nav-mob-tab .mobile-categories-title > a {
    background: linear-gradient(135deg,#fff9e9 0%,#ffedbf 100%) !important;
    border-color: #e7c97b !important;
  }
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-tab-title > a .nav-link-text {
    position: static !important;
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    white-space: nowrap !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  /* Remove WoodMart's full-width underline: these are now bordered cards. */
  html body .mobile-nav ul.wd-nav-mob-tab.wd-style-underline > li > a .nav-link-text::after {
    content: none !important;
    display: none !important;
    height: 0 !important;
    border: 0 !important;
  }
  /* JS inserts optional decorative SVG icons without changing tab behavior. */
  html body .mobile-nav .emo46-tab-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 35px !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.76) !important;
    color: currentColor !important;
    border: 1px solid rgba(18,58,91,.09) !important;
  }
  html body .mobile-nav .emo46-tab-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }
  /* Native active class is on li.mobile-tab-title. */
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-pages-title.wd-active > a,
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-pages-title > a[aria-expanded="true"] {
    background: linear-gradient(135deg,#205a86 0%,#103c64 100%) !important;
    color: #fff !important;
    border-color: #103c64 !important;
    box-shadow: 0 7px 17px rgba(13,57,94,.19) !important;
  }
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-categories-title.wd-active > a,
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-categories-title > a[aria-expanded="true"] {
    background: linear-gradient(135deg,#b77b18 0%,#875910 100%) !important;
    color: #fff !important;
    border-color: #875910 !important;
    box-shadow: 0 7px 17px rgba(126,82,18,.19) !important;
  }
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-tab-title.wd-active > a .emo46-tab-icon,
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-tab-title > a[aria-expanded="true"] .emo46-tab-icon {
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.32) !important;
  }
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-tab-title:not(.wd-active) > a:hover {
    border-color: #5d96c0 !important;
    background: #d7ebf8 !important;
  }
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-categories-title:not(.wd-active) > a:hover {
    border-color: #b98d35 !important;
    background: #fce5a7 !important;
  }
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-tab-title > a:focus-visible {
    outline: 3px solid var(--emo46-focus) !important;
    outline-offset: 3px !important;
  }

  /* Readable, colorful cards: preserve actual WoodMart navigation and submenus. */
  html body .mobile-nav ul.wd-nav-mobile {
    --nav-gap: 0 !important;
    margin: 0 !important;
    padding: 14px 14px 110px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg,#f9fcff,#f4f9fd) !important;
  }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item {
    --emo46-accent: #3779ac;
    --emo46-tint: #f1f8ff;
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: var(--emo46-tint) !important;
    border: 1px solid #d8e5ee !important;
    border-inline-start: 5px solid var(--emo46-accent) !important;
    border-radius: 17px !important;
    box-shadow: 0 4px 13px rgba(14,56,86,.045) !important;
  }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item:nth-child(7n + 2) { --emo46-accent:#3877c8; --emo46-tint:#eef5ff; }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item:nth-child(7n + 3) { --emo46-accent:#ca8a2b; --emo46-tint:#fff8e8; }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item:nth-child(7n + 4) { --emo46-accent:#8b67bf; --emo46-tint:#f7f3fc; }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item:nth-child(7n + 5) { --emo46-accent:#2b8c93; --emo46-tint:#edf9fa; }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item:nth-child(7n + 6) { --emo46-accent:#35816f; --emo46-tint:#eff9f5; }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item:nth-child(7n) { --emo46-accent:#397c69; --emo46-tint:#f0f9f4; }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item:is(.current-menu-item,.current_page_item,.current-menu-ancestor) {
    border-color: var(--emo46-accent) !important;
    box-shadow: 0 0 0 2px rgba(28,93,130,.1) !important;
  }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item > a {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    min-height: 62px !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 15px 16px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 760 !important;
    color: #133e65 !important;
    text-align: start !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    text-decoration: none !important;
    transition: background .18s ease,color .18s ease !important;
  }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item > a:hover,
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item > a:focus-visible {
    background: rgba(255,255,255,.68) !important;
    color: #0c365a !important;
  }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item > a:focus-visible,
  html body .mobile-nav ul.wd-nav-mobile :is(button,a,.wd-nav-opener):focus-visible {
    outline: 3px solid var(--emo46-focus) !important;
    outline-offset: -3px !important;
  }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item > .wd-nav-opener {
    box-sizing: border-box !important;
    flex: 0 0 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    align-self: center !important;
    margin: 4px 7px 4px 0 !important;
    border: 1px solid #c5d9e8 !important;
    border-radius: 12px !important;
    color: #154669 !important;
    background: rgba(255,255,255,.73) !important;
  }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item > .wd-nav-opener:hover {
    background: #fff !important;
    border-color: var(--emo46-accent) !important;
  }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item > :is(.wd-sub-menu,.sub-menu,.sub-sub-menu) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    border-top: 1px solid #d7e5ee !important;
    border-radius: 0 0 14px 14px !important;
    margin: 0 !important;
    padding: 5px 0 7px !important;
    background: rgba(255,255,255,.8) !important;
  }
  html body .mobile-nav .wd-nav-mobile > li .wd-sub-menu li > a,
  html body .mobile-nav .wd-nav-mobile > li .sub-menu li > a {
    min-height: 48px !important;
    padding: 10px 16px !important;
    color: #1a4768 !important;
    font-weight: 650 !important;
  }
}
@media (max-width: 380px) {
  html body .mobile-nav ul.wd-nav.wd-nav-mob-tab { gap: 8px !important; padding: 12px 10px 14px !important; }
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-tab-title > a { min-height: 60px !important; gap: 6px !important; padding: 9px 6px !important; font-size: 15px !important; }
  html body .mobile-nav .emo46-tab-icon { flex-basis: 30px !important; width: 30px !important; height: 30px !important; border-radius: 9px !important; }
  html body .mobile-nav .emo46-tab-icon svg { width: 18px !important; height: 18px !important; }
  html body .mobile-nav ul.wd-nav-mobile { padding-inline: 10px !important; }
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item > a { padding-inline: 12px !important; font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body .mobile-nav ul.wd-nav-mob-tab > li.mobile-tab-title > a,
  html body .mobile-nav ul.wd-nav-mobile > li.menu-item > a { transition: none !important; }
}
