:root {
  --bg: #f4efe7;
  --bg-2: #efe7dc;
  --card: #ffffff;
  --ink: #1e1a16;
  --muted: #7a6f65;
  --accent: #c05b3c;
  --accent-2: #2f6f77;
  --border: rgba(30, 26, 22, 0.08);
  --shadow: 0 14px 32px rgba(30, 26, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at -10% -20%, #fff8ea 0%, transparent 60%),
    radial-gradient(700px 600px at 120% -10%, #f8efe2 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

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

.topbar {
  padding: 28px 20px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 252, 247, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.brand-actions {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.brand-phone {
  font-weight: 600;
  color: var(--accent-2);
}

.brand-sub:empty,
.brand-phone:empty {
  display: none;
}

.content {
  padding: 16px 20px 72px;
  flex: 1;
}

.view {
  animation: fadeIn 0.6s ease;
}

.hidden {
  display: none;
}

.view-header h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 22px;
  margin: 0 0 6px 0;
}

.view-header p {
  margin: 0 0 18px 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  gap: 16px;
}

.category-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  min-height: 120px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  animation: rise 0.6s ease forwards;
  opacity: 0;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05));
}

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 20px;
  margin-bottom: 6px;
  text-transform: capitalize;
}

.category-count {
  font-size: 13px;
  opacity: 0.9;
}

.items-hero {
  padding: 20px;
  border-radius: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
}

.items-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
}

.items-hero-title,
.items-hero-sub,
.back-btn {
  position: relative;
  z-index: 2;
}

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

.items-hero-title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 24px;
  text-align: right;
}

.items-hero-sub {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 6px;
}

.back-btn {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.items-hero-sub:empty {
  display: none;
}

.items-toolbar {
  margin: 12px 0 18px;
}

.items-toolbar input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  background: var(--card);
}

.menu {
  display: grid;
  gap: 14px;
}

.item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

.item-thumb {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #f0e7dc, #f7f1ea);
  background-size: cover;
  background-position: center;
}

.item-name {
  font-size: 16px;
  font-weight: 600;
}

.item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.notice {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.footer {
  padding: 16px 20px 24px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  background: rgba(255, 252, 247, 0.9);
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 720px) {
  .content {
    padding: 28px 32px 90px;
  }
  .topbar {
    padding: 30px 32px 20px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
