:root {
  color-scheme: dark;
  --bg: #090909;
  --card: #141414;
  --text: #f4f1ed;
  --muted: #aaa6a2;
  --line: #303030;
  --red: #ba3028;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #ef8076;
  outline-offset: 4px;
}
input,
textarea,
select {
  background: #161616;
  border: 1px solid #444;
  color: var(--text);
  padding: 13px;
  border-radius: 2px;
  width: 100%;
}
input:focus,
textarea:focus {
  outline: 2px solid #bb4035;
}
input[type="checkbox"] {
  width: auto;
}
button {
  color: inherit;
}
header {
  max-width: 1320px;
  margin: auto;
  padding: 8px 40px;
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
header .location {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 2px;
}
header > a:nth-child(2) {
  margin-left: auto;
  font-size: 13px;
}
.logo {
  width: 180px;
  height: 105px;
  object-fit: contain;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 0 40px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr 55px;
  align-items: center;
  gap: 40px;
  padding: 45px 0;
  border-bottom: 1px solid var(--line);
}
.hero > img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center 43%;
}
.eyebrow {
  font-size: 11px;
  color: #ec7267;
  letter-spacing: 2px;
}
h1,
h2,
h3,
.categories button {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(45px, 5.5vw, 76px);
  text-transform: uppercase;
  line-height: 1.08;
  margin: 22px 0;
  letter-spacing: -1px;
}
h2 {
  font-size: 28px;
  margin: 0;
}
h3 {
  font-size: 22px;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
.japanese {
  font-family: serif;
  color: #d74539;
  text-align: center;
  font-size: 35px;
  line-height: 1.6;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 35px 0 22px;
}
.toolbar input {
  max-width: 320px;
}
.categories {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.categories button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  white-space: nowrap;
  padding: 15px 0;
  font-size: 17px;
  color: #bbb;
}
.categories .active {
  border-color: #e65044;
  color: white;
}
.section-title {
  margin: 27px 0 20px;
  font-size: 22px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.product-card {
  position: relative;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  padding: 0 0 20px;
  overflow: hidden;
}
.product-card:hover .photo {
  filter: brightness(1.08);
}
.photo {
  aspect-ratio: 1.5;
  background: #181818;
  position: relative;
  overflow: hidden;
}
.photo img,
.photo svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}
.product-card h3 {
  margin: 12px 0;
  font-size: 21px;
}
.product-card p {
  font-size: 13px;
  margin: 0;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta {
  font-size: 11px;
  color: #ea847c;
  margin-top: 16px;
  display: block;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.add {
  background: var(--red);
  color: #fff;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  font-size: 23px;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #111e;
  padding: 7px 9px;
  border-left: 2px solid var(--red);
  font-size: 9px;
  letter-spacing: 1px;
}
.unavailable .photo {
  filter: grayscale(1);
  opacity: 0.5;
}
.primary,
.secondary {
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  min-height: 44px;
}
.primary {
  background: var(--red);
  color: #fff;
}
.primary:hover {
  background: #95261f;
}
.secondary {
  background: #101010;
  border-color: #444;
}
.secondary:hover {
  background: #222;
}
.floating {
  position: fixed;
  right: 25px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
.floating .primary {
  box-shadow: 0 4px 20px #0009;
}
#cart-count {
  background: #ffffff20;
  padding: 3px 7px;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 55px;
  padding: 30px 0 110px;
  color: var(--muted);
  font-size: 12px;
}
footer strong {
  font-family: Georgia, serif;
  letter-spacing: 2px;
  color: white;
}
dialog {
  background: #111;
  color: var(--text);
  border: 1px solid #444;
  width: calc(100% - 24px);
  max-width: 570px;
  max-height: 92dvh;
  padding: 0;
  border-radius: 4px;
}
dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #111;
  z-index: 2;
}
.modal-heading h2 {
  font-size: 25px;
}
.icon-button {
  border: 0;
  background: none;
  font-size: 30px;
  padding: 0 8px;
}
.modal-body {
  padding: 22px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0;
  font-size: 14px;
}
label.check {
  flex-direction: row;
  align-items: center;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.actions > * {
  flex: 1;
}
.actions input {
  max-width: 85px;
}
.notice,
.error {
  padding: 14px;
  background: #251d14;
  border: 1px solid #6b5031;
  color: #ecd4ac;
  font-size: 14px;
  line-height: 1.5;
  margin: 18px 0;
}
.error {
  background: #301715;
  border-color: #7b342e;
  color: #ffb5ab;
}
[hidden] {
  display: none !important;
}
.narrow {
  max-width: 480px;
  padding: 35px 25px;
}
.narrow .logo {
  display: block;
  margin: auto;
}
.narrow h1 {
  font-size: 40px;
}
.narrow .eyebrow {
  display: block;
  margin-top: 30px;
}
.narrow button {
  width: 100%;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 14px;
}
.line small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.line input {
  width: 72px;
  margin-top: 9px;
}
.line button {
  margin-top: 9px;
}
.total {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 20px;
}
.empty {
  padding: 35px 0;
  color: var(--muted);
}
.panel-title {
  font-size: 36px;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 25px 0;
}
.panel-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid #333;
}
.panel-card h3 {
  margin: 0 0 15px;
}
.panel-card .code {
  font-size: 25px;
  letter-spacing: 5px;
  display: block;
  margin-top: 9px;
}
.status {
  padding: 5px 8px;
  background: #36301d;
  color: #ffe59e;
  font: 12px Arial;
  display: inline-block;
}
.status.preparing {
  background: #183343;
  color: #b0deff;
}
.status.delivered {
  background: #253821;
  color: #c0e6b2;
}
.status.cancelled {
  background: #3b201e;
  color: #f6b1a8;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.filters .active {
  border-color: #da574c;
}
.table-wrap {
  overflow-x: auto;
  margin: 25px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid #333;
}
th {
  color: var(--muted);
  font-size: 12px;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.qr-print {
  text-align: center;
  background: white;
  color: #111;
  padding: 25px;
}
.qr-print img {
  display: block;
  margin: 10px auto;
  max-width: 100%;
}
.qr-print .logo {
  background: #090909;
}
.qr-print p {
  color: #444;
}
.qr-image {
  width: 280px;
}
#toast {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 25px;
  background: #f5f0e9;
  color: #111;
  z-index: 20;
  max-width: 90%;
  box-shadow: 0 4px 30px #0007;
}
.note {
  color: #ffd490;
  background: #29200e;
  padding: 7px;
  font-size: 13px;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .japanese {
    display: none;
  }
  .product-grid,
  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .location {
    display: none;
  }
  .hero > img {
    height: 280px;
  }
}
@media (max-width: 550px) {
  header {
    padding: 7px 20px;
    min-height: 100px;
    gap: 15px;
  }
  .logo {
    width: 140px;
    height: 87px;
  }
  header > button {
    margin-left: auto;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 0;
    gap: 22px;
  }
  .hero h1 {
    font-size: 48px;
    margin: 16px 0;
  }
  .hero > img {
    height: 230px;
  }
  .hero p {
    font-size: 13px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .toolbar {
    display: block;
  }
  .toolbar input {
    margin-top: 20px;
    max-width: none;
  }
  .product-grid {
    gap: 16px;
  }
  .photo {
    aspect-ratio: 1.1;
  }
  .product-card h3 {
    font-size: 18px;
    min-height: 42px;
  }
  .product-card p {
    font-size: 12px;
  }
  .product-bottom {
    font-size: 14px;
  }
  .categories {
    gap: 20px;
  }
  .categories button {
    font-size: 15px;
  }
  .floating {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  .floating .primary {
    flex: 1;
  }
  .floating button {
    font-size: 12px;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .panel-title {
    font-size: 30px;
  }
  .narrow {
    padding: 25px;
  }
  .panel-card {
    padding: 18px;
  }
  .modal-heading {
    padding: 16px;
  }
  .modal-body {
    padding: 18px;
  }
  header > a:nth-child(2) {
    font-size: 11px;
  }
  .toolbar > .secondary {
    margin-top: 15px;
  }
  th,
  td {
    padding: 12px;
  }
  .section-title {
    font-size: 21px;
  }
}
@media print {
  body * {
    visibility: hidden !important;
  }
  dialog,
  dialog * {
    visibility: visible !important;
  }
  dialog {
    position: absolute;
    inset: 0;
    max-height: none;
    width: 100%;
    max-width: none;
    border: 0;
    background: white;
  }
  dialog .modal-heading,
  dialog .actions {
    display: none !important;
  }
  .qr-print {
    width: 90mm;
    margin: auto;
  }
  .qr-image {
    width: 65mm;
  }
  body {
    background: white;
  }
}

/* The same complete card is used for preview, download and print. */
.qr-print { background: #000; padding: 0; color: #fff; max-width: 420px; margin: 0 auto; }
.qr-print .qr-card { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; }
.qr-print .logo, .admin-brand { background: transparent; }
@media print {
  .qr-print { width: 100mm; max-width: none; padding: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  dialog:has(.qr-print) .modal-body:not(:has(.qr-print)) { display: none !important; }
  .qr-body > :not(.qr-print) { display: none !important; }
}
.photo.beverage { background: #fff; } .photo.beverage img { object-fit: contain; padding: 16px; }
