:root {
  --bg: #fff8f9;
  --primary: #d8a7b1;
  --accent: #b56576;
  --text: #2d1e2f;
  --text-secondary: #7a6a78;
  --surface: #ffffff;
  --border: #f4e3e6;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(181, 101, 118, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --pad: max(1rem, env(safe-area-inset-left));
  --pad-r: max(1rem, env(safe-area-inset-right));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(216,167,177,.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(181,101,118,.1), transparent 50%),
    var(--bg);
}

.site-header {
  padding: max(1rem, env(safe-area-inset-top)) var(--pad) .75rem var(--pad-r);
  animation: fadeDown .5s var(--ease) both;
}

.brand { margin-bottom: 1.1rem; }

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 8vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  margin-top: .35rem;
  font-size: .88rem;
  color: var(--text-secondary);
}

.search-form { position: relative; display: flex; align-items: center; }

.search-icon {
  position: absolute; left: 1rem; color: var(--text-secondary); pointer-events: none;
}

#searchInput {
  width: 100%;
  padding: .9rem 2.5rem .9rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  outline: none;
}

#searchInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(216,167,177,.35), var(--shadow);
}

.search-clear {
  position: absolute; right: .65rem;
  width: 1.75rem; height: 1.75rem;
  border: none; border-radius: 50%;
  background: var(--border); color: var(--text-secondary);
  cursor: pointer;
}

.category-nav {
  position: sticky; top: 0; z-index: 40;
  padding: .65rem 0 .75rem;
  background: linear-gradient(to bottom, rgba(255,248,249,.96) 60%, rgba(255,248,249,.85));
  backdrop-filter: blur(10px);
}

.category-track {
  display: flex; gap: .55rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: .15rem var(--pad) .35rem var(--pad-r);
}

.category-track::-webkit-scrollbar { display: none; }

.category-btn {
  flex: 0 0 auto; scroll-snap-align: start;
  padding: .65rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: .875rem; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.category-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(181,101,118,.28);
}

.menu-main {
  padding: .35rem var(--pad) 2rem var(--pad-r);
  max-width: 720px; margin: 0 auto;
}

.menu-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .75rem; margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 600;
}

.result-count { font-size: .8rem; color: var(--text-secondary); }

.menu-grid { display: grid; gap: 1rem; }

.menu-card {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: .9rem;
  padding: .75rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(181,101,118,.08);
  animation: cardIn .45s var(--ease) both;
  transition: transform .25s var(--ease);
}

.menu-card.is-soldout { opacity: .62; }

.menu-card:hover { transform: translateY(-2px); }

.menu-card__image {
  width: 6.5rem; height: 6.5rem;
  border-radius: 14px; object-fit: cover;
  background: linear-gradient(145deg, var(--border), var(--primary));
}

.menu-card__body {
  display: flex; flex-direction: column; min-width: 0;
  padding: .15rem .15rem .15rem 0;
}

.menu-card__name {
  font-size: 1.02rem; font-weight: 600; line-height: 1.25;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
}

.badge-soldout {
  font-size: .68rem; font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #f4e3e6; color: var(--accent);
}

.menu-card__desc {
  margin-top: .3rem;
  font-size: .82rem; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card__meta {
  margin-top: auto; padding-top: .55rem;
  display: flex; justify-content: flex-end;
}

.menu-card__price {
  font-size: 1.05rem; font-weight: 700; color: var(--accent);
}

.empty-state {
  text-align: center; padding: 3rem 1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(255,255,255,.55);
}

.empty-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.empty-text { margin-top: .35rem; color: var(--text-secondary); font-size: .9rem; }

.site-footer {
  padding: .5rem var(--pad) max(1.5rem, env(safe-area-inset-bottom)) var(--pad-r);
  max-width: 720px; margin: 0 auto;
}

.footer-card {
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; margin-bottom: 1rem;
}

.footer-list { list-style: none; display: grid; gap: .85rem; }
.footer-list strong { display: block; font-size: .88rem; }
.footer-list p { font-size: .84rem; color: var(--text-secondary); }
.footer-list code { font-family: var(--font-body); font-weight: 600; color: var(--accent); }

.contact-btn {
  display: flex; align-items: center; justify-content: center;
  margin-top: 1.25rem; width: 100%;
  padding: .95rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 22px rgba(181,101,118,.28);
}

.footer-copy {
  text-align: center; margin-top: 1.1rem;
  font-size: .78rem; color: var(--text-secondary);
}

.footer-copy a { color: var(--accent); font-weight: 500; }

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

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

@media (min-width: 640px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .menu-card { grid-template-columns: 1fr; }
  .menu-card__image { width: 100%; height: 10.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
