/* MGE Site Header — all rules scoped to #mge-header-fragment to prevent
   DecoNetwork CSS bleed-in and bleed-out. Footer uses #mge-footer-fragment
   with mge-ft-* classes. Do NOT use :root or bare element selectors at the
   top level; put them inside the fragment wrappers. */

/* ── MGE design tokens (mirrors index.html / shared.css — scoped to fragment) ── */
#mge-header-fragment {
  --color-primary: #000613;
  --color-secondary: #705d00;
  --color-secondary-container: #fcd400;
  --color-on-secondary-container: #6e5c00;
  --color-on-surface: #091b39;
  --color-on-surface-variant: #43474e;
  --color-on-tertiary-container: #3d85ed;
  --color-background: #f9f9ff;
  --color-surface-container-low: #f1f3ff;
  --color-surface-container: #e9edff;
  --color-surface-container-high: #e0e8ff;
  --color-surface-container-highest: #d8e2ff;
  --color-outline-variant: #c4c6cf;
  --font-headline: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-label: Inter, system-ui, sans-serif;
  --radius-lg: 0.25rem;
  --radius-xl: 0.5rem;
  --radius-2xl: 1rem;
  --nav-text: var(--color-on-surface);
  --nav-text-muted: var(--color-on-surface-variant);
  --header-border: color-mix(in srgb, var(--color-outline-variant) 35%, transparent);
  --header-surface: var(--color-background);
  --header-surface-subtle: var(--color-surface-container-low);
  --header-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --mega-overlay: rgba(0, 6, 19, 0.4);
  --header-z: 1000;
  --mega-z: 1001;
  font-family: var(--font-body);
  color: var(--color-on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Element resets scoped to fragment (replaces shared.css globals for the embed) ── */
#mge-header-fragment *,
#mge-header-fragment *::before,
#mge-header-fragment *::after {
  box-sizing: border-box;
  text-align: left;
}

#mge-header-fragment a {
  color: inherit;
  text-decoration: none;
}

#mge-header-fragment button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

#mge-header-fragment ul,
#mge-header-fragment ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mge-header-fragment img {
  max-width: 100%;
  height: auto;
  display: block;
}

#mge-header-fragment .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* body-level state classes — must stay at top level (intentionally unscoped) */
body.mge-header-open {
  overflow: hidden;
}

/* ── Site header shell ───────────────────────────────────────────────────── */
#mge-header-fragment .mge-site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: var(--color-background);
  font-family: var(--font-body);
  color: var(--color-on-surface);
  box-shadow: var(--header-shadow);
  border-bottom: 1px solid color-mix(in srgb, var(--color-outline-variant) 25%, transparent);
  -webkit-font-smoothing: antialiased;
}

#mge-header-fragment .mge-site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-primary) 38%,
    var(--color-secondary-container) 38%,
    var(--color-secondary-container) 100%
  );
}

/* Fallback when sticky is broken by a host-page overflow container (e.g. DecoNetwork) */
#mge-header-fragment .mge-site-header.is-fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}

#mge-header-fragment.mge-fixed-header-spacer {
  padding-top: var(--mge-header-height, 0px);
}

/* ── Row 1: logo, search, utilities ─────────────────────────────────────── */
#mge-header-fragment .mge-header-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (max-width: 767px) {
  #mge-header-fragment .mge-header-top {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }
}

#mge-header-fragment .mge-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

#mge-header-fragment .mge-header-logo:hover .mge-logo-img {
  opacity: 0.88;
}

#mge-header-fragment .mge-logo-img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

#mge-header-fragment .mge-logo-mark,
#mge-header-fragment .mge-logo-text {
  display: none;
}

@media (max-width: 480px) {
  #mge-header-fragment .mge-logo-img {
    height: 2rem;
    max-width: 8rem;
  }
}

#mge-header-fragment .mge-header-search-wrap {
  flex: 1;
  max-width: 40rem;
  position: relative;
  margin: 0 auto;
}

#mge-header-fragment .mge-header-search-wrap:has(.mge-search-autocomplete.is-open) {
  z-index: 1101;
}

#mge-header-fragment .mge-header-search-form {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  background: var(--color-surface-container-highest);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 20%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#mge-header-fragment .mge-header-search-form:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-secondary-container);
  background: #fff;
}

#mge-header-fragment .mge-search-leading {
  margin-left: 0.9375rem;
  font-size: 1.125rem;
  color: var(--nav-text-muted);
  flex-shrink: 0;
  pointer-events: none;
}

#mge-header-fragment .mge-header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.6875rem 0.5rem 0.6875rem 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  outline: none;
  min-width: 0;
  font-family: var(--font-body);
}

#mge-header-fragment .mge-header-search-input::placeholder {
  color: var(--nav-text-muted);
}

#mge-header-fragment .mge-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.125rem;
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

#mge-header-fragment .mge-search-clear:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--nav-text);
}

#mge-header-fragment .mge-search-clear[hidden] {
  display: none;
}

#mge-header-fragment .mge-search-clear .material-symbols-outlined {
  font-size: 1.125rem;
}

#mge-header-fragment .mge-header-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.25rem;
  border-radius: 9999px;
  color: var(--nav-text);
  transition: background 0.15s, color 0.15s;
}

#mge-header-fragment .mge-header-search-btn:hover {
  background: var(--color-surface-container-low);
  color: var(--color-primary);
}

#mge-header-fragment .mge-header-utilities {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  #mge-header-fragment .mge-header-utilities {
    display: flex;
  }
}

