/* ─── Variables ───────────────────────────────────────────── */
:root {
  --c-bg:      #fffdf5;
  --c-surface: #ffffff;
  --c-text:    #1a1a1a;
  --c-border:  #1a1a1a;
  --c-muted:   #666666;
  --shadow-sm: 3px 3px 0 var(--c-border);
  --shadow-md: 4px 4px 0 var(--c-border);
  --shadow-lg: 6px 6px 0 var(--c-border);
  --radius:    14px;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-ui:      'Space Grotesk', system-ui, sans-serif;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img { display: block; max-width: 100%; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--c-bg);
  padding: 2.75rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 2px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

/* decorative circles — neobrutalist */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  pointer-events: none;
}
.hero::before { width: 220px; height: 220px; background: #ffd4e5; top: -90px; right: -60px; }
.hero::after  { width: 130px; height: 130px; background: #d4f5d4; bottom: -55px; left: -35px; }

/* extra small circle via deco span */
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; border-radius: 50%;
  border: 2px solid var(--c-border);
}
.b1 { width: 56px; height: 56px; background: #fff9c4; top: 24px; left: 20%; }
.b2 { width: 36px; height: 36px; background: #d4e8ff; bottom: 28px; right: 22%; }
.b3, .b4 { display: none; }

.hero-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: .5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.03em; line-height: .98;
  margin-bottom: .9rem;
}
.hero-tagline {
  font-size: .88rem; font-weight: 500;
  color: var(--c-muted); line-height: 1.55;
  min-height: 1.4em;
}

/* ─── Category nav ────────────────────────────────────────── */
.cat-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg);
  border-bottom: 2px solid var(--c-border);
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px 14px;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-tab {
  display: inline-flex; align-items: center;
  padding: .44rem 1.15rem;
  border-radius: 100px;
  white-space: nowrap; flex-shrink: 0;
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700;
  color: var(--c-text);
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer; outline: none;
  transition: transform .1s ease, box-shadow .1s ease;
  letter-spacing: .01em;
}
.cat-tab:hover  { transform: translate(-1px,-1px); box-shadow: var(--shadow-md); }
.cat-tab.active {
  background: var(--c-text); color: var(--c-bg);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--c-border);
}
.cat-tab:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--c-border); }

/* ─── Menu wrapper ────────────────────────────────────────── */
.menu-wrap { padding: 2rem 0 6rem; }

/* ─── Loading ─────────────────────────────────────────────── */
.loading-state { display: flex; gap: 8px; justify-content: center; padding: 6rem 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c-border); background: #ffd4e5; animation: bounce .9s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: .15s; background: #d4f5d4; }
.dot:nth-child(3) { animation-delay: .30s; background: #d4e8ff; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ─── Menu section ────────────────────────────────────────── */
.menu-section { margin-bottom: 1.5rem; }

.section-head {
  display: flex; align-items: baseline; gap: .6rem;
  padding: 0 1rem; margin-bottom: 1rem;
}
.section-name {
  font-family: var(--font-display);
  font-size: 1.65rem; font-weight: 800;
  color: var(--c-text);
  text-transform: uppercase; letter-spacing: -.02em;
}
.section-count {
  font-size: .7rem; font-weight: 700;
  color: var(--c-muted); letter-spacing: .04em;
  text-transform: uppercase;
}

/* ─── Items grid ─────────────────────────────────────────── */
.items-row-wrap { padding: 0 1rem; }

.items-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 4px; /* let shadows breathe */
}

@media (min-width: 600px) { .items-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 840px) { .items-row { grid-template-columns: repeat(4, 1fr); } }

/* ─── Item card — neobrutalist ────────────────────────────── */
.item-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius);
  border: 2px solid var(--c-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--c-surface);
  transition: transform .12s ease, box-shadow .12s ease;
}

.item-card:hover  { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }
.item-card:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--c-border); transition-duration: .06s; }

/* fixed-ratio image area — same crop at every window size */
.item-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-surface);
  flex-shrink: 0;
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.item-thumb--ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.item-thumb--ph::after {
  content: '';
  display: block;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 28% 25%, rgba(255,255,255,.5) 0%, transparent 50%),
    radial-gradient(circle at 72% 75%, rgba(255,255,255,.2) 0%, transparent 40%);
}

