:root {
  --bg: #FBF6EE;
  --card: #FFFFFF;
  --ink: #2B1A10;
  --brown: #3A2316;
  --sub: #6B5546;
  --line: #E8DCCB;
  --acc: #C8323F;
  --chip: #F3E9DA;
  --chip-ink: #4A2E1D;
  --top-ink: #FFF8EE;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B120C; --card: #261910; --ink: #F6EBDD; --brown: #120B07; --sub: #C7B3A1;
    --line: #3D2B1E; --acc: #F0626C; --chip: #3A281B; --chip-ink: #F3E2CE; --top-ink: #FFF8EE;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.top { background: var(--brown); color: var(--top-ink); }
.top-in { max-width: 640px; margin: 0 auto; padding: 28px 20px 26px; }
.sample { display: inline-block; font-size: 13px; font-weight: 700; color: #FFD9C7; border: 1.5px solid #8C5A44; border-radius: 6px; padding: 2px 8px; margin-bottom: 14px; }
h1 { font-size: clamp(40px, 13vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
.line { font-size: 17px; font-weight: 600; margin-top: 10px; color: #F3DFCB; }
.open { font-size: 16px; margin-top: 4px; color: #D7BFA9; }

.tabs { position: sticky; isolation: isolate; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.tabs-in { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.tabs-in::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; scroll-snap-align: start; border: 0; background: transparent; padding: 9px 14px; border-radius: 999px; font-size: 16px; font-weight: 700; color: var(--sub); cursor: pointer; white-space: nowrap; min-height: 44px; }
.tab[aria-current="true"] { background: var(--ink); color: var(--bg); }
.tab[hidden] { display: none; }

.filter { max-width: 640px; margin: 0 auto; padding: 14px 16px 0; }
.filter-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--ink); background: var(--card); font-size: 16px; font-weight: 700; cursor: pointer; text-align: left; }
.filter-btn span { flex: 1 1 auto; }
.filter-btn b { flex: 0 0 auto; font-size: 15px; color: var(--acc); }
.filter-btn::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.filter-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.filter-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 8px; }
.filter-help { font-size: 15px; color: var(--sub); margin-bottom: 12px; line-height: 1.55; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { border: 1.5px solid var(--sub); background: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 600; min-height: 42px; cursor: pointer; }

.pick[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; text-decoration: line-through; text-decoration-thickness: 2px; }
.none { flex-basis: 100%; font-size: 15px; color: var(--sub); margin-top: 12px; line-height: 1.6; }
.filter-clear { margin-top: 12px; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--acc); text-decoration: underline; padding: 8px 0; cursor: pointer; }
.filter-result { font-size: 15px; font-weight: 600; color: var(--acc); padding-top: 8px; }
.filter-result:empty { padding: 0; }

main { max-width: 640px; margin: 0 auto; padding: 8px 16px 24px; }
.cat { scroll-margin-top: 70px; padding-top: 22px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cat h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.cat-n { font-size: 15px; color: var(--sub); flex: 0 0 auto; }
.cat-note { font-size: 15px; font-weight: 600; color: var(--acc); margin: -4px 0 12px; }
figure.photo { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16 / 10; background: var(--chip); }
figure.photo img { width: 100%; height: 100%; object-fit: cover; }
figure.photo figcaption { position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(30, 18, 10, .62); padding: 3px 8px; border-radius: 6px; }

.items { list-style: none; display: grid; gap: 10px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.item-top > div { min-width: 0; }
.item h3 { font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.price { flex: 0 0 auto; text-align: right; font-size: 19px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { display: block; font-size: 14px; font-weight: 600; color: var(--sub); }
.unit { font-size: 15px; color: var(--sub); margin-top: 2px; }
.desc { font-size: 16px; margin-top: 8px; }
.opts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 16px; }
.opts b { font-weight: 800; font-variant-numeric: tabular-nums; }
.al { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.al-t { font-size: 14px; font-weight: 700; color: var(--sub); margin-right: 2px; }
.chip { font-size: 14px; font-weight: 700; background: var(--chip); color: var(--chip-ink); border-radius: 6px; padding: 3px 8px; line-height: 1.4; }
.chip.ex { background: transparent; border: 1.5px dashed var(--sub); color: var(--sub); padding: 1.5px 7px; }
.origin { font-size: 14px; color: var(--sub); margin-top: 8px; }
.badge { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; color: #fff; background: var(--sub); border-radius: 6px; padding: 2px 8px; }
.item.out { background: transparent; border-style: dashed; }
.item.out h3, .item.out .desc, .item.out .al { opacity: .6; }
.item.out .price { text-decoration: line-through; color: var(--sub); }
.item[hidden], .cat[hidden] { display: none; }

.foot { background: var(--brown); color: #EADBCB; margin-top: 16px; }
.foot-in { max-width: 640px; margin: 0 auto; padding: 28px 20px 40px; }
.foot h2 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.foot section + section { margin-top: 26px; padding-top: 22px; border-top: 1px solid #5A3B28; }
.foot p { font-size: 16px; }
.foot p + p { margin-top: 8px; }
.foot dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 16px; }
.foot dt { font-weight: 700; color: #fff; }
.foot dd { min-width: 0; }
.foot b { color: #fff; }
.foot .small { font-size: 14px; color: #BFA894; margin-top: 10px; }
.foot .fake { display: inline-block; font-size: 12px; font-weight: 700; color: #FFD9C7; border: 1px solid #8C5A44; border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; }
.noscript { padding: 20px; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.order { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.order-in { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; }
.order a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; font-size: 16px; font-weight: 800; text-decoration: none; }
.o-call { flex: 0 0 88px; border: 2px solid var(--ink); color: var(--ink); }
.o-sms { flex: 1 1 auto; background: var(--acc); color: #fff; }
@media (min-width: 560px) { .items { grid-template-columns: 1fr 1fr; } }

/* 오른쪽에 탭이 더 있다는 것을 약한 흐림으로만 알린다(설명 문구 없이) */
.tabs::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; pointer-events: none; background: linear-gradient(to right, transparent, var(--bg)); }
