/* ── Yojimbo — 밝은 와시(washi) 팔레트 (단일 라이트 테마, 의도적 선택)
   사진 위 텍스트는 다크 스크림 + 라이스페이퍼 화이트 유지 ── */
:root {
  --paper: #F8F4EC;       /* page ground — warm washi */
  --surface: #FFFFFF;     /* cards */
  --wash: #F0EADC;        /* raised tint */
  --ink: #241D14;         /* primary text */
  --muted: #7A6E5C;
  --lacquer: #B23A24;     /* accent — lacquer red */
  --lacquer-hi: #C94B33;
  --cedar: #8A6B3F;       /* secondary accent — cedar gold */
  --line: #E4DCCB;
  --photo-text: #F1E8D8;  /* text over photos */
  --radius: 14px;
  --shadow: 0 14px 40px rgba(56, 44, 26, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Shippori Mincho", "Yu Mincho", Georgia, serif; margin: 0; text-wrap: balance; }
a { color: var(--ink); text-decoration: none; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cedar);
}
.sec-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; }
.sub-muted { color: var(--muted); max-width: 52ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .02em;
  border: 1.5px solid transparent; transition: background .18s, border-color .18s, color .18s;
}
.btn.solid { background: var(--lacquer); color: #FFF6ED; }
.btn.solid:hover { background: var(--lacquer-hi); }
/* ghost: 사진 위에서 쓰는 흰 외곽선 버튼 */
.btn.ghost { border-color: var(--photo-text); color: var(--photo-text); background: rgba(23,18,13,.25); }
.btn.ghost:hover { background: var(--photo-text); color: var(--ink); }
/* line: 밝은 페이지 위에서 쓰는 잉크 외곽선 버튼 */
.btn.line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.sm { padding: 9px 18px; font-size: 13.5px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--lacquer); outline-offset: 2px; }

/* ── header ── */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 244, 236, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 22px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.seal {
  width: 40px; height: 40px; flex: none;
  background: var(--lacquer); color: #FFF6ED;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: "Shippori Mincho", serif;
  font-size: 11px; font-weight: 700; line-height: 1.05;
  writing-mode: vertical-rl; letter-spacing: .1em;
}
.seal.lg { width: 52px; height: 52px; font-size: 14px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt b { font-family: "Shippori Mincho", serif; font-size: 20px; letter-spacing: .14em; }
.brand-txt small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
nav#nav { display: flex; gap: 4px; }
nav#nav a {
  padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--muted);
}
nav#nav a:hover { color: var(--ink); background: var(--wash); }
nav#nav a.on { color: var(--ink); background: var(--wash); }
.head-cta {
  padding: 10px 20px; border-radius: 999px;
  background: var(--lacquer); color: #FFF6ED;
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.head-cta:hover { background: var(--lacquer-hi); }
.head-cta { display: inline-flex; align-items: center; }
.count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #FFF6ED; color: var(--lacquer);
}
.cartbar .count-badge { background: var(--lacquer); color: #FFF6ED; }

main { padding-bottom: 110px; }
section { scroll-margin-top: 80px; }
section[hidden] { display: none; }
[hidden] { display: none !important; } /* display:flex 등 클래스가 hidden 속성을 이기지 못하게 */

/* ── hero carousel (사진 위 — 다크 스크림 유지) ── */
.hero { position: relative; }
.slides { position: relative; height: min(78vh, 660px); min-height: 460px; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(75deg, rgba(23,18,13,.88) 18%, rgba(23,18,13,.42) 55%, rgba(23,18,13,.15) 100%),
    linear-gradient(to top, rgba(23,18,13,.85), transparent 45%),
    var(--img);
  background-size: cover;
  background-position: center;
  opacity: 0; transition: opacity .7s ease;
  display: flex; align-items: center;
  color: var(--photo-text);
}
.slide.on { opacity: 1; z-index: 1; }
.slide-copy { width: 100%; padding-top: 30px; }
.slide-copy h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 600; line-height: 1.12;
  max-width: 16ch; margin: 16px 0 14px;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.slide-copy .sub { font-size: clamp(15px, 1.8vw, 18px); color: #E4D8C2; max-width: 44ch; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-ui {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.dots { display: flex; gap: 8px; }
.dots button {
  width: 26px; height: 4px; border-radius: 2px; border: none;
  background: rgba(241,232,216,.35); padding: 0;
}
.dots button.on { background: var(--photo-text); }
.h-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 20px; line-height: 1;
  box-shadow: 0 2px 10px rgba(56,44,26,.12);
}
.h-arrow:hover { border-color: var(--cedar); }

/* ── category chips ── */
.chips {
  display: flex; gap: 22px; padding: 34px 4px 8px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; width: 92px; text-align: center; }
.chip img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--line); margin: 0 auto 8px;
  transition: border-color .18s, transform .18s;
}
.chip:hover img { border-color: var(--cedar); transform: translateY(-3px); }
.chip span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.chip:hover span { color: var(--ink); }

