/* ============================================
   دونر الماني — تصميم حديث 2026
   ============================================ */

:root {
  --bg-dark: #0a0a14;
  --bg-darker: #050509;
  --bg-card: rgba(26, 26, 46, 0.6);
  --bg-card-solid: #16162a;
  --accent: #ff6b1a;
  --accent-2: #ffb347;
  --accent-3: #ff3d00;
  --gold: #f5c542;
  --text-primary: #ffffff;
  --text-secondary: #c5c5d8;
  --text-muted: #8a8a9e;
  --border-glow: rgba(255, 107, 26, 0.25);
  --gradient-main: linear-gradient(135deg, #ff3d00 0%, #ff6b1a 50%, #ffb347 100%);
  --gradient-gold: linear-gradient(135deg, #ffb347 0%, #f5c542 50%, #ffb347 100%);
  --shadow-glow: 0 10px 40px rgba(255, 107, 26, 0.25);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zain", "Cairo", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ============================================
   Animated Background Particles + Glow Orbs
   ============================================ */
.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff6b1a 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ffb347 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.bg-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #ff3d00 0%, transparent 70%);
  top: 50%;
  left: 50%;
  animation: orbFloat3 30s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 100px) scale(1.1); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -80px) scale(1.15); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-30%, -60%) scale(1.2); }
}

/* Make sure all content sits above particles */
nav, header, section, footer, .popup {
  position: relative;
  z-index: 2;
}

/* ============================================
   Typography
   ============================================ */
h2, h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.5px;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 10, 20, 0.95), rgba(5, 5, 9, 0.99));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  backdrop-filter: blur(8px);
}

.spinner-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loader-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: ringSpin 1.6s linear infinite;
}

.loader-ring:nth-child(1) {
  border-top-color: var(--accent);
  border-right-color: var(--accent);
}

.loader-ring:nth-child(2) {
  inset: 12px;
  border-top-color: var(--accent-2);
  border-left-color: var(--accent-2);
  animation-duration: 2s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  inset: 24px;
  border-top-color: var(--gold);
  border-right-color: var(--gold);
  animation-duration: 1.2s;
}

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

.loader-text {
  position: absolute;
  bottom: -45px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================
   Toast Notification
   ============================================ */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.95), rgba(255, 179, 71, 0.95));
  color: #1a1a2e;
  padding: 14px 30px;
  border-radius: 50px;
  z-index: 1002;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 107, 26, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   Loading Placeholder (image shimmer)
   ============================================ */
.loading-placeholder {
  position: relative;
  background: linear-gradient(45deg, #14142a, #1f1f38);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  border-radius: 12px;
  overflow: hidden;
}

.loading-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 26, 0.12),
    transparent
  );
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  padding: 18px 0;
  transition: background-color 0.4s ease, padding 0.4s ease,
    box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(10, 10, 20, 0.75);
  padding: 10px 0;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(255, 107, 26, 0.15);
}

.navbar-container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left, .nav-right {
  flex: 1;
}

.nav-center {
  flex: 0 0 auto;
  text-align: center;
}

.nav-right { text-align: left; }
.nav-left { text-align: right; }

.logo {
  height: 48px;
  max-height: 48px;
  transition: height 0.4s ease, filter 0.4s ease;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 26, 0.4));
}

#navbar.scrolled .logo {
  height: 38px;
}

.restaurant-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cart-icon-container {
  position: relative;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 26, 0.2);
}

.cart-icon-container:hover {
  color: var(--accent);
  transform: translateY(-2px) scale(1.05);
  border-color: var(--accent);
  background: rgba(255, 107, 26, 0.1);
}

.cart-icon-container.bump {
  animation: cartBump 0.5s ease;
}

@keyframes cartBump {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.2) rotate(-8deg); }
  60% { transform: scale(0.95) rotate(5deg); }
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gradient-main);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 2px 8px rgba(255, 107, 26, 0.5);
}

/* ============================================
   Hero Header
   ============================================ */
#header {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.header-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.05);
  filter: brightness(0.7) saturate(1.1);
  animation: kenburns 25s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1.15); }
}

.header-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 20, 0.5) 70%, rgba(10, 10, 20, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 10, 20, 0.5) 0%, transparent 30%, transparent 70%, rgba(10, 10, 20, 0.95) 100%);
  z-index: 1;
}

.header-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.header-content {
  z-index: 3;
  padding: 0 20px;
  width: 100%;
  max-width: 800px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 179, 71, 0.3);
  border-radius: 50px;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInDown 1s ease 0.3s forwards;
}

