/* Independent, open-layout menu palettes. */
.juice-menu[data-menu-theme] {
  color-scheme: light;
  --theme-bg: #f7faf8;
  --theme-surface: #ffffff;
  --theme-card: #e2eddf;
  --theme-ink: #243e35;
  --theme-muted: #4d665b;
  --theme-primary: #205c4b;
  --theme-on-primary: #fffdf5;
  --theme-accent: #506846;
  --theme-on-accent: #ffffff;
  --theme-soft: #d6e7dc;
  --theme-border: #c5d6c7;
  --theme-footer: #16493c;
  --theme-highlight: #f4d3a0;
  --theme-shadow: rgb(23 63 53 / 12%);
  --theme-hero-start: rgb(242 250 228 / 88%);
  --theme-hero-end: rgb(198 228 208 / 75%);
  --menu-green: var(--theme-ink);
  --menu-orange: var(--theme-accent);
  --menu-cream: var(--theme-surface);
  background: var(--theme-bg);
  color: var(--theme-ink);
}
.juice-menu[data-menu-theme="citrus"] {
  --theme-bg: #f8eddb;
  --theme-surface: #fffbf3;
  --theme-card: #f3dfbe;
  --theme-ink: #4d321c;
  --theme-muted: #74583d;
  --theme-primary: #73472c;
  --theme-on-primary: #fffaf1;
  --theme-accent: #a3421c;
  --theme-on-accent: #ffffff;
  --theme-soft: #f5e2c5;
  --theme-border: #e1cbae;
  --theme-footer: #58321e;
  --theme-highlight: #ffd8a3;
  --theme-shadow: rgb(77 50 28 / 12%);
  --theme-hero-start: rgb(255 246 220 / 90%);
  --theme-hero-end: rgb(248 195 133 / 82%);
}
.juice-menu[data-menu-theme="berry"] {
  --theme-bg: #f8eff5;
  --theme-surface: #fffbfd;
  --theme-card: #efdde9;
  --theme-ink: #452946;
  --theme-muted: #76556d;
  --theme-primary: #70365d;
  --theme-on-primary: #fffbfd;
  --theme-accent: #a63c5e;
  --theme-on-accent: #ffffff;
  --theme-soft: #edd8e4;
  --theme-border: #dec8d5;
  --theme-footer: #4c2443;
  --theme-highlight: #f6c0dd;
  --theme-shadow: rgb(69 41 70 / 12%);
  --theme-hero-start: rgb(253 237 250 / 93%);
  --theme-hero-end: rgb(221 183 215 / 87%);
}
.juice-menu[data-menu-theme="midnight"] {
  color-scheme: dark;
  --theme-bg: #101c25;
  --theme-surface: #192b37;
  --theme-card: #203746;
  --theme-ink: #ebf2f7;
  --theme-muted: #b1c5cc;
  --theme-primary: #aad8cb;
  --theme-on-primary: #102323;
  --theme-accent: #f2bc77;
  --theme-on-accent: #15212b;
  --theme-soft: #2b4654;
  --theme-border: #355060;
  --theme-footer: #162f3a;
  --theme-highlight: #bde0d8;
  --theme-shadow: rgb(0 0 0 / 25%);
  --theme-hero-start: rgb(14 30 44 / 93%);
  --theme-hero-end: rgb(31 59 72 / 90%);
}


