/* Header organization only; every existing MH color is preserved. */
.mh-local .mh-header-inner {
  display: grid; grid-template-columns: minmax(0, 1fr);
  align-items: center; column-gap: 0; row-gap: 4px;
  padding-block: 12px 8px;
}
.mh-local .mh-header-inner > .mh-brand {
  grid-column: 1; grid-row: 1; justify-content: center; flex-direction: column;
  gap: 3px; text-align: center; justify-self: center;
}
.mh-local .mh-brand-name { text-align: center; }
.mh-local .mh-header-tools { grid-column: 1; grid-row: 2; justify-self: center; position: relative; }
.mh-header-tools { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 24px); min-width: 0; }
.mh-local .mh-header-tools > a,
.mh-local .mh-header-search > summary {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 10px;
  border-radius: 22px; text-decoration: none; color: var(--mh-heading);
  position: relative; transition: transform .18s, color .18s;
}
.mh-header-tools .mh-nav-icon { width: 24px; height: 24px; display: block; flex: none; }
.mh-local .mh-header-search { position: static; }
.mh-header-search > summary { list-style: none; cursor: pointer; }
.mh-header-search > summary::-webkit-details-marker { display: none; }
.mh-local .mh-header-search form {
  position: absolute; left: 50%; right: auto; transform: translateX(-50%); top: calc(100% + 10px); z-index: 110;
  width: min(440px, calc(100vw - 32px)); max-height: 65dvh; overflow-y: auto;
}
.mh-local .mh-header-search input[type=search] { min-width: 0; min-height: 44px; font: inherit; }
.mh-header-search form button { flex: none; }
.mh-local .mh-header-tools .mh-cart-badge { top: -2px; inset-inline-end: -2px; }
.mh-local .mh-responsive-nav {
  display: flex; grid-column: 1 / -1; grid-row: 3; align-items: center;
  justify-content: center; gap: 4px 12px; flex-wrap: wrap; margin: 0; width: 100%;
}
.mh-responsive-nav .mh-nav-icon { display: none; }
.mh-local .mh-responsive-nav > .mh-nav-account,
.mh-local .mh-responsive-nav > .mh-cart-link { display: none; }
.mh-nav-disclosure { position: relative; min-width: 0; }
.mh-local .mh-nav-disclosure > summary {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 8px 12px; border-radius: 22px;
  color: var(--mh-heading); font-size: 14px; font-weight: 600; cursor: pointer;
  list-style: none; position: relative;
  transition: background-color .18s, color .18s, transform .18s;
}
.mh-nav-disclosure > summary::-webkit-details-marker { display: none; }
.mh-local .mh-nav-disclosure[open] > summary {
  background: #f0e4f6; color: #684477; box-shadow: inset 0 0 0 1px #ddc6e6;
}
.mh-local .mh-nav-panel {
  background: var(--mh-paper); border: 1px solid var(--mh-border);
  border-radius: 15px; padding: 15px; box-shadow: 0 12px 30px #52364917;
}
.mh-local .mh-nav-panel a { justify-content: flex-start; }
.mh-nav-menu .mh-nav-panel { position: absolute; right: 0; top: calc(100% + 8px); width: max-content; max-width: 85vw; z-index: 90; }
.mh-local .mh-nav-categories > summary { display: none; }
.mh-local .mh-nav-categories > .mh-nav-panel {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px;
  padding: 0; background: transparent; border: 0; box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .mh-local .mh-nav-disclosure > summary:hover,
  .mh-local .mh-header-tools > a:hover { color: #ae2a59; transform: translateY(-2px); }
}
.mh-local .mh-nav-disclosure > summary:active { transform: scale(.96); }
/* Preserve the previously approved storefront organization. */
.mh-local .mh-storefront .mh-hero { margin-bottom: clamp(24px, 3vw, 42px); }
.mh-local .mh-storefront .woocommerce ul.products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px);
}
.mh-local .mh-storefront .woocommerce ul.products::before,
.mh-local .mh-storefront .woocommerce ul.products::after { content: none; }
.mh-local .mh-storefront .woocommerce ul.products li.product { float: none; width: 100%; margin: 0; min-width: 0; }
@media (max-width: 900px) {
  .mh-local { --mh-mobile-nav-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .mh-local:not(:has(.mh-ambient-player button:not([hidden]))) { --mh-mobile-nav-bottom: env(safe-area-inset-bottom, 0px); }
  .mh-local .mh-header-inner { grid-template-columns: minmax(0, 1fr); padding-block: 8px 12px; }
  .mh-local .mh-responsive-nav {
    position: fixed; inset-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px));
    bottom: var(--mh-mobile-nav-bottom); z-index: 72;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    width: auto; align-items: stretch; gap: 0; margin: 0; padding: 6px 4px;
    background: var(--mh-paper); border: 1px solid var(--mh-border); border-radius: 22px;
  }
  .mh-local .mh-responsive-nav > * { grid-column: auto; grid-row: auto; min-width: 0; }
  .mh-local .mh-responsive-nav > .mh-nav-account,
  .mh-local .mh-responsive-nav > .mh-cart-link { display: flex; }
  .mh-local .mh-responsive-nav > a, .mh-local .mh-nav-disclosure > summary {
    display: flex; flex-direction: column; gap: 3px; min-width: 44px; min-height: 52px;
    padding: 4px 2px; font-size: 12px; line-height: 1.4; text-align: center;
  }
  .mh-responsive-nav > a > span:not(.mh-cart-badge), .mh-nav-disclosure > summary > span { white-space: nowrap; }
  .mh-responsive-nav .mh-nav-icon { display: block; width: 24px; height: 24px; flex: none; }
  .mh-local .mh-nav-categories > summary { display: flex; }
  .mh-nav-menu > summary > .mh-menu-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .mh-local .mh-nav-disclosure .mh-nav-panel {
    position: fixed; inset-inline: 12px; top: auto;
    bottom: calc(var(--mh-mobile-nav-bottom) + 76px);
    width: auto; max-width: none; max-height: calc(100dvh - 220px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    display: grid; justify-content: normal; gap: 4px;
    background: var(--mh-paper); border: 1px solid var(--mh-border); border-radius: 15px;
    padding: 15px; box-shadow: 0 12px 30px #52364917;
  }
  .mh-local .mh-nav-panel a { flex-direction: row; min-height: 44px; padding: 8px 12px; text-align: left; }
  .mh-local .mh-footer { padding-bottom: calc(var(--mh-mobile-nav-bottom) + 88px); }
  .mh-local .mh-storefront .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html { scroll-padding-bottom: 160px; }
}
@media (max-width: 600px) {
  .mh-local .mh-header-inner { grid-template-columns: minmax(0, 1fr); row-gap: 5px; }
  .mh-local .mh-storefront .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .mh-local .mh-nav-disclosure > summary,
  .mh-local .mh-header-tools > a { transition: none; transform: none !important; }
}

