:root {
  --red: #d40000;
  --deep-red: #8d0000;
}

* { box-sizing: border-box; }
body { margin: 0; background: #ece7df; font-family: "Noto Sans JP", sans-serif; }
button { font: inherit; }

.phone {
  width: min(100%, 442px);
  min-height: 100dvh;
  margin: auto;
  background: #fff;
}

.phone header { padding: 29px 20px 24px; }
.phone header img { display: block; width: min(100%, 365px); margin: auto; }
.phone nav { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 23px; border-block: 1px solid #ddd; }
.phone nav button { min-height: 38px; border: 0; border-right: 1px solid #ddd; background: #fff; color: #4d4d4d; font-size: 12px; }
.phone nav button:last-child { border-right: 0; }
.phone nav .active { color: var(--red); font-weight: 700; }

.category-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 16px 13px 19px; }
.category-tabs button { padding: 6px 12px; border: 0; color: #fff; background: var(--red); font-size: 12px; font-weight: 700; }
.category-tabs button:not(.active) { background: #a60000; }

.slider { position: relative; padding: 0 13px; }
.slide-image {
  aspect-ratio: 1;
  border-radius: 45px 45px 0 0;
  background-image: url("assets/musashiya-reference.png");
  background-repeat: no-repeat;
  background-size: auto 900px;
}
.photo-one { background-position: 23% 15%; }
.photo-two { background-position: 22% 36%; }
.photo-three { background-position: 22% 58%; }
.slide-arrow {
  position: absolute;
  z-index: 1;
  top: calc(50% - 20px);
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid #222;
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}
.slide-arrow:hover { background: #fff3f3; }
.prev { left: 3px; }
.next { right: 3px; }

.details {
  min-height: 397px;
  padding: 17px 28px 31px;
  border-radius: 0 0 45px 45px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--deep-red));
}
.badges { display: flex; gap: 8px; }
.badges span,
.badges strong { min-width: 115px; padding: 6px 10px; background: #760000; font-size: 12px; text-align: center; }
.badges strong { color: #3b2400; background: linear-gradient(#fff743, #ffbc11); }
.details h1 { margin: 22px 0 17px; font-size: 28px; letter-spacing: -.05em; line-height: 1.2; }
.details h1 span { white-space: nowrap; }
.details p { margin: 0; font-size: 14px; font-weight: 600; line-height: 2; }
.details .allergy { margin-top: 22px; font-size: 12px; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 23px; }
.cta button { padding: 10px 6px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: transparent; font-size: 18px; font-weight: 700; cursor: pointer; }
.cta button:hover { color: var(--red); background: #fff; }

.phone footer { display: flex; justify-content: center; gap: 13px; padding: 20px 9px; color: #555; font-size: 12px; }
.phone footer a { color: #1472d5; text-underline-offset: 3px; }
.menu-footer { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.menu-footer a { padding: 11px 5px; border-right: 1px solid #ddd; color: #4d4d4d; font-size: 11px; text-align: center; text-decoration: none; }
.menu-footer a:nth-child(3n) { border-right: 0; }
.menu-footer a:nth-child(-n + 3) { border-bottom: 1px solid #ddd; }
.menu-footer a:hover { color: #fff; background: var(--red); }

.order-modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: end center; padding: 18px; background: rgb(20 8 4 / .55); }
.order-modal[hidden] { display: none; }
.order-panel { position: relative; width: min(100%, 442px); padding: 30px 23px 23px; border-radius: 28px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / .28); }
.modal-close { position: absolute; top: 11px; right: 14px; width: 35px; height: 35px; border: 0; border-radius: 50%; color: #555; background: #eee; font-size: 25px; line-height: 1; }
.order-status { margin: 0 0 9px; color: #666; font-size: 13px; }
.order-panel h2 { margin: 0; color: #222; font-size: 21px; }
.order-copy { margin: 8px 0 16px; color: #555; font-size: 14px; }
.upsell-card { display: flex; align-items: center; gap: 14px; padding: 11px; border: 1px solid #ddd; border-radius: 16px; background: #fff8f3; }
.upsell-photo { width: 70px; height: 70px; flex: 0 0 auto; border-radius: 12px; background: #d8a174; }
.upsell-photo.gyoza { background: linear-gradient(135deg, #efcf89 0 48%, #c47635 49% 54%, #f4dfab 55%); }
.upsell-photo.orion { background: linear-gradient(90deg, #f7d14a 0 40%, #f5f0dd 40% 53%, #165e3b 53% 100%); }
.upsell-card strong,
.upsell-card span { display: block; }
.upsell-card span { margin-top: 3px; color: #555; }
.age-check { margin: 17px 0 0; padding: 12px 14px; border: 1px solid #e1b6a2; border-radius: 12px; }
.age-check p { margin: 5px 0 10px; color: #7d250d; font-size: 13px; line-height: 1.6; }
.age-check label { display: block; margin-top: 8px; font-size: 15px; }
.age-check small { display: block; min-height: 18px; margin-top: 9px; color: #b10000; font-weight: 700; }
.upsell-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; }
.upsell-actions button { min-height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.skip-button { border: 1px solid #aaa; color: #555; background: #fff; }
.add-button { border: 0; color: #fff; background: var(--red); }
.add-button:disabled { cursor: not-allowed; opacity: .45; }

@media (max-width: 420px) {
  .details { min-height: 365px; padding-inline: 21px; }
  .details h1 { font-size: 25px; }
  .details p { font-size: 13px; }
  .phone footer { gap: 9px; font-size: 11px; }
}


[hidden] { display: none !important; }
.slide-image[style*="background-image"] { background-size: cover; background-position: center; }
button:disabled { opacity: .55; cursor: not-allowed; }
#availability-message { padding: 0 20px; }

/* Missing product photos must not show another dish. Uploaded photos take priority. */
.slide-image:not([style*="background-image"]), .upsell-photo:not([style*="background-image"]) { background-image: url("assets/product-placeholder.svg"); background-position: center; background-size: contain; background-repeat: no-repeat; background-color: #f2f2f0; }
