/* ---------------------------------------------
   Palette
   bg deep:  #17201A   body backdrop
   bg panel: #212D24   menu board surface
   text:     #F1EAD9   warm ivory
   muted:    #AFB9A4
   accent:   #C9A227   brass / gold
----------------------------------------------- */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Vazirmatn', sans-serif;
}

body {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201,162,39,0.10), transparent 45%),
    radial-gradient(ellipse at 50% 110%, rgba(0,0,0,0.35), transparent 55%),
    #17201A;
  color: #F1EAD9;
  padding: 40px 16px 56px;
}

.menu-board {
  max-width: 640px;
  margin: 0 auto;
  background: #212D24;
  border: 1px solid rgba(201,162,39,0.22);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 44px 28px 40px;
  position: relative;
}

.menu-board::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201,162,39,0.12);
  border-radius: 12px;
  pointer-events: none;
}

.menu-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.menu-header h1 {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  color: #F1EAD9;
}

.menu-header p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 400;
  color: #AFB9A4;
  line-height: 1.7;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
  width: 160px;
}
.ornament .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.6));
}
.ornament .line:last-child {
  background: linear-gradient(90deg, rgba(201,162,39,0.6), transparent);
}
.ornament .dot {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: #C9A227;
  flex-shrink: 0;
}

.menu-root { position: relative; }

.loading {
  text-align: center;
  color: #AFB9A4;
  font-size: 14px;
}

.category {
  margin-bottom: 38px;
}
.category:last-child { margin-bottom: 0; }

.category-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.category-title-row svg { flex-shrink: 0; opacity: 0.85; }

.category-title {
  font-size: 14px;
  font-weight: 600;
  color: #C9A227;
  letter-spacing: 0.5px;
  margin: 0;
}

.category-title-row .fade-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,162,39,0.35), transparent);
}

.item {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  align-items: flex-start;
  transition: border-color 0.2s ease;
}
.item:last-child { margin-bottom: 0; }

.item-photo {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #17201A;
  border: 1.5px solid rgba(201,162,39,0.4);
}

.item-body { flex: 1; min-width: 0; }

.item-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.item-title {
  font-size: 16px;
  font-weight: 600;
  color: #F1EAD9;
  white-space: nowrap;
}

.item-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(241,234,217,0.25);
  height: 0;
  margin-bottom: 5px;
}

.item-price {
  font-size: 14.5px;
  font-weight: 700;
  color: #C9A227;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.item-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #AFB9A4;
  line-height: 1.75;
}

.empty-state {
  text-align: center;
  color: #AFB9A4;
  font-size: 14px;
  padding: 30px 0;
}

.menu-footer {
  text-align: center;
  margin-top: 30px;
}

.admin-link {
  color: rgba(241,234,217,0.3);
  font-size: 11.5px;
  text-decoration: none;
}
.admin-link:hover { color: #C9A227; }

@media (max-width: 420px) {
  .menu-board { padding: 32px 18px 30px; border-radius: 14px; }
  .item-photo { width: 58px; height: 58px; }
  .item-title { font-size: 15px; }
}