/* ── promo tiles (사진 위 — 다크 스크림 유지) ── */
/* 2×2 균형 배치 — 풀폭 타일을 넣게 되면 그 타일만 span 2로 한 줄 차지 */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 26px;
}
.tile {
  grid-column: span 1;
  position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden;
  background-image: linear-gradient(to top, rgba(23,18,13,.92) 8%, rgba(23,18,13,.35) 55%, rgba(23,18,13,.12)), var(--img);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  color: var(--photo-text);
  box-shadow: 0 4px 18px rgba(56,44,26,.12);
  transition: transform .25s ease;
}
.tile:hover { transform: translateY(-4px); }
.tile.wide { grid-column: 1 / -1; }
.tile-copy { padding: 26px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tile-copy .eyebrow { color: #D9B87C; }
.tile-copy h2 { font-size: clamp(20px, 2.2vw, 27px); font-weight: 600; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.tile-copy p:not(.eyebrow) { color: #DCCFB8; font-size: 14px; max-width: 40ch; }
.tile-copy .btn { margin-top: 8px; }

/* ── signatures rail ── */
.sig-head { display: flex; align-items: center; justify-content: space-between; margin-top: 56px; }
.sig-arrows { display: flex; gap: 8px; }
.sig-rail-outer { overflow: hidden; }
.sig-rail {
  display: flex; gap: 16px; margin-top: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 8px;
}
.sig-rail::-webkit-scrollbar { display: none; }
.sig-card {
  flex: none; width: 265px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s, box-shadow .22s;
}
.sig-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sig-card img { width: 100%; height: 190px; object-fit: cover; }
.sig-card .sc-body { padding: 16px 18px 18px; }
.sig-card h3 { font-size: 18px; font-weight: 600; }
.sig-card p { color: var(--muted); font-size: 13px; margin-top: 4px; min-height: 38px; }
.sig-card .pr { color: var(--lacquer); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 8px; font-size: 15px; }

/* ── locations strip (home) ── */
.loc-strip {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px; margin-top: 60px;
}
.loc-strip .btn { margin-top: 20px; }
.loc-strip .sub-muted { margin-top: 12px; }
.loc-mini-card { border-left: 2px solid var(--lacquer); padding: 4px 0 4px 18px; margin-bottom: 20px; }
.loc-mini-card b { font-family: "Shippori Mincho", serif; font-size: 18px; }
.loc-mini-card p { color: var(--muted); font-size: 14px; }

/* ── pages ── */
.page-head { padding: 56px 24px 8px; }
.page-title { font-size: clamp(30px, 4.4vw, 44px); font-weight: 600; }
.page-sub { color: var(--muted); max-width: 62ch; margin-top: 10px; }
.page-sub a { color: var(--lacquer); text-decoration: underline; }

/* ── menu ── */
.menu-layout { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: start; margin-top: 30px; }
.cat-nav { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 2px; }
.cat-nav a {
  color: var(--muted); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 12px; border-left: 2px solid var(--line);
}
.cat-nav a:hover { color: var(--ink); border-left-color: var(--lacquer); }
.menu-cat { margin-bottom: 54px; }
.cat-banner {
  position: relative; height: 170px; border-radius: var(--radius); overflow: hidden;
  background-image:
    linear-gradient(rgba(23,18,13,.3), rgba(23,18,13,.3)),
    linear-gradient(70deg, rgba(23,18,13,.85) 20%, rgba(23,18,13,.3)), var(--img);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 20px 24px;
  margin-bottom: 8px;
  color: var(--photo-text);
}
.cat-banner h2 { font-size: 27px; font-weight: 600; }
.cat-banner .kanji {
  position: absolute; right: 18px; top: 6px;
  font-family: "Shippori Mincho", serif; font-size: 76px; font-weight: 700;
  color: rgba(241,232,216,.18); line-height: 1;
}
.cat-banner small { font-family: "Zen Kaku Gothic New", sans-serif; color: #CBBFA8; font-size: 12.5px; margin-left: 10px; font-weight: 400; }
.cat-note { color: var(--muted); font-size: 14px; margin: 10px 0 4px; }
.mi {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 16px;
  align-items: center; padding: 12px 0;
  border-bottom: 1px dotted #D5C9B2;
}
.mi:last-child { border-bottom: none; }
/* 시그니처 카드 딥링크 도착 시 하이라이트 */
@keyframes mi-flash { 0%, 55% { background: #F6E4DF; } 100% { background: transparent; } }
.mi.flash { animation: mi-flash 2.2s ease; border-radius: 10px; }
.mi .thumb { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; grid-row: span 2; }
.mi .no-thumb { width: 60px; height: 60px; border-radius: 10px; background: var(--wash); display: grid; place-items: center; color: #BCAB8C; font-family: "Shippori Mincho", serif; font-size: 20px; grid-row: span 2; }
.mi .nm { font-weight: 700; font-size: 15.5px; align-self: end; }
.mi.no-desc .nm, .mi.no-desc .pr, .mi.no-desc .add { grid-row: span 2; align-self: center; }
.mi .tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; vertical-align: 2px;
}
.tag.v { background: #E6EFD8; color: #567A31; }
.tag.s { background: #F8E2D8; color: #A8492E; }
.tag.d { background: var(--wash); color: var(--muted); border: 1px solid var(--line); }
/* 날생선 아이콘(인쇄 메뉴판과 동일한 작은 물고기) + 하단 경고문 */
.raw { font-size: .78em; margin-left: 6px; vertical-align: 1px; cursor: default; }
.raw-note { color: var(--muted); font-size: 13px; margin: 6px 0; }
.mi .ds { grid-column: 2 / 3; grid-row: 2; color: var(--muted); font-size: 13.5px; align-self: start; }
.mi .pr { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; color: var(--ink); grid-row: span 2; }
/* 담기 버튼: +원형 → 넓은 텍스트 필(2026-08-31 사장님 지시, 누르기 쉽게) */
.mi .add {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  min-height: 38px; border-radius: 999px; padding: 0 18px;
  font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
  grid-row: span 2;
}
.mi .add:hover { background: var(--lacquer); border-color: var(--lacquer); color: #FFF6ED; }
body:not(.ordering) .mi .add { display: none; }

.order-live {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 20px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--muted); font-size: 14px;
}

/* ── order hero (사진 위 — 다크 스크림 유지) ── */
.order-hero {
  background-image:
    linear-gradient(75deg, rgba(23,18,13,.82) 20%, rgba(23,18,13,.45) 60%, rgba(23,18,13,.2)),
    linear-gradient(to top, rgba(23,18,13,.6), transparent 50%),
    var(--img);
  background-size: cover; background-position: center 38%; /* 이쿠라·연어가 보이는 높이로 크롭 */
  padding: 76px 0 44px;
  color: var(--photo-text);
}
.order-hero .page-title { text-shadow: 0 2px 20px rgba(0,0,0,.45); }
.order-hero .page-sub { color: #E4D8C2; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.order-hero .order-live { display: inline-flex; margin-top: 24px; }

/* ── hover 사진 확대 팝업 (데스크톱) ── */
#img-pop {
  position: fixed; z-index: 80; pointer-events: none;
  width: 340px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 12px 40px rgba(23,18,13,.35);
}
#img-pop img { display: block; width: 100%; height: 260px; object-fit: cover; }

/* ── soup option modal ── */
.modal-back {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(36, 29, 20, .45);
  display: grid; place-items: center; padding: 20px;
}
.modal-back[hidden] { display: none; }
.modal {
  width: min(420px, 100%);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.modal h3 { font-size: 21px; margin-bottom: 6px; }
.modal .soup-note { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.soup-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px dotted #D5C9B2;
  font-size: 15px; cursor: pointer;
}
.soup-opt:last-of-type { border-bottom: none; }
.soup-opt input { accent-color: var(--lacquer); width: 17px; height: 17px; }
.soup-opt .sp { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--cedar); font-size: 14px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── bento mixer ── */
.mixer-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 22px 24px; margin: 14px 0 6px;
}
.mixer-card .mc-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mixer-card h3 { font-size: 20px; }
.mixer-card .mc-head .btn { margin-left: auto; }
.mixer-card p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.mixer-card .mc-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.mixer-card .mc-list span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.mixer-card .mc-list b { color: var(--ink); font-weight: 500; }
.mixer-opts { max-height: 46vh; overflow-y: auto; margin-top: 4px; }
.mx-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px dotted #D5C9B2;
  font-size: 14.5px;
}
.mx-row:last-child { border-bottom: none; }
.mx-row .mn { flex: 1; font-weight: 500; }
.mx-row .mp { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; min-width: 46px; }
.mx-row .q { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.mx-row.picked .mn { color: var(--lacquer); font-weight: 700; }
.mixer-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding: 12px 14px;
  background: var(--wash); border-radius: 10px; font-size: 14px;
}
.mixer-foot b { font-variant-numeric: tabular-nums; font-size: 16px; }

/* ── checkout ── */
.checkout-grid { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; margin-top: 30px; }
.co-form { display: flex; flex-direction: column; gap: 18px; }
.co-form label { font-weight: 700; font-size: 14px; display: flex; flex-direction: column; gap: 7px; }
.co-form .opt { font-weight: 400; color: var(--muted); }
.co-form input, .co-form textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}
.co-form input:focus, .co-form textarea:focus { outline: none; border-color: var(--cedar); }
.co-form .btn { margin-top: 6px; }
.co-form small { color: var(--muted); font-size: 12.5px; text-align: center; }
.co-error { background: #F8E2D8; color: #A8492E; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.co-summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: sticky; top: 90px;
}
.co-summary h3 { font-size: 19px; margin-bottom: 10px; }
.co-summary .btn { margin-top: 16px; }
.co-line { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dotted #D5C9B2; font-size: 14.5px; align-items: baseline; }
.co-line:last-child { border-bottom: none; }
.co-line .q { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 26px; }
.co-line .cn { flex: 1; font-weight: 500; }
.co-line .cn small { display: block; color: var(--muted); font-size: 12.5px; }
.co-line .cp { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ── confirm & pay ── */
.confirm-wrap { display: grid; place-items: center; padding: 60px 24px 20px; }
.confirm-card {
  width: min(560px, 100%); text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow);
}
.big-num { font-family: "Shippori Mincho", serif; font-size: 64px; font-weight: 700; color: var(--lacquer); line-height: 1.1; margin: 8px 0; }
.confirm-card h2 { font-size: 26px; margin: 6px 0 4px; }
.cf-status-track { display: flex; justify-content: center; gap: 8px; margin: 22px 0; flex-wrap: wrap; }
.cf-status-track span {
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--wash); color: var(--muted);
}
.cf-status-track span.on { background: var(--lacquer); color: #FFF6ED; }
.cf-lines { text-align: left; margin: 14px 0 6px; }
.confirm-card .tot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.cf-addr { color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.test-badge {
  display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px;
  background: #F8E2D8; color: #A8492E; font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
}
.pay-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.pay-card {
  width: min(460px, 100%); text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow);
}
.pay-card h2 { font-size: 24px; margin: 12px 0 6px; }
.pay-total { font-family: "Shippori Mincho", serif; font-size: 44px; font-weight: 700; margin: 16px 0 6px; }
.pay-card .btn.solid { width: 100%; margin: 18px 0 10px; }

/* ── rewards ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step .k { font-family: "Shippori Mincho", serif; font-size: 32px; color: var(--lacquer); }
.step h3 { font-size: 18px; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: 14px; }
.rate {
  margin-top: 22px; padding: 24px 28px; border-radius: var(--radius);
  background: var(--wash);
  display: flex; flex-wrap: wrap; gap: 14px 48px;
}
.rate div b { font-family: "Shippori Mincho", serif; font-size: 24px; display: block; color: var(--lacquer); }
.rate div span { font-size: 13px; color: var(--muted); }

/* ── rewards account ── */
.rw-grid { display: grid; grid-template-columns: 400px 1fr; gap: 30px; align-items: start; margin-top: 30px; }
.rw-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: sticky; top: 90px;
}
.rw-card h3 { font-size: 22px; margin: 4px 0 8px; }
.rw-hint { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.rw-field { display: flex; gap: 8px; margin-bottom: 10px; }
.rw-field input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 16px;
}
.rw-field input:focus { outline: none; border-color: var(--cedar); }
.rw-testcode {
  background: #F8E2D8; color: #A8492E; border-radius: 8px;
  padding: 9px 13px; font-size: 13px; font-weight: 700; margin-top: 8px;
}
.rw-balance { font-family: "Shippori Mincho", serif; font-size: 52px; font-weight: 700; color: var(--lacquer); line-height: 1.1; margin: 6px 0 2px; }
.rw-balance small { font-size: 20px; color: var(--muted); font-family: "Zen Kaku Gothic New", sans-serif; }
.rw-history { margin: 14px 0 18px; max-height: 260px; overflow-y: auto; }
.rw-h-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px dotted #D5C9B2; font-size: 13.5px; color: var(--muted);
}
.rw-h-row b { font-variant-numeric: tabular-nums; }
.rw-h-row .plus { color: #567A31; }
.rw-h-row .minus { color: var(--lacquer); }

/* ── checkout points ── */
.co-points-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--wash); border-radius: 10px; padding: 12px 14px;
  margin: 10px 0; font-size: 14px; cursor: pointer;
}
.co-points-row input { accent-color: var(--lacquer); width: 17px; height: 17px; flex: none; }
.co-points-row small { color: var(--muted); }
.co-points-note { color: var(--muted); font-size: 13px; margin: 10px 0; }
.co-points-note a { color: var(--lacquer); text-decoration: underline; }
.cp-panel {
  background: var(--wash); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 12px 0;
}
.cp-panel .co-points-row { background: var(--paper); margin: 8px 0; }
.cp-panel .co-points-note { margin: 8px 0 2px; }
.cp-panel .rw-field { margin-bottom: 8px; }
.cp-panel .rw-field input { background: var(--paper); }
.cp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cp-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cedar);
}
.cp-bal { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-bal b { font-family: "Shippori Mincho", serif; font-size: 18px; color: var(--lacquer); }
.cp-who { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; overflow-wrap: anywhere; }
.cp-earn { font-size: 12.5px; font-weight: 700; color: #567A31; margin: 6px 0 2px; }

/* ── checkout tip ── */
.tip-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 2px; }
.tip-b {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 700;
  font-family: inherit;
}
.tip-b:hover { border-color: var(--cedar); }
.tip-b.on { background: var(--lacquer); border-color: var(--lacquer); color: #FFF6ED; }
.tip-custom-row { margin-top: 8px; }
.cf-earned {
  margin-top: 12px; padding: 9px 14px; border-radius: 999px; display: inline-block;
  background: #E6EFD8; color: #567A31; font-size: 13.5px; font-weight: 700;
}

/* ── contact ── */
.email-row {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 10px 10px 10px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.email-row a { font-weight: 700; color: var(--lacquer); }
.locs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 30px; }
.loc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.loc .lab { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lacquer); }
.loc h3 { font-size: 22px; margin: 6px 0 16px; }
.loc dl { margin: 0; display: grid; grid-template-columns: 80px 1fr; gap: 8px 12px; font-size: 14.5px; }
.loc dt { color: var(--muted); }
.loc dd { margin: 0; }
.loc .btn { margin-top: 18px; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); background: var(--wash); margin-top: 70px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px; padding: 50px 24px 30px;
}
.foot-brand b { font-family: "Shippori Mincho", serif; font-size: 20px; letter-spacing: .14em; display: block; margin-top: 14px; }
.foot-brand p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.foot-grid h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cedar); margin: 0 0 14px; }
.foot-grid a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-base { padding: 18px 24px 30px; color: #A2937C; font-size: 12.5px; border-top: 1px solid var(--line); }

/* ── cart ── */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--lacquer); color: #FFF6ED;
  transform: translateY(110%); transition: transform .25s ease;
}
.cartbar.show { transform: none; }
.cartbar-inner { display: flex; align-items: center; gap: 14px; padding: 12px 24px; }
.cartbar b { font-variant-numeric: tabular-nums; font-size: 17px; }
.cartbar .n { opacity: .85; font-size: 14px; white-space: nowrap; }
.cartbar #cb-open { margin-left: auto; white-space: nowrap; }
.cartbar .btn.solid { background: #FFF6ED; color: var(--lacquer); }
/* 담기 피드백: 마지막 담은 항목 이름 + 배지 반짝 (2026-08-31) */
.cartbar .last { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; opacity: 1; }
@keyframes last-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cartbar .last.fresh { animation: last-in .35s ease; }
@keyframes badge-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.6); box-shadow: 0 0 0 7px rgba(255, 246, 237, .35); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 246, 237, 0); }
}
.count-badge.pop { animation: badge-pop .5s ease; }
/* 체크아웃: 포인트 설명·적용됨 상태·할인 코드 (2026-08-31) */
/* 체크아웃 합계 밑 포인트 적립 예고 줄 */
.co-earn {
  margin-top: 8px; padding: 8px 12px; border-radius: 10px;
  background: #F2F7EC; border: 1px solid #CFE0BC;
  font-size: 13.5px; color: #3F6224;
}
.co-earn b { color: #2F6B22; }
.cp-how { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.cp-how b { color: var(--ink); }
.cp-applied {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #F2F7EC; border: 1px solid #CFE0BC; border-radius: 10px;
  padding: 9px 12px; font-size: 13.5px; color: #3F6224;
}
.cp-applied b { color: #2F6B22; }
.cp-applied .btn { margin-left: auto; padding: 5px 12px; font-size: 12px; }
#co-pts-apply small { font-weight: 400; opacity: .85; margin-left: 4px; }
.pu-row select { font: inherit; font-size: 14.5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
/* 영업시간 외 주문 안내 + 확인 (2026-09-01) */
.ah-panel { border: 1.5px solid var(--lacquer); }
.ah-note { font-size: 14px; margin: 4px 0 10px; line-height: 1.55; }
.ah-note b { color: var(--lacquer); }
.ah-confirm { display: flex; gap: 10px; align-items: flex-start; background: var(--wash); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; cursor: pointer; }
.ah-confirm input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--lacquer); flex: none; }
@media (max-width: 620px) {
  .cartbar-inner { gap: 9px; padding: 12px 14px; }
  .cartbar b { font-size: 15px; }
  .cartbar .n { font-size: 12.5px; }
  .cartbar .last { max-width: 24vw; }
}
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 80;
  width: min(410px, 100vw); background: var(--surface);
  border-left: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateX(105%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 21px; }
.drawer-head button { background: none; border: none; font-size: 24px; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cl { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px dotted #D5C9B2; }
.cl .cn { flex: 1; font-weight: 700; font-size: 14.5px; }
.cl .cn small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.cl .cp { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; min-width: 64px; text-align: right; }
.qbtn { width: 27px; height: 27px; border-radius: 6px; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 15px; line-height: 1; }
.cl .q { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.tot { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.tot b { font-variant-numeric: tabular-nums; }
.tot.muted { color: var(--muted); }
.drawer-foot .btn { width: 100%; margin-top: 12px; }
.drawer-foot small { display: block; text-align: center; color: var(--muted); margin-top: 10px; font-size: 12px; }
.empty { text-align: center; color: var(--muted); padding: 52px 0; }

/* ── reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide, .cartbar, .drawer, .tile, .sig-card, .chip img { transition: none; }
  .count-badge.pop, .cartbar .last.fresh { animation: none; }
}

/* ── responsive ── */
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .loc-strip { grid-template-columns: 1fr; padding: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .head-inner { flex-wrap: wrap; gap: 10px 14px; padding-bottom: 8px; }
  nav#nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  nav#nav::-webkit-scrollbar { display: none; }
  nav#nav a { white-space: nowrap; padding: 7px 12px; }
  .head-cta { display: none; }
  .menu-layout { grid-template-columns: 1fr; }
  .cat-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .cat-nav a { border-left: none; border-bottom: 2px solid var(--line); }
  .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile { min-height: 280px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; } /* 모바일: 주문 요약(포인트 패널)을 폼보다 먼저 — 결제 전에 포인트가 보이게 */
  .rw-grid { grid-template-columns: 1fr; }
  .rw-card { position: static; }
  .mi { grid-template-columns: auto 1fr auto; }
  .mi .add { grid-column: 3; }
  .mi .pr { grid-row: auto; }
}
