.menu-page {
  background: var(--cream);
}

.menu-page .site-header {
  background: var(--cream);
}

.menu-page .nav-trigger[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-hero {
  padding: clamp(68px, 8vw, 138px) 0 clamp(62px, 7vw, 112px);
  background: var(--ink);
  color: var(--cream);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(48px, 6vw, 86px);
  color: #c8bead;
  font-size: .85rem;
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-hero .eyebrow {
  color: #c8bead;
}

.menu-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 7.6rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .93;
}

.menu-hero > .shell > p:last-child {
  max-width: 720px;
  margin: 30px 0 0;
  color: #d8cebd;
  font-size: 1.12rem;
  line-height: 1.65;
}

.menu-catalog {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: clamp(44px, 6vw, 100px);
  padding-block: clamp(64px, 7vw, 112px) clamp(96px, 10vw, 160px);
}

.filter-panel {
  position: sticky;
  top: 154px;
  align-self: start;
  /* Never let the sticky sidebar exceed the viewport, or its lower controls
     (search, in-stock) get pinned off-screen and become unreachable. */
  max-height: calc(100vh - 178px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Subcategory sub-filter chips (e.g. Flower → Indoor / Mixed Light / Smalls). */
.subcat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.subcat-chip span { font-size: .78rem; opacity: .55; }
.subcat-chip:hover { border-color: var(--ink); }
.subcat-chip.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.subcat-chip.active span { opacity: .7; }

/* Quantity / tier filter (sidebar) */
.tier-filter { margin-top: 26px; }
.tier-filter-label { margin: 0 0 10px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #8a857a); }

.filter-heading,
.menu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.filter-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.filter-heading h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -.025em;
}

.filter-heading button,
.active-subfilter {
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.category-filter {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 28px 0 0;
  border: 0;
}

.category-filter legend,
.menu-search > span {
  margin-bottom: 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.category-filter button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.category-filter button span {
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity .2s ease, transform .25s var(--ease);
}

.category-filter button:hover span,
.category-filter button[aria-pressed="true"] span {
  opacity: 1;
  transform: none;
}

.category-filter button[aria-pressed="true"] {
  font-weight: 600;
}

.menu-search {
  display: grid;
  margin-top: 36px;
}

.menu-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  outline: 0;
  background: transparent;
}

.menu-search input:focus {
  border-bottom-width: 2px;
}

.stock-filter {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  cursor: pointer;
}

.stock-filter input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}

.menu-toolbar {
  min-height: 58px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.menu-toolbar p {
  margin: 0;
  color: var(--muted);
}

.menu-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .86rem;
}

.menu-toolbar select {
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream-light);
  color: var(--ink);
  font: inherit;
}

.active-filter-row {
  min-height: 46px;
  padding-top: 14px;
}

.active-subfilter {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  text-decoration: none;
}

.active-subfilter::after {
  margin-left: 9px;
  content: "×";
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.4vw, 38px) 20px;
}

.menu-grid .product-card h3 {
  min-height: auto;
}

.menu-grid .quick-add {
  font-size: .86rem;
}

.menu-empty {
  grid-column: 1 / -1;
  min-height: 450px;
  padding: clamp(64px, 8vw, 110px) 30px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.menu-empty .empty-mark {
  margin-inline: auto;
}

.menu-empty h2 {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
}

.menu-empty p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--muted);
}

.menu-empty button {
  min-height: 48px;
  padding: 10px 22px;
}

@media (max-width: 1500px) {
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .menu-catalog { grid-template-columns: 220px minmax(0, 1fr); gap: 38px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .menu-hero { padding-block: 70px 76px; }
  .breadcrumbs { margin-bottom: 50px; }
  .menu-hero h1 { font-size: clamp(3.25rem, 14vw, 6rem); }
  .menu-catalog { display: block; }
  .filter-panel { position: static; max-height: none; overflow: visible; margin-bottom: 48px; }
  .category-filter { display: flex; overflow-x: auto; gap: 8px; padding: 20px 0 4px; scrollbar-width: none; }
  .category-filter::-webkit-scrollbar { display: none; }
  .category-filter legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .category-filter button { width: auto; min-width: max-content; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); }
  .category-filter button span { display: none; }
  .category-filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
  .menu-search { margin-top: 26px; }
  .stock-filter { width: fit-content; }
}

