:root {
  /* JAPA Brand Palette — inspired by JAPA's dark mahogany/charcoal menu & warm Washi paper */
  --bg: #0e0b0a;
  --bg-mahogany: #191210;
  --bg-card: #15110f;
  --bg-card-hover: #1d1714;
  --washi: #f0e9dc;
  --washi-elevated: #f8f4ec;
  --washi-ink: #1a1512;
  --washi-muted: #5e554c;
  --border: rgba(215, 180, 106, 0.16);
  --border-strong: rgba(215, 180, 106, 0.36);
  --text: #f3ede0;
  --text-secondary: #bfb6a6;
  --text-muted: #8a8174;
  --gold: #d7b46a;
  --gold-soft: rgba(215, 180, 106, 0.14);
  --crimson: #b82921;
  --zalo: #0068ff;
  --font-sans: "Be Vietnam Pro", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", "Noto Sans JP", Georgia, serif;
  --font-jp: "Noto Sans JP", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 90% 42% at 65% 0%, rgba(122, 30, 22, 0.24), transparent 65%),
    linear-gradient(180deg, #120d0b 0%, #0e0b0a 40%, #0b0908 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 11, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-btn.active {
  background: var(--gold);
  color: #14100c;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--gold);
  color: #14100c;
}

.btn-primary:hover {
  background: #e2c27c;
}

.btn-zalo {
  background: var(--zalo);
  color: #ffffff;
}

.btn-zalo:hover {
  background: #1776ff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(215, 180, 106, 0.1);
  border-color: var(--gold);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding-inline: 10px;
}

.btn-text:hover {
  color: var(--text);
}

.btn-washi-outline {
  background: transparent;
  border-color: rgba(26, 21, 18, 0.25);
  color: var(--washi-ink);
}

.btn-washi-outline:hover {
  background: rgba(26, 21, 18, 0.06);
  border-color: var(--washi-ink);
}

/* Hero */
.hero {
  padding: 40px 0 46px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(26px, 4.5vw, 54px);
  align-items: center;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-jp-mark {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.14em;
}

.hero-divider-line {
  width: 28px;
  height: 1px;
  background: rgba(215, 180, 106, 0.4);
}

.hero-loc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero-headline {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.3vw, 3.35rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-headline em {
  display: block;
  margin-top: 4px;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  color: var(--gold);
}

.hero-desc {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fact-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.fact-link {
  color: var(--gold);
}

/* Hero Gallery */
.hero-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.gallery-side {
  display: grid;
  gap: 12px;
}

.gallery-main,
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #080605;
}

.gallery-main {
  min-height: 350px;
}

.gallery-item {
  min-height: 169px;
}

.gallery-main img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-main:hover img,
.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 7, 6, 0.92));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.cap-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 1px;
}

.gallery-caption strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.cap-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

/* Sticky Menu Bar */
.menu-section {
  padding-bottom: 44px;
}

.menu-section,
.washi-band,
.original-pages-strip {
  scroll-margin-top: 76px;
}

.menu-group {
  scroll-margin-top: 196px;
}

.menu-sticky-bar {
  position: sticky;
  top: 66px;
  z-index: 40;
  background: rgba(14, 11, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0 12px;
}

.menu-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.menu-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.menu-jp-label {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
}

.menu-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 490px;
  justify-content: flex-end;
}

.menu-search-wrap {
  flex: 1 1 280px;
}

.menu-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-family: inherit;
  outline: none;
}

.menu-search::placeholder {
  color: var(--text-muted);
}

.menu-search:focus {
  border-color: var(--gold);
}

.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.cat-tab.active {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
  font-weight: 600;
}

/* Menu Content Groups */
.menu-content {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.menu-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.menu-group-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--crimson);
}

.menu-group-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-group-jp {
  font-family: var(--font-jp);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--gold);
}

.menu-group-sub {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.87rem;
}

.group-banner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  max-height: 210px;
}