/* info bar in normal flow — no more absolute positioning */
.item-info {
  background: rgba(255,253,245,.97);
  border-top: 2px solid var(--c-border);
  padding: .55rem .72rem .68rem;
  display: flex; flex-direction: column; gap: 0;
}
.item-name {
  font-size: .76rem; font-weight: 700;
  line-height: 1.3; color: var(--c-text);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(2 * 0.76rem * 1.3);
}
.item-price {
  display: inline-block;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: .68rem; font-weight: 700;
  padding: .1rem .42rem;
  border-radius: 100px;
  margin-top: .3rem;
  width: fit-content;
}

/* badge — pinned top-left */
.card-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--c-text); color: var(--c-bg);
  font-size: .58rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .18rem .52rem; border-radius: 100px;
}

/* ─── Bottom sheet ────────────────────────────────────────── */
.item-sheet {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
}
.item-sheet.open { pointer-events: all; }

.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity .25s ease;
}
.item-sheet.open .sheet-backdrop { opacity: 1; }

.sheet-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.item-sheet.open .sheet-panel { transform: translateY(0); }

.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(26,26,26,.2); margin: 10px auto 0; }

/* ─── Desktop: centered dialog instead of bottom sheet ─── */
@media (min-width: 600px) {
  .item-sheet {
    align-items: center;
  }
  .sheet-panel {
    border-bottom: 2px solid var(--c-border);
    border-radius: 16px;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(.95);
    opacity: 0;
    transition: transform .25s cubic-bezier(.32,.72,0,1), opacity .2s ease;
    padding-bottom: 0;
  }
  .item-sheet.open .sheet-panel {
    transform: scale(1);
    opacity: 1;
  }
  .sheet-handle { display: none; }
}

.sheet-thumb { width: 100%; aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--c-surface); }
.sheet-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sheet-thumb--ph { width: 100%; aspect-ratio: 16/9; position: relative; }
.sheet-thumb--ph::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,.5) 0%, transparent 52%),
    radial-gradient(circle at 72% 72%, rgba(255,255,255,.2) 0%, transparent 42%);
  pointer-events: none;
}
/* solid border below thumb */
.sheet-thumb, .sheet-thumb--ph { border-bottom: 2px solid var(--c-border); }

.sheet-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-text); border: none; cursor: pointer;
  color: var(--c-bg); font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,.3);
  transition: transform .1s;
}
.sheet-close:hover { transform: scale(1.08); }

.sheet-body { padding: 1.1rem 1.4rem 1.75rem; display: flex; flex-direction: column; gap: .32rem; }
.sheet-badge {
  display: inline-flex; align-items: center;
  background: var(--c-text); color: var(--c-bg);
  font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 100px; width: fit-content; margin-bottom: .1rem;
}
.sheet-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  line-height: 1.15; color: var(--c-text);
  letter-spacing: -.02em;
}
.sheet-subtitle { font-size: .8rem; color: var(--c-muted); font-weight: 500; }
.sheet-price {
  display: inline-block;
  background: var(--c-text); color: var(--c-bg);
  font-size: 1rem; font-weight: 700;
  padding: .18rem .65rem; border-radius: 100px;
  width: fit-content; margin-top: .05rem;
}
.sheet-desc {
  font-size: .85rem; color: var(--c-muted); line-height: 1.65;
  text-wrap: pretty;
  border-top: 1.5px solid var(--c-border);
  padding-top: .75rem; margin-top: .2rem;
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  text-align: center; padding: 1.5rem 1rem;
  border-top: 2px solid var(--c-border);
  font-size: .75rem; font-weight: 600;
  color: var(--c-muted); letter-spacing: .06em; text-transform: uppercase;
}

/* ─── Error ───────────────────────────────────────────────── */
.error-state { text-align: center; padding: 5rem 1rem; color: var(--c-muted); font-size: .9rem; }

/* ─── Spinning badge ─────────────────────────────────────── */
.hero-spin-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  color: var(--c-text);
  opacity: .65;
  animation: spin 16s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Marquee strip ──────────────────────────────────────── */
.marquee-strip {
  background: var(--c-text);
  border-bottom: 2px solid var(--c-border);
  overflow: hidden;
  padding: 9px 0;
  user-select: none;
  display: flex;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 800;
  color: var(--c-bg);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.marquee-sep {
  color: var(--c-bg);
  opacity: .4;
  font-size: .65rem;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* card tilts removed — cards are straight */

/* ─── Section name highlight ─────────────────────────────── */
.section-name-hl {
  display: inline;
  padding: .06em .18em .04em;
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
