/* ==================== MODERN MENU STYLES 2025 ==================== */

/* Glassmorphism effect for header */
#main-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Search input focus effect */
input[type="text"]:focus {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Smooth hover animations for buttons */
button, a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Action button hover effect */
.group:hover i {
  transform: scale(1.1);
}

/* Badge pulse animation */
@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

#cart-badge, .badge {
  animation: badge-pulse 2s infinite;
}

/* Mega menu entrance animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.group:hover > div {
  animation: slideDown 0.3s ease-out;
}

/* Category icon hover effect */
.group\/item:hover i {
  transform: rotate(360deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mobile sidebar slide animation */
#mobile-sidebar {
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

/* Promotional banner animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Tab styles */
.tab-btn {
  position: relative;
  padding: 12px 24px;
  color: #6b7280;
  font-weight: 500;
  transition: all 0.3s;
}

.tab-btn.active {
  color: #f97316;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #f97316, #ec4899);
  border-radius: 2px 2px 0 0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

/* Specification items */
.spec-item {
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  transition: all 0.3s;
}

.dark .spec-item {
  background: #1e293b;
}

.spec-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Product card enhanced hover */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f97316, #ec4899);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ea580c, #db2777);
}

/* Loading spinner */
.loading {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #f97316;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Fade in animation */
.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge animations */
.badge-hot {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-sale {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-flash {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dark mode transitions */
.dark {
  transition: background-color 0.3s, color 0.3s;
}