.hero-badge i {
  font-size: 0.7rem;
  color: var(--gold);
}

.header-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #ffb347 40%, #ff6b1a 70%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(255, 107, 26, 0.3);
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards,
    gradientShift 6s ease-in-out infinite 1.5s;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.header-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 35px;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-main);
  color: #1a1a2e;
  padding: 16px 38px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(255, 107, 26, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.menu-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.menu-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(255, 107, 26, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #1a1a2e;
}

.menu-button:hover::before {
  transform: translateX(100%);
}

.menu-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.2);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.social-media-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

.social-media-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-media-links a:hover {
  background: var(--gradient-main);
  color: #1a1a2e;
  transform: translateY(-4px) rotate(8deg);
  box-shadow: 0 10px 25px rgba(255, 107, 26, 0.5);
  border-color: transparent;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInUp 1s ease 1.5s forwards;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 3px;
  height: 7px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ============================================
   Food Classes Section
   ============================================ */
.food-classes-section {
  padding: 100px 5% 80px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 6px 18px;
  background: rgba(255, 179, 71, 0.08);
  border-radius: 50px;
  border: 1px solid rgba(255, 179, 71, 0.2);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, #ffffff, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  font-weight: 900;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--accent);
  font-size: 1.2rem;
}

.section-divider span {
  display: inline-block;
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.section-divider span:last-child {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.food-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
}

.food-class-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.5s ease;
  background: var(--bg-card-solid);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  isolation: isolate;

  /* Reveal animation */
  opacity: 0;
  transform: translateY(40px);
}

.food-class-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.food-class-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(255, 107, 26, 0.6), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.food-class-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(255, 107, 26, 0.25), 0 0 0 1px rgba(255, 107, 26, 0.3);
}

.food-class-item:hover::after {
  opacity: 1;
}

.food-class-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.5s ease;
  filter: brightness(0.85) saturate(1.1);
}

.food-class-item:hover img {
  transform: scale(1.15);
  filter: brightness(1) saturate(1.3);
}

.food-class-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(10, 10, 20, 0.95) 0%,
    rgba(10, 10, 20, 0.7) 50%,
    transparent 100%
  );
  color: var(--text-primary);
  padding: 35px 20px 20px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  z-index: 2;
}

.food-class-item:hover .food-class-title {
  background: linear-gradient(
    to top,
    rgba(255, 107, 26, 0.95) 0%,
    rgba(255, 107, 26, 0.5) 60%,
    transparent 100%
  );
  padding-bottom: 30px;
}

/* Hover label arrow */
.food-class-title::after {
  content: "\f060";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 10px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.food-class-item:hover .food-class-title::after {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 30px 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 107, 26, 0.1);
  background: rgba(5, 5, 9, 0.5);
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ============================================
   Popups
   ============================================ */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 9, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: linear-gradient(145deg, #16162a, #0f0f1e);
  padding: 30px;
  border-radius: 24px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(255, 107, 26, 0.15);
  border: 1px solid rgba(255, 107, 26, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup.show .popup-content {
  transform: scale(1) translateY(0);
}

.popup-content h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--accent-2);
  font-size: 1.4rem;
}

.popup-content h3 i {
  color: var(--accent);
}

/* Custom scrollbar */
.popup-content::-webkit-scrollbar,
.cart-items-list::-webkit-scrollbar {
  width: 8px;
}

.popup-content::-webkit-scrollbar-track,
.cart-items-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb,
.cart-items-list::-webkit-scrollbar-thumb {
  background: var(--gradient-main);
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  z-index: 11;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.close-btn:hover {
  color: #ffffff;
  background: rgba(255, 107, 26, 0.9);
  transform: rotate(90deg);
}

/* ============================================
   Cart Popup
   ============================================ */
#cart-popup .popup-content {
  max-width: 500px;
}

.cart-items-list {
  margin-bottom: 20px;
  max-height: 45vh;
  overflow-y: auto;
  padding-left: 10px;
}

.empty-cart {
  text-align: center;
  color: var(--text-muted);
  padding: 30px 0;
  font-size: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeInUp 0.4s ease;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-details {
  flex-grow: 1;
  margin-left: 15px;
}

.cart-item-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--accent-2);
  font-size: 0.9rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-controls button {
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.4);
  color: var(--accent);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.cart-item-controls button:hover {
  background: var(--accent);
  color: #1a1a2e;
  transform: scale(1.1);
}

.cart-item-count {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-total {
  text-align: center;
  margin-top: 25px;
  font-size: 1.3rem;
  font-weight: 800;
  border-top: 1px solid rgba(255, 107, 26, 0.2);
  padding-top: 20px;
  color: var(--text-primary);
}

.cart-total strong {
  color: var(--accent-2);
  margin-left: 8px;
}

/* ============================================
   Item Popup
   ============================================ */
.item-popup .popup-content {
  padding-top: 80px;
}

.popup-title-fixed {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(22, 22, 42, 0.98), rgba(22, 22, 42, 0.85));
  backdrop-filter: blur(20px);
  padding: 22px 30px;
  margin: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 107, 26, 0.2);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  transition: box-shadow 0.3s ease;
  font-size: 1.3rem;
}

