/* === FONT === */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF,
                 U+0020-007F, U+00A0-00FF, U+2000-206F;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul { list-style: none; }

/* === TOKENS === */
:root {
  --color-text: #1a1a2e;
  --color-text-muted: #4a4a5a;
  --color-accent: #b5402a;
  --color-bg: #faf8f5;
  --color-bg-card: #ffffff;
  --color-border: #e8e4de;
  --color-badge-bg: #1a1a2e;
  --color-badge-text: #ffffff;

  --font-body: 'Vazirmatn', 'Tahoma', system-ui, sans-serif;
  --font-size-title: clamp(2.25rem, 6vw, 3.5rem);
  --font-size-tagline: clamp(0.8rem, 2vw, 1.05rem);
  --font-size-category: clamp(1.1rem, 3vw, 1.4rem);
  --font-size-item: clamp(0.85rem, 2.2vw, 1rem);
  --font-size-footer: clamp(0.75rem, 1.8vw, 0.875rem);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.5rem;

  --radius-circle: 50%;
  --radius-badge: 0.25rem;
  --radius-card: 0.5rem;

  --max-width: 820px;
  --icon-size: 52px;
}

/* === BASE === */
html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: var(--space-lg);
}

/* === PAGE CONTAINER === */
.page {
  width: 100%;
  max-width: var(--max-width);
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* === HEADER === */
.header {
  text-align: center;
  margin-block-end: var(--space-2xl);
}

.logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin-block-end: var(--space-md);
  color: var(--color-text);
}

.logo svg {
  width: 100%;
  height: 100%;
}

.title {
  font-size: var(--font-size-title);
  font-weight: 800;
  line-height: 1.2;
  margin-block-end: var(--space-sm);
  color: var(--color-text);
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--font-size-tagline);
  color: var(--color-accent);
  font-weight: 500;
}

.divider-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  vertical-align: middle;
}

.divider-dot {
  font-size: 0.6rem;
  color: var(--color-accent);
}

/* === MENU GRID === */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

/* Last category (dessert) — full width, centered content */
.category:last-child {
  grid-column: 1 / -1;
  text-align: center;
}

.category:last-child .menu-list {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.category:last-child .menu-item {
  border-bottom: none;
  padding-block-end: 0;
}

/* === CATEGORY === */
.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-block-end: var(--space-md);
}

.category:last-child .category-header {
  justify-content: center;
}

.category-icon {
  flex-shrink: 0;
  width: var(--icon-size);
  height: var(--icon-size);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--color-accent);
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

.category-header h2 {
  font-size: var(--font-size-category);
  font-weight: 700;
  color: var(--color-text);
}

.diamond {
  color: var(--color-accent);
  font-size: 0.55em;
  vertical-align: middle;
  margin-inline: var(--space-xs);
}

/* === MENU ITEMS === */
.menu-list {
  padding-inline-start: 0;
}

.menu-item {
  padding-block: var(--space-sm);
  border-bottom: 1px dotted var(--color-border);
  font-size: var(--font-size-item);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.item-name {
  flex: 1;
}

.price {
  color: var(--color-text-muted);
  font-size: 0.9em;
  white-space: nowrap;
}

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1em 0.5em;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  font-size: 0.7em;
  font-weight: 600;
  border-radius: var(--radius-badge);
  white-space: nowrap;
  line-height: 1.5;
}

/* === FOOTER === */
.footer {
  margin-block-start: var(--space-2xl);
  padding-block-start: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-size-footer);
  color: var(--color-text-muted);
}

.footer-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-dot {
  color: var(--color-border);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .page {
    padding: var(--space-lg) var(--space-md);
    border-radius: 0;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .category:last-child .menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .category:last-child .menu-item {
    border-bottom: 1px dotted var(--color-border);
    padding-block-end: var(--space-sm);
  }

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

  body {
    padding: 0;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .page {
    padding: var(--space-xl) var(--space-lg);
  }
}
