.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #F7F7F7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
body:not(.home-page) .page-content {
  padding-top: var(--header-height, 115px);
}
.site-header.is-sticky {
  background-color: #F7F7F7 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18) !important;
}

/* Homepage Transparent Header (Not Sticky) */
.home-page .site-header:not(.is-sticky) {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
.home-page .site-header:not(.is-sticky) .main-header {
  background-color: transparent !important;
  background: transparent !important;
}
.home-page .site-header:not(.is-sticky) .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}
.home-page .site-header:not(.is-sticky) .nav-link:hover,
.home-page .site-header:not(.is-sticky) .nav-link.active {
  color: #ffffff !important;
  font-weight: 500;
  opacity: 1;
}
.home-page .site-header:not(.is-sticky) .menu-toggle-btn .bar {
  background-color: #ffffff;
}

/* Logo Toggling */
.logo-picture {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.logo-white-pic {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 0;
}
.logo-original-pic {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.home-page .site-header:not(.is-sticky) .logo-white-pic {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.home-page .site-header:not(.is-sticky) .logo-original-pic {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 0;
}

.topbar {
  background: var(--primary, #1e3978);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 400;
  padding: 10px 0;
  transition: padding 0.35s ease, font-size 0.35s ease;
}
.site-header.is-sticky .topbar {
  padding: 5px 0;
  font-size: 12px;
}
.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: var(--container-padding-x, 75px);
  padding-right: var(--container-padding-x, 75px);
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.topbar-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: normal;
  text-transform: none;
  transition: opacity 0.2s ease;
}
.topbar-link:hover {
  opacity: 0.88;
  color: #ffffff;
}
.main-header {
  background-color: #F7F7F7;
  padding: 0;
  transition: background-color 0.35s ease;
}
.site-header.is-sticky .main-header {
  background-color: #F7F7F7 !important;
  background: #F7F7F7 !important;
  padding: 0;
}
.header-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: var(--container-padding-x, 75px);
  padding-right: var(--container-padding-x, 75px);
}
.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 15px 0;
  position: relative;
  transition: padding 0.35s ease;
}
.site-header.is-sticky .header-brand {
  padding: 15px 0 !important;
}
.header-brand .logo-picture {
  display: block;
}
.header-brand .logo-img {
  width: 150px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: width 0.3s ease;
}
.site-header.is-sticky .header-brand .logo-img {
  width: 130px;
}
.header-nav-desktop {
  display: flex;
  align-items: stretch;
}
.nav-list {
  display: flex;
  align-items: stretch;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  list-style: none;
  display: flex;
  align-items: stretch;
  position: relative;
}
.nav-link {
  color: var(--color-605f62, #605f62);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: normal;
  text-decoration: none;
  padding: 14px 0;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, padding 0.3s ease, font-weight 0.2s ease;
  position: relative;
}
.site-header.is-sticky .nav-link {
  padding: 8px 0;
}
.nav-link:hover {
  color: var(--color-063d7b, #063d7b);
  font-weight: 500;
}
.nav-link.active {
  color: var(--color-063d7b, #063d7b);
  font-weight: 500;
}
.nav-item.has-dropdown {
  position: relative;
}
.nav-item.has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-dropdown-icon {
  font-size: 11px;
  transition: transform 0.25s ease;
  line-height: 1;
}
.nav-item.has-dropdown:hover > .nav-link .nav-dropdown-icon,
.nav-item.has-dropdown.is-open > .nav-link .nav-dropdown-icon {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 275px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 35px rgba(6, 61, 123, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(6, 61, 123, 0.08);
  border-top: 2px solid var(--color-063d7b, #063d7b);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1010;
  pointer-events: none;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -20px;
  right: -20px;
  height: 14px;
}
.nav-item.has-dropdown:hover > .dropdown-menu,
.nav-item.has-dropdown:focus-within > .dropdown-menu,
.nav-item.has-dropdown.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dropdown-item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-605f62, #605f62);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease, font-weight 0.18s ease;
  line-height: 1.35;
  white-space: nowrap;
}
.dropdown-link:hover,
.dropdown-link:focus {
  color: var(--color-063d7b, #063d7b);
  font-weight: 500;
  background-color: #f4f8fd;
  padding-left: 24px;
}
.dropdown-link.active {
  color: var(--color-063d7b, #063d7b);
  font-weight: 500;
  background-color: #eef5fc;
}
.header-action-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  transition: padding 0.3s ease;
}
.site-header.is-sticky .header-action-wrapper {
  padding: 8px 0;
}
.btn-submit-request {
  background-color: var(--color-063d7b, #063d7b);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 500;
  min-width: 140px;
  height: 38px;
  padding: 0 16px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: normal;
  line-height: normal;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid var(--color-063d7b, #063d7b);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(6, 61, 123, 0.18);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-submit-request:hover {
  background-color: var(--color-052052, #052052);
  border-color: var(--color-052052, #052052);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 32, 82, 0.3);
}
.btn-submit-request:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(5, 32, 82, 0.2);
}
.btn-submit-request:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 134, 200, 0.5), 0 4px 12px rgba(6, 61, 123, 0.3);
}
.site-header.is-sticky .btn-submit-request {
  height: 40px;
  font-size: 13.5px;
}
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle-btn .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-063d7b, #063d7b);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 15, 32, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1001;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-sidebar.active {
  right: 0;
}
.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e4e4e2;
}
.mobile-sidebar-header .sidebar-logo {
  width: 140px;
  max-width: 100%;
  height: auto;
}
.mobile-sidebar-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-063d7b, #063d7b);
  cursor: pointer;
  padding: 4px;
}
.mobile-sidebar-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.mobile-nav-item {
  list-style: none;
}
.mobile-nav-link {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-0d0f20, #0d0f20);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s ease, font-weight 0.2s ease;
}
.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--color-063d7b, #063d7b);
  font-weight: 500;
}
.mobile-nav-item.has-dropdown {
  position: relative;
}
.mobile-nav-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav-link-wrapper .mobile-nav-link {
  border-bottom: none;
  flex-grow: 1;
}
.mobile-dropdown-toggle {
  background: none;
  border: none;
  color: var(--color-063d7b, #063d7b);
  font-size: 13px;
  cursor: pointer;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.mobile-dropdown-toggle.is-open {
  transform: rotate(180deg);
}
.mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  background-color: #f9fbfd;
  border-radius: 4px;
}
.mobile-submenu.is-open {
  max-height: 700px;
  opacity: 1;
  padding: 6px 0;
  margin-top: 4px;
}
.mobile-submenu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--color-605f62, #605f62);
  text-decoration: none;
  padding: 8px 16px;
  transition: color 0.18s ease, padding-left 0.18s ease, font-weight 0.18s ease;
}
.mobile-submenu-link:hover,
.mobile-submenu-link.active {
  color: var(--color-063d7b, #063d7b);
  font-weight: 500;
  padding-left: 20px;
}
.mobile-sidebar-cta {
  width: 100%;
  text-align: center;
  min-width: 100%;
  height: 42px;
}
@media (min-width: 1400px) and (max-width: 1500px) {
  .header-container,
  .topbar-container {
    padding-left: 75px;
    padding-right: 75px;
  }
  .nav-list {
    gap: 28px;
  }
}
@media (min-width: 1300px) and (max-width: 1400px) {
  .header-container,
  .topbar-container {
    padding-left: 75px;
    padding-right: 75px;
  }
  .nav-list {
    gap: 22px;
  }
  .nav-link {
    font-size: 14px;
  }
}
@media (min-width: 1200px) and (max-width: 1300px) {
  .header-container,
  .topbar-container {
    padding-left: 75px;
    padding-right: 75px;
  }
  .nav-list {
    gap: 16px;
  }
  .nav-link {
    font-size: 13.5px;
  }
  .btn-submit-request {
    min-width: 150px;
    height: 42px;
    font-size: 13.5px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .header-container,
  .topbar-container {
    padding-left: 25px;
    padding-right: 25px;
  }
  .nav-list {
    gap: 12px;
  }
  .nav-link {
    font-size: 13px;
  }
  .header-brand .logo-img {
    width: 140px;
  }
  .site-header.is-sticky .header-brand .logo-img {
    width: 120px;
  }
  .btn-submit-request {
    min-width: 140px;
    height: 42px;
    font-size: 12.5px;
    padding: 0 16px;
  }
  .topbar {
    font-size: 11.5px;
    padding: 6px 0;
  }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .header-nav-desktop {
    display: none;
  }
  .header-action-wrapper .btn-submit-request {
    display: none;
  }
  .header-brand,
  .site-header.is-sticky .header-brand,
  .header-action-wrapper,
  .site-header.is-sticky .header-action-wrapper {
    padding: 12px 0;
  }
  .menu-toggle-btn {
    display: flex;
  }
  .topbar-container {
    padding-left: 25px;
    padding-right: 25px;
  }
  .header-container {
    padding-left: 25px;
    padding-right: 25px;
  }
  .header-brand .logo-img {
    width: 140px;
  }
}
@media only screen and (max-width: 767px) {
  .topbar {
    padding: 5px 0;
  }
  .topbar-container {
    padding: 0 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .topbar-left,
  .topbar-right {
    font-size: 10.5px;
  }
  .topbar-link {
    font-size: 10.5px;
    white-space: nowrap;
  }
  .topbar-fax-link {
    display: none !important;
  }
  .main-header {
    padding: 10px 0;
  }
  .header-brand,
  .site-header.is-sticky .header-brand,
  .header-action-wrapper,
  .site-header.is-sticky .header-action-wrapper {
    padding: 0;
  }
  .header-container {
    padding: 0 15px;
  }
  .header-brand .logo-img {
    width: 130px;
  }
  .site-header.is-sticky .header-brand .logo-img {
    width: 115px;
  }
  .header-nav-desktop {
    display: none;
  }
  .header-action-wrapper .btn-submit-request {
    display: none;
  }
  .menu-toggle-btn {
    display: flex;
  }
}

/* ==========================================================================
   Mega Menu Dropdown (Construction Chemicals & Minerals)
   ========================================================================== */
.nav-item.has-mega-menu {
  position: static !important;
}

.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: var(--container-padding-x, 75px);
  transform: none;
  width: calc(100% - var(--container-padding-x, 75px) * 2);
  max-width: 100%;
  background-color: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 45px rgba(6, 61, 123, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(6, 61, 123, 0.1);
  border-top: 3px solid var(--color-063d7b, #063d7b);
  padding: 22px 28px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1020;
  pointer-events: none;
}

.mega-menu-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item.has-mega-menu:hover > .mega-menu-dropdown,
.nav-item.has-mega-menu:focus-within > .mega-menu-dropdown,
.nav-item.has-mega-menu.is-open > .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}

.mega-category-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-063d7b, #063d7b);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.mega-category-title:hover {
  color: #052052;
}

.mega-product-count {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 2px 10px;
  border-radius: 20px;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px 18px;
  width: 100%;
  align-items: start;
}

/* 5 Columns Layout Rule */
.mega-menu-container.mega-cols-5 .mega-menu-grid {
  grid-template-columns: repeat(5, 1fr);
  justify-content: flex-start;
}

.mega-menu-col {
  display: flex;
  flex-direction: column;
}

.mega-products-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-product-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: 4px;
  line-height: 1.35;
  transition: all 0.18s ease;
  width: 100%;
  box-sizing: border-box;
}

.mega-bullet {
  font-size: 9px;
  color: #94a3b8;
  transition: transform 0.18s ease, color 0.18s ease;
}

.mega-product-link:hover,
.mega-product-link:focus {
  color: var(--color-063d7b, #063d7b);
  background-color: #f0f5fc;
  font-weight: 600;
  padding-left: 11px;
}

.mega-product-link:hover .mega-bullet {
  color: var(--color-063d7b, #063d7b);
  transform: translateX(2px);
}

@media (max-width: 1350px) {
  .mega-menu-dropdown {
    width: calc(100vw - 40px);
    padding: 18px 20px;
  }
  .mega-menu-grid {
    gap: 10px 12px;
  }
  .mega-product-link {
    font-size: 12px;
    padding: 4px 6px;
  }
}