:root {
  --jade-950: #071f1a;
  --jade-900: #0b2f27;
  --jade-800: #12463a;
  --jade-100: #dce9e3;
  --red-700: #8f2425;
  --red-600: #aa2c2d;
  --gold-500: #d9ad57;
  --gold-200: #f0d99a;
  --paper: #fbf7ec;
  --ink: #19221f;
  --muted: #64706a;
  --line: #ded8c8;
  --shadow: 0 18px 50px rgba(7, 31, 26, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(217, 173, 87, 0.12), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.language-picker { display: inline-flex; color: white; }
.language-picker select {
  width: auto;
  min-width: 7.4rem;
  padding: 0.62rem 2rem 0.62rem 0.75rem;
  border: 1px solid rgba(240, 217, 154, 0.45);
  border-radius: 999px;
  color: white;
  background: #123e34;
  font-size: 0.84rem;
  font-weight: 750;
}
.language-picker select:focus { outline: 3px solid rgba(217, 173, 87, 0.32); border-color: var(--gold-500); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(16rem, 1fr) auto auto auto;
  align-items: center;
  gap: 2rem;
  min-height: 5.5rem;
  padding: 0.65rem clamp(1rem, 4vw, 4.5rem);
  color: white;
  background: rgba(7, 31, 26, 0.96);
  border-bottom: 1px solid rgba(240, 217, 154, 0.24);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; width: 100%; max-width: 12rem; }
.brand img { display: block; width: 100%; max-height: 4.5rem; object-fit: contain; }
.restaurant-contact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0;
  font-style: normal;
  line-height: 1.3;
}
.restaurant-contact a { width: fit-content; max-width: 100%; text-decoration: none; }
.restaurant-address { color: #dce9e3; font-size: 0.82rem; }
.restaurant-phone { color: var(--gold-200); font-size: 0.9rem; font-weight: 800; letter-spacing: 0.035em; }
.restaurant-contact a:hover, .restaurant-contact a:focus-visible { color: white; }
nav { justify-self: center; display: flex; gap: 1.75rem; align-items: center; }
nav a { text-decoration: none; font-size: 0.94rem; font-weight: 650; letter-spacing: 0.02em; }
nav a:hover, nav a:focus-visible { color: var(--gold-200); }
.admin-link { opacity: 0.72; }
.cart-button {
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  padding: 0.68rem 0.9rem 0.68rem 1rem;
  color: white;
  background: transparent;
  font-weight: 750;
}
.cart-button:hover { background: rgba(217, 173, 87, 0.14); }
.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  min-height: 1.65rem;
  margin-left: 0.35rem;
  border-radius: 50%;
  color: var(--jade-950);
  background: var(--gold-500);
}

main { width: min(100%, 100rem); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(24rem, 1.16fr);
  min-height: 30rem;
  margin: clamp(1rem, 3vw, 2.2rem);
  overflow: hidden;
  border-radius: 1.5rem;
  color: white;
  background: var(--jade-900);
  box-shadow: var(--shadow);
}
.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(2rem, 5vw, 5.5rem);
}
.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto auto -8rem -8rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(217, 173, 87, 0.25);
  border-radius: 50%;
}
.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold-500);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { max-width: 12ch; font-size: clamp(2.5rem, 5vw, 5.2rem); font-weight: 500; }
.hero-copy > p:not(.eyebrow) { max-width: 35rem; margin: 1.4rem 0 2rem; color: #dce9e3; font-size: 1.08rem; }
.hero-image {
  min-height: 24rem;
  background:
    linear-gradient(90deg, var(--jade-900) 0%, rgba(11, 47, 39, 0.56) 18%, transparent 48%),
    url("/hero-cucina-hong-kong.png") center / cover no-repeat;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 0.65rem;
  color: white;
  background: var(--red-600);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(88, 18, 19, 0.24);
}
.primary-action:hover { background: var(--red-700); transform: translateY(-1px); }
.primary-action:disabled { opacity: 0.52; cursor: not-allowed; transform: none; }
.full { width: 100%; }

.menu-section { padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 3vw, 2.2rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); font-weight: 500; color: var(--jade-900); }
.section-heading > p { max-width: 30rem; margin: 0; color: var(--muted); text-align: right; }
.category-tabs { display: flex; gap: 0.55rem; margin: 1.6rem 0 2rem; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; }
.category-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.58rem 1rem;
  color: var(--jade-900);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}