#mge-header-fragment .mge-header-util-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
  transition: color 0.2s ease;
  white-space: nowrap;
}

#mge-header-fragment .mge-header-util-link:hover {
  color: var(--color-primary);
}

#mge-header-fragment .mge-header-util-link .material-symbols-outlined {
  font-size: 1.125rem;
}

#mge-header-fragment .mge-header-util-link--cart {
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: #fff !important;
  letter-spacing: 0.12em;
  transition: filter 0.2s ease;
}

#mge-header-fragment .mge-header-util-link--cart .material-symbols-outlined {
  color: #fff;
  font-size: 1rem;
}

#mge-header-fragment .mge-header-util-link--cart:hover {
  filter: brightness(1.1);
  color: #fff !important;
}

#mge-header-fragment .mge-header-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-outline-variant);
  color: var(--color-primary);
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 1024px) {
  #mge-header-fragment .mge-header-mobile-toggle {
    display: none;
  }
}

#mge-header-fragment .mge-header-mobile-toggle:hover {
  background: var(--color-surface-container-low);
  border-color: var(--color-primary);
}

/* ── Row 2: primary nav ───────────────────────────────────────────────────── */
#mge-header-fragment .mge-header-nav-row {
  display: none;
  background: var(--color-surface-container-low);
  border-top: 1px solid color-mix(in srgb, var(--color-outline-variant) 15%, transparent);
  max-width: 100%;
  margin: 0;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  #mge-header-fragment .mge-header-nav-row {
    display: block;
  }
}

#mge-header-fragment .mge-header-nav-row nav {
  max-width: 80rem;
  margin: 0 auto;
}

#mge-header-fragment .mge-primary-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
}

#mge-header-fragment .mge-nav-item {
  position: static;
}

@media (min-width: 1024px) {
  #mge-header-fragment .mge-nav-item {
    position: relative;
  }
}

#mge-header-fragment .mge-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.75rem 0.875rem;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-on-surface);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

#mge-header-fragment .mge-nav-trigger .mge-nav-caret {
  font-size: 1.125rem;
  color: var(--color-on-surface-variant);
  transition: color 0.15s ease, transform 0.15s ease;
}

#mge-header-fragment .mge-nav-item:hover .mge-nav-trigger,
#mge-header-fragment .mge-nav-item.is-open .mge-nav-trigger,
#mge-header-fragment .mge-nav-trigger:focus-visible {
  color: var(--color-primary);
  background: var(--color-surface-container-highest);
  border-bottom-color: var(--color-secondary-container);
}

#mge-header-fragment .mge-nav-item:hover .mge-nav-caret,
#mge-header-fragment .mge-nav-item.is-open .mge-nav-caret {
  color: var(--color-secondary);
}

#mge-header-fragment .mge-nav-item.is-open .mge-nav-caret {
  transform: rotate(180deg);
}

/* ── Mega-menu overlay ────────────────────────────────────────────────────── */
#mge-header-fragment .mge-mega-overlay {
  position: fixed;
  inset: 0;
  top: var(--mge-header-height, 120px);
  background: var(--mega-overlay);
  z-index: calc(var(--header-z) - 1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s;
}

#mge-header-fragment .mge-mega-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Mega-menu panel ──────────────────────────────────────────────────────── */
#mge-header-fragment .mge-mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mge-header-height, 120px);
  width: 100%;
  max-height: calc(100vh - var(--mge-header-height, 120px) - 1rem);
  overflow-y: auto;
  background: var(--color-background);
  border-top: 4px solid var(--color-secondary-container);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: var(--mega-z);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

#mge-header-fragment .mge-nav-item.is-open .mge-mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mge-header-fragment .mge-mega-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
}

#mge-header-fragment .mge-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 2rem;
}

#mge-header-fragment .mge-mega-col {
  padding-right: 2rem;
  border-right: 1px solid var(--header-border);
}

#mge-header-fragment .mge-mega-col:last-child {
  padding-right: 0;
  border-right: none;
}

#mge-header-fragment .mge-mega-col h3 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-outline-variant) 25%, transparent);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment .mge-mega-col li {
  margin-bottom: 0.4375rem;
}

#mge-header-fragment .mge-mega-col a {
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--color-on-surface);
  transition: color 0.15s ease;
  display: inline-block;
  text-decoration: none;
  padding: 0.2rem 0;
}

#mge-header-fragment .mge-mega-col a:hover,
#mge-header-fragment .mge-mega-col a:focus-visible {
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-color: var(--color-secondary-container);
  text-underline-offset: 3px;
}

#mge-header-fragment .mge-mega-badge {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
  border-radius: var(--radius-default, 0.125rem);
  vertical-align: middle;
}

/* ── Custom Apparel mega (categories + gender pane) ─────────────────────── */
#mge-header-fragment #mega-custom-apparel,
#mge-header-fragment #mega-promotional {
  position: fixed;
}

#mge-header-fragment #mega-custom-apparel::before,
#mge-header-fragment #mega-promotional::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

#mge-header-fragment .mge-mega-apparel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: 0;
  align-items: stretch;
}

@media (max-width: 1100px) {
  #mge-header-fragment .mge-mega-apparel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

#mge-header-fragment .mge-mega-apparel-cols {
  padding-right: 1.5rem;
  border-right: 1px solid var(--header-border);
}

@media (max-width: 1100px) {
  #mge-header-fragment .mge-mega-apparel-cols {
    padding-right: 0;
    border-right: none;
  }
}

#mge-header-fragment .mge-mega-grid--apparel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.5rem;
}

