.fmax-header {
  --fmax-navy: #13367e;
  --fmax-orange: #df7314;
  --fmax-ink: #222;
  --fmax-muted: #555f6d;
  --fmax-line: #e1e1e1;
  position: relative;
  width: 100%;
  background: #fff;
  color: var(--fmax-ink);
  font: 400 14px/1.4 'Work Sans', system-ui, sans-serif;
}

.fmax-header *,
.fmax-header *::before,
.fmax-header *::after {
  box-sizing: border-box;
}

.fmax-header [hidden] { display: none !important; }
.fmax-header a { text-decoration: none; }
.fmax-header :is(a, summary, button, select, input):focus-visible {
  outline: 2px solid #2177d6;
  outline-offset: 2px;
}

.fmax-header .fmax-container { width: 100%; max-width: none; margin: 0 auto; padding-inline: 29px; }
.fmax-topbar { background: #f8f9fa; border-bottom: 1px solid var(--fmax-line); padding-block: 8px; }
.fmax-top-inner,
.fmax-top-links { display: flex; align-items: center; flex-wrap: wrap; column-gap: 16px; row-gap: 6px; }
.fmax-top-inner { justify-content: space-between; font-size: 12.5px; color: var(--fmax-muted); }
.fmax-top-links a { border-inline-start: 1px solid #d1d5db; padding-inline-start: 18px; color: var(--fmax-muted); line-height: 1; }
.fmax-top-links a:hover { color: var(--fmax-navy); text-decoration: underline; }
.fmax-bcv { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 700; color: var(--fmax-navy); }
.fmax-bcv-dot { width: 7px; height: 7px; border-radius: 50%; background: #c27612; }
.fmax-bcv[data-status="ok"] .fmax-bcv-dot { background: #178943; }
.fmax-bcv[data-status="unavailable"] .fmax-bcv-dot { background: #737c88; }
.fmax-bcv time { color: var(--fmax-muted); font-weight: 500; }

.fmax-main { padding-block: 24px; }
.fmax-main-inner { display: flex; justify-content: space-between; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.fmax-logo { flex: 0 1 auto; min-width: 0; color: var(--fmax-navy); font-size: clamp(17px, 2.4vw, 29px); font-weight: 800; }
.fmax-header .fmax-logo img { display: block; max-width: min(145px, 100%); max-height: 44px; width: auto; height: auto; object-fit: contain; }
.fmax-logo span { overflow-wrap: anywhere; }

.fmax-search {
  display: flex;
  flex: 1 1 400px;
  max-width: 680px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  background: #fff;
  border: 2px solid var(--fmax-navy);
  border-radius: 4px;
}

.fmax-header .fmax-search :is(select, input, button) {
  font-family: inherit;
  font-size: 14px;
  min-height: 40px;
  margin: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}
.fmax-header .fmax-search :is(select, input, button):focus-visible { outline-offset: -3px; }
.fmax-header .fmax-search select { flex: 0 1 132px; width: 132px; min-width: 0; max-width: 36%; padding: 0 8px 0 16px; border-inline-end: 1px solid var(--fmax-line); background: #f6f7f8; color: var(--fmax-ink); font-size: 13px; font-weight: 700; }
.fmax-header .fmax-search input[type="search"] { flex: 1 1 auto; min-width: 0; width: 0; padding: 0 12px; background: #fff; color: var(--fmax-ink); }
.fmax-header .fmax-search button { flex: 0 0 auto; min-width: 96px; padding: 0 18px; border-radius: 3px 0 0 3px; font-size: 13.5px; }
.fmax-header .fmax-search button,
.fmax-header .fmax-departments summary { background: var(--fmax-orange); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgb(0 0 0 / 36%); cursor: pointer; }
.fmax-header .fmax-search button:hover,
.fmax-header .fmax-departments summary:hover { box-shadow: inset 0 0 0 100px rgb(255 255 255 / 12%); }

.fmax-actions { display: flex; flex: 0 0 auto; align-items: center; gap: clamp(10px, 1.5vw, 24px); }
.fmax-header .fmax-action { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 9px; color: var(--fmax-navy); cursor: pointer; }
.fmax-header .fmax-action:hover strong { text-decoration: underline; }
.fmax-action svg { flex-shrink: 0; display: block; }
.fmax-whatsapp svg { color: #187840; }
.fmax-action-text { display: flex; flex-direction: column; line-height: 1.22; white-space: nowrap; }
.fmax-whatsapp .fmax-action-text { white-space: normal; max-width: 94px; }
.fmax-action-text small { font-size: 11.5px; color: var(--fmax-muted); }
.fmax-action-text strong { font-size: 13px; font-weight: 700; }
.fmax-cart-icon { position: relative; }
.fmax-badge {
  position: absolute;
  inset-inline-end: -8px;
  bottom: -6px;
  display: grid;
  min-width: 18px;
  min-height: 18px;
  padding-inline: 3px;
  border-radius: 20px;
  place-items: center;
  background: var(--fmax-orange);
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 36%);
  font-size: 10px;
  font-weight: 800;
}

.fmax-cart,
.fmax-departments { position: relative; margin: 0; }
.fmax-header details > summary { list-style: none; }
.fmax-header details > summary::-webkit-details-marker { display: none; }
.fmax-header details:not([open]) > :not(summary) { display: none; }
.fmax-cart-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 5px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--fmax-line);
  border-top: 3px solid var(--fmax-orange);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(19 54 126 / 18%);
}
.fmax-cart-heading { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px; background: var(--fmax-navy); color: #fff; }
.fmax-header .fmax-cart-heading button { font-weight: 400; font-family: inherit; font-size: 23px; line-height: 1; padding: 5px 9px; background: transparent; border: 0; color: inherit; cursor: pointer; }
.fmax-cart-content { padding: 14px 16px; }
.fmax-cart-content a { color: var(--fmax-navy); }
.fmax-header .fmax-cart-content .woocommerce-mini-cart { max-height: min(230px, 34vh); overflow: auto; padding: 0; margin: 0 0 12px; }
.fmax-header .fmax-cart-content .woocommerce-mini-cart-item { list-style: none; border-bottom: 1px solid var(--fmax-line); padding-block: 8px; }
.fmax-header .fmax-cart-content .woocommerce-mini-cart img { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; }
.fmax-header .fmax-cart-content .woocommerce-mini-cart__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.fmax-header .fmax-cart-content .woocommerce-mini-cart__buttons a { margin: 0; padding: 9px 12px; background: var(--fmax-navy); color: #fff; font-size: 13px; }
.fmax-header .fmax-cart-content .woocommerce-mini-cart__buttons a.checkout { background: var(--fmax-orange); color: #fff; }

.fmax-nav { position: relative; z-index: 20; background: var(--fmax-navy); color: #fff; }
.fmax-main { position: relative; z-index: 21; }
.fmax-nav-inner { display: flex; align-items: center; min-height: 53px; gap: clamp(12px, 2.5vw, 32px); }
.fmax-departments { flex: 0 0 260px; }
.fmax-departments summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 51px; padding: 10px 15px 10px 20px; border-radius: 3px; font-size: 13.5px; }
.fmax-departments summary svg { flex-shrink: 0; }
.fmax-chevron { flex: 0 0 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin-top: -4px; }
.fmax-departments[open] .fmax-chevron { transform: rotate(225deg); margin-top: 4px; }
.fmax-header .fmax-departments ul {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  color: var(--fmax-ink);
  list-style: none;
  background: #fff;
  border: 1px solid var(--fmax-line);
  box-shadow: 0 12px 28px rgb(0 0 0 / 12%);
}
.fmax-header .fmax-departments li + li { border-top: 1px solid #f1f2f5; }
.fmax-header .fmax-departments li a { display: flex; justify-content: space-between; gap: 8px; padding: 11px 15px; color: var(--fmax-ink); }
.fmax-header .fmax-departments li a:hover { color: var(--fmax-navy); background: #f5f7fb; }
.fmax-header .fmax-departments li .fmax-b2b { color: #a64b0c; font-weight: 700; }
.fmax-header .fmax-menu { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 0 clamp(12px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.fmax-header .fmax-menu > li { margin: 0; padding: 0; }
.fmax-header .fmax-menu li a,
.fmax-header .fmax-phone { display: inline-block; padding-block: 15px; color: #fff; font-weight: 700; }
.fmax-header .fmax-menu li a:hover,
.fmax-header .fmax-menu .current-menu-item > a,
.fmax-header .fmax-menu [aria-current="page"],
.fmax-header .fmax-phone:hover { color: #ffca91; }
.fmax-header .fmax-phone { margin-inline-start: auto; white-space: nowrap; }
.fmax-phone strong { white-space: nowrap; }
.fmax-header .fmax-editor-note { padding-block: 8px; color: var(--fmax-muted); background: #fff8eb; }
.fmax-editor-note p { margin: 3px 0; }

.fmax-mobile-nav-slot { display: none; }

@media (max-width: 1100px) {
  .fmax-header .fmax-container { padding-inline: 20px; }
  .fmax-action-text { display: none; }
}

@media (max-width: 760px) {
  .fmax-header .fmax-container { padding-inline: 16px; }
  .fmax-top-inner { flex-direction: column; text-align: center; }
  .fmax-top-links { justify-content: center; width: 100%; column-gap: 10px; }
  .fmax-bcv { justify-content: center; width: 100%; }
  .fmax-top-links a { padding-inline-start: 10px; }
  .fmax-top-links a:first-of-type { border: 0; padding-inline-start: 0; }
  .fmax-main { padding-block: 13px; }
  .fmax-main-inner { flex-wrap: wrap; }
  .fmax-logo { max-width: calc(100% - 116px); }
  .fmax-search { order: 1; flex-basis: 100%; max-width: none; }
  .fmax-header .fmax-search select { flex-basis: 94px; padding-inline-start: 8px; }
  .fmax-header .fmax-search button { min-width: 0; padding-inline: 12px; }
  .fmax-nav-inner { flex-wrap: wrap; gap: 0; }
  .fmax-departments { flex-basis: 100%; }
  .fmax-departments summary > span:first-of-type { margin-inline-end: auto; }
  .fmax-header .fmax-menu,
  .fmax-header .fmax-phone,
  .fmax-header .fmax-action.fmax-whatsapp { display: none; }
  .fmax-cart { position: static; }
  .fmax-cart-panel { top: 60px; right: 16px; }

  .fmax-mobile-nav-slot {
    --fmax-mobile-height: max(78px, 4.875rem);
    --fmax-safe-bottom: env(safe-area-inset-bottom, 0px);
    display: block;
  }
  .fmax-mobile-nav-mounted .fmax-header .fmax-mobile-nav-slot { display: none; }
  body > .fmax-mobile-nav-slot { min-height: calc(var(--fmax-mobile-height) + var(--fmax-safe-bottom)); }
  .fmax-mobile-nav {
    box-sizing: border-box;
    padding: 0 max(8px, env(safe-area-inset-right, 0px)) 8px max(8px, env(safe-area-inset-left, 0px));
    color: #42516d;
    font: 600 .75rem/1.15 'Work Sans', system-ui, sans-serif;
  }
  body > .fmax-mobile-nav-slot .fmax-mobile-nav {
    position: fixed;
    z-index: 1000;
    inset-inline: 0;
    bottom: 0;
    padding-bottom: calc(8px + var(--fmax-safe-bottom));
  }
  .fmax-mobile-nav > ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    box-sizing: border-box;
    min-height: calc(var(--fmax-mobile-height) - 8px);
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid #dce4f0;
    border-radius: 19px;
    box-shadow: 0 3px 18px rgb(19 54 126 / 15%), 0 1px 4px rgb(19 54 126 / 7%);
  }
  .fmax-mobile-nav li { display: flex; margin: 0; min-width: 0; }
  .fmax-mobile-nav .fmax-mobile-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 44px;
    padding: 2px;
    border-radius: 13px;
    color: inherit;
    text-align: center;
    text-decoration: none;
  }
  .fmax-mobile-icon {
    display: grid;
    place-items: center;
    width: min(46px, 100%);
    height: 33px;
    border-radius: 12px;
  }
  .fmax-mobile-icon svg { display: block; }
  .fmax-mobile-label { max-width: 100%; overflow-wrap: anywhere; }
  .fmax-mobile-nav .fmax-mobile-link[aria-current="page"] {
    color: var(--fmax-navy, #13367e);
    font-weight: 700;
  }
  .fmax-mobile-link[aria-current="page"] .fmax-mobile-icon { background: #e6eefc; }
  .fmax-mobile-nav .fmax-mobile-whatsapp a { color: #146941; }
  .fmax-mobile-whatsapp a .fmax-mobile-icon { background: #e6f5ee; }
  .fmax-mobile-nav a:active { background: #f1f5fa; }
  .fmax-mobile-nav .fmax-mobile-link[aria-disabled="true"] { color: #6b7280; }
  .fmax-mobile-nav a:focus-visible { outline: 2px solid #2177d6; outline-offset: -3px; }
}
