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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  background: #fafafa;
  color: #2d3748;
  line-height: 1.6;
}

.app {
  min-height: 100vh;
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-image: url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1200"),
    linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.9) 0%,
      rgba(118, 75, 162, 0.9) 100%
    );
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.8) 0%,
    rgba(118, 75, 162, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.status-badge {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.status-badge.open {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
}

.status-badge.closed {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

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

.delivery-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.delivery-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-button {
  background: white;
  color: #667eea;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-button:active {
  transform: translateY(0);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2d3748;
}

/* Categories Section */
.categories-section {
  padding: 60px 20px 40px;
  background: white;
}

.categories {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  color: #4a5568;
}

.category-btn:hover {
  border-color: #667eea;
  background: #f7fafc;
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-icon {
  font-size: 1.25rem;
}

.category-name {
  font-weight: 600;
}

/* Menu Section */
.menu-section {
  padding: 40px 20px 80px;
  background: #fafafa;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  animation: fadeIn 0.6s ease-out;
}

.menu-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.menu-card-image {
  height: 200px;
  overflow: hidden;
  background: #f7fafc;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.1);
}

.menu-card-content {
  padding: 20px;
}

.menu-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2d3748;
}

.menu-card-description {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 16px;
  min-height: 40px;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* Floating Cart */
.cart-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  z-index: 100;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: slideInUp 0.5s ease-out;
}

.cart-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.cart-icon {
  font-size: 1.5rem;
}

.cart-count {
  background: white;
  color: #667eea;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-total {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Checkout Modal */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.checkout-modal {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideInUp 0.4s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.checkout-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.checkout-content {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #718096;
  font-size: 1.1rem;
}

.checkout-items {
  margin-bottom: 24px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f7fafc;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.checkout-item:hover {
  background: #edf2f7;
}

.checkout-item-image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.checkout-item-details {
  flex: 1;
}

.checkout-item-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #2d3748;
}

.checkout-item-price {
  color: #667eea;
  font-weight: 600;
}

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

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  background: #667eea;
  color: white;
}

.qty-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.delete-btn {
  background: #fee;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.delete-btn:hover {
  background: #fcc;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f7fafc;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 1.25rem;
  font-weight: 700;
}

.total-amount {
  color: #667eea;
  font-size: 1.75rem;
}

.checkout-form {
  margin-bottom: 24px;
}

.checkout-form h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #2d3748;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkout Sections */
.checkout-delivery,
.checkout-pickup,
.checkout-payment {
  margin-bottom: 24px;
}

.checkout-delivery h3,
.checkout-pickup h3,
.checkout-payment h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #2d3748;
}

.delivery-options,
.pickup-options,
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-options label,
.pickup-options label,
.payment-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.delivery-options label:hover,
.pickup-options label:hover,
.payment-options label:hover {
  background: #edf2f7;
  border-color: #667eea;
}

.delivery-options input[type="radio"],
.pickup-options input[type="radio"],
.payment-options input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.delivery-options input[type="radio"]:checked + span,
.pickup-options input[type="radio"]:checked + span,
.payment-options input[type="radio"]:checked + span {
  font-weight: 600;
}

.delivery-options label:has(input:checked),
.pickup-options label:has(input:checked),
.payment-options label:has(input:checked) {
  background: #eef2ff;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.whatsapp-btn {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
  transform: translateY(0);
}

.whatsapp-icon {
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background: #2d3748;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.footer p {
  margin: 0;
  opacity: 0.9;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  .hero {
    height: 400px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .categories {
    gap: 8px;
  }

  .category-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .cart-float {
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .cart-icon {
    font-size: 1.3rem;
  }

  .cart-count {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .cart-total {
    font-size: 1rem;
  }

  .checkout-header {
    padding: 20px;
  }

  .checkout-header h2 {
    font-size: 1.5rem;
  }

  .checkout-content {
    padding: 20px;
  }

  .checkout-item {
    flex-wrap: wrap;
  }

  .checkout-item-image {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .categories {
    flex-direction: column;
    align-items: stretch;
  }

  .category-btn {
    justify-content: center;
  }
}

/* Touch-friendly improvements */
@media (hover: none) {
  .menu-card:hover {
    transform: none;
  }

  .menu-card:active {
    transform: scale(0.98);
  }

  .add-to-cart-btn:hover {
    transform: none;
  }

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