#mge-header-fragment .mge-mega-grid--promo {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  #mge-header-fragment .mge-mega-grid--apparel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  #mge-header-fragment .mge-mega-grid--apparel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#mge-header-fragment .mge-mega-grid--apparel .mge-mega-col {
  padding-right: 1.5rem;
  border-right: 1px solid var(--header-border);
}

#mge-header-fragment .mge-mega-grid--apparel .mge-mega-col:last-child {
  padding-right: 0;
  border-right: none;
}

#mge-header-fragment .mge-mega-section-title {
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-outline-variant) 25%, transparent);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment .mge-mega-section-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-on-surface);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn[data-mge-has-subnav]::after {
  content: 'chevron_right';
  font-family: 'Material Symbols Outlined';
  font-size: 1rem;
  line-height: 1;
  color: var(--color-outline);
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn:hover::after,
#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn:focus-visible::after,
#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn.is-active::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-secondary);
}

#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn:hover,
#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn:focus-visible,
#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn.is-active {
  color: var(--color-primary);
  background: var(--color-surface-container-low);
  border-color: color-mix(in srgb, var(--color-outline-variant) 25%, transparent);
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn.is-active {
  box-shadow: inset 3px 0 0 var(--color-secondary-container);
}

#mge-header-fragment .mge-mega-grid--apparel .mge-category-btn.is-pinned {
  font-weight: 700;
  background: var(--color-surface-container);
}

#mge-header-fragment .mge-mega-apparel-subnav {
  padding: 1.5rem;
  background: var(--color-surface-container-low);
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 15%, transparent);
  border-radius: var(--radius-xl);
  min-height: 12rem;
  position: sticky;
  top: 0;
}

@media (max-width: 1100px) {
  #mge-header-fragment .mge-mega-apparel-subnav {
    padding: 1.25rem;
  }
}

#mge-header-fragment .mge-subnav-heading {
  margin: 0 0 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-outline-variant) 20%, transparent);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
  line-height: 1.4;
}

#mge-header-fragment #mge-mega-gender-pane-content,
#mge-header-fragment #mge-mega-promo-pane-content {
  min-height: 8rem;
}

#mge-header-fragment .mge-gender-pane-placeholder {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-on-surface-variant);
  line-height: 1.5;
}

#mge-header-fragment .mge-gender-pane-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment .mge-gender-options {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

#mge-header-fragment .mge-gender-option-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem 1rem;
  min-height: 3.5rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-primary);
  text-align: left;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 18%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#mge-header-fragment .mge-gender-option-btn:hover,
#mge-header-fragment .mge-gender-option-btn:focus-visible {
  background: var(--color-surface-container);
  border-color: color-mix(in srgb, var(--color-secondary-container) 55%, transparent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  outline: none;
}

#mge-header-fragment .mge-gender-option-btn > .material-symbols-outlined:first-child {
  font-size: 1.25rem;
  color: var(--color-on-surface-variant);
  flex-shrink: 0;
}

#mge-header-fragment .mge-gender-option-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.1rem;
  min-width: 0;
}

#mge-header-fragment .mge-gender-option-text strong {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
}

#mge-header-fragment .mge-gender-option-text small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment .mge-gender-option-arrow {
  font-size: 1rem;
  color: var(--color-outline);
  flex-shrink: 0;
}

/* Mobile apparel category rows */
#mge-header-fragment .mge-mobile-apparel-panel h4 {
  margin: 0.875rem 0 0.35rem;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment .mge-mobile-apparel-panel h4:first-child {
  margin-top: 0.25rem;
}

#mge-header-fragment .mge-mobile-category-row {
  margin-bottom: 0.5rem;
}

#mge-header-fragment .mge-mobile-category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-on-surface);
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#mge-header-fragment .mge-mobile-category-btn:hover,
#mge-header-fragment .mge-mobile-category-btn[aria-expanded="true"] {
  color: var(--color-primary);
  background: var(--color-surface-container-low);
  border-color: color-mix(in srgb, var(--color-outline-variant) 20%, transparent);
}

#mge-header-fragment .mge-mobile-gender-panel {
  display: none;
  padding: 0.25rem 0 0.5rem 0.75rem;
}

#mge-header-fragment .mge-mobile-gender-panel.is-open {
  display: block;
}

#mge-header-fragment .mge-mobile-gender-links {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

#mge-header-fragment .mge-mobile-gender-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: background 0.15s ease, color 0.15s ease;
}

#mge-header-fragment .mge-mobile-gender-link:hover {
  color: var(--color-primary);
  background: var(--color-surface-container-low);
}

/* ── Design Lab rich panel ───────────────────────────────────────────────── */
#mge-header-fragment .mge-mega-design {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

#mge-header-fragment .mge-design-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

#mge-header-fragment .mge-design-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.125rem;
  background: var(--color-surface-container-low);
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 10%, transparent);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#mge-header-fragment .mge-design-feature:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

#mge-header-fragment .mge-design-feature .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--color-primary);
  background: var(--color-secondary-container);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

#mge-header-fragment .mge-design-feature strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

#mge-header-fragment .mge-design-feature span {
  font-size: 0.8125rem;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment .mge-design-copy {
  padding: 1.5rem;
  background: var(--color-surface-container);
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 10%, transparent);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#mge-header-fragment .mge-design-copy h3 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  text-transform: none;
  border: none;
  padding: 0;
}

#mge-header-fragment .mge-design-copy p {
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--color-on-surface-variant);
  margin: 0 0 1.25rem;
}

