body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    /* 1. غير اللون الأسود إلى لون خلفية موقعك الأصلي (مثلاً لون غامق قريب من لون الكاردز) */
    background-color: #1a1f3a; 
    -webkit-overflow-scrolling: touch;
    /* 2. هذا هو السطر "السحري" الذي يمنع ظهور الشاشة السوداء عند التمرير السريع */
    overscroll-behavior-y: contain; 
}
.why-section, .menu-container, .contact-section {
    will-change: transform;
}

* {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
:root {
  --main-color: #d4af37;
  --secondary-color: #ffd700;
  --bg-color: #0a0e27;
  --card-bg: #1a1f3a;
  --card-bg-light: #242d48;
  --text-color: #ffffff;
  --text-secondary: #b0b8d1;
  --shadow-sm: 0 4px 15px rgba(212, 175, 55, 0.08);
  --shadow-md: 0 8px 32px rgba(212, 175, 55, 0.12);
  --shadow-lg: 0 16px 48px rgba(212, 175, 55, 0.15);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #160b2a 0%, #0f2a2a 50%, #2a1030 100%);
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  text-align: right;
  overflow-x: hidden;
}


/* Prevent weird overscroll/“white screen” artifacts on mobile */
html, body { overscroll-behavior-y: none; }

/* Header */
header {
  background: linear-gradient(135deg, #0a0e27 0%, #1a2550 50%, #0f1429 100%);
  text-align: center;
  padding: 60px 20px;
  border-bottom: 2px solid var(--main-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05), transparent),
              radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.03), transparent);
  pointer-events: none;
}

header h1 {
  font-size: 48px;
  margin: 0;
  color: var(--main-color);
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3), 
               0 0 40px rgba(255, 215, 0, 0.1);
  position: relative;
  z-index: 1;
  animation: slideDown 0.7s ease-out;
  font-weight: 800;
  letter-spacing: 2px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  position: relative;
  z-index: 1;
  animation: slideDown 0.8s ease-out;
  flex-wrap: wrap;
}

.logo {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.3);
  animation: spin 20s linear infinite;
}

.logo svg {
  width: 60px;
  height: 60px;
  color: var(--main-color);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header-text h1 {
  font-size: 48px;
  margin: 0;
  color: var(--main-color);
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  letter-spacing: 2px;
  font-weight: 800;
}

.tagline {
  font-size: 16px;
  color: var(--secondary-color);
  margin: 5px 0 0 0;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Navigation */
.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 35px auto;
  overflow-x: auto;
  padding: 20px;
  max-width: 700px;
  background: linear-gradient(90deg, rgba(26, 31, 58, 0.7), rgba(36, 45, 72, 0.5));
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.tab-btn {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-light) 100%);
  color: var(--text-color);
  border: 2px solid var(--card-bg-light);
  border-radius: 35px;
  padding: 12px 28px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-btn:hover,
.tab-btn.active {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: #000;
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}

/* Main Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Product Categories */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 35px auto;
  flex-wrap: wrap;
  padding: 25px;
  background: linear-gradient(90deg, rgba(26, 31, 58, 0.5), rgba(36, 45, 72, 0.3));
  border-radius: 40px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.08);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.category-tab {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-light) 100%);
  color: var(--text-secondary);
  border: 2px solid var(--card-bg-light);
  border-radius: 30px;
  padding: 10px 22px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 14px;
  text-transform: capitalize;
}

.category-tab:hover,
.category-tab.active {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: #000;
  border-color: var(--secondary-color);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

/* Menu Cards */
.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.menu-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-light) 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1), transparent);
  pointer-events: none;
  z-index: 1;
}

.menu-card:hover {
  transform: translateY(-12px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.menu-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2550 0%, #0f1429 100%);
}

.menu-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.menu-card:hover img {
  transform: scale(1.12) rotate(2deg);
}

.price-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: #000;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  z-index: 2;
}

.menu-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.menu-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--main-color);
}

.menu-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex: 1;
  line-height: 1.6;
}

.menu-card-footer {
  margin-top: auto;
}