@media (max-width: 620px) {
  .menu-hero { padding-block: 54px 62px; }
  .breadcrumbs { margin-bottom: 38px; }
  .menu-hero h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .menu-hero > .shell > p:last-child { margin-top: 22px; font-size: 1rem; }
  .menu-catalog { padding-block: 52px 92px; }
  .filter-heading h2 { font-size: 1.25rem; }
  .menu-toolbar { align-items: flex-start; flex-direction: column; }
  .menu-toolbar label { width: 100%; justify-content: space-between; }
  .menu-toolbar select { flex: 1; }
  .menu-grid { grid-template-columns: 1fr; gap: 38px; }
  .menu-grid .quick-add { opacity: 1; transform: none; }
  .menu-empty { min-height: 380px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .category-filter button span { transition: none; }
}

/* ── Product detail sheet (click-select price points) ── */
.product-sheet-backdrop { position: fixed; inset: 0; background: rgba(28,27,24,.42); backdrop-filter: blur(2px); z-index: 10050; opacity: 0; transition: opacity .25s ease; }
.product-sheet-backdrop.show { opacity: 1; }
.product-sheet { position: fixed; z-index: 10051; top: 0; right: 0; height: 100%; width: min(460px, 100%); background: #fbf9f4; border-left: 1px solid #e7e4dd; box-shadow: -18px 0 48px rgba(28,27,24,.14); padding: 22px 26px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .32s cubic-bezier(.22,1,.36,1); box-sizing: border-box; }
.product-sheet.show { transform: translateX(0); }
.sheet-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 999px; border: 1px solid #e0dbd0; background: #fff; font-size: 1.35rem; line-height: 1; color: #3a3a36; cursor: pointer; z-index: 6; box-shadow: 0 2px 12px rgba(28,27,24,.22); }
.sheet-close:hover { background: #f2eee4; }
.sheet-media { width: 100%; margin-bottom: 16px; flex-shrink: 0; }
.sheet-main { position: relative; width: 100%; height: min(42vh, 380px); border-radius: 18px; overflow: hidden; background: linear-gradient(135deg,#efe9dc,#e3ddcd); display: flex; align-items: center; justify-content: center; }
.sheet-main img { width: 100%; height: 100%; object-fit: cover; }
.sheet-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 999px; border: 1px solid #e0dbd0; background: rgba(255,255,255,.85); backdrop-filter: blur(6px); font-size: 1.3rem; line-height: 1; color: #1c1b18; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.sheet-nav.prev { left: 10px; } .sheet-nav.next { right: 10px; }
.sheet-nav:hover { background: #fff; }
.sheet-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.sheet-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; padding: 0; cursor: pointer; }
.sheet-thumb.active { border-color: #1c1b18; }
.sheet-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet-media .sheet-fallback { font-weight: 800; letter-spacing: .12em; color: #b7ad98; font-size: 1.4rem; }
.sheet-type { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: #8a857a; margin: 0 0 4px; }
.product-sheet h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin: 0 0 8px; padding-right: 40px; }
.sheet-desc { color: #6e675e; font-size: .92rem; line-height: 1.6; margin: 0 0 18px; white-space: pre-line; }
.pt-group { margin-bottom: 16px; }
.pt-group h4 { margin: 0 0 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #8a857a; font-weight: 700; }
.pt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-pill { border: 1px solid #ddd7ca; background: #fff; border-radius: 14px; padding: 9px 14px; cursor: pointer; text-align: center; min-width: 76px; transition: border-color .15s ease, background .15s ease, transform .1s ease; font: inherit; }
.pt-pill:hover { border-color: #c3bba6; }
.pt-pill:active { transform: scale(.96); }
.pt-pill.selected { border-color: #1c1b18; background: #1c1b18; color: #fbf9f4; }
.pt-pill .pt-label { display: block; font-weight: 700; font-size: .82rem; }
.pt-pill .pt-price { display: block; font-size: .82rem; margin-top: 2px; opacity: .9; }
.sheet-buy { display: flex; align-items: center; gap: 12px; margin-top: 8px; position: sticky; bottom: 0; background: #fbf9f4; padding-top: 12px; }
.sheet-qty { display: flex; align-items: center; gap: 4px; border: 1px solid #ddd7ca; border-radius: 999px; padding: 4px; background: #fff; }
.sheet-qty button { width: 34px; height: 34px; border-radius: 999px; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: #1c1b18; }
.sheet-qty button:hover { background: #f2eee4; }
.sheet-qty span { min-width: 30px; text-align: center; font-weight: 700; }
.sheet-add { flex: 1; }
.sheet-add[disabled] { opacity: .5; cursor: not-allowed; }
