:root {
  --primary: #f97316;
  --primary-dark: #c2410c;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.header p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.main-container {
  max-width: 1280px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
}

@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
  }
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

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

.menu-group {
  margin-bottom: 2rem;
}

.menu-group h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-left: 4px solid var(--primary);
  padding-left: 0.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.product-image-wrapper {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f1f5f9;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-content h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.product-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f8fafc;
}

.product-price {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-value {
  width: 28px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.order-summary {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.order-summary h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.order-items {
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.item-details {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-weight: 500;
}

.item-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.item-price {
  font-weight: 600;
}

.order-totals {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-bottom: 1.2rem;
}

.total-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.grand-total {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.confirmation-box {
  background: #dcfce7;
  color: #166534;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

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

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

.checkout-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}