/* BUN FRY MOBILE V2 */

.bf-mobile-menu-toggle,
.bf-mobile-drawer,
.bf-mobile-backdrop,
.bf-mobile-bottom{
  display:none;
}

@media (max-width: 768px){

  body{
    padding-bottom:72px;
    overflow-x:hidden;
  }

  .navbar .nav-links,
  .customer-nav .nav-links,
  .navbar .language-switcher{
    display:none !important;
  }

  .navbar,
  .customer-nav{
    min-height:72px;
    padding-left:16px !important;
    padding-right:16px !important;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .nav-right-actions{
    margin-left:auto;
  }

  .bf-mobile-menu-toggle{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:14px;
    background:#1b1b1b;
    color:#f7a711;
    font-size:21px;
    cursor:pointer;
    margin-left:10px;
  }

  .bf-mobile-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:9998;
    background:rgba(0,0,0,.68);
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
  }

  .bf-mobile-drawer{
    display:block;
    position:fixed;
    top:0;
    right:0;
    width:min(86vw,340px);
    height:100dvh;
    z-index:9999;
    background:#151515;
    color:#fff;
    transform:translateX(105%);
    transition:transform .28s ease;
    padding:20px;
    box-sizing:border-box;
    box-shadow:-15px 0 40px rgba(0,0,0,.4);
    overflow-y:auto;
  }

  .bf-mobile-open .bf-mobile-backdrop{
    opacity:1;
    visibility:visible;
  }

  .bf-mobile-open .bf-mobile-drawer{
    transform:translateX(0);
  }

  .bf-mobile-drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:25px;
  }

  .bf-mobile-drawer-head img{
    max-width:130px;
    max-height:55px;
    object-fit:contain;
  }

  .bf-mobile-drawer-close{
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    background:#242424;
    color:#fff;
    font-size:28px;
    cursor:pointer;
  }

  .bf-mobile-drawer nav{
    display:flex;
    flex-direction:column;
    gap:8px;
  }

  .bf-mobile-drawer nav a{
    display:flex;
    align-items:center;
    gap:14px;
    padding:15px 14px;
    color:#fff;
    text-decoration:none;
    border-radius:14px;
    font-weight:700;
    background:rgba(255,255,255,.035);
  }

  .bf-mobile-drawer nav a i{
    width:22px;
    color:#f7a711;
    text-align:center;
  }

  .bf-mobile-drawer nav a.is-active{
    background:#f7a711;
    color:#111;
  }

  .bf-mobile-drawer nav a.is-active i{
    color:#111;
  }

  .bf-mobile-langs{
    display:flex;
    gap:8px;
    margin-top:25px;
  }

  .bf-mobile-langs button{
    flex:1;
    padding:11px 5px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.14);
    background:#222;
    color:#fff;
    cursor:pointer;
    font-weight:800;
  }

  .bf-mobile-bottom{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9997;
    min-height:64px;
    padding-bottom:env(safe-area-inset-bottom);
    background:rgba(16,16,16,.97);
    border-top:1px solid rgba(255,255,255,.09);
    box-shadow:0 -8px 28px rgba(0,0,0,.35);
    backdrop-filter:blur(12px);
  }

  .bf-mobile-bottom a{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    text-decoration:none;
    color:#aaa;
    font-size:11px;
    font-weight:700;
    min-width:0;
  }

  .bf-mobile-bottom a i{
    font-size:19px;
  }

  .bf-mobile-bottom a.is-active{
    color:#f7a711;
  }

  .site-footer{
    padding-bottom:25px;
  }
}

/* FIX MOBILE HEADER */
@media (max-width:768px){

  .navbar{
    gap:8px !important;
  }

  .navbar .logo,
  .navbar .brand{
    flex:0 0 auto;
  }

  .nav-right-actions{
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    margin-left:auto !important;
    min-width:0;
  }

  .nav-user-actions{
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
  }

  .btn-commander-top{
    padding:11px 15px !important;
    font-size:13px !important;
    white-space:nowrap !important;
    min-width:auto !important;
  }

  .language-switcher{
    transform:scale(.90);
    transform-origin:right center;
  }

  .nav-icon-link{
    width:36px !important;
    height:36px !important;
    flex:0 0 36px !important;
  }

  .bf-mobile-menu-toggle{
    width:38px !important;
    height:38px !important;
    flex:0 0 38px !important;
    margin-left:2px !important;
  }
}

@media (max-width:430px){

  .btn-commander-top{
    padding:10px 12px !important;
    font-size:12px !important;
  }

  .language-switcher{
    transform:scale(.82);
  }
}

/* FIX THEME TOGGLE POSITION ON MOBILE */
@media (max-width:768px){

  .theme-toggle,
  .theme-switch,
  .dark-mode-toggle,
  #themeToggle{
    position:fixed !important;
    right:14px !important;
    bottom:82px !important;
    top:auto !important;
    left:auto !important;
    z-index:9996 !important;
    margin:0 !important;
  }

}

/* FIX REAL LIGHT/DARK BUTTON - MOBILE */
@media (max-width:768px){
  .bf-theme-toggle{
    position:fixed !important;
    right:14px !important;
    bottom:84px !important;
    top:auto !important;
    left:auto !important;
    width:48px !important;
    height:48px !important;
    margin:0 !important;
    z-index:9998 !important;
  }
}

/* FINAL THEME BUTTON POSITION */
@media (max-width:768px){
  .bf-theme-toggle{
    right:16px !important;
    bottom:105px !important;
    width:46px !important;
    height:46px !important;
    z-index:9995 !important;
  }
}

/* Hide original hamburger/menu button on desktop */
@media (min-width:821px){
  .mobile-menu,
  .menu-toggle,
  .hamburger,
  .navbar-toggle,
  .nav-toggle,
  .mobile-nav-toggle,
  button[aria-label="Menu"]{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}

/* Show mobile navigation controls only on mobile */
@media (max-width:820px){
  .mobile-menu,
  .menu-toggle,
  .hamburger,
  .navbar-toggle,
  .nav-toggle,
  .mobile-nav-toggle{
    display:flex!important;
  }
}