/* Keep the existing social rail clear of the open search, including landscape. */
.mh-local:has(.mh-header-search[open]) .mh-floating-socials { visibility: hidden; pointer-events: none; }

/* Bottom floating panel: color-only lavender preview, shared by every season.
   Desktop navigation and the expanded link panels keep their current palette. */
@media (max-width: 900px) {
  .mh-local .mh-nav.mh-responsive-nav {
    background-color: #8663b2;
    border-color: #d7c4ec;
  }
  .mh-local .mh-nav.mh-responsive-nav > a,
  .mh-local .mh-nav.mh-responsive-nav > .mh-nav-disclosure > summary {
    color: #fff;
    outline-color: #fff;
  }
  .mh-local .mh-nav.mh-responsive-nav > a[aria-current],
  .mh-local .mh-nav.mh-responsive-nav > .mh-nav-disclosure[open] > summary {
    background-color: #7955a5;
    color: #fff;
    box-shadow: inset 0 0 0 1px #d7c4ec;
  }
  .mh-local .mh-nav.mh-responsive-nav > a::after {
    background-color: #fff;
  }
  .mh-local .mh-nav.mh-responsive-nav > .mh-cart-link .mh-cart-badge {
    background-color: #7955a5;
    color: #fff;
    box-shadow: 0 0 0 2px #d7c4ec;
  }
}
@media (max-width: 900px) and (hover: hover) and (pointer: fine) {
  .mh-local .mh-nav.mh-responsive-nav > a:not([aria-current]):hover,
  .mh-local .mh-nav.mh-responsive-nav > .mh-nav-disclosure:not([open]) > summary:hover {
    background-color: #805bac;
    color: #fff;
  }
}
