:root {
  --background: #f7f4ec;
  --surface: #fffefa;
  --primary: #71856f;
  --primary-dark: #536752;
  --primary-soft: #e8eee5;
  --text: #30352f;
  --muted: #747a73;
  --border: #e5e2d9;
  --focus: #314c31;
  --radius: 18px;
  --radius-small: 13px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 40px;
  --shadow: 0 5px 20px rgba(48, 53, 47, 0.055);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(113, 133, 111, 0.1), transparent 38%),
    var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.mobile-page {
  display: block;
  min-height: 100vh;
}

.menu-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(34px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom));
}

.brand-header {
  text-align: center;
}

.logo-wrap {
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-4);
  place-items: center;
}

.brand-logo,
.logo-fallback {
  grid-area: 1 / 1;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(113, 133, 111, 0.16);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-logo {
  display: block;
  object-fit: contain;
  padding: 7px;
}

.logo-fallback {
  display: grid;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  place-items: center;
}

.brand-header h1 {
  max-width: 360px;
  margin: 0 auto;
  font-size: clamp(1.55rem, 7vw, 1.9rem);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.brand-description {
  max-width: 340px;
  margin: var(--space-2) auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.product-section {
  margin-top: 34px;
}

.product-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  height: 72px;
  padding: 10px 15px 10px 17px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.product-link:hover {
  border-color: rgba(113, 133, 111, 0.42);
  box-shadow: 0 7px 22px rgba(48, 53, 47, 0.075);
}

.product-link:active {
  transform: scale(0.985);
}

.product-link:focus-visible,
.help-link:focus-visible,
.retry-button:focus-visible {
  outline: 3px solid rgba(49, 76, 49, 0.35);
  outline-offset: 3px;
}

.product-name {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 720;
  white-space: nowrap;
}

.product-meta.sold-out {
  color: var(--muted);
  font-weight: 580;
}

.chevron {
  color: #9aa097;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.empty-state {
  margin: 0;
  padding: 27px 20px;
  color: var(--muted);
  border: 1px dashed #d8d5cc;
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.52);
  line-height: 1.5;
  text-align: center;
}

.menu-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.menu-footer address {
  margin: 0 0 var(--space-3);
  font-style: normal;
  overflow-wrap: anywhere;
}

.help-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: var(--primary-dark);
  border-radius: var(--radius-small);
  font-weight: 700;
  text-underline-offset: 3px;
}

.error-state {
  max-width: 360px;
  margin: 16vh auto 0;
  text-align: center;
}

.error-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto var(--space-4);
  color: var(--primary-dark);
  border-radius: 50%;
  background: var(--primary-soft);
  font-size: 1.35rem;
  font-weight: 780;
  place-items: center;
}

.error-state h1 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.35;
}

.error-state p {
  margin: var(--space-2) 0 var(--space-4);
  color: var(--muted);
}

.retry-button {
  min-width: 130px;
  min-height: 48px;
  padding: 10px 18px;
  color: #fff;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--primary);
  box-shadow: var(--shadow);
  font-weight: 720;
  cursor: pointer;
}

.retry-button:hover {
  background: var(--primary-dark);
}

.skeleton {
  padding-top: 2px;
}

.skeleton-block {
  position: relative;
  overflow: hidden;
  background: #e9e6de;
}

.skeleton-block::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 48%, transparent 76%);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}

.skeleton-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
}

.skeleton-title {
  width: 58%;
  height: 27px;
  margin: 0 auto;
  border-radius: 9px;
}

.skeleton-description {
  width: 82%;
  height: 16px;
  margin: 13px auto 0;
  border-radius: 7px;
}

.skeleton-list {
  display: grid;
  gap: 11px;
  margin-top: 40px;
}

.skeleton-card {
  width: 100%;
  height: 72px;
  border-radius: var(--radius);
}

.skeleton-footer {
  width: 48%;
  height: 15px;
  margin: 48px auto 0;
  border-radius: 7px;
}

.desktop-notice {
  display: none;
}

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

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
@media (max-width: 340px) {
  .menu-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .product-link {
    grid-template-columns: minmax(0, 1fr) auto 14px;
    gap: 8px;
    padding-right: 12px;
    padding-left: 14px;
  }

  .product-meta {
    font-size: 0.87rem;
  }
}

@media (min-width: 768px) {
  .mobile-page {
    display: none;
  }

  .desktop-notice {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 32px;
  }

  .desktop-card {
    width: min(100%, 520px);
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(255, 254, 250, 0.86);
    box-shadow: var(--shadow);
    text-align: center;
  }

  .desktop-mark {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 24px;
    color: #fff;
    border-radius: 20px;
    background: var(--primary);
    font-weight: 800;
    letter-spacing: 0.04em;
    place-items: center;
  }

  .desktop-card h1 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.35;
  }

  .desktop-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