#mge-header-fragment .mge-design-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#mge-header-fragment .mge-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  background: var(--color-primary);
  color: #fff !important;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-lg);
  transition: filter 0.2s ease;
  text-decoration: none !important;
}

#mge-header-fragment .mge-btn-primary:hover {
  filter: brightness(1.1);
}

#mge-header-fragment .mge-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--color-outline-variant);
  color: var(--color-on-surface) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
}

#mge-header-fragment .mge-btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-container-low);
  color: var(--color-on-surface) !important;
}

/* ── Mobile drawer ────────────────────────────────────────────────────────── */
#mge-header-fragment .mge-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
}

#mge-header-fragment .mge-mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

#mge-header-fragment .mge-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: var(--mega-overlay);
  opacity: 0;
  transition: opacity 0.2s;
}

#mge-header-fragment .mge-mobile-drawer.is-open .mge-mobile-backdrop {
  opacity: 1;
}

#mge-header-fragment .mge-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 380px);
  background: var(--header-surface);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-on-surface);
}

#mge-header-fragment .mge-mobile-drawer.is-open .mge-mobile-panel {
  transform: translateX(0);
}

#mge-header-fragment .mge-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-surface-subtle);
}

#mge-header-fragment .mge-mobile-head .mge-header-logo {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  flex-direction: row;
  gap: 0;
}

#mge-header-fragment .mge-mobile-head .mge-logo-mark,
#mge-header-fragment .mge-mobile-head .mge-logo-text {
  display: none;
}

#mge-header-fragment .mge-mobile-head button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  color: var(--nav-text);
}

#mge-header-fragment .mge-mobile-head button:hover {
  background: rgba(0, 0, 0, 0.06);
}

#mge-header-fragment .mge-mobile-nav {
  flex: 1;
  padding: 0.5rem 0;
}

#mge-header-fragment .mge-mobile-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--nav-text);
  text-align: left;
}

#mge-header-fragment .mge-mobile-accordion-btn .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment .mge-mobile-accordion-btn[aria-expanded="true"] {
  color: var(--color-primary);
  background: var(--color-surface-container-highest);
  border-left: 3px solid var(--color-secondary-container);
}

#mge-header-fragment .mge-mobile-accordion-panel {
  display: none;
  padding: 0 1.25rem 1rem;
}

#mge-header-fragment .mge-mobile-accordion-panel.is-open {
  display: block;
}

#mge-header-fragment .mge-mobile-accordion-panel a {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

#mge-header-fragment .mge-mobile-accordion-panel a:hover {
  color: var(--color-secondary);
}

#mge-header-fragment .mge-mobile-accordion-panel h4 {
  margin: 0.75rem 0 0.25rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.45);
}

#mge-header-fragment .mge-mobile-search {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-surface);
}

#mge-header-fragment .mge-mobile-search .mge-header-search-wrap {
  margin: 0;
  max-width: none;
  overflow: visible;
}

#mge-header-fragment .mge-mobile-search .mge-search-autocomplete {
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
  max-height: min(20rem, 45vh);
  -webkit-overflow-scrolling: touch;
}

/* ── Search autocomplete ─────────────────────────────────────────────────── */
#mge-header-fragment .mge-search-autocomplete {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(52rem, calc(100vw - 2rem));
  top: calc(100% + 8px);
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-outline-variant);
  z-index: 1100;
  max-height: min(32rem, 70vh);
  overflow-y: auto;
}

#mge-header-fragment .mge-search-autocomplete.is-open {
  display: block;
}

#mge-header-fragment .mge-ac-body {
  padding: 0.35rem 0 0.75rem;
  min-height: 8rem;
}

#mge-header-fragment .mge-ac-section--recents {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}

#mge-header-fragment .mge-ac-heading {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
}

#mge-header-fragment .mge-ac-brands {
  padding: 0.25rem 0.5rem;
}

#mge-header-fragment .mge-ac-brands li {
  margin: 0;
}

#mge-header-fragment .mge-ac-recent-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#mge-header-fragment .mge-ac-brand {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--nav-text);
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

#mge-header-fragment .mge-ac-recent-row .mge-ac-brand {
  flex: 1;
}

#mge-header-fragment .mge-ac-brand strong {
  font-weight: 700;
}

#mge-header-fragment .mge-ac-brand:hover,
#mge-header-fragment .mge-ac-brand:focus-visible {
  background: var(--color-surface-container-low);
  outline: none;
}

#mge-header-fragment .mge-ac-recent-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 6px;
  color: rgba(0, 0, 0, 0.35);
}

#mge-header-fragment .mge-ac-recent-delete:hover {
  background: rgba(0, 0, 0, 0.06);
}

#mge-header-fragment .mge-ac-recent-delete .material-symbols-outlined {
  font-size: 1.125rem;
}

#mge-header-fragment .mge-ac-styles {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1rem 0.5rem;
}

#mge-header-fragment .mge-ac-styles-heading {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 0.75rem;
}

#mge-header-fragment .mge-ac-styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  #mge-header-fragment .mge-search-autocomplete {
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    max-height: min(22rem, 50vh);
    -webkit-overflow-scrolling: touch;
  }

  #mge-header-fragment .mge-ac-styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

#mge-header-fragment .mge-ac-product {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-on-surface);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 10%, transparent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.15s ease;
}

#mge-header-fragment .mge-ac-product:hover {
  border-color: color-mix(in srgb, var(--color-outline-variant) 30%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#mge-header-fragment .mge-ac-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--color-surface-container-low);
  padding: 0.5rem;
}

