@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Manrope:wght@400;500;600&display=swap");

:root {
  --ink: #f4f1ec;
  --charcoal: #0e0e0f;
  --graphite: #151518;
  --slate: #1f1f24;
  --gold: #c7a057;
  --bronze: #815c35;
  --accent: #a63f2b;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #202126 0%, #111114 55%, #0b0b0d 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  padding: 32px clamp(20px, 5vw, 64px) 64px;
  min-height: 50vh;
  background-image: url("https://alhabesha.se/wp-content/themes/yootheme/cache/riktiga-smaken-av-etiopien-222c1b74.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: #fdf8ef;
}

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

.brand {
  display: flex;
  flex-direction: column;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.brand-mark {
  font-size: 20px;
  font-weight: 600;
}

.brand-sub {
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

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

.hero-content {
  max-width: 620px;
  margin-top: 80px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.7);
  margin-bottom: 12px;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 16px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.menu-area {
  flex: 1;
  padding: 32px clamp(20px, 5vw, 64px) 80px;
  background: linear-gradient(180deg, #111114 0%, #0a0a0c 100%);
}

.menu-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.98) 60%, rgba(10, 10, 12, 0));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sticky-categories {
  position: sticky;
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
}

.menu-search input {
  width: min(280px, 80vw);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-family: inherit;
}

.menu-search input::placeholder {
  color: rgba(244, 241, 236, 0.55);
}

.category-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip.active,
.category-chip:hover {
  background: var(--gold);
  color: #0b0b0d;
  box-shadow: 0 6px 16px rgba(199, 160, 87, 0.25);
  transform: translateY(-1px);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.menu-section {
  background: var(--graphite);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeIn 0.4s ease both;
}

.menu-section h2 {
  font-family: "Playfair Display", serif;
  margin: 0 0 16px;
  font-size: 22px;
}

.menu-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-image {
  width: 120px;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(140deg, #2a2a30, #111114);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.menu-image.placeholder span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 8px;
  border-radius: 999px;
}

.menu-info {
  display: grid;
  gap: 8px;
}

.menu-item h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-item p {
  margin: 0;
  font-size: 13px;
  color: rgba(244, 241, 236, 0.7);
}

.menu-item button {
  margin-top: 6px;
  align-self: flex-start;
}


.menu-loading {
  font-size: 18px;
  color: rgba(244, 241, 236, 0.7);
}

.footer {
  padding: 24px clamp(20px, 5vw, 64px);
  background: #0b0b0d;
  color: #f4f1ec;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: #131316;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 20;
}

.cart.open {
  transform: translateX(0);
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 16px 0;
  display: grid;
  gap: 12px;
}

.cart-item {
  padding: 12px;
  border-radius: 12px;
  background: #1b1b20;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 8px;
}

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

.cart-qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.cart-summary {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: grid;
  gap: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: rgba(244, 241, 236, 0.7);
}

.order-form input,
.order-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f0f12;
  font-family: inherit;
  color: var(--ink);
}

button,
.ghost,
.primary {
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.primary {
  background: linear-gradient(120deg, var(--gold), var(--bronze));
  color: #0b0b0d;
  box-shadow: 0 10px 20px rgba(199, 160, 87, 0.3);
}

.primary:hover {
  transform: translateY(-1px);
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: transparent;
}

.menu-section .primary {
  background: var(--gold);
  color: #0b0b0d;
  box-shadow: 0 10px 20px rgba(199, 160, 87, 0.3);
}

.menu-section .primary:hover {
  transform: translateY(-1px);
}

.cart .ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
}

.muted {
  color: rgba(244, 241, 236, 0.6);
  font-size: 13px;
}

.staff-body {
  background: linear-gradient(180deg, #121215 0%, #0a0a0c 100%);
}

.admin-body {
  background: #f4f3ee;
  color: #1a1a1a;
}

.admin-body .muted {
  color: rgba(0, 0, 0, 0.55);
}

.kitchen-page {
  padding: 32px clamp(20px, 5vw, 56px);
}

.kitchen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.kitchen-header h1 {
  margin: 0;
}

.kitchen-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.status-column {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(15, 12, 8, 0.08);
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.status-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.6);
}

.status-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clear-done {
  border: none;
  background: transparent;
  color: #b3261e;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.status-list {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.order-card {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f9f8f5;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.order-card.status-new {
  border-color: rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.order-card.status-in_progress {
  border-color: rgba(70, 130, 180, 0.4);
  background: #e8f3ff;
}

.order-card.status-done {
  border-color: rgba(46, 139, 87, 0.4);
  background: #e7f6ed;
}

.order-table {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.order-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.order-number {
  font-weight: 700;
  font-size: 16px;
}

.order-time {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}

.order-items {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.order-notes {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  padding-top: 6px;
}

.order-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.order-action {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  background: #f0f0f0;
}

.order-action.danger {
  color: #b3261e;
  background: rgba(179, 38, 30, 0.12);
}

.order-action.neutral {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.08);
}

.order-action.success {
  color: #1b7d3c;
  background: rgba(27, 125, 60, 0.12);
}

@media (min-width: 768px) {
  .kitchen-board {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    min-height: 70vh;
  }

  .status-column {
    flex: 1;
    min-width: 260px;
  }

  .status-list {
    max-height: 70vh;
  }
}

.staff-page {
  padding: 40px clamp(20px, 6vw, 80px);
}

.staff-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.staff-stream {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.staff-body .stream-card {
  background: #1b1b20;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px var(--shadow);
}

.staff-body .order-card {
  padding: 12px;
  border-radius: 12px;
  background: #0f0f12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 8px;
}

.staff-body .order-card.empty {
  color: rgba(43, 27, 18, 0.6);
  text-align: center;
  padding: 30px 16px;
}

.order-history {
  display: grid;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
}

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

@media (max-width: 720px) {
  .hero-content {
    margin-top: 40px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cart {
    width: 100%;
  }

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

  .menu-search input {
    width: 100%;
  }

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

  .menu-image {
    width: 100%;
    height: 140px;
  }
}