.group-banner img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.group-banner-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 18px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 7, 6, 0.9));
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.group-banner-caption strong {
  color: var(--gold);
  margin-right: 8px;
}

/* Dish Grids */
.dish-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dish-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dish-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.dish-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080605;
}

.dish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dish-card:hover .dish-media img {
  transform: scale(1.03);
}

.dish-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 8px;
  font-size: 0.67rem;
  font-weight: 600;
  border-radius: 4px;
}

.dish-badge-premium {
  background: rgba(14, 11, 10, 0.9);
  color: var(--gold);
  border: 1px solid rgba(215, 180, 106, 0.5);
}

.dish-badge-bestseller {
  background: var(--crimson);
  color: #fff;
}

.dish-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-jp {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 2px;
}

.dish-title {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.dish-desc {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.81rem;
  line-height: 1.48;
  flex: 1;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.dish-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.btn-add {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-add:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100c;
}

.btn-add.in-cart {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

/* Compact List Rows */
.compact-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.compact-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.compact-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 60px;
  background: #080605;
  border: 1px solid var(--border);
}

.compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-info h4 {
  margin: 0 0 2px;
  font-size: 0.94rem;
  font-weight: 600;
}

.compact-info .dish-jp {
  font-size: 0.74rem;
  margin-bottom: 2px;
}

.compact-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.compact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.compact-price {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--gold);
}

/* Warm Washi Paper Band — Reservation Section */
.washi-band {
  background: var(--washi);
  color: var(--washi-ink);
  padding: 56px 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.reservation-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.washi-eyebrow {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--crimson);
  margin-bottom: 6px;
}

.res-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  line-height: 1.15;
  color: var(--washi-ink);
}

.res-sub {
  margin: 0 0 22px;
  color: var(--washi-muted);
  font-size: 0.92rem;
}

.res-details-list {
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.res-detail-item {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(26, 21, 18, 0.14);
}

.res-detail-item dt {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--washi-muted);
  margin-bottom: 2px;
}

.res-detail-item dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--washi-ink);
}

.res-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.res-form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--washi-elevated);
  border: 1px solid rgba(26, 21, 18, 0.14);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 12px 32px rgba(26, 21, 18, 0.08);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--washi-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(26, 21, 18, 0.18);
  color: var(--washi-ink);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--crimson);
}

.guest-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.guest-stepper input {
  text-align: center;
  padding: 8px 4px;
}

.qty-btn-washi {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(26, 21, 18, 0.25);
  background: #ffffff;
  color: var(--washi-ink);
  font-weight: 700;
  flex-shrink: 0;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--crimson);
  font-weight: 600;
  cursor: pointer;
}

.res-submit-btn {
  width: 100%;
  margin-top: 4px;
}

.res-result-box {
  margin-top: 6px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 104, 255, 0.07);
  border: 1px solid rgba(0, 104, 255, 0.3);
}

.res-result-head strong {
  display: block;
  color: #0052cc;
  font-size: 0.88rem;
}

.res-result-head span {
  display: block;
  font-size: 0.78rem;
  color: var(--washi-muted);
  margin-top: 2px;
}

.res-preview-text {
  margin: 10px 0;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(26, 21, 18, 0.12);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--washi-ink);
  white-space: pre-wrap;
  max-height: 180px;
  overflow-y: auto;
}

.res-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Original Menu 3D Flipbook */
.original-pages-strip {
  margin-top: 56px;
}

.strip-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.strip-title {
  margin: 2px 0 4px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.strip-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.flipbook-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.book-page-indicator {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold);
  padding: 0 8px;
  min-width: 112px;
  text-align: center;
}

.flipbook-wrap {
  background: #0b0807;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 2.5vw, 28px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
}

.flipbook-stage {
  perspective: 2200px;
  display: flex;
  justify-content: center;
}

