/* Brand, page links and language share one desktop header row. */
@media (min-width: 1101px) {
  html { scroll-padding-top: 96px; }
  body.supplier-page header .container.nav.nav-all-visible,
  body header .container.nav.nav-all-visible {
    display: grid !important;
    grid-template-columns: minmax(240px, .32fr) minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    grid-template-areas: "brand nav lang" !important;
    width: calc(100% - 36px) !important;
    max-width: 2200px !important;
    position: relative;
    min-height: 86px !important;
    height: auto !important;
    gap: 14px !important;
    align-items: center !important;
    padding: 8px 0 !important;
  }
  body header .container.nav.nav-all-visible .brand-wrap {
    grid-area: brand !important; min-width: 0 !important; margin: 0;
    width: 100%; gap: 10px !important;
  }
  body header .container.nav.nav-all-visible .brand-text { min-width: 0; max-width: none; }
  body header .container.nav.nav-all-visible .logo-img {
    width: 54px !important; height: 54px !important; object-fit: contain;
  }
  body header .container.nav.nav-all-visible .brand-name {
    font-size: clamp(16px, 1.35vw, 23px) !important;
    line-height: 1.25; white-space: nowrap; letter-spacing: -.025em;
  }
  body header .container.nav.nav-all-visible .brand-tagline {
    display: block; font-size: clamp(7px, .55vw, 9px) !important;
    line-height: 1.45; letter-spacing: .03em; white-space: normal;
  }
  body header .container.nav.nav-all-visible nav {
    grid-area: nav !important; width: 100% !important; min-width: 0;
    margin: 0 !important; overflow: visible !important; justify-self: stretch;
    position: static !important; border: 0 !important; padding: 0 !important;
  }
  body header .container.nav.nav-all-visible .lang-flags {
    grid-area: lang !important; margin: 0 !important; justify-self: end;
  }
  body header .container.nav.nav-all-visible .navbar-nav {
    display: flex !important; width: 100% !important; max-width: none !important;
    justify-content: space-between !important; align-items: center;
    flex-wrap: nowrap !important; gap: clamp(7px, .7vw, 15px) !important;
    margin: 0 !important; padding: 0 !important; overflow: visible !important;
  }
  body header .container.nav.nav-all-visible .navbar-nav > li {
    flex: 0 1 auto; min-width: min-content; width: auto; margin: 0 !important; padding: 0 !important; border: 0 !important;
  }
  body header .container.nav.nav-all-visible .navbar-nav .products-nav-item {
    position: static;
  }
  body header .container.nav.nav-all-visible .navbar-nav a {
    display: block; font-size: clamp(12px, .98vw, 15px) !important; font-weight: 600;
    line-height: 1.35; white-space: normal !important; text-align: center;
    padding: 12px 0 !important; color: #52616a;
  }
  body header .container.nav.nav-all-visible .navbar-nav a.active,
  body header .container.nav.nav-all-visible .navbar-nav a:hover { color: #147a4c; }
  body header .products-nav-link::before {
    content: "▾";
    display: inline-block;
    margin-right: 6px;
    color: #a07836;
    font-size: 11px;
  }
  body header .container.nav.nav-all-visible nav::after { display: none !important; }
  body header .products-nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 2200;
    width: min(980px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 12px;
    list-style: none;
    background: #f7f3e9;
    border: 1px solid #d6cdbc;
    box-shadow: 0 18px 38px rgba(20, 45, 37, .18);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  }
  body header .products-nav-item:hover .products-nav-menu,
  body header .products-nav-item:focus-within .products-nav-menu {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body header .container.nav.nav-all-visible .products-nav-menu li { min-width: 0; }
  body header .container.nav.nav-all-visible .products-nav-menu a {
    height: 100%;
    padding: 13px 16px !important;
    color: #2e4f43;
    font-size: 14px !important;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid rgba(166, 148, 112, .28);
  }
  body header .container.nav.nav-all-visible .products-nav-menu a:hover,
  body header .container.nav.nav-all-visible .products-nav-menu a.is-active {
    color: #fff;
    background: #147a4c;
  }
}
/* Small screens use a menu button in that same row, never a second bar. */
@media (max-width: 1100px) {
  html { scroll-padding-top: 86px; }
  body.supplier-page header .container.nav.nav-all-visible,
  body header .container.nav.nav-all-visible {
    display: grid !important; position: relative;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-rows: auto !important;
    grid-template-areas: "brand lang toggle" !important;
    width: calc(100% - 28px) !important; max-width: none;
    min-height: 76px !important; height: auto !important;
    gap: 10px !important; padding: 8px 0 !important; align-items: center;
  }
  body header .container.nav.nav-all-visible .brand-wrap {
    grid-area: brand !important; min-width: 0 !important; width: auto; gap: 8px !important;
  }
  body header .container.nav.nav-all-visible .brand-text { min-width: 0; max-width: none; }
  body header .container.nav.nav-all-visible .logo-img { width: 46px !important; height: 46px !important; object-fit: contain; }
  body header .container.nav.nav-all-visible .brand-name { font-size: clamp(12px, 3.2vw, 20px) !important; white-space: nowrap; }
  body header .container.nav.nav-all-visible .brand-tagline { font-size: 7px !important; white-space: normal; }
  body header .container.nav.nav-all-visible .lang-flags { grid-area: lang !important; margin: 0 !important; }
  body header .container.nav.nav-all-visible .lang-btn { padding: 7px 0; border: 0; }
  body header .container.nav.nav-all-visible .mobile-nav-toggle {
    grid-area: toggle !important; display: flex !important; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    width: 32px; height: 38px; padding: 5px;
    border: 0; background: transparent; color: #184c3b;
  }
  body header .mobile-nav-toggle span { display: block; width: 21px; height: 2px; background: currentColor; }
  body header .container.nav.nav-all-visible nav {
    display: none !important; position: absolute !important; grid-area: auto !important;
    top: 100%; inset-inline: 0; width: 100% !important; margin: 0 !important;
    max-height: calc(100svh - 86px); overflow: auto !important;
    background: #f6f3ed; border: 1px solid #d0c9bb; padding: 12px !important;
  }
  body header .container.nav.nav-all-visible nav.is-open { display: block !important; }
  body header .container.nav.nav-all-visible nav::after { display: none !important; }
  body header .container.nav.nav-all-visible .navbar-nav {
    display: flex !important; flex-direction: column; align-items: stretch;
    flex-wrap: nowrap !important; gap: 0 !important; width: 100%; padding: 0 !important;
    overflow: visible !important; list-style: none;
  }
  body header .container.nav.nav-all-visible .navbar-nav > li { width: 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  body header .container.nav.nav-all-visible .navbar-nav a { font-size: 15px !important; padding: 11px 10px !important; text-align: start; white-space: normal; }
  body header .products-nav-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 0 10px 10px;
    padding: 8px 0 8px 14px;
    list-style: none;
    border-left: 2px solid #d1b987;
  }
  body header .products-nav-menu a {
    display: block;
    color: #31584a;
    font-size: 14px !important;
    line-height: 1.35;
    padding: 9px 10px !important;
  }
}
