:root {
  /* Padel House Brand Colors */
  --primary: #E57625;
  --primary-dark: #C86420;
  --primary-light: #FF8E3C;
  --secondary: #E57625;
  --accent: #E57625;

  --dark: #212121;
  --dark-soft: #2A2A2A;
  --dark-card: #2F2F2F;

  --light: #FFFFFF;
  --light-soft: #F8F9FA;
  --gray: #8B92B0;
  --success: #00D98B;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Raleway', sans-serif;

  /* Shadows (✅ fixed to BRAND ORANGE instead of blue) */
  --shadow-sm: 0 2px 8px rgba(229, 118, 37, 0.12);
  --shadow-md: 0 4px 16px rgba(229, 118, 37, 0.18);
  --shadow-lg: 0 8px 32px rgba(229, 118, 37, 0.22);
  --shadow-glow: 0 0 30px rgba(229, 118, 37, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #212121 0%, #2A2A2A 100%);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(229, 118, 37, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(229, 118, 37, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body.rtl { direction: rtl; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

/* ========================================
   HEADER
   ======================================== */
.menu-header {
  background: linear-gradient(135deg, rgba(33, 33, 33, 0.98) 0%, rgba(42, 42, 42, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(229, 118, 37, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.brand { position: relative; }

.brand-title {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(229, 118, 37, 0.3);
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.brand-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
  margin-top: var(--space-xs);
  animation: accentSlide 2s ease-in-out infinite;
}

@keyframes accentSlide {
  0%, 100% { width: 60%; }
  50% { width: 80%; }
}
.site-footer-pro {
  margin-top: 80px;
  padding: 18px 14px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(20,20,20,0.98),
    rgba(33,33,33,0.98)
  );
  border-top: 1px solid rgba(229,118,37,0.2);
}

.footer-pro-inner {
  font-family: var(--font-body, 'Raleway', Arial, sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.65);
}

.footer-pro-inner a {
  color: #E57625;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-pro-inner a:hover {
  color: #FF8E3C;
  text-decoration: underline;
}

/* Mobile spacing */
@media (max-width: 768px) {
  .footer-pro-inner {
    font-size: 0.8rem;
    line-height: 1.6;
  }
}

.header-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.cart-toggle {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(229, 118, 37, 0.4);
}

.cart-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 24px rgba(229, 118, 37, 0.6);
}

.cart-toggle svg { width: 24px; height: 24px; stroke: white; }

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: white;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 2px solid var(--primary);
}

/* ========================================
   SEARCH & FILTERS
   ======================================== */
.menu-controls {
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
}

.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.search-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--gray);
  pointer-events: none;
}

.rtl .search-icon { left: auto; right: var(--space-md); }

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) * 3);
  background: var(--dark-card);
  border: 2px solid rgba(229, 118, 37, 0.2);
  border-radius: 16px;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.rtl .search-input {
  padding: var(--space-md) calc(var(--space-md) * 3) var(--space-md) var(--space-md);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(229, 118, 37, 0.3);
}

.search-input::placeholder { color: var(--gray); }

.category-filters {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-filters::-webkit-scrollbar { display: none; }

.category-btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--dark-card);
  border: 2px solid rgba(229, 118, 37, 0.2);
  color: var(--light);
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229, 118, 37, 0.3), transparent);
  transition: left 0.5s ease;
}

.category-btn:hover::before { left: 100%; }

.category-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(229, 118, 37, 0.4);
}

/* ========================================
   MENU GRID
   ======================================== */
.menu-main { padding: 0 0 var(--space-2xl); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.menu-item {
  background: var(--dark-card);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(229, 118, 37, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.menu-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229, 118, 37, 0.1) 0%, rgba(229, 118, 37, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.menu-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(229, 118, 37, 0.3);
}

.menu-item:hover::before { opacity: 1; }

.item-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-soft) 0%, var(--dark) 100%);
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover .item-image { transform: scale(1.1) rotate(2deg); }

.item-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--success);
  color: var(--dark);
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 217, 139, 0.4);
}
.rtl .item-badge { right: auto; left: var(--space-md); }
.item-badge.out-of-stock { background: var(--gray); }

.item-content {
  padding: var(--space-lg);
  position: relative;
  z-index: 2;
}

.item-category {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.item-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  color: var(--light);
}