/* Featured Section */
.featured-section {
  margin: 60px 0;
  padding: 40px;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.5), rgba(36, 45, 72, 0.3));
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  color: var(--main-color);
  margin: 0 0 40px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.featured-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.featured-item {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-light) 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.featured-item:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.featured-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2550 0%, #0f1429 100%);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.featured-item:hover .featured-image img {
  transform: scale(1.15);
}

.featured-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.featured-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(212, 175, 55, 0.9);
  color: #000;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.featured-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-color);
  margin: 0 0 8px 0;
}

.featured-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 15px 0;
  flex: 1;
  line-height: 1.5;
}

.featured-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.btn-featured-add {
  flex: 1;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: #000;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-featured-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.featured-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 70px;
  justify-content: center;
}

.qty-btn {
  background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
  color: #000;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
}

.qty-btn:hover {
  transform: scale(1.1);
}

.qty-display {
  color: var(--main-color);
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* Action Button */
.btn-action {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  transition: var(--transition);
  width: 100%;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-action:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffed4e 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-action:active {
  transform: translateY(0);
}

/* Shopping Cart */
.cart-bar {
  background: linear-gradient(90deg, rgba(26, 31, 58, 0.95), rgba(36, 45, 72, 0.9));
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--main-color);
  position: sticky;
  bottom: 0;
  z-index: 100;
  box-shadow: 0 -12px 40px rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(15px);
  gap: 30px;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.cart-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-details {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-details #cart-count {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 15px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.cart-details #cart-total {
  color: var(--main-color);
  font-weight: bold;
  font-size: 16px;
}

.cart-preview {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(36, 45, 72, 0.6));
  border-top: 2px solid var(--main-color);
  padding: 28px;
  margin: 30px 20px;
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding: 16px 0;
  animation: slideIn 0.3s ease-out;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info h4 {
  margin: 0 0 5px 0;
  color: var(--main-color);
  font-size: 16px;
}

.cart-item-price {
  color: var(--secondary-color);
  font-size: 14px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-total {
  font-weight: bold;
  color: var(--main-color);
  min-width: 85px;
  text-align: right;
}

.btn-quantity {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: #000;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.btn-quantity:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.btn-clear-cart {
  width: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
  color: var(--main-color);
  border: 2px solid var(--main-color);
  padding: 14px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-clear-cart:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.1));
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-1px);
}

/* Notifications */
.notification {
  top: 20px;
  right: 20px;
}

#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top: 4px solid var(--main-color);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: bold;
  z-index: 1001;
  animation: notificationIn 0.25s ease-out;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transform: translateY(-10px);
}

@keyframes notificationIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


