/* Header Shop mega menu (see mega-menu.js). Self-contained: it carries its own colours so it looks the same on every page. */
header.flow-nav { position: relative; }

.mm-panel {
  position: absolute;
  z-index: 200;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 140ms ease-out, transform 140ms ease-out;
  pointer-events: none;
}

.mm-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mm-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 8px 44px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 26px 32px 28px;
  border: 1px solid rgba(var(--text-rgb, 236, 230, 220), 0.2);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--bg, #1c1b19);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: var(--text, #ece6dc);
  font-family: var(--f-ui, "Hanken Grotesk", system-ui, sans-serif);
}

.mm-col { min-width: 0; }
.mm-col ul { margin: 0; padding: 0; list-style: none; }

.mm-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--text-rgb, 236, 230, 220), 0.12);
  color: var(--dim, #a9a298);
  font: 400 11px/1 var(--f-mono, "Azeret Mono", ui-monospace, Consolas, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  color: var(--text, #ece6dc) !important;
  text-decoration: none !important;
}

.mm-name {
  flex: none;
  white-space: nowrap;
  font: 600 15px/1.25 var(--f-head, "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif);
  letter-spacing: -0.005em;
  transition: color 110ms ease-out;
}

.mm-desc {
  min-width: 0;
  overflow: hidden;
  color: var(--dim, #a9a298);
  font: 400 11px/1.3 var(--f-mono, "Azeret Mono", ui-monospace, Consolas, monospace);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-link:hover .mm-name,
.mm-link:focus-visible .mm-name { color: var(--ember, #e3915a); }

.mm-link:focus-visible,
.mm-all:focus-visible { outline: 2px solid var(--ember, #e3915a); outline-offset: 2px; border-radius: 4px; }

.mm-all {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 0;
  border-bottom: 1px solid var(--ember, #e3915a);
  color: var(--ember, #e3915a) !important;
  font: 500 13px/1.2 var(--f-mono, "Azeret Mono", ui-monospace, Consolas, monospace);
  text-decoration: none !important;
}

.mm-all:hover { color: var(--ember-hover, #eca473) !important; border-bottom-color: var(--ember-hover, #eca473); }

@media (max-width: 900px) { .mm-panel, .mm-caret { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mm-panel { transition: none; transform: none; } }

/* the arrow beside "Shop": opens the menu by click, tap or keyboard */
.mm-caret {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0 0 0 -8px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--dim, #a9a298);
  cursor: pointer;
  vertical-align: middle;
  transition: color 120ms ease-out, background-color 120ms ease-out;
}
.mm-caret svg { transition: transform 140ms ease-out; }
.mm-caret:hover { color: var(--text, #ece6dc); background: rgba(var(--text-rgb, 236, 230, 220), 0.1); }
.mm-caret:focus-visible { outline: 2px solid var(--ember, #e3915a); outline-offset: 1px; }
.mm-caret[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Flash menu: four small cards, one per destination */
.mm-inner-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  width: min(880px, 100%);
  padding: 22px 24px 24px;
}

.mm-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(var(--text-rgb, 236, 230, 220), 0.12);
  border-radius: 12px;
  color: var(--text, #ece6dc) !important;
  text-decoration: none !important;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

.mm-card svg { margin-bottom: 10px; color: var(--ember, #e3915a); }
.mm-card .mm-desc { text-align: left; white-space: normal; overflow: visible; line-height: 1.4; }
.mm-card:hover,
.mm-card:focus-visible { border-color: var(--ember, #e3915a); background: rgba(var(--text-rgb, 236, 230, 220), 0.04); outline: none; }
.mm-card:hover .mm-name,
.mm-card:focus-visible .mm-name { color: var(--ember, #e3915a); }
.mm-all-wide { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

/* the two header tabs are the main navigation: a little larger than ordinary links */
@media (min-width: 901px) {
  html body header.flow-nav nav a.nav-tab {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Shop menu: the Latest card, set apart from the category columns */
.mm-inner.has-feature { grid-template-columns: 224px minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 36px; width: min(1180px, 100%); box-sizing: border-box; }

.mm-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 190px;
  margin-right: 8px;
  padding: 18px 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(var(--ember-rgb, 227, 145, 90), 0.55);
  border-radius: 14px;
  background:
    radial-gradient(circle, rgba(var(--ember-rgb, 227, 145, 90), 0.34) 1px, transparent 1.7px) 0 0 / 7px 7px,
    linear-gradient(155deg, rgba(var(--ember-rgb, 227, 145, 90), 0.26), rgba(var(--ember-rgb, 227, 145, 90), 0.05) 62%);
  -webkit-mask-image: none;
  color: var(--text, #ece6dc) !important;
  text-decoration: none !important;
  transition: border-color 120ms ease-out, transform 140ms ease-out;
}

.mm-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg, #1c1b19) 8%, rgba(var(--bg-rgb, 28, 27, 25), 0) 62%);
  pointer-events: none;
}

.mm-feature > * { position: relative; z-index: 1; }
.mm-feature:hover, .mm-feature:focus-visible { border-color: var(--ember, #e3915a); transform: translateY(-2px); outline: none; }

.mm-feature-tag {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 1;
  color: var(--ember, #e3915a);
  font: 500 10.5px/1 "Azeret Mono", ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mm-feature-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ember, #e3915a);
  vertical-align: 1px;
}

.mm-feature-name { font: 400 44px/1 var(--f-serif, "Instrument Serif", Georgia, serif); letter-spacing: -0.01em; }
.mm-feature-desc { max-width: 150px; color: var(--dim, #a9a298); font: 400 11.5px/1.4 "Azeret Mono", ui-monospace, Consolas, monospace; }

.mm-feature-go {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--ember-rgb, 227, 145, 90), 0.6);
  border-radius: 50%;
  color: var(--ember, #e3915a);
  transition: background-color 120ms ease-out, color 120ms ease-out;
}

.mm-feature:hover .mm-feature-go { background: var(--ember, #e3915a); color: var(--ember-ink, #1c1b19); }
