/**
 * HF Staging Mobile Menu — Figma Make layout
 * Scoped under #hf-mm-root / .hf-mm — does not edit Salient style.css
 */

#hf-mm-root.hf-mm {
  --hf-mm-ink: #271f18;
  --hf-mm-ink-muted: #71685e;
  --hf-mm-canvas: #e9e2d7;
  --hf-mm-surface: #fffaf1;
  --hf-mm-surface-raised: #fff;
  --hf-mm-line: #e4d8c7;
  --hf-mm-accent: #c9432b;
  --hf-mm-accent-dark: #a93320;
  --hf-mm-accent-soft: #f8e4da;
  --hf-mm-success: #3b7656;
  --hf-mm-font-sans: "DM Sans", sans-serif;
  --hf-mm-font-display: "Instrument Serif", serif;
  --hf-mm-font-logo: "Playfair Display", serif;
  /* Above LiveChat (#chat-widget-container is 2147483639). */
  --hf-mm-z: 2147483646;

  color: var(--hf-mm-ink);
  font-family: var(--hf-mm-font-sans);
  box-sizing: border-box;
}

#hf-mm-root.hf-mm *,
#hf-mm-root.hf-mm *::before,
#hf-mm-root.hf-mm *::after {
  box-sizing: border-box;
}

#hf-mm-root.hf-mm[hidden] {
  display: none !important;
}

#hf-mm-root.hf-mm.is-open {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: var(--hf-mm-z);
}

#hf-mm-root.hf-mm svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  width: 1.5rem;
  height: 1.5rem;
}

.hf-mm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 31, 24, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}

#hf-mm-root.hf-mm.is-open .hf-mm__backdrop {
  opacity: 1;
}

.hf-mm__drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 30rem);
  max-width: 100vw;
  background: var(--hf-mm-surface);
  box-shadow: 0 0 3rem #271f181f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(104%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#hf-mm-root.hf-mm.is-open .hf-mm__drawer {
  transform: translateX(0);
}

.hf-mm__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  flex: none;
}

.hf-mm__brand {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hf-mm__brand > span {
  font-family: var(--hf-mm-font-logo);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 1.75rem;
  line-height: 0.9;
  color: var(--hf-mm-ink);
}

.hf-mm__brand small {
  color: var(--hf-mm-accent);
  font-family: var(--hf-mm-font-logo);
  font-weight: 400;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  font-style: italic;
}

.hf-mm__header-actions {
  display: flex;
  gap: 0.2rem;
}

.hf-mm__icon-btn {
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: grid;
  position: relative;
  color: var(--hf-mm-ink);
  text-decoration: none;
}

.hf-mm__icon-btn:hover {
  background: var(--hf-mm-accent-soft);
}

/*
 * Cart count badge — copy site header `#hf-header-cart-count` centering:
 * inline-flex + tabular-nums + line-height (height − border), no SVG
 * (global `#hf-mm-root svg { 1.5rem }` was clipping SVG digits).
 * Narrow “1”: slight optical translate on the inner span.
 */
.hf-mm__badge {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  color: #ffffff;
  background: var(--hf-mm-accent);
  border: 2px solid var(--hf-mm-surface);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
  font-family: "DM Sans", system-ui, sans-serif;
  text-align: center;
}

.hf-mm__badge.is-wide {
  width: auto;
  min-width: 20px;
  padding: 0 4px;
}

.hf-mm__badge-num {
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* Optical: tabular/narrow “1” — calibrated between metric center and visual left bias */
  transform: translate(-0.5px, 0.35px);
}

.hf-mm__badge.is-wide .hf-mm__badge-num {
  transform: none;
}

.hf-mm__badge.is-empty {
  display: none !important;
}

.hf-mm__search {
  border: 1px solid var(--hf-mm-line);
  color: var(--hf-mm-ink-muted);
  background: var(--hf-mm-surface-raised);
  border-radius: 999px;
  align-items: center;
  gap: 0.7rem;
  display: flex;
  flex: none;
}

.hf-mm__search svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
}

