 /* SBS Shared Mobile Menu - Gold & Black Brand Theme */

/* Unified hamburger styles - ALWAYS VISIBLE ON ALL DEVICES */
.hamburger {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10001 !important;
  align-items: center;
  justify-content: center;
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 44px;
  min-height: 44px;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
  will-change: transform !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.hamburger:hover {
  background: rgba(212, 175, 55, 0.15) !important;
}

/* Hamburger bars - brand gold */
.hamburger span {
  width: 22px;
  height: 2px;
  background: #d4af37 !important;
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  box-shadow: none !important;
  filter: none !important;
}

.hamburger i {
  color: #d4af37 !important;
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(280px, 80vw);
  height: 100dvh;
  height: 100vh;
  background: #000000;
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex !important;
  flex-direction: column;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: block !important;
}

.mobile-menu-header {
  padding: 1.25rem 1rem;
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  background: transparent;
  flex-shrink: 0;
}

.mobile-menu-header .logo {
  font-family: 'Gagalin', var(--heading-font, inherit);
  font-size: 1.6rem;
  color: #d4af37;
  text-decoration: none;
}

/* User Profile Styles */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* Avatar hidden - dead feature */
.user-avatar {
  display: none !important;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.8rem;
  color: rgba(212, 175, 55, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0;
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 20px));
  gap: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Section Headers */
.menu-section-header {
  padding: 1rem 1rem 0.35rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: rgba(212, 175, 55, 0.6);
  text-transform: uppercase;
}

.menu-section-header:first-child {
  padding-top: 0.5rem;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  font-family: 'Inter', var(--body-font, inherit);
  font-size: 0.85rem;
  font-weight: 500;
  color: #d4af37;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus-visible {
  color: #e6c655;
  background: rgba(212, 175, 55, 0.1);
  border-left-color: #d4af37;
  transform: none;
}

.mobile-menu-item:hover .icon,
.mobile-menu-item:focus-visible .icon {
  stroke-width: 2;
  color: #e6c655;
}

/* Menu item icons */
.mobile-menu-item .icon {
  width: 18px;
  height: 18px;
  color: #d4af37;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* Menu Badge */
.menu-badge {
  margin-left: auto;
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  animation: none;
}

.mobile-menu-item.btn-style {
  margin: 0.75rem 1.25rem 0;
  justify-content: center;
  border-radius: 8px;
  border-left-color: transparent;
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  box-shadow: none;
}

.mobile-menu-item.btn-style:hover,
.mobile-menu-item.btn-style:focus-visible {
  background: rgba(212, 175, 55, 0.25);
  color: #e6c655;
  box-shadow: none;
}

/* Active states */
.mobile-menu.active {
  right: 0;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when menu is open (paired with JS adding .menu-open) */
body.menu-open {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
}

/* REMOVED OLD MOBILE-ONLY RULES - NOW ALWAYS USE BURGER MENU */

/* Keep logo visible always */
.nav-left .logo {
  display: flex !important;
}

/* Hide all nav links and buttons EXCEPT hamburger - use burger menu instead */
.nav-left .nav-link,
.nav-center .nav-links,
.nav-side--left,
.nav-right .nav-link,
.nav-right .btn-gold,
.nav-right .btn-outline,
.nav-side--right .nav-link,
.nav-side--right .btn-gold {
  display: none !important;
}

/* BUT ALWAYS SHOW THE HAMBURGER */
.nav-right .hamburger,
.hamburger {
  display: flex !important;
}

@media (max-width: 768px) {
  .nav-right,
  .nav-side--right {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  .cart-toggle,
  .hamburger {
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* Safari iOS 26 Liquid Glass specific fixes */
@supports (-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px)) {
  .hamburger {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
  }
  
  .hamburger,
  .hamburger span {
    will-change: transform, opacity !important;
  }
}

/* Force visibility on all iOS versions */
@supports (-webkit-touch-callout: none) {
  .hamburger {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10001 !important;
  }
  
  .hamburger span {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
