/* Mobile Sidebar Styling */
@media (max-width: 768px) {
  /* Remove tap highlights and focus backgrounds */
  .navigation-sidebar * {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }
  
  /* Navigation menu styling */
  .navigator-mobile ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .navigator-mobile li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .navigator-mobile li:last-child {
    border-bottom: none;
  }
  
  .navigator-mobile a {
    display: block;
    padding: 20px 0;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: all 0.3s ease;
    text-align: left;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .navigator-mobile a:hover {
    color: #007bff !important;
    background-color: transparent;
    padding-left: 10px;
  }
  
  .navigator-mobile a:active,
  .navigator-mobile a:focus {
    background-color: transparent !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    color: #F26460 !important;
  }
  
  /* Active menu item styling */
  .navigator-mobile a.active {
    color: #F26460 !important;
    background-color: transparent !important;
    font-weight: 700 !important;
  }
  
  /* Mobile logo styling */
  .mobile-logo {
    text-align: center;
  }
  
  .mobile-logo img {
    width: 180px;
    height: auto;
    max-width: 100%;
  }
  
  /* Mobile sidebar header */
  .mobile-sidebar-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
  }
  
  /* Mobile close button */
  .mobile-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .mobile-close-btn:hover {
    color: #333;
    transform: scale(1.1);
  }
  
  .mobile-close-btn:active,
  .mobile-close-btn:focus {
    background-color: transparent !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    color: #F26460 !important;
  }
  
  /* Powered by text styling */
  .navigation-sidebar__footer .powered-by {
    text-align: center;
    margin: 0;
    font-size: 14px;
    color: #666;
    padding: 20px 0;
    line-height: 1.5;
  }
  
  .navigation-sidebar__footer .powered-by a {
    color: rgb(5, 55, 129);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
  }
  
  .navigation-sidebar__footer .powered-by a:hover {
    color: rgb(3, 37, 86);
    text-decoration: underline;
  }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
  .navigator-mobile a {
    font-size: 20px !important;
    padding: 25px 0 !important;
  }
  
  .mobile-logo img {
    width: 160px;
  }
  
  .mobile-close-btn {
    font-size: 22px;
    padding: 8px;
  }
}

/* Drawer overlay fixes */
.drawer.slide-out {
  background: transparent !important;
}

.drawer.slide-out .drawer-content {
  background: transparent !important;
}

.drawer.slide-out .drawer-body {
  background: transparent !important;
}

.drawer-backdrop {
  display: none !important;
}

/* Mobile menu drawer specific styles */
#mobile-menu-drawer {
  transition: all 0.3s ease;
}

#mobile-menu-drawer.slide {
  transform: translateX(0);
}

#mobile-menu-drawer:not(.slide) {
  transform: translateX(100%);
}

#mobile-menu-drawer[style*="display: none"] {
  display: none !important;
}

#mobile-menu-drawer[style*="visibility: hidden"] {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#mobile-menu-drawer[style*="display: block"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Ultimate override for all states */
html body .drawer .drawer-body .cart-sidebar .cart-items__wrapper .navigation-sidebar .navigator-mobile a.active {
  color: #F26460 !important;
}

html body .drawer .drawer-body .cart-sidebar .cart-items__wrapper .navigation-sidebar .navigator-mobile a:active,
html body .drawer .drawer-body .cart-sidebar .cart-items__wrapper .navigation-sidebar .navigator-mobile a:focus {
  color: #F26460 !important;
  background-color: transparent !important;
}

html body .drawer .drawer-body .cart-sidebar .cart-items__wrapper .navigation-sidebar .mobile-close-btn:active,
html body .drawer .drawer-body .cart-sidebar .cart-items__wrapper .navigation-sidebar .mobile-close-btn:focus {
  color: #F26460 !important;
  background-color: transparent !important;
}