/* Open canvas: imagery and type carry the hierarchy, without card surfaces. */
.juice-menu[data-menu-theme] .menu-page { width: min(100% - 48px, 900px); padding-top: 24px; }
.juice-menu[data-menu-theme] .menu-discovery { max-width: none; padding: 0 0 16px; background: none; }
.juice-menu[data-menu-theme] .menu-hero { min-height: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
.juice-menu[data-menu-theme] .menu-hero::before,
.juice-menu[data-menu-theme] .category-feature::after,
.juice-menu[data-menu-theme] .feature-art::after,
.juice-menu[data-menu-theme] .footer-leaf { display: none; }
.juice-menu[data-menu-theme] .menu-hero-brand,
.juice-menu[data-menu-theme] .menu-hero-content h1,
.juice-menu[data-menu-theme] .menu-hero-icon { color: var(--theme-ink); text-shadow: none; }
.juice-menu[data-menu-theme] .menu-hero-icon svg { filter: none; }
.juice-menu[data-menu-theme] .menu-hero-content { margin: 40px 0 24px; }
.juice-menu[data-menu-theme] .menu-hero-content h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.35; letter-spacing: -.045em; }
.juice-menu[data-menu-theme] .menu-hero-benefits { gap: 24px; margin-top: 16px; color: var(--theme-muted); font-weight: 500; }
.juice-menu[data-menu-theme] .menu-hero-benefits li { display: flex; align-items: center; gap: 7px; }
.juice-menu[data-menu-theme] .menu-hero-benefits span { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; color: var(--theme-primary); font-size: 1rem; }
.juice-menu[data-menu-theme] .menu-hero .menu-search { position: relative; inset: auto; width: min(100%, 460px); height: 56px; margin: 0 auto; padding: 0 48px 0 40px; border: 0; border-bottom: 1px solid var(--theme-border); border-radius: 0; background: none; box-shadow: none; }
.juice-menu[data-menu-theme] .menu-search:focus-within { border-bottom-color: var(--theme-primary); }
.juice-menu[data-menu-theme] .menu-search input { color: var(--theme-ink); }
.juice-menu[data-menu-theme] .menu-search input::placeholder { color: var(--theme-muted); }
.juice-menu[data-menu-theme] .menu-search .search-icon { left: 4px; stroke: var(--theme-muted); }
.juice-menu[data-menu-theme] .menu-search button { right: 0; width: 44px; height: 44px; border-radius: 0; background: none; box-shadow: none; color: var(--theme-primary); }
.juice-menu[data-menu-theme] .category-scroll { top: 0; min-height: 56px; gap: 20px; margin-top: 8px; padding: 0; border: 0; border-bottom: 1px solid var(--theme-border); border-radius: 0; background: var(--theme-bg); box-shadow: none; backdrop-filter: none; }
.juice-menu[data-menu-theme] .category-chip { min-height: 56px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; color: var(--theme-muted); font-size: .85rem; }
.juice-menu[data-menu-theme] .category-chip:hover,
.juice-menu[data-menu-theme] .category-chip.is-active { background: none; color: var(--theme-primary); }
.juice-menu[data-menu-theme] .category-chip.is-active { border-bottom-color: var(--theme-primary); }
.juice-menu[data-menu-theme] .products-section { padding: 0 0 56px; }
.juice-menu[data-menu-theme] .category-showcase { padding: 28px 0 32px; border: 0; border-bottom: 1px solid var(--theme-border); scroll-margin-top: 88px; }
.juice-menu[data-menu-theme] .category-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.juice-menu[data-menu-theme] .category-heading h3 { margin: 0; font-size: .95rem; font-weight: 650; color: var(--theme-primary); }
.juice-menu[data-menu-theme] .category-count { color: var(--theme-muted); font-size: .7rem; white-space: nowrap; }
.juice-menu[data-menu-theme] .feature-title h4 { width: auto; }
.juice-menu[data-menu-theme] .feature-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.juice-menu[data-menu-theme] .category-rule { display: none; }
.juice-menu[data-menu-theme] .category-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent !important; box-shadow: none; }
.juice-menu[data-menu-theme] .feature-copy { position: static; width: auto; max-width: 330px; height: auto; gap: 8px; padding: 0; color: var(--theme-ink); text-shadow: none; }
.juice-menu[data-menu-theme] .feature-copy h4 { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.4; font-weight: 750; }
.juice-menu[data-menu-theme] .feature-copy .feature-description { max-width: 30ch; font-size: .875rem; line-height: 1.8; color: var(--theme-muted); }
.juice-menu[data-menu-theme] .feature-copy .product-category { display: none; }
.juice-menu[data-menu-theme] .feature-copy .feature-price { position: static; margin: 4px 0 0; padding-top: 4px; color: var(--theme-ink); }
.juice-menu[data-menu-theme] .feature-price strong { font-size: 1.35rem; font-weight: 650; }
.juice-menu[data-menu-theme] .feature-price span { color: var(--theme-muted); font-size: .75rem; }
.juice-menu[data-menu-theme] .product-badge { width: auto; min-width: 0; padding: 0; border-radius: 0; background: none; color: var(--theme-accent); text-align: start; font-size: .75rem; font-weight: 650; }
.juice-menu[data-menu-theme] .product-badge[hidden] { display: none; }
.juice-menu[data-menu-theme] .feature-art { position: static; display: grid; width: 100%; height: 260px; place-items: center; overflow: visible; border-radius: 0; }
.juice-menu[data-menu-theme] .feature-art img { position: static; width: 100%; height: 100%; max-height: 260px; border-radius: 0; object-fit: contain; filter: none; }
.juice-menu[data-menu-theme] .item-rail { gap: 16px; margin-top: 16px; padding: 4px 0 16px; scrollbar-color: var(--theme-border) transparent; }
.juice-menu[data-menu-theme] .menu-option { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: calc((100% - 48px) / 4); min-height: 190px; flex: 0 0 calc((100% - 48px) / 4); gap: 10px; padding: 4px 8px 12px; overflow: visible; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none; color: var(--theme-ink); text-align: center; }
.juice-menu[data-menu-theme] .menu-option.is-selected { border-bottom-color: var(--theme-primary); background: transparent; box-shadow: none; }
.juice-menu[data-menu-theme] .menu-option img { width: 100%; height: 120px; border-radius: 0; object-fit: contain; }
.juice-menu[data-menu-theme] .menu-option span { align-items: center; gap: 4px; }
.juice-menu[data-menu-theme] .menu-option strong { font-size: .82rem; font-weight: 650; white-space: normal; }
.juice-menu[data-menu-theme] .menu-option small { color: var(--theme-muted); font-size: .75rem; }
.juice-menu[data-menu-theme] .no-results { border: 0; border-radius: 0; color: var(--theme-muted); }
.juice-menu[data-menu-theme] .menu-footer { width: min(100% - 48px, 900px); margin: 0 auto; padding: 32px 0 24px; border: 0; border-top: 1px solid var(--theme-border); border-radius: 0; background: none; box-shadow: none; color: var(--theme-ink); }
.juice-menu[data-menu-theme] .footer-message > p:first-child,
.juice-menu[data-menu-theme] .footer-message h2 span { color: var(--theme-primary); }
.juice-menu[data-menu-theme] .footer-message h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; }
.juice-menu[data-menu-theme] .footer-note,
.juice-menu[data-menu-theme] .footer-bottom { color: var(--theme-muted); }
.juice-menu[data-menu-theme] .loyalty-card { width: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--theme-ink); transform: none; }
.juice-menu[data-menu-theme] .loyalty-brand { border: 0; }
.juice-menu[data-menu-theme] .qr-placeholder { border: 0; color: var(--theme-primary); }
.juice-menu[data-menu-theme] .loyalty-card small { color: var(--theme-muted); }
.juice-menu[data-menu-theme] .footer-actions { gap: 24px; padding: 12px 0; border: 0; }
.juice-menu[data-menu-theme] .footer-actions a { padding: 0; border: 0; border-radius: 0; background: none; color: var(--theme-muted); }
.juice-menu[data-menu-theme] .back-to-top { border: 0; border-radius: 0; background: var(--theme-bg); box-shadow: none; color: var(--theme-primary); }
.juice-menu[data-menu-theme] button:focus-visible,
.juice-menu[data-menu-theme] a:focus-visible,
.juice-menu[data-menu-theme] summary:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 4px; }