#mge-header-fragment .mge-ac-product-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#mge-header-fragment .mge-ac-product-name {
  display: block;
  padding: 0.5rem 0.625rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 400;
  text-align: center;
}

#mge-header-fragment .mge-ac-product-name strong {
  font-weight: 700;
}

#mge-header-fragment .mge-ac-loading small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

#mge-header-fragment .mge-ac-loading,
#mge-header-fragment .mge-ac-empty {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
}

#mge-header-fragment .mge-ac-empty--inline {
  padding: 0.5rem 1rem 0.75rem;
  font-size: 0.8125rem;
}

#mge-header-fragment .mge-ac-brand--query {
  font-weight: 500;
}

/* Hide native search clear on webkit */
#mge-header-fragment .mge-header-search-input::-webkit-search-cancel-button {
  display: none;
}

/* Adjust main shell when header present (body-level, intentionally unscoped) */
body.mge-has-header .main-shell {
  padding-top: 0;
}

/* Sticky layout — header pinned top, footer pinned bottom on short pages */
html.mge-sticky-layout {
  height: 100%;
}

html.mge-sticky-layout,
body.mge-sticky-layout {
  min-height: 100%;
  min-height: 100dvh;
}

body.mge-sticky-layout {
  display: flex;
  flex-direction: column;
}

body.mge-sticky-layout > #mge-header-fragment,
body.mge-sticky-layout > .mge-sticky-header-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  flex: 0 0 auto;
  width: 100%;
  align-self: stretch;
  order: 0;
}

body.mge-sticky-layout > #mge-page-fill {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  order: 1;
}

body.mge-sticky-layout > #mge-footer-fragment,
body.mge-sticky-layout > .mge-sticky-layout-anchor {
  flex: 0 0 auto;
  margin-top: auto;
  width: 100%;
  order: 99;
}

.mge-sticky-layout-chain {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 0;
}

.mge-sticky-layout-chain > #mge-footer-fragment,
.mge-sticky-layout-anchor > #mge-footer-fragment {
  margin-top: auto;
  flex-shrink: 0;
}

#mge-page-fill #mge-footer-fragment {
  margin-top: auto;
  flex-shrink: 0;
}

/* Custom homepage (index.html with .main-shell) — never restructure DOM */
body.mge-sticky-layout.mge-has-custom-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.mge-sticky-layout.mge-has-custom-page > #mge-header-fragment {
  flex-shrink: 0;
  order: 0;
}

body.mge-sticky-layout.mge-has-custom-page > .main-shell,
body.mge-sticky-layout.mge-has-custom-page > #mge-page-fill {
  flex: 1 1 auto;
  width: 100%;
  order: 1;
}

body.mge-sticky-layout.mge-has-custom-page > #mge-footer-fragment {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  order: 99;
}

body.mge-sticky-layout.mge-has-custom-page .main-shell {
  flex: 1 1 auto;
  width: 100%;
}

body.mge-sticky-layout.mge-has-custom-page #mge-footer-fragment {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

/* Hide DecoNetwork theme header spacer (inline height:50px wrapper + dnm-top-header) */
body.mge-dn-bridged #dnm-top-header-container,
body.mge-dn-bridged .dnm-top-header-container,
#mge-page-fill #dnm-top-header-container,
#mge-page-fill .dnm-top-header-container,
#mge-page-fill > div[style*="height:50px"]:has(#dnm-top-header-container),
#mge-page-fill > div[style*="height: 50px"]:has(#dnm-top-header-container),
#mge-page-fill > div[style*="height:50px"]:has(.dnm-top-header-container),
#mge-page-fill > div[style*="height: 50px"]:has(.dnm-top-header-container) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  visibility: hidden !important;
}

/* Coming Soon nav badge */
#mge-header-fragment .mge-nav-badge--soon {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f5d76e, #e8b923);
  border-radius: 999px;
  vertical-align: middle;
  flex-shrink: 0;
}

#mge-header-fragment .mge-mega-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 10rem;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0 auto;
}

#mge-header-fragment .mge-nav-item--soon .mge-mega-inner {
  display: flex;
  justify-content: center;
}

#mge-header-fragment .mge-mega-coming-soon .material-symbols-outlined {
  font-size: 2.5rem;
  color: #e8b923;
}

#mge-header-fragment .mge-mega-coming-soon h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

#mge-header-fragment .mge-mega-coming-soon p {
  margin: 0;
  max-width: 28rem;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.9375rem;
  line-height: 1.5;
}

#mge-header-fragment .mge-mobile-coming-soon {
  margin: 0;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

/* Customer Care mega panel */
#mge-header-fragment .mge-mega-grid--care {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

#mge-header-fragment .mge-care-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

#mge-header-fragment .mge-care-icon {
  font-size: 1.75rem;
  color: #c9a227;
}

#mge-header-fragment .mge-care-col h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

#mge-header-fragment .mge-care-col p {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.45;
}

#mge-header-fragment .mge-care-cta {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

#mge-header-fragment .mge-care-cta:hover {
  background: #333;
}

#mge-header-fragment .mge-mobile-care-btn {
  display: block;
  width: 100%;
  margin: 0.35rem 0;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

#mge-header-fragment .mge-mobile-care-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Modals */
body.mge-modal-open {
  overflow: hidden;
}

html.mge-modal-open {
  overflow: hidden;
}

#mge-header-fragment .mge-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#mge-header-fragment .mge-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

#mge-header-fragment .mge-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#mge-header-fragment .mge-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