.category-tab[aria-pressed="true"] { color: white; background: var(--jade-800); border-color: var(--jade-800); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 24rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 30px rgba(7, 31, 26, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(7, 31, 26, 0.1); }
.product-image-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: var(--jade-100); }
.product-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.product-card:hover .product-image { transform: scale(1.025); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.35rem 1.35rem; }
.product-category { color: var(--red-600); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.product-card h3 { margin-top: 0.55rem; font-size: 1.45rem; color: var(--jade-900); }
.product-card p { margin: 0.7rem 0 1.4rem; color: var(--muted); }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.price { font-family: Georgia, "Times New Roman", serif; font-size: 1.38rem; font-weight: 700; color: var(--jade-900); }
.add-button { border: 0; border-radius: 0.6rem; padding: 0.68rem 0.9rem; color: white; background: var(--jade-800); font-weight: 800; }
.add-button:hover { background: var(--jade-900); }
.loading, .empty { grid-column: 1 / -1; padding: 3rem; text-align: center; color: var(--muted); }

.cart-panel {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 29rem);
  height: 100dvh;
  padding: 1.4rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(7, 31, 26, 0.25);
  transform: translateX(105%);
  transition: transform 220ms ease;
}
.cart-panel.open { transform: translateX(0); }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.panel-header h2 { font-size: 2rem; color: var(--jade-900); }
.icon-button { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--jade-900); font-size: 1.65rem; line-height: 1; }
.backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(4, 15, 12, 0.56); backdrop-filter: blur(3px); }
.cart-items { flex: 1; overflow-y: auto; margin: 1.2rem -0.25rem; padding: 0.25rem; }
.cart-empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item strong { color: var(--jade-900); }
.cart-item-price { text-align: right; font-weight: 750; }
.quantity { display: flex; align-items: center; gap: 0.5rem; }
.quantity button { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; background: white; }
.cart-summary { padding-top: 1rem; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; font-size: 1.3rem; }
.cart-summary > p { margin: 0.35rem 0 1rem; color: var(--muted); font-size: 0.88rem; }

dialog { width: min(calc(100% - 2rem), 43rem); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 0; border: 0; border-radius: 1.2rem; color: var(--ink); background: var(--paper); box-shadow: 0 28px 80px rgba(7, 31, 26, 0.35); }
dialog::backdrop { background: rgba(4, 15, 12, 0.62); backdrop-filter: blur(4px); }
.checkout-dialog form, .success-dialog { padding: clamp(1.3rem, 4vw, 2.2rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.6rem 0; }
label { display: grid; gap: 0.38rem; color: var(--jade-900); font-size: 0.9rem; font-weight: 750; }
label.wide { grid-column: 1 / -1; }
input, textarea { width: 100%; border: 1px solid #c9c4b7; border-radius: 0.55rem; padding: 0.78rem 0.85rem; color: var(--ink); background: white; }
input:focus, textarea:focus { outline: 3px solid rgba(217, 173, 87, 0.32); border-color: var(--gold-500); }
.checkout-total { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding: 1rem; border-radius: 0.65rem; background: var(--jade-100); }
.form-error { min-height: 1.5rem; margin: 0.6rem 0; color: var(--red-700); font-weight: 650; }
.privacy-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.78rem; text-align: center; }
.success-dialog { text-align: center; }
.success-dialog h2 { margin: 0.5rem 0 1rem; color: var(--jade-900); font-size: 2.2rem; }
.success-mark { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; color: white; background: var(--jade-800); font-size: 2rem; }

footer { display: grid; place-items: center; min-height: 15rem; padding: 3rem 1rem; color: #dce9e3; background: var(--jade-950); text-align: center; }
footer img { width: min(14rem, 60vw); max-height: 7rem; object-fit: contain; }
footer p { margin: 0.8rem 0 0; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 900px) {
  .site-header { grid-template-columns: minmax(8rem, 11rem) 1fr auto auto; gap: 1rem; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 25rem; }
  .hero-image { min-height: 19rem; order: -1; background-image: linear-gradient(0deg, var(--jade-900) 0%, transparent 45%), url("/hero-cucina-hong-kong.png"); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header {
    grid-template-columns: minmax(7rem, 1fr) auto auto;
    gap: 0.4rem 0.8rem;
    min-height: 4.6rem;
    padding: 0.5rem 0.8rem 0.65rem;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .brand img { max-height: 3.6rem; }
  .restaurant-contact {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem 0.75rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(240, 217, 154, 0.18);
  }
  .restaurant-address { font-size: 0.72rem; line-height: 1.25; }
  .restaurant-phone { white-space: nowrap; font-size: 0.8rem; }
  .language-picker { grid-column: 2; grid-row: 1; justify-self: end; }
  .language-picker select { min-width: 5.9rem; padding: 0.52rem 1.5rem 0.52rem 0.62rem; font-size: 0.76rem; }
  .cart-button { grid-column: 3; grid-row: 1; justify-self: end; padding: 0.55rem 0.65rem; font-size: 0.9rem; }
  .count { min-width: 1.45rem; min-height: 1.45rem; }
  .hero { margin: 0; border-radius: 0; }
  .hero-copy { min-height: auto; padding: 2.3rem 1.2rem 3.2rem; }
  .hero-image { min-height: 15rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .category-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    overflow: visible;
    padding-bottom: 0;
  }
  .category-tab { width: 100%; min-width: 0; padding: 0.68rem 0.4rem; text-align: center; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 23rem; }
  .form-grid { grid-template-columns: 1fr; }
  label.wide { grid-column: auto; }
}