.item-description {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.item-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.item-price-currency {
  font-size: 1rem;
  color: var(--gray);
  margin-left: var(--space-xs);
}
.rtl .item-price-currency { margin-left: 0; margin-right: var(--space-xs); }

.add-to-cart-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(229, 118, 37, 0.3);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 118, 37, 0.5);
}
.add-to-cart-btn:active { transform: translateY(0); }
.add-to-cart-btn:disabled {
  background: var(--gray);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ========================================
   CART SIDEBAR
   ======================================== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-soft) 100%);
  box-shadow: -4px 0 30px rgba(229, 118, 37, 0.2);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 2px solid var(--primary);
}

.rtl .cart-sidebar {
  right: auto;
  left: -450px;
  border-left: none;
  border-right: 2px solid var(--primary);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.active { right: 0; }
.rtl .cart-sidebar.active { right: auto; left: 0; }

.cart-header {
  padding: var(--space-lg);
  border-bottom: 2px solid rgba(229, 118, 37, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.cart-close {
  background: transparent;
  border: none;
  color: var(--light);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cart-close:hover {
  background: rgba(255, 70, 85, 0.2);
  color: var(--secondary);
}

.cart-close svg { width: 24px; height: 24px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.cart-item {
  background: var(--dark);
  border-radius: 16px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  display: flex;
  gap: var(--space-md);
  border: 1px solid rgba(229, 118, 37, 0.1);
  animation: slideInCart 0.3s ease;
}

@keyframes slideInCart {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--dark-soft);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--light);
}

.cart-item-price { color: var(--accent); font-weight: 600; }

.cart-item-controls {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-xs);
}

.quantity-btn {
  background: var(--dark-card);
  border: 1px solid rgba(229, 118, 37, 0.2);
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.quantity-btn:hover { background: var(--primary); color: white; }

.quantity-display {
  min-width: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: var(--space-xs);
  margin-left: auto;
  transition: all 0.3s ease;
}
.rtl .remove-btn { margin-left: 0; margin-right: auto; }

.remove-btn:hover { color: #FF6B77; transform: scale(1.1); }

.cart-empty { text-align: center; padding: var(--space-xl); color: var(--gray); }
.cart-empty-icon { font-size: 4rem; margin-bottom: var(--space-md); opacity: 0.3; }

.cart-footer {
  padding: var(--space-lg);
  border-top: 2px solid rgba(229, 118, 37, 0.2);
  background: var(--dark);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

.subtotal-amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.checkout-btn {
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(229, 118, 37, 0.4);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 118, 37, 0.6);
}

/* Barista message */
.barista-message {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  background: linear-gradient(135deg, rgba(229, 118, 37, 0.1) 0%, rgba(229, 118, 37, 0.05) 100%);
  padding: var(--space-lg);
  border-radius: 12px;
  border: 2px solid rgba(229, 118, 37, 0.2);
}

.barista-message svg { flex-shrink: 0; stroke: var(--primary); }

.barista-message strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.barista-message p {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.4;
}

/* ========================================
   OVERLAY
   ======================================== */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active { opacity: 1; visibility: visible; }

.site-footer {
  margin-top: 60px;
  padding: 20px 12px;
  text-align: center;
  background: linear-gradient(135deg, rgba(33,33,33,0.95), rgba(42,42,42,0.95));
  border-top: 1px solid rgba(229,118,37,0.25);
}

.site-footer .footer-inner {
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.site-footer a {
  color: #E57625;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: all 0.25s ease;
}

.site-footer a:hover {
  color: #FF8E3C;
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE (Base)
   ======================================== */
@media (max-width: 768px) {
  .brand-title { font-size: 2rem; }
  .menu-grid { grid-template-columns: 1fr; }
  .cart-sidebar { max-width: 100%; }
  .header-content { flex-wrap: wrap; }
  .category-filters { justify-content: flex-start; }
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading {
  background: linear-gradient(90deg, var(--dark-card) 0%, rgba(229, 118, 37, 0.12) 50%, var(--dark-card) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ========================================
   ANIMATED LOADER STYLES
   ======================================== */
#loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #2A2A2A 0%, #212121 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Character Styling */
.player-wrapper {
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.swing-arm {
  transform-origin: 90px 90px;
  animation: proSwing 1.2s ease-in-out infinite;
}

.ball-inner { animation: ballPath 1.2s ease-in-out infinite; }
.shadow-anim { animation: shadowPulse 1.2s ease-in-out infinite; }

@keyframes proSwing {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(30deg); }
}

@keyframes ballPath {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(-120px, -30px); opacity: 0.8; }
}

@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.3; }
  50% { transform: scaleX(1.2); opacity: 0.1; }
}

/* Typography UI */
.brand-box { text-align: center; margin-top: 20px; }

.loader-content .title {
  color: #ffffff;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease out forwards;
  font-family: 'Inter', sans-serif;
}

.loader-content .title span {
  color: #E57625;
  -webkit-text-stroke: 1px #E57625;
  -webkit-text-fill-color: transparent;
}

.location-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-top: 5px;
  animation: fadeUp 0.8s ease out 0.2s forwards;
  opacity: 0;
}

.location-tag .dot {
  width: 4px;
  height: 4px;
  background: #E57625;
  border-radius: 50%;
}

/* Modern Progress Bar */
.progress-container { width: 200px; margin-top: 40px; }

.progress-track {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  position: absolute;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #E57625, transparent);
  animation: slideProgress 1.5s infinite linear;
}

@keyframes slideProgress {
  0% { left: -40%; }
  100% { left: 100%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Exit Animation */
.loader-finished {
  opacity: 0 !important;
  transform: scale(1.05) !important;
  pointer-events: none;
}

/* ========================================
   ✅ MOBILE PRO PATCH (better phone UX)
   ======================================== */
@media (max-width: 992px) {
  .container { padding: 0 var(--space-sm); }
  .menu-controls { padding: var(--space-lg) 0 var(--space-md); }
}

@media (max-width: 768px) {
  /* Header */
  .header-content {
    padding: var(--space-sm) 0;
    gap: var(--space-sm);
  }
  .brand-title { font-size: 1.8rem; letter-spacing: .08em; }
  .cart-toggle { width: 48px; height: 48px; border-radius: 14px; }

  /* Search */
  .search-wrapper { margin-bottom: var(--space-md); }
  .search-input {
    border-radius: 14px;
    padding: 0.85rem 1rem 0.85rem 3rem;
    font-size: 0.95rem;
  }
  .rtl .search-input { padding: 0.85rem 3rem 0.85rem 1rem; }

  /* Categories */
  .category-filters {
    gap: 0.65rem;
    padding: 0.5rem 0 0.25rem;
    scroll-snap-type: x mandatory;
  }
  .category-btn {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 999px;
    scroll-snap-align: start;
  }

  /* Cards */
  .menu-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .menu-item { border-radius: 18px; }
  .item-image-wrapper { height: 180px; } /* ✅ was 240px */
  .item-content { padding: 1rem; }
  .item-name { font-size: 1.5rem; }
  .item-price { font-size: 1.7rem; }

  .add-to-cart-btn {
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  /* Cart becomes bottom sheet */
  .cart-sidebar {
    right: 0;
    left: 0;
    max-width: 100%;
    width: 100%;
    height: 78vh;
    top: 100%;
    border-left: none;
    border-top: 2px solid var(--primary);
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .cart-sidebar.active { top: calc(100% - 78vh); }
  .rtl .cart-sidebar { left: 0; right: 0; }
  .rtl .cart-sidebar.active { top: calc(100% - 78vh); }
}

/* Safe area for iPhone */
@supports (padding: max(0px)) {
  .menu-header { padding-top: env(safe-area-inset-top); }
  .cart-footer { padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom)); }
}
/* ========================================
   ✅ FIX CATEGORY BUTTONS ON MOBILE (PILLS)
   Paste at END of CSS
   ======================================== */

@media (max-width: 768px) {
  /* reduce the big space above categories */
  .menu-controls { padding: 1.2rem 0 0.8rem !important; }
  .search-wrapper { margin: 0 auto 0.8rem !important; }

  /* category row */
  .category-filters{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding: 6px 6px 2px !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  /* force buttons to NOT be circles */
  .category-btn{
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 84px !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;

    font-size: 0.95rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    scroll-snap-align: start;
  }

  /* if any CSS is setting icon-only circle style, this kills it */
  .category-btn::before{ display: none !important; }
}