.hf-mm__search input[type="search"] {
  width: 100%;
  min-height: 3rem;
  color: var(--hf-mm-ink);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  font: inherit;
  line-height: 1.25;
  -webkit-appearance: none;
  appearance: none;
}

.hf-mm__search input::placeholder {
  color: #9a9188;
  line-height: inherit;
  opacity: 1;
}

.hf-mm__product-search {
  margin: 0.25rem 1.25rem 1rem;
  /* No right padding — submit is the pill’s right end-cap */
  padding: 0 0 0 1rem;
  gap: 0.55rem;
  overflow: hidden; /* clip button to pill radius */
  height: 3rem;
  min-height: 3rem;
  /* Icon + field centered; end-cap stretches via align-self */
  align-items: center;
}

/* Magnifier: true vertical center (don’t stretch with the end-cap) */
.hf-mm__product-search > svg {
  align-self: center;
  display: block;
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
}

.hf-mm__product-search input[type="search"] {
  align-self: center;
  height: 1.5rem;
  min-height: 0;
  max-height: 1.5rem;
  line-height: 1.5rem;
  padding: 0;
  margin: 0;
}

.hf-mm__product-search input[type="search"]::-webkit-search-decoration,
.hf-mm__product-search input[type="search"]::-webkit-search-cancel-button,
.hf-mm__product-search input[type="search"]::-webkit-search-results-button,
.hf-mm__product-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.hf-mm__search-submit {
  flex: none;
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: auto;
  min-height: 0;
  /* Bleed into the 1px pill border so terracotta is flush with the outer edge */
  margin: -1px -1px -1px 0;
  /* Slight right padding so chevron optical-centers in the rounded end-cap */
  padding: 0 0.2rem 0 0.05rem;
  border: 0 !important;
  /* Flush end-cap — !important beats theme button { border-radius: 2px } */
  border-radius: 0 !important;
  border-top-right-radius: 999px !important;
  border-bottom-right-radius: 999px !important;
  background: var(--hf-mm-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: none !important;
  line-height: 0;
}

.hf-mm__search-submit svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  /* Optical nudge: rounded right end makes a true center look a hair right */
  transform: translateX(-1px);
}

.hf-mm__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hf-mm__tabs {
  border-bottom: 1px solid var(--hf-mm-line);
  grid-template-columns: repeat(3, 1fr);
  padding: 0 1.25rem;
  display: grid;
  flex: none;
}

