:root {
  color-scheme: light;
  --brand: #ee4d2d;
  --ink: rgba(0, 0, 0, .87);
  --muted: rgba(0, 0, 0, .54);
  --line: #f0f0f0;
  --page: #f5f5f5;
  --card: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 8px 0 12px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-name { margin: 0; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.banner {
  position: relative;
  height: 196px;
  background: #3a2a1c;
  overflow: hidden;
}
.banner > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.banner-copy {
  position: absolute;
  left: 16px;
  right: 46%;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .35);
}
.banner-copy h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.banner-copy p { margin: 0; font-size: 13px; line-height: 1.35; }
@media (min-width: 800px) {
  .banner { height: 280px; }
  .banner > img { object-position: center; }
  .banner-copy { left: 40px; bottom: 28px; right: auto; max-width: 440px; }
  .banner-copy h1 { font-size: 40px; }
  .banner-copy p { font-size: 15px; }
}
.brand img { display: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.brand img[src] { display: block; }

.iconbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  text-decoration: none;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.branches, .cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px;
  background: #fff;
}
.branches:empty, .cats:empty { display: none; }
.branches { border-bottom: 1px solid var(--line); }
.branches button, .cats a {
  flex: none;
  border: 0;
  background: var(--page);
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 2px;
  cursor: pointer;
}
.branches button.on {
  background: #fff1ee;
  color: var(--brand);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
}

.pcard { position: relative; background: var(--card); min-width: 0; }
.pcard-hit { display: block; color: inherit; text-decoration: none; }
.thumb { display: none; aspect-ratio: 1; background: #fafafa; }
.thumb:has(img[src]) { display: block; }
.thumb img { display: none; width: 100%; height: 100%; object-fit: cover; }
.thumb img[src] { display: block; }
.pname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 8px 4px;
  min-height: 2.6em;
  font-size: 13px;
  font-weight: 400;
}
.pprice { display: block; margin: 0 36px 10px 8px; color: var(--brand); font-size: 16px; }
.plus {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--brand);
  border-radius: 2px;
  background: #fff;
  color: var(--brand);
  font-size: 18px;
  line-height: 20px;
  cursor: pointer;
}
.plus:disabled {
  width: auto;
  min-width: 24px;
  padding: 0 4px;
  border-color: #eee;
  background: #fafafa;
  color: #bbb;
  font-size: 10px;
  line-height: 22px;
}

body.detail { background: #fff; padding-bottom: 72px; }
.hero { display: none; aspect-ratio: 1; background: #fafafa; }
.hero:has(img[src]) { display: block; }
.hero img { display: none; width: 100%; height: 100%; object-fit: cover; }
.hero img[src] { display: block; }
.sheet-body { padding: 12px; }
.sheet-price { margin: 0 0 6px; color: var(--brand); font-size: 22px; }
.sheet h1 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.desc { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.desc:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.choices p { flex: 1 0 100%; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  background: #fff;
  font-size: 13px;
}
.choices label:has(input:checked) { border-color: var(--brand); color: var(--brand); background: #fff6f4; }
.choices input { accent-color: var(--brand); }
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.solid {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 2px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.solid:disabled { background: #ccc; }
