/* Sobji Core 1.24.0 – menus (was WPCode CSS snippet 3921 "Sobji – Side menu icons & sections").
   Loaded by Sobji_Menu (includes/storefront/class-sobji-menu.php), which also prints one --sj-ic rule per icon.
   Menu item CSS classes (Appearance › Menus): sj-ic sj-ic-<name> = animated icon, sj-menu-heading = section title
   (custom link, URL #), sj-guest-only = left out for logged-in customers.
   Menus: desktop side menu (.wd-sticky-nav), mobile menu tabs (.mobile-nav), header menu (.wd-header-secondary-nav). */

/* ---------- 1. Icons: hide the theme's image / font icons on our items, use the mask icon ---------- */
:is(.wd-sticky-nav,.mobile-nav,.wd-header-secondary-nav) li.sj-ic>a :is(.wd-nav-img,.wd-nav-icon){display:none}
:is(.wd-sticky-nav,.mobile-nav,.wd-header-secondary-nav) li.sj-ic>a .wd-nav-img+.nav-link-text{margin-left:0!important;margin-inline-start:0!important}
:is(.wd-sticky-nav,.mobile-nav,.wd-header-secondary-nav) li.sj-ic>a{display:flex;align-items:center}
:is(.wd-sticky-nav,.mobile-nav,.wd-header-secondary-nav) li.sj-ic>a::before{
  content:"";flex:0 0 18px;width:18px;height:18px;margin-inline-end:10px;
  background-color:#2f6b45;
  -webkit-mask:var(--sj-ic) center/contain no-repeat;
          mask:var(--sj-ic) center/contain no-repeat}

/* 1.25.0: inline line-draw icons (<svg class="sj-ic-svg"> printed by Sobji_Menu after the item's <a>, which gets
   data-sj-ic). Drawn once on load as a wave (--sj-i × 0.18 s), replayed by public/js/menu-icons.js every N seconds
   and on hover. Without an inline icon the ::before mask above is the fallback. */