.hf-mm__tab {
  color: var(--hf-mm-ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0.9rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  position: relative;
}

.hf-mm__tab::after {
  background: var(--hf-mm-accent);
  content: "";
  opacity: 0;
  border-radius: 3px 3px 0 0;
  height: 3px;
  transition: all 0.18s;
  position: absolute;
  bottom: -1px;
  left: 1rem;
  right: 1rem;
  transform: scaleX(0.5);
}

.hf-mm__tab.is-active {
  color: var(--hf-mm-ink);
}

.hf-mm__tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hf-mm__scroll {
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hf-mm__panel {
  padding: 1.4rem 1.25rem 2rem;
}

.hf-mm__panel[hidden] {
  display: none !important;
}

/* Brand search sets [hidden] on .hf-mm__row; display:flex otherwise wins */
.hf-mm [hidden] {
  display: none !important;
}

.hf-mm__section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
}

.hf-mm__section-heading h2 {
  font-family: var(--hf-mm-font-display);
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  color: var(--hf-mm-ink);
  line-height: 1.1;
}

.hf-mm__shop-all {
  border: 1px solid var(--hf-mm-accent);
  color: #fff;
  background: var(--hf-mm-accent);
  cursor: pointer;
  border-radius: 999px;
  order: 2;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  text-decoration: none;
  flex: none;
}

.hf-mm__shop-all:hover {
  color: #fff;
  border-color: var(--hf-mm-accent-dark);
  background: var(--hf-mm-accent-dark);
}

.hf-mm__shop-all svg {
  width: 1rem;
  height: 1rem;
}

.hf-mm__brand-heading {
  margin-bottom: 1rem;
}

.hf-mm__brand-search {
  background: #f7eee2;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.hf-mm__link-list {
  border-top: 1px solid var(--hf-mm-line);
}

.hf-mm__row {
  border: 0;
  border-bottom: 1px solid var(--hf-mm-line);
  text-align: left;
  cursor: pointer;
  background: transparent;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 3.35rem;
  padding: 0 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

.hf-mm__row svg {
  color: #aa9f92;
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.15s;
  flex: none;
}

.hf-mm__row:hover {
  color: var(--hf-mm-accent);
}

.hf-mm__row:hover svg {
  transform: translateX(0.2rem);
}

.hf-mm__empty {
  color: var(--hf-mm-ink-muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

.hf-mm__info-card {
  border: 1px solid var(--hf-mm-line);
  background: var(--hf-mm-surface-raised);
  border-radius: 1rem;
  overflow: hidden;
}

.hf-mm__info-row {
  border: 0;
  border-bottom: 1px solid var(--hf-mm-line);
  text-align: left;
  cursor: pointer;
  background: transparent;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 4rem;
  padding: 0 1rem;
  font-weight: 600;
  display: grid;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

.hf-mm__info-row:last-child {
  border-bottom: 0;
}

.hf-mm__info-row > svg:last-child {
  color: #aa9f92;
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.15s;
}

.hf-mm__info-row:hover > svg:last-child {
  transform: translateX(0.2rem);
}

.hf-mm__info-icon,
.hf-mm__chat-icon {
  width: 2.3rem;
  height: 2.3rem;
  color: var(--hf-mm-accent);
  background: var(--hf-mm-accent-soft);
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.hf-mm__info-icon svg,
.hf-mm__chat-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hf-mm__chat-card {
  border: 1px solid var(--hf-mm-line);
  background: var(--hf-mm-surface-raised);
  text-align: left;
  cursor: pointer;
  border-radius: 1rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 1rem;
  display: grid;
  position: relative;
  font-family: inherit;
  color: inherit;
}

.hf-mm__chat-card strong,
.hf-mm__chat-card small {
  display: block;
}

.hf-mm__chat-card strong {
  font-size: 0.95rem;
}

.hf-mm__chat-card small {
  color: var(--hf-mm-ink-muted);
  margin-top: 0.15rem;
  font-size: 0.72rem;
}

.hf-mm__online-dot {
  background: var(--hf-mm-success);
  border-radius: 50%;
  width: 0.6rem;
  height: 0.6rem;
  box-shadow: 0 0 0 0.25rem #3b765626;
}

.hf-mm__delivery-btn {
  color: #fff;
  background: var(--hf-mm-accent);
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 0.85rem;
  font-weight: 700;
  display: flex;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.hf-mm__shop-all {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.hf-mm__delivery-btn:hover {
  background: var(--hf-mm-accent-dark);
  color: #fff;
}

.hf-mm__delivery-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Chrome SHOP CTA above search — must stay in-frame */
.hf-mm__delivery-btn.hf-mm__shop-chrome {
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  align-self: stretch;
  margin: 0.15rem 1.25rem 0.65rem;
  min-width: 0;
  flex: none;
}

.hf-mm__account {
  padding: 0.9rem 1.25rem max(0.9rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hf-mm-line);
  background: color-mix(in srgb, var(--hf-mm-surface) 94%, transparent);
  -webkit-backdrop-filter: blur(0.8rem);
  backdrop-filter: blur(0.8rem);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
  flex: none;
}

.hf-mm__eyebrow {
  color: var(--hf-mm-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 700;
}

.hf-mm__account-actions {
  gap: 0.45rem;
  display: flex;
}

.hf-mm__account-actions a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  min-height: 2.55rem;
  padding: 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.hf-mm__login {
  border: 1px solid var(--hf-mm-line);
  background: transparent;
  color: var(--hf-mm-ink);
}

.hf-mm__register {
  border: 1px solid var(--hf-mm-ink);
  color: var(--hf-mm-surface);
  background: var(--hf-mm-ink);
}

body.hf-mm-lock {
  overflow: hidden !important;
}

/*
 * Suppress the classic .header-mobile panel only when the new drawer shell
 * is actually in the DOM. (Do NOT key off body.hf-staging-mm-active alone —
 * stale Rocket HTML can ship the body class + CSS without #hf-mm-root/JS,
 * which left the hamburger dead on /shop/.)
 */
body:has(#hf-mm-root) .header-mobile,
html.hf-staging-mm-active .header-mobile {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(100%) !important;
  opacity: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.hf-mm-open #slide-out-widget-area,
body.hf-mm-open #slide-out-widget-area-bg {
  visibility: hidden !important;
  pointer-events: none !important;
}

/*
 * LiveChat (#chat-widget-container z-index 2147483639) sits above the drawer
 * and steals the second ☰ open. Hard-hide while open; JS MutationObserver
 * re-applies if LC reinjects. Hamburger stays above LC when closed.
 */
body.hf-mm-open #chat-widget-container,
body.hf-mm-open #chat-widget-minimized,
body.hf-mm-open iframe#chat-widget,
body.hf-mm-open iframe#chat-widget-minimized,
body.hf-mm-open .chaty-widget,
body.hf-mm-open #chaty,
body.hf-mm-open [id^="chat-widget"],
html.hf-mm-lc-suppressed #chat-widget-container,
html.hf-mm-lc-suppressed #chat-widget-minimized,
html.hf-mm-lc-suppressed iframe#chat-widget,
html.hf-mm-lc-suppressed iframe#chat-widget-minimized,
html.hf-mm-lc-suppressed [id^="chat-widget"],
body.hf-mm-lc-suppressed #chat-widget-container,
body.hf-mm-lc-suppressed #chat-widget-minimized,
body.hf-mm-lc-suppressed iframe#chat-widget,
body.hf-mm-lc-suppressed iframe#chat-widget-minimized,
body.hf-mm-lc-suppressed [id^="chat-widget"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  z-index: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* ☰ must stay clickable when menu is closed — LiveChat must not cover it */
html.hf-staging-mm-active .header-toogle,
html.hf-staging-mm-active .header-toogle-wrap,
html.hf-staging-mm-active .slide-out-widget-area-toggle,
body.hf-staging-mm-active .header-toogle,
body.hf-staging-mm-active .header-toogle-wrap,
body.hf-staging-mm-active .slide-out-widget-area-toggle {
  position: relative;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

/* Pin open drawer above LC even if LC reinjects inline z-index */
#hf-mm-root.hf-mm.is-open {
  z-index: 2147483646 !important;
}

/* Swap hamburger ↔ close icons in custom header toggle */
.header-toogle.hf-mm-toggle-open .lucide-menu {
  display: none !important;
}
.header-toogle.hf-mm-toggle-open .lucide-x {
  display: inline-flex !important;
}
.header-toogle:not(.hf-mm-toggle-open) .lucide-x {
  display: none !important;
}

@media (width <= 25rem) {
  .hf-mm__topbar,
  .hf-mm__panel,
  .hf-mm__tabs {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hf-mm__delivery-btn.hf-mm__shop-chrome,
  .hf-mm__product-search {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .hf-mm__icon-btn {
    width: 2.4rem;
  }

  .hf-mm__account {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hf-mm__account-actions {
    width: 100%;
  }
}

/* Desktop / large: do not intercept — hide root if somehow opened via JS guard */
@media (min-width: 1000px) {
  #hf-mm-root.hf-mm {
    /* Still available if hamburger shows; layout stays fine */
  }
}


/*
 * Staging cold-anon: theme age gate (#ageGateBackdrop, z-index 9999) covers
 * the cream-header hamburger after 5s. Keep it from eating ☰ taps while this
 * menu is loaded. (Bypass script also clears body.age-popup-active.)
 */
html.hf-staging-mm-active #ageGateBackdrop,
body.hf-staging-mm-active #ageGateBackdrop,
body.hf-staging-mm-active.age-popup-active #ageGateBackdrop {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
