/* Nafis Mezoon V4.24 — mobile bottom navigation ONLY. Header stays V4.22. */
.nm424-bottom-nav{display:none}
@media(max-width:850px){
  html{scroll-padding-bottom:112px}
  body{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
  .nm424-bottom-nav{
    display:flex;align-items:center;gap:4px;box-sizing:border-box;
    position:fixed;bottom:calc(11px + env(safe-area-inset-bottom,0px));
    left:50%;transform:translateX(-50%);
    z-index:850;width:min(432px,calc(100vw - 24px));
    min-height:65px;padding:7px;
    border-radius:21px;
    border:1px solid color-mix(in srgb,var(--text-primary,#433a34) 6%, transparent);
    background:color-mix(in srgb,var(--bg-surface,#f8f4ed) 93%, transparent);
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
    box-shadow:0 12px 36px rgba(34,26,21,.13),0 2px 12px rgba(34,26,21,.04);
    direction:inherit;
  }
  .nm424-bottom-nav__link{
    -webkit-tap-highlight-color:transparent;
    appearance:none;min-width:0;min-height:50px;
    display:inline-flex;align-items:center;justify-content:center;
    flex:1 1 0;gap:0;
    padding:0 6px;border:0;border-radius:14px;
    color:var(--text-secondary,#7b6d61);
    text-decoration:none;font-weight:650;font-size:11px;
    background:transparent;
    transition:flex-grow .28s cubic-bezier(.22,.8,.2,1),background-color .25s,color .25s;
    position:relative;
  }
  .nm424-bottom-nav__link:before{
    content:'';inset:0;position:absolute;border-radius:inherit;
    background:linear-gradient(125deg,rgba(176,145,114,.13),rgba(176,145,114,.045));
    opacity:0;transform:scale(.92);transition:opacity .23s,transform .23s;
    pointer-events:none;
  }
  .nm424-bottom-nav__link:is(.is-active,:hover,:focus-visible){
    color:var(--text-primary,#443a32);flex-grow:2.13;gap:5px;
  }
  .nm424-bottom-nav__link:is(.is-active,:hover,:focus-visible):before{opacity:1;transform:scale(1)}
  .nm424-bottom-nav__link:focus-visible{outline:2px solid var(--metal,#b69570);outline-offset:-2px}
  .nm424-bottom-nav__icon{
    position:relative;z-index:1;display:grid;place-items:center;
    flex:0 0 23px;width:23px;height:23px;
  }
  .nm424-bottom-nav__icon svg{display:block;width:22px;height:22px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}
  .nm424-bottom-nav__label{
    position:relative;z-index:1;max-width:0;opacity:0;
    overflow:hidden;white-space:nowrap;line-height:1.4;
    transform:translateX(3px);
    transition:max-width .27s cubic-bezier(.22,.8,.2,1),opacity .18s,transform .27s;
  }
  .nm424-bottom-nav__link:is(.is-active,:hover,:focus-visible) .nm424-bottom-nav__label{
    max-width:110px;opacity:1;transform:translateX(0);
  }
  .nm424-bottom-nav__link[aria-current="page"]{color:var(--text-primary,#443a32)}
  .nm424-bottom-nav:has(.nm424-bottom-nav__link:hover) .nm424-bottom-nav__link.is-active:not(:hover),
  .nm424-bottom-nav:has(.nm424-bottom-nav__link:focus-visible) .nm424-bottom-nav__link.is-active:not(:focus-visible){
    flex-grow:1;gap:0;
  }
  .nm424-bottom-nav:has(.nm424-bottom-nav__link:hover) .nm424-bottom-nav__link.is-active:not(:hover) .nm424-bottom-nav__label,
  .nm424-bottom-nav:has(.nm424-bottom-nav__link:focus-visible) .nm424-bottom-nav__link.is-active:not(:focus-visible) .nm424-bottom-nav__label{max-width:0;opacity:0}
  .nm424-bottom-nav:has(.nm424-bottom-nav__link:hover) .nm424-bottom-nav__link.is-active:not(:hover):before,
  .nm424-bottom-nav:has(.nm424-bottom-nav__link:focus-visible) .nm424-bottom-nav__link.is-active:not(:focus-visible):before{opacity:0}
  /* Dialogs and offcanvas navigation are more important than the dock. */
  body.nm419-modal-open .nm424-bottom-nav,
  body:has(.mobile-offcanvas.is-open) .nm424-bottom-nav,
  body:has(.mobile-navigation.is-open) .nm424-bottom-nav,
  body.mobile-drawer-open .nm424-bottom-nav{opacity:0;visibility:hidden;pointer-events:none}
  /* Keep the add-to-cart confirmation above the mobile dock. */
  .nm419-toast{bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:360px){
  .nm424-bottom-nav{min-height:61px;padding:6px;gap:2px;border-radius:19px;width:calc(100vw - 18px)}
  .nm424-bottom-nav__link{padding:0 4px;min-height:48px}
  .nm424-bottom-nav__link:is(.is-active,:hover,:focus-visible){gap:3px;flex-grow:2}
  .nm424-bottom-nav__icon{flex-basis:21px;width:21px;height:21px}
  .nm424-bottom-nav__icon svg{width:20px;height:20px}
  .nm424-bottom-nav__label{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .nm424-bottom-nav__link,.nm424-bottom-nav__label,.nm424-bottom-nav__link:before{transition:none!important}
}