svg.sj-ic-svg{display:none}
:is(.wd-sticky-nav,.mobile-nav,.wd-header-secondary-nav) li.sj-ic>a>svg.sj-ic-svg,
.mobile-nav li.login-side-opener>a>svg.sj-ic-svg{
  display:block;flex:0 0 18px;width:18px;height:18px;margin-inline-end:10px;color:#2f6b45;overflow:visible;pointer-events:none}
:is(.wd-sticky-nav,.mobile-nav,.wd-header-secondary-nav) li.sj-ic>a[data-sj-ic]::before,
.mobile-nav li.login-side-opener>a[data-sj-ic]::before{display:none!important}
svg.sj-ic-svg :is(path,circle,rect){stroke-dasharray:1 2;stroke-dashoffset:0}
svg.sj-ic-svg.sj-draw :is(path,circle,rect){animation:sj-ic-draw 1s ease-in-out both;animation-delay:calc(var(--sj-i,0) * .18s)}
svg.sj-ic-svg.sj-draw.sj-draw-now :is(path,circle,rect){animation-delay:0s}
@keyframes sj-ic-draw{0%{stroke-dashoffset:1}100%{stroke-dashoffset:0}}

/* ---------- 2. Section headings ---------- */
:is(.wd-sticky-nav,.mobile-nav,.wd-header-secondary-nav) li.sj-menu-heading>a{pointer-events:none;cursor:default;min-height:0!important;padding-top:6px!important;padding-bottom:6px!important}
:is(.wd-sticky-nav,.mobile-nav,.wd-header-secondary-nav) li.sj-menu-heading>a .nav-link-text{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8a958c}
.wd-sticky-nav li.sj-menu-heading{margin-top:6px;padding-top:4px;border-top:1px solid rgba(0,0,0,.08)}
.wd-sticky-nav li.sj-menu-heading:first-child{margin-top:0;padding-top:0;border-top:0}
.mobile-nav li.sj-menu-heading{margin-top:6px;background:#f4f9f4;border-bottom:0!important}
.mobile-nav li.sj-menu-heading>a{min-height:34px!important}

/* ---------- 3. Desktop side menu: no "Menu" pill, the list scrolls, tighter rows ---------- */
.wd-sticky-nav .wd-sticky-nav-title{display:none!important}
.wd-sticky-nav{display:flex;flex-direction:column;padding-top:10px}
.wd-sticky-nav .wd-nav-sticky{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding-bottom:20px}
.wd-sticky-nav .wd-nav-sticky>li.sj-ic>a{min-height:34px;padding-top:2px;padding-bottom:2px}
/* Closed strip: headings shrink to a thin divider; they slide open as the menu expands */
.wd-sticky-nav li.sj-menu-heading{transition:margin .3s ease,padding .3s ease}
.wd-sticky-nav li.sj-menu-heading>a{max-height:32px;overflow:hidden;transition:max-height .3s ease,padding .3s ease,opacity .25s ease}
.wd-sticky-nav:not(:hover):not(.wd-opened) li.sj-menu-heading>a{max-height:0;padding-top:0!important;padding-bottom:0!important;opacity:0}
.wd-sticky-nav:not(:hover):not(.wd-opened) li.sj-menu-heading{margin:6px 12px;padding-top:0}
/* ☰ at the top of the closed strip; fades out when the menu opens */
.wd-sticky-nav::before{
  content:"";display:block;flex:0 0 auto;width:20px;height:20px;margin:4px 0 8px 19px;
  background-color:#1f2a22;
  -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%3E%3Cpath%20d%3D'M4%206h16M4%2012h16M4%2018h16'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%3E%3Cpath%20d%3D'M4%206h16M4%2012h16M4%2018h16'%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  transition:opacity .2s}
.wd-sticky-nav:is(:hover,.wd-opened)::before{opacity:0}

/* Header menu icons use the text colour */
.wd-header-secondary-nav li.sj-ic>a::before{margin-inline-end:8px;background-color:currentColor}
.wd-header-secondary-nav li.sj-ic>a>svg.sj-ic-svg{margin-inline-end:8px;color:currentColor}
/* Header Quick Order keeps its filled bolt (mask) and pulse: no line icon there */
.wd-header-secondary-nav li.sj-ic-quick>a>svg.sj-ic-svg{display:none}
.wd-header-secondary-nav li.sj-ic-quick>a[data-sj-ic]::before{display:block!important}

/* Mobile "Quick Login" (the theme's slide-in login): same icon style */
.mobile-nav li.login-side-opener>a{display:flex;align-items:center}
.mobile-nav li.login-side-opener>a::before{
  content:""!important;font-size:0;flex:0 0 18px;width:18px;height:18px;margin-inline-end:10px;
  background-color:#2f6b45;
  -webkit-mask:var(--sj-ic) center/contain no-repeat;
          mask:var(--sj-ic) center/contain no-repeat}

/* ---------- 5. Guest-only items: Sobji_Menu leaves them out for logged-in customers; this covers a cached page ---------- */
body.logged-in .sj-guest-only{display:none!important}

/* ---------- 4. Header Quick Order: solid bolt + bolt-shaped pulse (same 2.2s rhythm as the chat button ring) ---------- */
.wd-header-secondary-nav li.sj-ic-quick{
  /* filled bolt: <path fill='black' stroke='black' stroke-width='1.5' stroke-linejoin='round' d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/> */
  --sj-bolt:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20fill%3D'black'%20stroke%3D'black'%20stroke-width%3D'1.5'%20stroke-linejoin%3D'round'%20d%3D'M13%202%203%2014h9l-1%208%2010-12h-9l1-8z'%2F%3E%3C%2Fsvg%3E")}
.wd-header-secondary-nav li.sj-ic-quick>a{position:relative}
.wd-header-secondary-nav li.sj-ic-quick>a::before{
  -webkit-mask:var(--sj-bolt) center/contain no-repeat;
          mask:var(--sj-bolt) center/contain no-repeat;
  background-color:#2f6b45}
.wd-header-secondary-nav li.sj-ic-quick>a::after{
  content:"";position:absolute;left:0;top:50%;width:18px;height:18px;margin-top:-9px;
  background-color:#2f6b45;pointer-events:none;transform-origin:center;filter:blur(.6px);
  -webkit-mask:var(--sj-bolt) center/contain no-repeat;
          mask:var(--sj-bolt) center/contain no-repeat;
  animation:sj-pulse-bolt 2.2s ease-out infinite}
@keyframes sj-pulse-bolt{
  0%{transform:scale(1);opacity:.5}
  70%{transform:scale(2.2);opacity:0}
  100%{transform:scale(1);opacity:0}}

@media (prefers-reduced-motion:reduce){
  .wd-header-secondary-nav li.sj-ic-quick>a::after{animation:none;opacity:0}
  svg.sj-ic-svg :is(path,circle,rect){animation:none!important;stroke-dashoffset:0!important}
  .wd-sticky-nav li.sj-menu-heading,.wd-sticky-nav li.sj-menu-heading>a,.wd-sticky-nav::before{transition:none}
}