.flipbook-book {
  position: relative;
  width: min(920px, 100%);
  aspect-ratio: 1808 / 1280;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform-style: preserve-3d;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  background: #14100e;
}

.book-page {
  position: relative;
  overflow: hidden;
  background: #0e0b0a;
  cursor: pointer;
  user-select: none;
}

.book-left {
  border-radius: 8px 0 0 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.5);
}

.book-right {
  border-radius: 0 8px 8px 0;
  border-left: 1px solid rgba(0, 0, 0, 0.5);
}

.book-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-page-tag {
  position: absolute;
  bottom: 10px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(14, 11, 10, 0.82);
  border: 1px solid var(--border);
  border-radius: 4px;
  pointer-events: none;
}

.book-tag-left { left: 10px; }
.book-tag-right { right: 10px; }

.book-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 11, 10, 0.84);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.book-page:hover .book-zoom-btn {
  opacity: 1;
}

/* Book center spine crease shadow */
.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 48px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.52) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(0, 0, 0, 0.52) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* 3D Animated Page-Turning Leaf */
.book-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 50%;
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
  display: none;
  z-index: 6;
}

.book-leaf.is-turning-next {
  display: block;
  animation: flipPageNext 0.58s cubic-bezier(0.55, 0.05, 0.32, 0.98) forwards;
}

.book-leaf.is-turning-prev {
  display: block;
  animation: flipPagePrev 0.58s cubic-bezier(0.55, 0.05, 0.32, 0.98) forwards;
}

.leaf-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: #0e0b0a;
}

.leaf-front {
  border-radius: 0 8px 8px 0;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.45);
}

.leaf-back {
  border-radius: 8px 0 0 8px;
  transform: rotateY(180deg);
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.45);
}

.leaf-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes flipPageNext {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(-180deg);
  }
}

