/* Modern Animated Mobile Menu Styles */

/* Mobile Menu Container */
.mobile-menu-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-container.active {
  pointer-events: all;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-container.active .mobile-menu-backdrop {
  opacity: 1;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(200, 155, 82, 0.2);
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.mobile-menu-container.active .mobile-menu-panel {
  transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, #C89B52 0%, #b38642 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  box-shadow: 0 4px 20px rgba(200, 155, 82, 0.3);
}

.mobile-menu-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-logo span {
  font-size: 1.125rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.mobile-menu-close .material-icons {
  font-size: 1.25rem;
}

/* Cart Icon in Mobile Menu */
.mobile-menu-cart {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
  margin-right: 0.5rem;
}

.mobile-menu-cart:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.mobile-menu-cart .material-icons {
  font-size: 1.25rem;
}

.mobile-menu-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Content */
.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 0;
}

.mobile-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-nav li {
  margin: 0;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: linear-gradient(135deg, #C89B52, #b38642);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 20px 20px 0;
}

.mobile-menu-nav a:hover {
  background: rgba(200, 155, 82, 0.1);
  color: #C89B52;
  transform: translateX(8px);
}

.mobile-menu-nav a:hover::before {
  width: 4px;
}

.mobile-menu-nav a.active {
  background: linear-gradient(135deg, rgba(200, 155, 82, 0.15) 0%, rgba(179, 134, 66, 0.15) 100%);
  color: #C89B52;
  font-weight: 600;
  border-left: 4px solid #C89B52;
  transform: translateX(4px);
}

.mobile-menu-nav a.active::before {
  width: 0;
}

.mobile-menu-nav .material-icons {
  margin-right: 1rem;
  font-size: 1.25rem;
  opacity: 0.7;
}

.mobile-menu-nav a:hover .material-icons,
.mobile-menu-nav a.active .material-icons {
  opacity: 1;
  color: #C89B52;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(200, 155, 82, 0.05) 0%, rgba(179, 134, 66, 0.05) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.mobile-menu-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C89B52, #b38642);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(200, 155, 82, 0.3);
}

.mobile-menu-social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 155, 82, 0.4);
}

.mobile-menu-social .material-icons {
  font-size: 1.25rem;
}

.mobile-menu-copyright {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Mobile Menu Button Animation */
.mobile-menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-btn .material-icons {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.5rem;
}

.mobile-menu-btn.active .material-icons {
  transform: rotate(90deg);
}

/* Stagger Animation for Menu Items */
.mobile-menu-container.active .mobile-menu-nav li {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--item-index, 0) * 0.1s + 0.2s);
  opacity: 0;
  transform: translateX(50px);
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mobile-menu-panel {
    width: 100vw;
  }
  
  .mobile-menu-nav a {
    font-size: 1.25rem;
    padding: 1.25rem 2rem;
  }
}

/* Smooth scrollbar for mobile menu content */
.mobile-menu-content::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
  background: rgba(200, 155, 82, 0.3);
  border-radius: 2px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 155, 82, 0.5);
}

/* Loading state */
.mobile-menu-nav a.loading {
  opacity: 0.6;
  pointer-events: none;
}

.mobile-menu-nav a.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #C89B52;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}