/* The settings disclosure stays readable above the open canvas. */
.menu-settings { position: relative; z-index: 25; }
.menu-settings summary { width: 44px; height: 44px; list-style: none; background: none; border-radius: 0; cursor: pointer; }
.menu-settings summary::-webkit-details-marker { display: none; }
.menu-settings-panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(290px, calc(100vw - 60px)); padding: 16px; border-bottom: 1px solid var(--theme-border); background: var(--theme-bg); color: var(--theme-ink); }
.theme-heading { margin: 0 0 12px; font-size: .875rem; font-weight: 750; }
.theme-options { display: grid; gap: 4px; }
.theme-option { display: flex; width: 100%; min-height: 56px; align-items: center; gap: 12px; padding: 10px 0; border: 0; background: none; color: var(--theme-ink); font: inherit; font-size: .875rem; text-align: right; cursor: pointer; }
.theme-option small { display: block; margin-top: 3px; color: var(--theme-muted); font-size: .75rem; }
.theme-preview { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; }
[data-theme="mint"] .theme-preview { background: #205c4b; }
[data-theme="citrus"] .theme-preview { background: #a3421c; }
[data-theme="berry"] .theme-preview { background: #70365d; }
[data-theme="midnight"] .theme-preview { background: #203746; }
.theme-check { width: 20px; height: 20px; margin-inline-start: auto; opacity: 0; fill: none; stroke: var(--theme-primary); stroke-width: 2; }
.theme-option[aria-pressed="true"] .theme-check { opacity: 1; }
@media (max-width: 699px) {
  .juice-menu[data-menu-theme] .menu-page { width: calc(100% - 32px); padding-top: 12px; }
  .juice-menu[data-menu-theme] .menu-hero-content { margin-top: 28px; }
  .juice-menu[data-menu-theme] .menu-hero-benefits { gap: 24px; }
  .juice-menu[data-menu-theme] .category-feature { grid-template-columns: 1fr 1fr; gap: 12px; }
  .juice-menu[data-menu-theme] .feature-copy { gap: 7px; }
  .juice-menu[data-menu-theme] .feature-copy h4 { font-size: 1.25rem; }
  .juice-menu[data-menu-theme] .feature-copy .feature-description { font-size: .8rem; line-height: 1.75; }
  .juice-menu[data-menu-theme] .feature-price strong { font-size: 1.2rem; }
  .juice-menu[data-menu-theme] .feature-price span { font-size: .65rem; }
  .juice-menu[data-menu-theme] .feature-art { height: 200px; }
  .juice-menu[data-menu-theme] .feature-art img { max-height: 200px; }
  .juice-menu[data-menu-theme] .item-rail { gap: 16px; }
  .juice-menu[data-menu-theme] .menu-option { width: max(132px, calc((100% - 16px) / 2)); flex-basis: max(132px, calc((100% - 16px) / 2)); min-height: 172px; gap: 8px; }
  .juice-menu[data-menu-theme] .menu-option img { height: 104px; }
  .juice-menu[data-menu-theme] .menu-footer { width: calc(100% - 32px); }
}
.juice-menu[data-menu-theme] .menu-option[hidden],
.juice-menu[data-menu-theme] .category-showcase[hidden] { display: none; }

@media (max-width: 699px) {
  .juice-menu[data-menu-theme] .category-heading { gap: 7px; margin-bottom: 7px; }
  .juice-menu[data-menu-theme] .category-heading h3 { font-size: .85rem; }
  .juice-menu[data-menu-theme] .category-count { font-size: .65rem; }
  .juice-menu[data-menu-theme] .feature-title { gap: 6px; }
  .juice-menu[data-menu-theme] .product-badge { font-size: .65rem; }
  .juice-menu[data-menu-theme] .feature-price { flex-wrap: wrap; gap: 4px; }
}

/* Center interior products; keep the end products flush with the rail edges. */
.juice-menu[data-menu-theme] .item-rail { scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.juice-menu[data-menu-theme] .menu-option { scroll-snap-align: center; scroll-snap-stop: always; }
@media (prefers-reduced-motion: reduce) {
  .juice-menu[data-menu-theme] .item-rail { scroll-behavior: auto; }
}
