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

:root {
  --primary: #e85d04;
  --primary-dark: #d45200;
  --secondary: #1a1a2e;
  --accent: #ffba08;
  --bg: #faf3e0;
  --bg-card: #ffffff;
  --text: #2d2d2d;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
.header {
  background: rgba(255, 186, 8, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--secondary);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo i {
  font-size: 2rem;
  color: var(--accent);
}

.logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  line-height: 1.2;
}

.logo span {
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-info {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.header-info i {
  color: var(--accent);
  margin-right: 6px;
}

.header-info a {
  color: #fff;
  text-decoration: none;
}

.header-info a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1600&q=80') center/cover fixed;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  color: #fff;
}

.hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 10px;
  padding: 32px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex-shrink: 0;
  padding: 10px 24px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cat-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-bottom: 100px;
}

.menu-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  animation: fadeIn 0.4s ease;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.menu-item-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.menu-item-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.menu-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.menu-item:hover .menu-item-img-wrap img {
  transform: scale(1.08);
}

.menu-item-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
}

.menu-item-body {
  padding: 16px 18px 18px;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.menu-item-name {
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

.menu-item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  white-space: nowrap;
  margin-left: 8px;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.menu-item-badge {
  font-size: 0.7rem;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: capitalize;
}

.btn-add {
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.btn-add.in-cart {
  background: var(--success);
}

/* Cart FAB */
.cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,93,4,0.4);
  transition: var(--transition);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-fab:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: var(--secondary);
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 199;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  z-index: 200;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close, .modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.cart-close:hover, .modal-close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
}

.cart-empty i {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.cart-empty p {
  font-size: 1.1rem;
  font-weight: 500;
}

.cart-empty span {
  font-size: 0.85rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}

.cart-item-img-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

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

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qty-btn.remove {
  border-color: #fee2e2;
  color: #ef4444;
}

.qty-btn.remove:hover {
  background: #fee2e2;
}

.cart-item-qty span {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cart-total span:last-child {
  color: var(--primary);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-checkout:hover {
  background: var(--primary-dark);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 299;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 95%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: #25d366;
  color: #fff;
}

.btn-primary:hover {
  background: #1ebe5d;
}

.btn-secondary {
  background: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* Order Summary */
.order-summary-items {
  margin-bottom: 20px;
}

.order-summary-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  padding-top: 10px;
  border-top: 2px solid var(--border);
  margin-top: 10px;
}

.order-summary-total span:last-child {
  color: var(--primary);
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 56px;
}

.payment-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-option {
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.payment-option:hover {
  border-color: var(--primary);
}

.payment-option input[type="radio"] {
  accent-color: var(--primary);
}

.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(232,93,4,0.05);
}

.payment-option i {
  color: var(--primary);
}

/* Payment Section */
.payment-section {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.payment-section .upi-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.highlight {
  background: #fef3c7;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-family: monospace;
}

#qrcode {
  margin: 12px 0;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: inline-block;
}

#qrcode img {
  display: block;
}

.upi-note {
  font-size: 0.8rem;
  color: var(--text-light);
}

.btn-upi-link {
  margin-top: 8px;
  padding: 10px 24px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-upi-link:hover {
  background: #2d2d4e;
}

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

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: var(--secondary);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  z-index: 999;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.35s ease;
  transition: var(--transition);
}

.toast i {
  color: var(--accent);
}

.toast.hide {
  opacity: 0;
  transform: translateX(100px);
  pointer-events: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-info {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.8rem;
    gap: 12px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

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

  .cart-sidebar {
    max-width: 100%;
    right: -100%;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: translateY(100%);
  }

  .modal.active {
    transform: translateY(0);
  }

  .modal-header {
    border-radius: 0;
  }

  .payment-options {
    flex-direction: column;
  }

  .payment-option {
    min-width: auto;
  }

  .cart-fab {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .hero {
    min-height: 180px;
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .category-tabs {
    gap: 8px;
    padding: 20px 0 16px;
  }

  .cat-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