#mge-header-fragment .mge-modal-panel--wide {
  max-width: 36rem;
}

#mge-header-fragment .mge-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.5);
}

#mge-header-fragment .mge-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

#mge-header-fragment .mge-modal-title {
  margin: 0 2rem 1rem 0;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
}

#mge-header-fragment .mge-modal-panel--track {
  max-width: 50rem;
  width: 100%;
  max-height: min(90vh, 90dvh);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(0, 6, 19, 0.18);
  display: flex;
  flex-direction: column;
}

#mge-header-fragment .mge-modal-head--track {
  flex-shrink: 0;
  padding: 1.75rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

#mge-header-fragment .mge-modal-head--track .mge-modal-title {
  margin: 0 2.5rem 0.5rem 0;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-on-surface);
}

#mge-header-fragment .mge-modal-subtitle {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment #mge-track-modal-root {
  padding: 1.25rem 1.75rem;
  font-family: var(--font-body);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

#mge-header-fragment .mge-modal-foot--track {
  flex-shrink: 0;
  padding: 1rem 1.75rem 1.5rem;
  display: flex;
  justify-content: center;
}

#mge-header-fragment .mge-modal-panel--track .mge-modal-close {
  top: 1.125rem;
  right: 1.125rem;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment .mge-modal-foot {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--color-surface-container-low);
}

#mge-header-fragment .mge-modal-foot--track .mge-modal-page-link {
  width: 100%;
  justify-content: center;
}

#mge-header-fragment .mge-modal-page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-on-surface);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#mge-header-fragment .mge-modal-page-link .material-symbols-outlined {
  font-size: 1rem;
}

#mge-header-fragment .mge-modal-page-link:hover {
  background: var(--color-surface-container);
  border-color: rgba(0, 0, 0, 0.16);
  text-decoration: none;
}

#mge-header-fragment .mge-care-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#mge-header-fragment .mge-care-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-label);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-on-surface);
}

#mge-header-fragment .mge-care-optional {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
}

#mge-header-fragment .mge-care-field input,
#mge-header-fragment .mge-care-field textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-on-surface);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-sizing: border-box;
}

#mge-header-fragment .mge-care-submit {
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

#mge-header-fragment .mge-care-submit:hover {
  background: #333;
}

