:root {
  --bg: #f3f6ff;
  --surface: #ffffff;
  --surface-strong: #eceffb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #4f46e5;
  --primary-soft: #eef0ff;
  --accent: #f97316;
  --border: #dbe4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, #f7f9ff 100%);
  color: var(--text);
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef0ff 0%, #ffffff 100%);
  box-shadow: 0 25px 70px rgba(79, 70, 229, 0.09);
  margin-bottom: 1.5rem;
}

.hero strong {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 3rem);
}

.hero p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 560px;
}

.hero-badge {
  align-self: center;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 1.5rem;
}

.menu-panel,
.cart-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
}

.menu-header,
.cart-header {
  margin-bottom: 1rem;
}

.menu-header h2,
.cart-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.menu-header p,
.cart-header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: rgba(79, 70, 229, 0.18);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.menu-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: var(--surface-strong);
  align-items: center;
}

.menu-image {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: radial-gradient(circle at top, #ffffff 10%, #dbe4ff 65%);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  padding: 0.75rem;
}

.menu-content h3 {
  margin: 0;
  font-size: 1.05rem;
}

.menu-content p {
  margin: 0.45rem 0 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.menu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  font-size: 1rem;
  font-weight: 700;
}

.add-btn {
  border: none;
  outline: none;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.cart-body {
  min-height: 260px;
  display: grid;
  gap: 0.75rem;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border-radius: 20px;
  background: var(--surface-strong);
}

.cart-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.cart-item small {
  color: var(--muted);
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.quantity-controls button {
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--primary-soft);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
}

.quantity-controls span {
  min-width: 1.3rem;
  text-align: center;
  font-weight: 700;
}

.remove-item {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cart-footer {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: var(--surface-strong);
}

.order-type {
  display: grid;
  gap: 0.75rem;
}

.order-type-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.order-type-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.order-type-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.order-type-options label:hover {
  background: #f7f8ff;
}

.order-type-options input {
  accent-color: var(--primary);
}

#order-note {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  resize: vertical;
  font-size: 0.95rem;
}

.primary-btn {
  width: 100%;
  padding: 1rem 1.1rem;
  border: none;
  border-radius: 18px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1060px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }
}