.item-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.food-item-card {
  position: relative;
  background: linear-gradient(145deg, #1c1c34, #14142a);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);

  opacity: 0;
  transform: translateY(30px);
}

.food-item-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.food-item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 107, 26, 0.2),
    0 0 0 1px rgba(255, 107, 26, 0.3);
}

.food-item-image-container {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.food-item-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.food-item-card:hover .food-item-image-container img {
  transform: scale(1.06);
}

.food-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(10, 10, 20, 0.92), transparent);
  color: var(--text-primary);
  padding: 35px 15px 18px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.food-item-price {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-main);
  color: #1a1a2e;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(255, 107, 26, 0.5);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.food-item-details {
  padding: 0;
}

.add-to-cart-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 4;
  background: var(--gradient-main);
  color: #1a1a2e;
  border: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(255, 107, 26, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: visible;
}

.add-to-cart-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 26, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.add-to-cart-btn:hover {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 10px 25px rgba(255, 107, 26, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.add-to-cart-btn:hover::before {
  opacity: 1;
  transform: scale(1.15);
}

.add-to-cart-btn:active {
  transform: scale(0.95);
}

.add-to-cart-btn .cart-icon-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn .plus-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a1a2e;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.add-to-cart-btn.added {
  background: linear-gradient(135deg, #25d366, #128c7e);
  animation: addedPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes addedPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ============================================
   WhatsApp Button
   ============================================ */
.whatsapp-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 20px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
  overflow: hidden;
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.whatsapp-button i {
  font-size: 1.4rem;
}

.whatsapp-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-button:hover::before {
  transform: translateX(100%);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .navbar-container {
    width: 95%;
  }
  .nav-left {
    flex-basis: 50px;
    flex-grow: 0;
    order: 3;
    text-align: right;
  }
  .nav-center {
    flex-grow: 1;
    padding: 0 10px;
    order: 2;
    text-align: center;
  }
  .nav-right {
    flex-basis: 50px;
    flex-grow: 0;
    order: 1;
    text-align: left;
  }
  .restaurant-title {
    display: none;
  }
  .logo {
    height: 38px;
    max-height: 38px;
  }
  #navbar.scrolled .logo {
    height: 32px;
  }
  .menu-button {
    padding: 14px 32px;
    font-size: 1rem;
  }
  .social-media-links a {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .food-classes-section {
    padding: 70px 4% 60px;
  }
  .food-class-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
  }
  .food-class-item img {
    height: 220px;
  }
  .item-list-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .popup-content {
    width: 95%;
    padding: 24px 20px;
    border-radius: 20px;
  }
  .item-popup .popup-content {
    padding-top: 70px;
  }
  .popup-title-fixed {
    padding: 18px 22px;
    font-size: 1.1rem;
  }
  .close-btn {
    top: 10px;
    left: 12px;
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
  }
  .bg-orb { filter: blur(80px); opacity: 0.25; }
  .bg-orb-1 { width: 350px; height: 350px; }
  .bg-orb-2 { width: 300px; height: 300px; }
  .bg-orb-3 { width: 280px; height: 280px; }
}

@media (max-width: 480px) {
  .header-title { letter-spacing: 1px; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
  .food-class-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .food-class-item img {
    height: 240px;
  }
  .food-item-image-container {
    height: 320px;
  }
  .logo { height: 34px; max-height: 34px; }
  #navbar.scrolled .logo { height: 30px; }
  .cart-icon-container {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .scroll-indicator { display: none; }
}

/* ============================================
   No-Basket Mode (QR menu on tables)
   ============================================ */
body.no-basket #cart-icon,
body.no-basket #cart-popup,
body.no-basket .add-to-cart-btn,
body.no-basket #whatsapp-order-button-cart,
body.no-basket #whatsapp-order-button-items {
  display: none !important;
}

/* In no-basket mode the item popup loses its bottom WhatsApp button,
   so trim the bottom padding */
body.no-basket .popup-content {
  padding-bottom: 20px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .particles-canvas { display: none; }
}