/* Track order modal — unique mge-dn-trk-* classes scoped to #mge-track-modal-root */
#mge-header-fragment #mge-track-modal-root .mge-dn-trk-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-body);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-lookup {
  padding: 1.25rem;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-feedback {
  display: flex;
  flex-direction: column;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-feedback:not(.mge-dn-trk-feedback--active) {
  display: none;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-feedback.mge-dn-trk-feedback--active {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.125rem;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-label {
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--color-on-surface);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-input:focus {
  outline: none;
  border-color: var(--color-on-tertiary-container);
  box-shadow: 0 0 0 3px rgba(61, 133, 237, 0.15);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-sizing: border-box;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-submit-btn:hover:not(:disabled) {
  background: #1a2030;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mge-dn-trk-spin 0.7s linear infinite;
}

@keyframes mge-dn-trk-spin {
  to { transform: rotate(360deg); }
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-action-banner,
#mge-header-fragment #mge-track-modal-root .mge-dn-trk-not-found,
#mge-header-fragment #mge-track-modal-root .mge-dn-trk-result-card {
  display: none;
  margin: 0;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-action-banner.mge-dn-trk-show,
#mge-header-fragment #mge-track-modal-root .mge-dn-trk-not-found.mge-dn-trk-show,
#mge-header-fragment #mge-track-modal-root .mge-dn-trk-result-card.mge-dn-trk-show {
  display: block;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-action-banner.mge-dn-trk-show {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6e5c00;
  background: color-mix(in srgb, var(--color-secondary-container) 22%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--color-secondary-container) 40%, transparent);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-banner-icon {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-on-secondary-container);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-banner-text {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-not-found {
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: var(--color-on-surface-variant);
  background: var(--color-surface-container-low);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-not-found-icon {
  display: block;
  margin: 0 auto 0.75rem;
  padding: 0;
  font-size: 2.25rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.22);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-not-found-title {
  margin: 0 0 0.5rem;
  padding: 0;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-on-surface);
  text-align: center;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-not-found-text {
  margin: 0 auto;
  padding: 0;
  max-width: 18rem;
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-not-found-link {
  color: var(--color-on-tertiary-container);
  font-weight: 600;
  text-decoration: underline;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-result-card {
  padding: 1.25rem 1.25rem 1rem;
  background: #fff;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-result-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-result-meta {
  min-width: 0;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-result-title {
  margin: 0;
  padding: 0;
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-on-surface);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-result-sub {
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 2rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  border-radius: 0.5rem;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-status-badge--soft {
  color: color-mix(in srgb, var(--mge-dn-trk-badge-bg, #4b5563) 42%, #111);
  background: color-mix(in srgb, var(--mge-dn-trk-badge-bg, #6b7280) 20%, #fff);
  border: 1px solid color-mix(in srgb, var(--mge-dn-trk-badge-bg, #6b7280) 40%, rgba(0, 0, 0, 0.12));
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-status-badge--overall {
  max-width: 100%;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-status-dot {
  display: block;
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0.125rem 0 0;
  padding: 0;
  border-radius: 50%;
  background: var(--mge-dn-trk-badge-bg, currentColor);
  align-self: flex-start;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-status-badge-text {
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-info-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  overflow: hidden;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-info-cell {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface-container-low);
  border-right: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-info-cell:last-child {
  border-bottom: none;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-info-label,
#mge-header-fragment #mge-track-modal-root .mge-dn-trk-services-label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  flex: 0 1 48%;
  min-width: 0;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-info-value {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-on-surface);
  text-align: right;
  flex: 1 1 52%;
  min-width: 0;
  word-break: normal;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-services {
  margin: 0;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-services-label {
  margin: 0 0 0.5rem;
  flex: none;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-svc-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem;
  background: var(--color-surface-container-low);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-svc-info {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-svc-name {
  margin: 0;
  padding: 0;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-on-surface);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-svc-products {
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-svc-qty {
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-on-surface-variant);
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-svc-row .mge-dn-trk-status-badge {
  margin-top: 0;
}

#mge-header-fragment #mge-track-modal-root .mge-dn-trk-muted-text {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-on-surface-variant);
}

/* Floating social bar */
#mge-header-fragment .mge-social-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.35rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
}

#mge-header-fragment .mge-social-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: rgba(0, 0, 0, 0.55);
  border-radius: 0.375rem;
  transition: color 0.15s ease, background 0.15s ease;
}

#mge-header-fragment .mge-social-float a:hover {
  color: #fff;
  background: #1a1a1a;
}

#mge-header-fragment .mge-social-float a[data-mge-social="instagram"]:hover {
  background: #e1306c;
}

#mge-header-fragment .mge-social-float a[data-mge-social="facebook"]:hover {
  background: #1877f2;
}

#mge-header-fragment .mge-social-float a[data-mge-social="twitter"]:hover {
  background: #000;
}

@media (max-width: 768px) {
  #mge-header-fragment .mge-mega-grid--care {
    grid-template-columns: 1fr;
  }

  #mge-header-fragment .mge-modal {
    align-items: flex-end;
    padding: 0;
  }

  #mge-header-fragment .mge-modal-panel {
    max-height: min(92dvh, 92vh);
    max-width: 100%;
    width: 100%;
    border-radius: 1rem 1rem 0 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  #mge-header-fragment .mge-modal-panel:not(.mge-modal-panel--track) {
    padding: 1.25rem 1.25rem max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
  }

  #mge-header-fragment .mge-modal-title {
    font-size: 1.125rem;
    margin-right: 2rem;
  }

  #mge-header-fragment .mge-modal-panel--track {
    max-width: 100%;
    width: 100%;
    max-height: min(92dvh, 92vh);
    border-radius: 1rem 1rem 0 0;
    margin: 0;
  }

  #mge-header-fragment .mge-modal-head--track {
    padding: 1.25rem 1.25rem 0.875rem;
  }

  #mge-header-fragment .mge-modal-head--track .mge-modal-title {
    font-size: 1.125rem;
    margin-right: 2rem;
  }

  #mge-header-fragment #mge-track-modal-root {
    padding: 1rem 1.25rem;
  }

  #mge-header-fragment .mge-modal-foot--track {
    padding: 0.875rem 1.25rem max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
  }

  #mge-header-fragment #mge-track-modal-root .mge-dn-trk-form-row {
    grid-template-columns: 1fr;
  }

  #mge-header-fragment .mge-social-float {
    top: auto;
    bottom: 1rem;
    transform: none;
    flex-direction: row;
    right: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.35rem 0.5rem;
  }

  #mge-header-fragment .mge-social-float a {
    width: 2rem;
    height: 2rem;
  }

  #mge-header-fragment .mge-header-newsletter-slot {
    display: none !important;
  }
}

/* ── DecoNetwork bridge slots ─────────────────────────────────────────────── */
#mge-header-fragment .mge-dn-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#mge-header-fragment .mge-header-newsletter-slot {
  display: none;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: 14rem;
}

body.mge-dn-bridged #mge-header-fragment .mge-header-newsletter-slot:not([hidden]) {
  display: flex;
}

#mge-header-fragment .mge-header-newsletter-slot .dn-widget-newsletter_signup,
#mge-header-fragment .mge-header-newsletter-slot .mge-dn-newsletter-clone {
  width: 100%;
}

#mge-header-fragment .mge-header-newsletter-slot form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  width: 100%;
}

#mge-header-fragment .mge-header-newsletter-slot input[type="email"],
#mge-header-fragment .mge-header-newsletter-slot input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-lg);
}

#mge-header-fragment .mge-header-newsletter-slot button,
#mge-header-fragment .mge-header-newsletter-slot input[type="submit"] {
  flex-shrink: 0;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}

#mge-header-fragment #mge-dn-slot-user a,
#mge-header-fragment #mge-dn-slot-help a,
#mge-header-fragment #mge-dn-slot-user .dn-nav-user a,
#mge-header-fragment #mge-dn-slot-help .dn-nav-user a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

#mge-header-fragment #mge-dn-slot-user a:hover,
#mge-header-fragment #mge-dn-slot-help a:hover {
  color: var(--color-primary);
}

#mge-header-fragment #mge-dn-slot-cart .dn-nav-cart,
#mge-header-fragment #mge-dn-slot-cart .dn-nav-cart a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

#mge-header-fragment #mge-dn-slot-cart .mge-header-util-link--cart,
#mge-header-fragment #mge-dn-slot-cart a.dn-cart-link {
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: #fff !important;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}

/* ── Footer fragment — scoped to #mge-footer-fragment (mge-ft-* classes only) ── */
#mge-footer-fragment {
  --color-primary: #000613;
  --color-on-surface: #091b39;
  --color-on-surface-variant: #43474e;
  --color-outline-variant: #c4c6cf;
  --color-background: #f9f9ff;
  --color-surface-container-low: #f1f3ff;
  --font-headline: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-label: Inter, system-ui, sans-serif;
  --radius-lg: 0.25rem;
  font-family: var(--font-body);
  color: var(--color-on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
}

