/* Customer navigation: the whole header is measured and fixed as one unit. */
:root { --customer-viewport-height: 100dvh; }
.customer-navigation-ready .sticky-site-header { width: 100%; max-width: 100%; }
.customer-navigation-ready .top .header {
  width: 100%; max-width: none; margin-inline: auto;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.8vw, 28px); padding: 12px clamp(12px, 2.2vw, 32px);
}
.customer-navigation-ready .top .header > * { min-width: 0; }
.customer-navigation-ready .top .search { grid-column: auto; grid-row: auto; width: 100%; min-width: 0; }
.customer-navigation-ready .top .head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.customer-navigation-ready .head-actions .catalog-header-actions {
  position: static; inset: auto; display: flex; flex: 0 1 auto; gap: 8px;
  padding: 0; margin: 0; border: 0; background: transparent; z-index: auto;
}
.customer-navigation-ready .catalog-header-actions > * {
  flex: 0 1 auto; min-width: 0; min-height: 44px; padding: 9px 12px;
  font-size: .875rem; line-height: 1.4; white-space: normal; text-align: center;
}
.customer-navigation-ready .top .cart-open { min-width: 0; min-height: 44px; padding: 8px 11px; font-size: .875rem; }
.customer-navigation-ready .mobile-purchase-break { display: none; }
.customer-navigation-ready .sticky-site-header > .nav { position: relative; width: 100%; min-width: 0; }
.customer-navigation-ready .nav .navin {
  width: 100%; max-width: none; min-width: 0; height: auto; min-height: 52px;
  gap: 8px; padding-inline: clamp(8px, 2.2vw, 32px); overflow: visible;
}
.customer-navigation-ready .navin #allMenu { flex: 0 0 auto; min-height: 48px; height: auto; padding-inline: 10px; }
.customer-navigation-ready .catalog-category-controls { min-width: 0; }
.customer-navigation-ready #topFamilies { min-width: 0; }
.customer-navigation-ready #megaMenu {
  top: 100%; max-width: 100%; max-height: max(80px, calc(var(--customer-viewport-height) - var(--site-header-height) - 12px));
  overflow: auto; overscroll-behavior: contain;
}
.customer-navigation-ready .mega-heading { flex-wrap: wrap; gap: 10px; }
.customer-navigation-ready .mega-columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