@keyframes flipPagePrev {
  0% {
    transform: rotateY(-180deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

/* Quick Chapter Thumbnails below Flipbook */
.flipbook-thumbs {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 10px;
}

.page-thumb-btn {
  flex: 0 0 112px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: left;
  color: var(--text);
  opacity: 0.7;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.page-thumb-btn:hover,
.page-thumb-btn.active {
  border-color: var(--gold);
  opacity: 1;
}

.page-thumb-btn.active {
  box-shadow: 0 0 0 1px var(--gold);
}

.page-thumb-btn img {
  width: 100%;
  aspect-ratio: 904 / 1280;
  object-fit: cover;
}

.page-thumb-label {
  display: block;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating Tray Button */
.floating-tray-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #14100c;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.tray-count {
  background: var(--crimson);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

/* Tray Drawer */
.tray-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.tray-drawer.open {
  display: block;
}

.tray-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.tray-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  background: var(--bg-mahogany);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
}

.tray-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tray-header h3 {
  margin: 0 0 2px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.tray-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.icon-close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.tray-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tray-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.tray-item-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.tray-item-price {
  font-size: 0.78rem;
  color: var(--gold);
}

.tray-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  flex-shrink: 0;
}

.tray-checkout-meta {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mode-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.mode-tab.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.tray-meta-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tray-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tray-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
}

.tray-input:focus {
  border-color: var(--gold);
}

.tray-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.tray-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.tray-summary-row strong {
  color: var(--gold);
  font-size: 1.2rem;
}

.tray-vat-note {
  margin: 0 0 12px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tray-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tray-actions {
  display: flex;
  gap: 8px;
}

.tray-actions .btn {
  flex: 1;
}

/* Payment Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-mahogany);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pay-jp-sub {
  display: block;
  font-family: var(--font-jp);
  font-size: 0.72rem;
  color: var(--gold);
}

.modal-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.38rem;
}

.pay-tabs {
  display: flex;
  gap: 16px;
  padding: 8px 20px 0;
  border-bottom: 1px solid var(--border);
}

.pay-tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.pay-tab.active {
  color: var(--text);
  border-bottom-color: var(--crimson);
}

.modal-body {
  padding: 20px;
}

.pay-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
  align-items: start;
}

.qr-stage-card {
  background: var(--washi);
  color: var(--washi-ink);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.qr-frame {
  width: 235px;
  min-height: 235px;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 21, 18, 0.1);
}

.qr-frame img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.qr-amount-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--washi-muted);
}

.qr-amount-pill strong {
  font-size: 1.22rem;
  color: var(--crimson);
}

.qr-status-note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--washi-muted);
  line-height: 1.4;
}

.pay-details-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-receipt-mini,
.bank-info-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.receipt-row,
.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  padding: 5px 0;
}

.bank-row + .bank-row {
  border-top: 1px dashed var(--border);
}

.receipt-row span,
.bank-row span {
  color: var(--text-secondary);
}

.receipt-items-summary {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-secondary);
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bank-copy-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-mini-copy {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--gold);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

.pay-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cash-box {
  text-align: center;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cash-box h4 {
  margin: 0;
  font-size: 1.1rem;
}

.cash-box p {
  margin: 0;
  max-width: 440px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.cash-total {
  font-size: 1rem;
  margin: 4px 0 8px;
}

.cash-total strong {
  color: var(--gold);
  font-size: 1.25rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 24px));
  height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

.lightbox-caption {
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(14, 11, 10, 0.88);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
}

.lightbox-thumb {
  width: 44px;
  height: 62px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.5;
  background: transparent;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg-mahogany);
  color: var(--text);
  border: 1px solid var(--gold);
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding: 30px 0 86px;
  background: #0a0807;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text-secondary);
}

.footer-brand strong {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--gold);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .reservation-card {
    grid-template-columns: 1fr;
  }
  .gallery-main {
    min-height: 250px;
  }
  .dish-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-actions .btn-text,
  .header-actions .btn-outline {
    display: none;
  }
  .menu-bar-top {
    flex-direction: column;
    align-items: stretch;
  }
  .menu-controls-right {
    flex: none;
  }
  .dish-grid-2,
  .dish-grid-3,
  .compact-grid,
  .pay-grid,
  .form-row-2,
  .form-row-3,
  .hero-facts {
    grid-template-columns: 1fr;
  }
  .hero-gallery {
    grid-template-columns: 1fr;
  }
  /* Single-page book mode on mobile */
  .flipbook-book {
    aspect-ratio: 904 / 1280;
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .book-left,
  .book-spine {
    display: none;
  }
  .book-right {
    border-radius: 8px;
    border-left: 0;
  }
  .book-leaf {
    left: 0;
    width: 100%;
  }
  .book-zoom-btn {
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1220px, calc(100% - 24px));
  }
  .header-inner {
    min-height: 58px;
    gap: 8px;
  }
  .menu-sticky-bar {
    top: 58px;
  }
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 0.96rem;
    letter-spacing: 0.1em;
  }
  .lang-btn {
    padding: 4px 6px;
    font-size: 0.68rem;
  }
  .header-actions .btn-sm {
    padding: 6px 10px;
    font-size: 0.76rem;
  }
  .hero-ctas .btn-lg {
    width: 100%;
  }
  .page-thumb-btn {
    flex: 0 0 92px;
  }
}

/* ===== SEO: giới thiệu nhà hàng & menu tĩnh ===== */
.about-japa { margin-top: 56px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; margin-top: 14px; }
.about-text p { margin: 0 0 12px; color: var(--text-secondary); line-height: 1.75; font-size: 0.95rem; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-facts { margin: 0; display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.about-facts dt { color: var(--gold); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.about-facts dd { margin: 2px 0 0; color: var(--text); font-size: 0.92rem; }
.about-facts a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.seo-menu-list { margin: 10px 0 28px; padding-left: 18px; color: var(--text-secondary); columns: 2; column-gap: 32px; font-size: 0.9rem; line-height: 1.8; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } .seo-menu-list { columns: 1; } }