/* Element resets — block DecoNetwork theme bleed on text-align, spacing, lists, forms */
#mge-footer-fragment *,
#mge-footer-fragment *::before,
#mge-footer-fragment *::after {
  box-sizing: border-box;
  text-align: left;
}

#mge-footer-fragment footer,
#mge-footer-fragment nav,
#mge-footer-fragment p,
#mge-footer-fragment h3,
#mge-footer-fragment ul,
#mge-footer-fragment ol,
#mge-footer-fragment li,
#mge-footer-fragment form,
#mge-footer-fragment label,
#mge-footer-fragment input,
#mge-footer-fragment button {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

#mge-footer-fragment a {
  color: inherit;
  text-decoration: none;
}

#mge-footer-fragment ul,
#mge-footer-fragment ol {
  list-style: none;
}

#mge-footer-fragment img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

#mge-footer-fragment button {
  cursor: pointer;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}

#mge-footer-fragment input {
  appearance: none;
  -webkit-appearance: none;
}

#mge-footer-fragment .mge-ft-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  background: var(--color-background);
  border-top: 1px solid color-mix(in srgb, var(--color-outline-variant) 40%, transparent);
}

#mge-footer-fragment .mge-ft-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: left;
}

#mge-footer-fragment .mge-ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem 2.5rem;
  padding: 2.5rem 0 2rem;
  align-items: start;
  text-align: left;
}

#mge-footer-fragment .mge-ft-col {
  margin: 0;
  padding: 0;
  text-align: left;
}

#mge-footer-fragment .mge-ft-logo-link {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
}

#mge-footer-fragment .mge-ft-logo-img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
}

#mge-footer-fragment .mge-ft-brand-desc {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
  color: var(--color-on-surface-variant);
  max-width: 22rem;
}

#mge-footer-fragment .mge-ft-col-title {
  margin: 0 0 0.875rem;
  padding: 0;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--color-on-surface-variant);
}

#mge-footer-fragment .mge-ft-col-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

#mge-footer-fragment .mge-ft-col-list-item {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

#mge-footer-fragment .mge-ft-col-link {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--color-on-surface);
  transition: color 0.15s ease;
}

#mge-footer-fragment .mge-ft-col-link:hover {
  color: var(--color-on-surface-variant);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#mge-footer-fragment .mge-ft-newsletter-desc {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
  color: var(--color-on-surface-variant);
}

#mge-footer-fragment .mge-ft-newsletter-slot {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

#mge-footer-fragment .mge-ft-newsletter-fallback,
#mge-footer-fragment .mge-ft-newsletter-slot .dn-widget-newsletter_signup,
#mge-footer-fragment .mge-ft-newsletter-slot form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

#mge-footer-fragment .mge-ft-newsletter-label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--color-on-surface-variant);
}

#mge-footer-fragment .mge-ft-newsletter-input,
#mge-footer-fragment .mge-ft-newsletter-slot input[type="email"],
#mge-footer-fragment .mge-ft-newsletter-slot input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 400;
  text-align: left;
  color: var(--color-on-surface);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-outline-variant) 55%, transparent);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#mge-footer-fragment .mge-ft-newsletter-input:focus,
#mge-footer-fragment .mge-ft-newsletter-slot input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

#mge-footer-fragment .mge-ft-newsletter-input::placeholder,
#mge-footer-fragment .mge-ft-newsletter-slot input::placeholder {
  color: color-mix(in srgb, var(--color-on-surface-variant) 70%, transparent);
  text-align: left;
}

#mge-footer-fragment .mge-ft-newsletter-btn,
#mge-footer-fragment .mge-ft-newsletter-slot button,
#mge-footer-fragment .mge-ft-newsletter-slot input[type="submit"] {
  width: 100%;
  box-sizing: border-box;
  margin: 0.125rem 0 0;
  padding: 0.625rem 1rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: filter 0.15s ease;
}

#mge-footer-fragment .mge-ft-newsletter-btn:hover,
#mge-footer-fragment .mge-ft-newsletter-slot button:hover,
#mge-footer-fragment .mge-ft-newsletter-slot input[type="submit"]:hover {
  filter: brightness(1.1);
}

#mge-footer-fragment .mge-ft-newsletter-slot .dn-widget-newsletter_signup form > *:not(input):not(button):not([type="submit"]):not(label) {
  display: none;
}

#mge-footer-fragment .mge-ft-newsletter-slot .dn-widget-newsletter_signup label {
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--color-on-surface-variant);
}

#mge-footer-fragment .mge-ft-bottom {
  margin: 0;
  padding: 1.25rem 0 2rem;
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--color-outline-variant) 35%, transparent);
}

#mge-footer-fragment .mge-ft-copy {
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
  color: var(--color-on-surface-variant);
}

@media (max-width: 1024px) {
  #mge-footer-fragment .mge-ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  #mge-footer-fragment .mge-ft-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  #mge-footer-fragment .mge-ft-inner {
    padding: 0 1.25rem;
  }

  #mge-footer-fragment .mge-ft-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem 0 1.5rem;
  }

  #mge-footer-fragment .mge-ft-col--brand {
    grid-column: auto;
  }

  #mge-footer-fragment .mge-ft-bottom {
    padding: 1rem 0 1.5rem;
  }
}