/* Let each column shrink with the available viewport instead of stretching it. */
.customer-navigation-ready .wrap {
  width: 100%; max-width: none; margin-inline: auto; margin-bottom: 48px;
  padding-inline: clamp(12px, 2.2vw, 32px);
}
.customer-navigation-ready .work {
  display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  align-items: start; gap: clamp(14px, 2vw, 28px);
}
.customer-navigation-ready .work > *, .customer-navigation-ready .catalog,
.customer-navigation-ready .catalog-head > *, .customer-navigation-ready .full-filters > *,
.customer-navigation-ready .dataset-switch > *, .customer-navigation-ready .full-card > * { min-width: 0; }
.customer-navigation-ready .customer-sidebar-shell {
  min-width: 0; position: sticky; top: calc(var(--site-header-height) + 12px);
}
.customer-navigation-ready .work > .cats,
.customer-navigation-ready .customer-sidebar-shell #familySidebar {
  display: block; position: static; width: 100%; height: auto;
  max-height: max(80px, calc(var(--customer-viewport-height) - var(--site-header-height) - 24px));
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: 12px 10px; border: 1px solid #d3dde5; border-radius: 9px; background: #fff;
}
.customer-navigation-ready .customer-sidebar-shell #familySidebar[hidden] { display: none !important; }
.customer-navigation-ready #familySidebar h2 { display: block; font-size: 1rem; margin: 4px 8px 12px; }
.customer-navigation-ready #familySidebar :is(.family-button, .customer-type-button, .customer-pipe-button) {
  display: flex; align-items: center; justify-content: flex-start; min-width: 0; width: 100%;
  min-height: 44px; padding: 9px 10px; border: 0; border-radius: 6px;
  background: #fff; color: #143652; font: inherit; font-size: .875rem; font-weight: 650;
  text-align: left; white-space: normal; overflow-wrap: anywhere; line-height: 1.5;
}
.customer-navigation-ready #familySidebar .customer-pipe-button { padding-left: 22px; }
.customer-navigation-ready #familySidebar :is(.family-button, .customer-type-button, .customer-pipe-button):hover { background: #eef3f7; }
.customer-navigation-ready #familySidebar :is(.on, [aria-pressed="true"]) { background: #fff1c4; color: #102335; font-weight: 800; }
.customer-sidebar-toggle {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #9eb3c3;
  border-radius: 8px; background: #f5f8fa; color: #143652; font: inherit; font-weight: 750; text-align: left;
}
.customer-sidebar-toggle[hidden] { display: none !important; }
.customer-navigation-ready .grid, .customer-navigation-ready.full-mode #grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 18px clamp(10px, 1.3vw, 20px);
}
.customer-navigation-ready .full-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.customer-navigation-ready .full-filters label { flex: 1 1 150px; min-width: 0; }
.customer-navigation-ready .full-filters :is(select, input) { width: 100%; min-width: 0; max-width: 100%; }
.customer-navigation-ready .catalog-head { flex-wrap: wrap; }
.customer-navigation-ready .catalog-head select { max-width: 100%; }
.customer-navigation-ready .full-card { overflow-wrap: anywhere; }
.customer-navigation-ready .full-card :is(.material-panel, .sales-panel) { margin-inline: 0; min-width: 0; }
.customer-navigation-ready .full-card :is(button, a) { max-width: 100%; white-space: normal; }
.customer-navigation-ready .full-card img { max-width: 100%; height: auto; object-fit: contain; }
.customer-navigation-ready .full-card .catalog-art { width: min(100%, 180px); max-width: 100%; }
.customer-navigation-ready .full-card :is(.full-source-reference, .full-family-summary, .full-official-source, .full-review-descriptor) { min-width: 0; max-width: 100%; }
.customer-navigation-ready .full-specs { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); overflow-wrap: anywhere; }
.customer-navigation-ready .full-specs dd { min-width: 0; }
.customer-navigation-ready .catalog { scroll-margin-top: 12px; }
.customer-navigation-ready .catalog-manual-banner .catalog-banner-actions { min-width: 0; flex-wrap: wrap; }
.customer-navigation-ready .hero .catalog-manual-banner { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
.customer-navigation-ready .full-workfield-menu { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.customer-navigation-ready .modalbox { min-width: 0; overflow-wrap: anywhere; }
.customer-navigation-ready .modal-actions { flex-wrap: wrap; }
.customer-navigation-ready .modal-actions > * { min-width: 0; max-width: 100%; }

.customer-floating-tools { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 79; }
.customer-floating-tools[hidden] { display: none !important; }
.customer-floating-tools button {
  min-width: 44px; min-height: 44px; padding: 10px 14px; border: 1px solid #a6b8c7;
  border-radius: 24px; background: #fff; color: #143652; box-shadow: 0 3px 16px #10233524;
  font: inherit; font-size: .875rem; font-weight: 800;
}
.customer-navigation-ready :is(.customer-sidebar-toggle, #familySidebar button, .customer-floating-tools button):focus-visible { outline: 3px solid #174a73; outline-offset: 2px; }

@media (max-width: 1100px) {
  .customer-navigation-ready .top .header { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .customer-navigation-ready .top .header .search { grid-column: 1 / -1; grid-row: 2; }
  .customer-navigation-ready .top .brand { font-size: 1.25rem; gap: 8px; }
  .customer-navigation-ready .brand .mark { width: 48px; flex-basis: 48px; height: 34px; }
}
@media (max-width: 1000px), (orientation: landscape) and (max-height: 600px) {
  .customer-navigation-ready .work { grid-template-columns: minmax(0, 1fr); }
  .customer-navigation-ready .customer-sidebar-shell { position: static; }
  .customer-navigation-ready .customer-sidebar-shell #familySidebar { margin-top: 8px; max-height: max(80px, calc(var(--customer-viewport-height) - var(--site-header-height) - 76px)); }
}
@media (max-width: 640px) {
  .customer-navigation-ready .top .header { grid-template-columns: minmax(0, 1fr); padding: 8px 12px; gap: 7px; }
  .customer-navigation-ready .top .brand { grid-column: 1; grid-row: 1; font-size: 1.125rem; }
  .customer-navigation-ready .brand .mark { width: 42px; flex-basis: 42px; height: 30px; }
  .customer-navigation-ready .top .header .search { grid-column: 1; grid-row: 2; height: 44px; }
  .customer-navigation-ready .top .head-actions { grid-column: 1; grid-row: 3; flex-wrap: nowrap; gap: 6px; width: 100%; }
  .customer-navigation-ready .top .cart-open { flex: 1 1 0; font-size: .75rem; padding: 6px; white-space: normal; }
  .customer-navigation-ready .head-actions .catalog-header-actions { flex: 2 1 0; gap: 6px; }
  .customer-navigation-ready .catalog-header-actions > * { flex: 1 1 0; font-size: .75rem; padding: 7px 5px; }
  .customer-navigation-ready .nav .navin { gap: 4px; padding-inline: 6px; min-height: 48px; }
  .customer-navigation-ready .navin #allMenu { min-height: 44px; padding-inline: 6px; font-size: .75rem; }
  .customer-navigation-ready .catalog-category-controls { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 2px; }
  .customer-navigation-ready .navin .catalog-category-controls .catalog-category-arrow { width: 44px; min-width: 44px; min-height: 44px; }
  .customer-navigation-ready .catalog-category-controls #topFamilies { padding: 2px; }
  .customer-navigation-ready .catalog-category-controls #topFamilies .family-button { font-size: .8125rem; padding-inline: 10px; }
  .customer-navigation-ready .grid, .customer-navigation-ready.full-mode #grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .customer-navigation-ready .hero .catalog-manual-banner { display: block; }
  .customer-navigation-ready .full-card .full-representative .price { font-size: 1.05rem; }
  .customer-floating-tools { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 340px) {
  .customer-navigation-ready .grid, .customer-navigation-ready.full-mode #grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .customer-navigation-ready { scroll-behavior: auto; }
}

/* Browse-only drawer: it overlays the page, leaving the full product grid width. */
body.customer-navigation-ready .work { grid-template-columns: minmax(0, 1fr) !important; }
body.customer-navigation-ready .customer-sidebar-shell {
  position: fixed; z-index: 81; top: calc(var(--site-header-height) + 12px); left: 0;
  width: min(318px, calc(100vw - 24px)); max-width: 100%;
  pointer-events: none;
}
body.customer-navigation-ready .customer-sidebar-shell[hidden] { display: none !important; }
body.customer-navigation-ready .customer-sidebar-edge {
  position: fixed; left: 0; top: calc(var(--site-header-height) + 12px); bottom: 0;
  width: 12px; pointer-events: auto;
}
body.customer-navigation-ready .customer-sidebar-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; max-width: 100%; min-width: 44px; min-height: 44px; padding: 10px 13px;
  border: 1px solid #c6d3dc; border-left: 0; border-radius: 0 8px 8px 0;
  background: #fff; color: #24465e; box-shadow: 0 3px 12px #10233512;
  font-size: 13px; font-weight: 650; pointer-events: auto; cursor: pointer;
}
body.customer-navigation-ready .customer-sidebar-shell[data-expanded="false"] .customer-sidebar-toggle-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body.customer-navigation-ready .customer-sidebar-shell #familySidebar {
  position: relative; margin: 8px 0 0; width: 100%;
  max-height: max(80px, calc(var(--customer-viewport-height) - var(--site-header-height) - 76px));
  padding: 16px 14px 20px; border: 1px solid #d5dfe6; border-left: 0;
  border-radius: 0 10px 10px 0; background: #fff;
  box-shadow: 5px 8px 28px #10233518; pointer-events: auto;
  overscroll-behavior: contain; scrollbar-width: thin;
}
body.customer-navigation-ready #familySidebar h2 { margin: 0 9px 10px; font-size: 15px; }
body.customer-navigation-ready #familySidebar .shop-side-group { padding: 10px 0; }
body.customer-navigation-ready #familySidebar .shop-side-group h3 { padding: 0; margin: 0 0 3px; }
body.customer-navigation-ready #familySidebar .shop-side-group h3 a { font-weight: 750; font-size: 13px; }
body.customer-navigation-ready #familySidebar .customer-type-button { padding-left: 21px; font-size: 12px; font-weight: 450; }
body.customer-navigation-ready #familySidebar a { text-decoration: none; }
body.customer-navigation-ready #familySidebar a:focus-visible { outline: 3px solid #174a73; outline-offset: -2px; }
body.customer-navigation-ready #familySidebar [aria-current="page"] { background: #fff1c4; color: #102335; }
@media (max-width: 640px) {
  body.customer-navigation-ready .customer-sidebar-shell { top: calc(var(--site-header-height) + 8px); }
  body.customer-navigation-ready .customer-sidebar-edge { display: none; }
}

/* One fixed category row, without the duplicate hamburger catalogue. */
body.customer-navigation-ready #allMenu,body.customer-navigation-ready #megaMenu,body.customer-navigation-ready .mobile-category-menu{display:none!important}