.notification-success {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.notification-error {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.notification.show {
  animation: slideOutRight 0.3s ease-out;
}

/* Animations and Transitions */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

.added-to-cart {
  animation: pulse 0.6s ease-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* Cart Icon in Top-Right */
.cart-icon-container {
  position: fixed;
  z-index: 2001;
  top: 30px;
  right: 30px;
  cursor: pointer;
}


.cart-icon {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  transition: var(--transition-fast);
  color: #000;
}

.cart-icon:hover {
  transform: scale(1.1) rotateY(15deg);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.cart-icon svg {
  width: 28px;
  height: 28px;
  stroke: #000;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
  animation: badgePulse 0.3s ease-out;
}

@keyframes badgePulse {
  0% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Skip link (fix layout break) */
.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: #000;
  border-radius: 10px;
  font-weight: 700;
  z-index: 2000;
  transition: var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(255, 215, 0, 0.6);
  outline-offset: 2px;
}

/* Cart Sidebar Overlay */
.cart-overlay {
  z-index: 1999;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;

  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.cart-overlay.active {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
  pointer-events: all;
}

/* Cart Sidebar Panel */
.cart-sidebar {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  right: auto;

  width: 450px;
  height: 100vh;
  background: linear-gradient(180deg, #1a1f3a 0%, #242d48 50%, #1a1f3a 100%);
  box-shadow: -10px 0 40px rgba(212, 175, 55, 0.2);
  z-index: 1000;

  transition: var(--transition);
  border-left: 2px solid rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Mobile-friendly hiding to avoid horizontal scroll */
  transform: translateX(-110%);
}

/* Hide cart icon when sidebar is open */
#cart-sidebar.active ~ #cart-icon-btn,
#cart-sidebar.active ~ .cart-icon-container,
#cart-sidebar.active ~ #cart-badge {
  opacity: 0;
  pointer-events: none;
}

.cart-sidebar.active {
  left: 0;
  right: auto;
  transform: translateX(0);
}





.cart-sidebar-header {
  padding: 25px;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(36, 45, 72, 0.6));
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-sidebar-header h2 {
  font-size: 24px;
  color: var(--main-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-close-cart {
  background: transparent;
  border: none;
  color: var(--main-color);
  font-size: 36px;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-cart:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--secondary-color);
}

.cart-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.cart-sidebar-content::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.05);
  border-radius: 10px;
}

.cart-sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}

.cart-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

.cart-item-row {
  background: linear-gradient(135deg, #1a1f3a, #242d48);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
  animation: slideInRight 0.3s ease-out;
}

.cart-item-row:hover {
  background: linear-gradient(135deg, #242d48, #2d3a52);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 5px;
}

.cart-item-details {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-qty {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--main-color);
  font-weight: bold;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
}

.btn-remove-item {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.2);
}

.btn-remove-item:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.empty-cart-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-cart-message svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.5;
  stroke: var(--main-color);
}

.empty-cart-message p {
  font-size: 16px;
  font-weight: 500;
}

.cart-sidebar-footer {
  padding: 20px;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.9), rgba(36, 45, 72, 0.7));
  border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.cart-summary {
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-row.total {
  border-top: 2px solid rgba(212, 175, 55, 0.2);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: bold;
  color: var(--main-color);
}

.btn-checkout-sidebar {
  width: 100%;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-checkout-sidebar:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.45);
}

.btn-checkout-sidebar:active {
  transform: translateY(-1px);
}

/* Contact Section (Glass + red/gold emphasis) */
.contact-section {
  padding: 80px 40px;
  margin: 60px 0;
  border-radius: 30px;
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(231, 76, 60, 0.22), transparent 50%),
    linear-gradient(135deg, rgba(231, 76, 60, 0.18), rgba(36, 45, 72, 0.22));

  border: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 30px 90px rgba(231, 76, 60, 0.10),
    0 14px 50px rgba(212, 175, 55, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  transform: translateZ(0);
}

/* inner shimmer */
.contact-section::after {
  content: '';
  position: absolute;
  inset: -120px -120px auto -120px;
  height: 260px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.12), transparent);
  transform: rotate(8deg);
  pointer-events: none;
  opacity: 0.9;
  filter: blur(8px);
}

/* red glow overlay */
.contact-section::before {
  content: '';
  position: absolute;
  inset: -80px -120px auto -120px;
  height: 220px;
  background: radial-gradient(circle at 30% 50%, rgba(231, 76, 60, 0.35), transparent 60%);
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.95;
}

.contact-section .section-title {
  margin-bottom: 26px;
  letter-spacing: 2px;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 16px;
}

.contact-phone-link {
  color: var(--main-color);
  text-decoration: none;
  font-weight: 800;
}

.contact-phone-link:hover {
  text-decoration: underline;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
}

/* About Us Section */
.about-section {

  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.3), rgba(36, 45, 72, 0.2));
  margin: 60px 0;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
  animation: slideInLeft 0.8s ease-out;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
  border-radius: 20px;
}

.about-content {
  animation: slideInRight 0.8s ease-out;
}

.about-content h2 {
  font-size: 36px;
  color: var(--main-color);
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature {
  background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
  color: #000;
  padding: 12px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Why Choose Us Section */
.why-choose-section {
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(36, 45, 72, 0.2), rgba(26, 31, 58, 0.3));
  margin: 60px 0;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.why-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-content {
  animation: slideInLeft 0.8s ease-out;
}

.why-content h2 {
  font-size: 36px;
  color: var(--main-color);
  margin: 0 0 18px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.why-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.why-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.65), rgba(36, 45, 72, 0.45));
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.08);
  transition: var(--transition-fast);
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.18), transparent 60%);
  pointer-events: none;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.18);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(255, 215, 0, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  flex: 0 0 auto;
}

