:root {
  --bg: #ffffff;
  --band: #f4f4f6;
  --ink: #1b1b1e;
  --ink-2: #6c6c74;
  --ink-3: #74747c;
  --line: #ededf0;
  --badge-bg: #f2f2f5;
  --radius: 12px;

  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--band);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* ---------------- Shell ---------------- */
.hero,
main,
.site-footer {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg);
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 1.75rem 1.25rem 1.1rem;
  text-align: center;
}

.hero h1 { margin: 0 0 1.1rem; line-height: 0; }

.logo {
  height: 46px;
  width: auto;
  margin: 0 auto;
}

.master-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .4rem .85rem;
  background: #fff4dc;
  border: 1px solid #ecd49b;
  border-radius: 999px;
  color: #7a4b00;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

/* ---------------- Language chips ---------------- */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}

.lang-btn {
  background: #fff;
  border: 1px solid #e0e0e5;
  border-radius: 999px;
  color: var(--ink-2);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  padding: .42rem .85rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.lang-btn:hover { border-color: #c8c8d0; color: var(--ink); }

.lang-btn[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 700;
}

/* ---------------- Notice ---------------- */
.notice {
  margin: 0;
  padding: 1rem 1.25rem;
  background: #fafafb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.notice p {
  margin: .18rem 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-2);
}

.notice strong { color: var(--ink); font-weight: 700; }

.notice-sub {
  margin-top: .55rem !important;
  font-size: .82rem !important;
  font-weight: 400 !important;
  color: var(--ink-3);
}

/* ---------------- Sections ---------------- */
main { padding: 0; }

.menu-section,
.info-section {
  padding: 1.5rem 1.25rem .5rem;
  border-bottom: 8px solid var(--band);
}

.info-section { padding-bottom: 1.5rem; border-bottom: none; }

.menu-section h2,
.info-section h2 {
  margin: 0 0 .3rem;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.section-sub {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-3);
}

.section-desc {
  margin: 0 0 .9rem;
  color: var(--ink-2);
  font-size: .86rem;
  line-height: 1.6;
}

/* ---------------- Menu list ---------------- */
.menu-list { display: block; }

.menu-item {
  border-top: 1px solid var(--line);
  padding: 0;
}

.menu-item:first-child { border-top: none; }

/* row layout shared by <details> and plain rows */
.item-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 0;
}

details.menu-item > summary {
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

details.menu-item > summary::-webkit-details-marker { display: none; }

details.menu-item > summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
  border-radius: 6px;
}

.item-text {
  flex: 1 1 auto;
  min-width: 0;
}

.item-badge {
  display: inline-block;
  background: #d9381e;
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  padding: .18rem .5rem;
  border-radius: 4px;
  margin-left: .25rem;
  vertical-align: .1em;
  white-space: nowrap;
}

.item-text h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.4;
}

.unit {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-2);
}

.vegan-note {
  margin: .3rem 0 0;
  font-size: .78rem;
  font-weight: 700;
  color: #2f7a3d;
}

.desc {
  margin: .3rem 0 0;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  display: block;
  margin-top: .5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price small { font-size: .85em; font-weight: 700; }

/* thumbnail */
.item-thumb {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--band);
}

.thumb-more {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .22);
  display: grid;
  place-items: center;
}

.thumb-more::before,
.thumb-more::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .2s ease;
}

.thumb-more::before { width: 11px; height: 1.6px; }
.thumb-more::after { width: 1.6px; height: 11px; }

details[open] .thumb-more::before { transform: rotate(135deg); }
details[open] .thumb-more::after { transform: rotate(135deg); }

/* ---------------- Expanded detail ---------------- */
.detail-content { padding: 0 0 1.25rem; }

.detail-content .section-desc {
  margin-bottom: .9rem;
  padding-top: .1rem;
}

.detail-content figure { margin: 0; }

.detail-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--band);
}

.detail-content figcaption {
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--ink-3);
  text-align: center;
}

.detail-hero {
  position: relative;
  margin: 0 0 .55rem;
}

.detail-hero img { aspect-ratio: 4 / 3; }

.serving-badge {
  position: absolute;
  top: .55rem;
  left: .55rem;
  z-index: 1;
  background: rgba(27, 27, 30, .78);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .26rem .55rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.detail-grid,
.detail-grid-3 {
  display: grid;
  gap: .4rem;
}

.detail-grid { grid-template-columns: repeat(4, 1fr); }
.detail-grid-3 { grid-template-columns: repeat(3, 1fr); margin-top: .4rem; }

.detail-grid img,
.detail-grid-3 img { aspect-ratio: 1 / 1; }

/* ---------------- Info ---------------- */
.info-list {
  margin: 0 0 1rem;
  padding: 0;
}

.info-list > div {
  display: flex;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

.info-list > div:last-child { border-bottom: none; }

.info-list dt {
  flex: 0 0 5.2em;
  color: var(--ink-3);
  font-weight: 500;
}

.info-list dd { margin: 0; color: var(--ink); }

.parking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.parking-list li + li { margin-top: .3rem; }

.parking-free { color: var(--ink-3); font-size: .85rem; }

.info-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.cta-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.btn {
  flex: 1 1 auto;
  text-align: center;
  padding: .85rem 1.2rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  border: 1px solid var(--ink);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: #d8d8de;
}

/* ---------------- Footer ---------------- */
.site-footer {
  padding: 1.75rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--ink-3);
  font-size: .72rem;
  line-height: 1.9;
  border-top: 8px solid var(--band);
}

.site-footer p { margin: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 420px) {
  .item-thumb { flex-basis: 76px; width: 76px; height: 76px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .info-list dt { flex-basis: 4.6em; }
}
