/* SI menu — bottom sheets, dish details, contact, section panels. Loaded in order after the files before it (see index.html). */
/* sheets & panels */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}
.scrim.show {
  opacity: 1;
}
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 45;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translate(-50%, 100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -20px 50px var(--shade);
}
.sheet.show {
  transform: translate(-50%, 0);
}
.grab {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin: 0 auto 12px;
}
.sheet h3 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}
.item-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: var(--surface-2);
}
.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-photo .ph-note {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 8px;
}
.item-photo .fav {
  top: 10px;
  inset-inline-end: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  width: 40px;
  height: 40px;
}
.item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.item-meta .p {
  color: var(--accent);
  font-size: 30px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.item-meta .p span {
  font-family: var(--f-ar);
  font-size: 13px;
  font-weight: 500;
}
.cat-pill {
  background: var(--accent-bg);
  color: var(--on-accent-bg);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.names {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}
.names div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.names dt,
.names span:first-child {
  color: var(--ink-soft);
  font-size: 12px;
}
.names [lang='ckb'] {
  font-family: var(--f-ku);
}
.note-box {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
}
.note-box b {
  display: block;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 2px;
}
.btn {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-bg);
  color: var(--on-accent-bg);
  font-weight: 600;
  font-size: 15px;
  margin-top: 18px;
}
.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
/* an odd number of items (some switched off): the last one fills its line, no hole beside it */
.cats-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 8 / 3;
}
.cats-grid button {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  text-align: start;
}
.cats-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cats-grid button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
}
.cats-grid span {
  position: absolute;
  inset: auto 10px 8px;
  z-index: 1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.cats-grid small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--accent-photo);
}

.contact {
  display: grid;
  gap: 10px;
}
.contact .line {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.contact .line .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.contact .line div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.contact .line small {
  color: var(--ink-soft);
  font-size: 12px;
}
.contact .line bdi {
  font-size: 19px;
  user-select: all;
}
.contact .copy {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--accent);
}
.contact .hint {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin: 4px 0 0;
}

.panel {
  position: fixed;
  inset: 0;
  z-index: 35;
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg);
  overflow-y: auto;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 24px);
  animation: slide 0.3s ease;
}
.panel-cover {
  position: relative;
  height: 220px;
}
.panel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.panel-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%), linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 40%);
}
.panel-cover .round {
  position: absolute;
  z-index: 1;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  inset-inline-start: max(16px, env(safe-area-inset-left, 0px));
}
.panel-head {
  margin-top: -36px;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.panel-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}
.panel-head p {
  margin: 2px 0 0;
  color: var(--accent);
  font-family: var(--f-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}
.panel-plain {
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-plain h2 {
  margin: 0;
  font-size: 22px;
}
@keyframes slide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
}
.rate-row + .rate-row {
  margin-top: 8px;
}
.rate-row > span {
  font-size: 14px;
  font-weight: 500;
}
