/* =========================
   VARIABLES & BASE STYLES
   ========================= */
:root {
  --bg: #fff7f1;
  --accent: #FF6B35;
  --accent-2: #E85A2A;
  --muted: #6b6b6b;
  --card: #fff;
  --glass: rgba(255, 255, 255, 0.8);
  --shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
  --max-width: 1100px;
  --radius: 12px;
  --ripple: rgba(255, 255, 255, 0.15);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #fff7f1 100%);
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

/* =========================
   CONTAINER
   ========================= */
.container {
  width: clamp(320px, 92%, var(--max-width));
  margin: 0 auto;
  padding: 1rem;
}

/* =========================
   HEADER
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(120%) blur(6px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.logo img,
.logo {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
}

.tagline {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  padding: 2rem 0;
}

.hero-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.hero-left {
  flex: 1;
}

.hero-left h2 {
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
}

.hero-left p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-right {
  width: 320px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border-radius: 12px;
  transform: translateZ(0);
}

/* =========================
   MENU GRID
   ========================= */
.menu {
  padding: 1.2rem 0 3rem;
}

.section-title {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.menu-column {
  background: var(--glass);
  padding: 0.8rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-column h4 {
  margin: 0 0 0.6rem;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: auto;
  padding-right: 0.2rem;
}

/* =========================
   CARD
   ========================= */
.card {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 10px rgba(14, 20, 28, 0.04);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(14, 20, 28, 0.06);
}

.card .thumb {
  width: 76px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .meta {
  flex: 1;
}

.card .meta h5 {
  margin: 0;
  font-size: 0.95rem;
}

.card .meta p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.card .controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* =========================
   SELECT & REMOVE BUTTONS
   ========================= */
.select-btn {
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
}

.remove-btn {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  cursor: pointer;
}

/* =========================
   SCROLLABLE AREA
   ========================= */
.scrollable {
  max-height: 480px;
  overflow: auto;
  padding-right: 6px;
}

/* =========================
   ORDER SUMMARY
   ========================= */
.order-summary {
  padding: 1rem 0 3rem;
}

.summary-panel {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0.6rem;
  border-bottom: 1px dashed #f0f0f0;
}

.summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

.total span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.total strong {
  font-size: 1.05rem;
  color: #111;
}

/* =========================
   MODAL
   ========================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.45);
}

.modal-panel {
  position: relative;
  width: clamp(300px, 92%, 640px);
  background: var(--card);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  animation: pop 0.18s ease;
}

.close-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  padding: 1.2rem 0;
  background: transparent;
  color: var(--muted);
}

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

/* =========================
   BUTTON RIPPLE EFFECT
   ========================= */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  width: 100px;
  height: 100px;
  opacity: 0;
  background: var(--ripple);
  transition: transform 0.6s, opacity 0.8s;
}

.ripple:active::after {
  transform: scale(1);
  opacity: 1;
  transition: 0s;
}

/* =========================
   RESPONSIVE UPDATES
   ========================= */
@media (max-width: 1100px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .hero-inner {
    flex-direction: column-reverse;
  }

  .hero-right {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .hero-left h2 {
    font-size: 1.4rem;
  }

  .hero-left p {
    font-size: 0.9rem;
  }

  .card {
    flex-direction: column;
    align-items: flex-start;
  }

  .card .thumb {
    width: 100%;
    height: 150px;
  }

  .card .controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 400px) {
  .hero-right {
    height: 140px;
  }

  .hero-left h2 {
    font-size: 1.2rem;
  }

  .hero-left p {
    font-size: 0.8rem;
  }

  .card .thumb {
    height: 120px;
  }
}