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

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

:root {
  --bg-primary: #f7f5ef;
  --bg-secondary: #ede5d6;
  --bg-card: #ffffff;
  --bg-card-hover: #fbf8ef;
  --bg-glass: rgba(247, 245, 239, 0.9);
  --accent: #1f5d4b;
  --accent-light: #d7ad63;
  --accent-dark: #143c31;
  --accent-glow: rgba(31, 93, 75, 0.08);
  --text-primary: #17251f;
  --text-secondary: #4d6258;
  --text-muted: #8a7f6e;
  --text-price: #1f5d4b;
  --border: rgba(31, 93, 75, 0.12);
  --border-active: rgba(215, 173, 99, 0.48);
  --header-height: 220px;
  --nav-height: 56px;
  --radius-md: 12px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.menu-app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
}

.menu-header {
  position: relative;
  width: 100%;
  height: var(--header-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #ebe1cf 0%, #f5efe2 58%, var(--bg-primary) 100%);
}

.menu-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(31, 93, 75, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.header-logo {
  width: min(240px, calc(100% - 56px));
  height: auto;
  max-height: 80px;
  object-fit: contain;
  mix-blend-mode: multiply;
  position: relative;
  z-index: 1;
}

.header-title {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.header-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.category-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.category-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(31, 93, 75, 0.22);
}

.menu-body {
  padding: 0 16px 80px;
}

.menu-section {
  padding-top: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-active), transparent);
}

.section-count {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-name {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.product-description {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-price {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(215, 173, 99, 0.35);
  background: var(--accent-glow);
  color: var(--text-price);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.empty-container,
.error-container {
  display: flex;
  min-height: 60vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.empty-text,
.error-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.menu-footer {
  padding: 24px 16px 36px;
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
