/* Site header (mf-header). */

.mf-hdr {
  background: var(--mf-hdr-bg, var(--mf-cream));
  border-bottom: 1px solid var(--mf-hdr-line, var(--mf-hair));
  font-family: var(--mf-font-sans);
  position: relative; z-index: 900;
}
/* Sticky must sit on the template wrapper (a child of <body>): the header's own
   parent is only as tall as the header, so sticking there does nothing. */
[data-elementor-type]:has(.mf-hdr[data-sticky="1"]) { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 900; }
.mf-hdr__in {
  max-width: var(--mf-hdr-max, var(--mf-frame-max, 1320px));
  margin-inline: auto; box-sizing: border-box;
  padding: var(--mf-hdr-pad, 10px var(--mf-frame-gutter, 16px));
  display: flex; align-items: center; gap: 20px;
}
@media (min-width: 640px) { .mf-hdr__in { padding: var(--mf-hdr-pad, 12px var(--mf-frame-gutter, 24px)); } }

.mf-hdr .mf-hdr__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
/* .mf-hdr prefix: Elementor's `.elementor img { height:auto }` (0,1,1) beats a lone class. */
.mf-hdr .mf-hdr__logo { display: block; height: var(--mf-hdr-logo-h, 52px); width: auto; max-width: none; }
.mf-hdr__tag { font: italic 500 22px/1 var(--mf-font-display); color: var(--mf-hdr-tag, var(--mf-saffron)); }

.mf-hdr__nav { display: flex; align-items: center; gap: var(--mf-hdr-gap, 26px); margin-left: auto; }
.mf-hdr .mf-hdr__link {
  color: var(--mf-hdr-link, var(--mf-forest)); text-decoration: none;
  font: 600 13px/1 var(--mf-font-sans); letter-spacing: .12em; text-transform: uppercase;
  transition: color var(--mf-dur-fast, 200ms) var(--mf-ease-out);
}
.mf-hdr .mf-hdr__link:hover { color: var(--mf-hdr-link-h, var(--mf-saffron)); }

.mf-hdr__end { display: flex; align-items: center; gap: 8px; }
.mf-hdr .mf-hdr__cart {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  height: 44px; padding: 0 16px 0 14px;
  border: 0; border-radius: 999px;
  background: var(--mf-forest); color: #fff;
  font: 600 15px/1 var(--mf-font-sans); cursor: pointer;
  transition: background-color var(--mf-dur-fast, 200ms) var(--mf-ease-out), transform var(--mf-dur-fast, 200ms) var(--mf-ease-out);
}
.mf-hdr .mf-hdr__cart:hover { background: var(--mf-deep); color: #fff; }
.mf-hdr__cartico { width: 19px; height: 19px; }
.mf-hdr .mf-hdr__cart .mf-count { background: var(--mf-saffron); color: #fff; }

.mf-hdr .mf-hdr__menu { display: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--mf-hdr-line, var(--mf-hair)); border-radius: 12px; background: var(--mf-card); color: var(--mf-forest); cursor: pointer; place-items: center; }
.mf-hdr .mf-hdr__menu:hover { background: var(--mf-panel); color: var(--mf-forest); }
.mf-hdr__menuico { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .mf-hdr .mf-hdr__menu { display: grid; }
  .mf-hdr__end { margin-left: auto; }
  .mf-hdr__nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--mf-hdr-bg, var(--mf-cream)); border-bottom: 1px solid var(--mf-hdr-line, var(--mf-hair));
    box-shadow: 0 16px 30px -18px rgb(0 0 0 / .3);
    display: none;
  }
  .mf-hdr.is-open .mf-hdr__nav { display: flex; }
  .mf-hdr .mf-hdr__link { padding: 16px var(--mf-frame-gutter, 16px); border-top: 1px solid var(--mf-hdr-line, var(--mf-hair)); font-size: 14px; }
  .mf-hdr__cartlbl { display: none; }
  .mf-hdr .mf-hdr__cart { padding: 0 12px; }
  .mf-hdr .mf-hdr__logo { height: var(--mf-hdr-logo-h, 44px); }
}