.why-icon svg {
  width: 22px;
  height: 22px;
}

.why-card-content h3 {
  font-size: 16px;
  color: var(--main-color);
  margin: 2px 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.why-card-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
  animation: slideInRight 0.8s ease-out;
  min-height: 420px;
  display: flex;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.why-image:hover img {
  transform: scale(1.05);
}

.why-stats {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  z-index: 2;
}

.why-stat {
  background: rgba(10, 14, 39, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.12);
  min-width: 170px;
}

.why-stat-value {
  display: block;
  color: var(--main-color);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.why-stat-label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Accessibility */
:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.65);
  outline-offset: 3px;
}

/* Specialties Section */
.specialties-section {
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.3), rgba(36, 45, 72, 0.2));
  margin: 60px 0;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.specialties-section h2 {
  font-size: 36px;
  color: var(--main-color);
  text-align: center;
  margin: 0 0 60px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.specialties-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.specialty-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-light) 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.1);
  transition: var(--transition);
  animation: slideUp 0.6s ease-out;
}

.specialty-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.3);
}

.specialty-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.specialty-card:hover img {
  transform: scale(1.1);
}

.specialty-content {
  padding: 25px;
}

.specialty-content h3 {
  font-size: 20px;
  color: var(--main-color);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.specialty-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animation triggers */
.about-section {
  opacity: 0;
}

/* Mobile stability: prevent “blue flash”/overscroll gaps + any accidental horizontal scroll */
@supports (overflow: clip) {
  body { overflow-x: clip; }
}
html, body { overscroll-behavior-y: none; }


.about-section.in-view {
  animation: slideUp 0.8s ease-out forwards;
}

.why-choose-section {
  opacity: 0;
}

.why-choose-section.in-view {
  animation: slideUp 0.8s ease-out forwards;
}

.specialties-section {
  opacity: 0;
}

.specialties-section.in-view {
  animation: slideUp 0.8s ease-out forwards;
}

/* Responsive cart sidebar for mobile */
@media (max-width: 480px) {
  .skip-link {
    left: 12px;
    top: 10px;
  }

  .cart-sidebar {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: 0;
    transform: translateX(-110%);
    height: 100dvh;
    top: 0;
    box-sizing: border-box;
  }

  /* Cart: ensure content doesn't overflow oddly on small screens */
  .cart-sidebar-content {
    padding: 10px;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .cart-icon-container {
    top: 20px;
    right: 20px;
  }
  
  .cart-icon {
    width: 50px;
    height: 50px;
  }
  
  .cart-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Why Choose Us: stack cards + avoid overlap */
  .why-container {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .why-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
  }

  .why-card {
    padding: 14px;
    gap: 12px;
  }

  .why-image {
    min-height: 320px;
  }

  .why-stats {
    left: 10px;
    right: 10px;
    bottom: 12px;
  }

  .why-stat {
    min-width: 0;
    width: 100%;
  }

  /* Contact: reduce padding on mobile */
  .contact-section {
    padding: 48px 16px;
    margin: 30px 0;
  }

  .contact-text {
    font-size: 14px;
  }

  .contact-sub {
    font-size: 13px;
  }
}

/* Responsive design for medium screens */
@media (max-width: 768px) {
  header h1 {
    font-size: 36px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .logo {
    width: 80px;
    height: 80px;
  }
  
  .logo svg {
    width: 50px;
    height: 50px;
  }
  
  .header-text h1 {
    font-size: 32px;
  }
  
  .tagline {
    font-size: 14px;
  }
  
  .menu-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .why-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-section,
  .why-choose-section,
  .specialties-section {
    padding: 50px 20px;
  }
  
  .about-content h2,
  .why-content h2,
  .specialties-section h2 {
    font-size: 28px;
  }
  
  .cart-sidebar {
    width: 400px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .notification {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}

