/* V561: complete covers, readable title and native mobile product sheet. */
.me-hero {
  background: var(--me-bg, #100e0b);
  max-height: 55vh;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.me-hero picture,
.me-hero img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 55vh;
  object-fit: contain;
  object-position: center;
}
.me-intro h1 {
  display: grid;
  gap: 0.1em;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.88;
  margin: 0.2em 0;
}
.me-intro h1 em {
  font-weight: 400;
  color: var(--me-accent, #d9a441);
}
.me-search-toggle svg {
  width: 23px;
  height: 23px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.me-recommendations {
  padding: 1rem 0 2rem;
}
.me-featured-list {
  display: flex;
  gap: 14px;
  overflow: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
}
.me-featured-list > button {
  flex: 0 0 230px;
  display: grid;
  text-align: left;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--me-line, #342d24);
  border-radius: 14px;
  background: var(--me-panel, #181612);
  color: inherit;
  scroll-snap-align: start;
}
.me-featured-list img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 9px;
  background: linear-gradient(120deg, #181612, #342d24);
}
.me-featured-list strong {
  font-variant-numeric: tabular-nums;
  color: var(--me-accent, #d9a441);
}
.me-allergen-filter summary {
  min-height: 44px;
  cursor: pointer;
  padding: 12px 0;
}
.me-allergen-filter fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 8px 0;
}
.me-allergen-filter label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--me-line, #342d24);
  border-radius: 10px;
}
.me-empty button {
  display: block;
  margin: 1rem auto;
  min-height: 44px;
}
.me-sheet-handle {
  display: none;
}
.me-detail-copy {
  overflow-wrap: anywhere;
}
.me-detail-copy .me-allergens {
  white-space: normal;
}
@media (max-width: 600px) {
  .me-hero,
  .me-hero picture,
  .me-hero img {
    aspect-ratio: 4/5;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .me-intro {
    padding: 26px 20px;
  }
  .me-intro h1 {
    font-size: 3.5rem;
  }
  .me-detail[open] {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 94dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    overflow-y: auto;
    padding: 0;
    overscroll-behavior: contain;
  }
  .me-detail-top {
    top: 0;
    z-index: 2;
  }
  .me-detail-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 45dvh;
    object-fit: contain;
    background: #100e0b;
  }
  .me-sheet-handle {
    display: block;
    margin: 0 auto;
    padding: 10px 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    touch-action: none;
    color: inherit;
  }
  .me-sheet-handle::after {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 9px;
    background: #aa9f91;
  }
  .me-detail-copy {
    padding: 20px 20px 34px;
  }
  .me-detail-copy h1 {
    font-size: 2.4rem;
    line-height: 1.05;
  }
}
@media (prefers-reduced-motion: reduce) {
  .me-detail {
    scroll-behavior: auto;
    transition: none;
  }
}
