/**
 * Viewix Factory - Navigation & Header Styles
 * Responsive desktop navigation, sticky behavior & mobile 390px drawer.
 */

.wp-site-blocks > header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.wp-site-blocks > header + * { margin-block-start: 0; }
.vx-header > .vx-container {
  max-width: var(--vx-container-width);
  padding-inline: var(--vx-container-gutter);
  margin-block-start: 0;
}
.vx-mobile-drawer, .vx-mobile-drawer-backdrop { margin-block-start: 0; }
.vx-mobile-drawer-backdrop { width: 100%; }
.vx-header-actions > .vx-btn { font-size: 13px; padding: 12px 16px; }

.vx-header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--vx-color-border);
  transition: var(--vx-transition);
}

.vx-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.vx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--vx-header-height);
}

/* Brand Logo */
.vx-header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* WooCommerce's `.woocommerce img` rule is more specific than a bare class
 * selector and otherwise expands this square source asset into the header.
 * Keep the complete wordmark visible inside the header dimensions. */
.vx-header-inner .vx-header-logo-img {
  width: 145px;
  max-width: none;
  height: 38px;
  object-fit: contain;
  object-position: center;
}

.vx-mobile-drawer-header .vx-header-logo-img {
  width: 120px;
  max-width: none;
  height: 32px;
  object-fit: contain;
  object-position: center;
}

/* Desktop Navigation */
.vx-nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.vx-nav-list {
  display: flex;
  align-items: center;
  gap:24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vx-nav-link {
  font-size:15px;
  font-weight: 600;
  color: var(--vx-color-text-main);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--vx-transition);
}

.vx-nav-link:hover, .vx-nav-link.active {
  color: var(--vx-color-primary);
}

.vx-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--vx-color-primary);
  transition: width 0.2s ease-in-out;
}

.vx-nav-link:hover::after, .vx-nav-link.active::after {
  width: 100%;
}

/* Products Navigation & Mega-Menu */
.vx-products-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}
.vx-products-toggle {
  display: grid;
  place-items: center;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.vx-products-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
  color: #005FFF;
}
.vx-products-toggle:focus-visible {
  outline: 2px solid #005FFF;
  outline-offset: 2px;
}

/* Backdrop overlay */
.vx-mega-backdrop {
  position: fixed;
  inset: 0;
  top: 68px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}
.vx-mega-backdrop.active,
.vx-mega-backdrop:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.vx-mega-backdrop[hidden] {
  display: none !important;
}

/* Mega-Menu Container */
.vx-products-menu.vx-category-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 40px), 1280px);
  max-width: 1280px;
  padding: 0;
  margin: 0;
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.16), 0 10px 15px -3px rgba(15, 23, 42, 0.05);
  z-index: 1020;
  overflow: hidden;
  animation: vxMegaFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vxMegaFade {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.vx-products-menu[hidden] {
  display: none !important;
}

/* Safe Hover Bridge */
.vx-products-menu.vx-category-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.vx-mega-panel {
  width: 100%;
  background: #ffffff;
}

.vx-mega-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 360px;
  max-height: calc(85vh - 76px);
}

/* Mega-Menu Left Sidebar */
.vx-mega-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.vx-mega-all-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #005FFF;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.vx-mega-all-link:hover,
.vx-mega-all-link:focus-visible {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0046be;
}
.vx-mega-all-arrow {
  transition: transform 0.15s ease;
}
.vx-mega-all-link:hover .vx-mega-all-arrow {
  transform: translateX(3px);
}

.vx-mega-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vx-mega-tab-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vx-mega-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.vx-mega-tab-btn:hover {
  background: #ffffff;
  color: #005FFF;
  border-color: #e2e8f0;
}
.vx-mega-tab-btn.active {
  background: #ffffff;
  color: #005FFF;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.vx-mega-tab-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #64748b;
  transition: all 0.15s ease;
}
.vx-mega-tab-btn.active .vx-mega-tab-count {
  background: #dbeafe;
  color: #005FFF;
}

.vx-mega-tab-archive-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease;
}
.vx-mega-tab-archive-link:hover,
.vx-mega-tab-archive-link:focus-visible {
  background: #ffffff;
  color: #005FFF;
}

/* Mega-Menu Right Content */
.vx-mega-content {
  padding: 24px 32px;
  overflow-y: auto;
  max-height: calc(85vh - 76px);
  background: #ffffff;
}

.vx-mega-panel-pane {
  display: none;
}
.vx-mega-panel-pane.active {
  display: block;
}

.vx-mega-pane-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}
.vx-mega-pane-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.vx-mega-pane-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 3px;
  display: block;
}
.vx-mega-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #005FFF;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.vx-mega-view-all-link:hover,
.vx-mega-view-all-link:focus-visible {
  color: #0046be;
  gap: 9px;
}

/* Category Cards Grid */
.vx-mega-cards-grid {
  display: grid;
  gap: 20px;
}
.vx-mega-cards-grid.vx-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 240px));
}
.vx-mega-cards-grid.vx-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vx-mega-cards-grid.vx-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vx-mega-cards-grid.vx-cols-single {
  grid-template-columns: minmax(0, 280px);
}

.vx-mega-cat-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.vx-mega-cat-card:hover,
.vx-mega-cat-card:focus-visible {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.vx-mega-card-media {
  height: 135px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  transition: background 0.2s ease;
}
.vx-mega-cat-card:hover .vx-mega-card-media {
  background: #ffffff;
}
.vx-mega-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.vx-mega-card-placeholder {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vx-mega-card-info {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vx-mega-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  transition: color 0.2s ease;
}
.vx-mega-cat-card:hover .vx-mega-card-title {
  color: #005FFF;
}
.vx-mega-card-meta {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Mobile Category Accordion */
.vx-mobile-cat-accordion {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vx-mobile-cat-all-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  min-height: 44px;
  background: #eff6ff;
  color: #005FFF;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
}
.vx-mobile-cat-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.vx-mobile-cat-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.vx-mobile-cat-summary::-webkit-details-marker {
  display: none;
}
.vx-mobile-cat-summary::after {
  content: '›';
  font-size: 18px;
  color: #64748b;
  transition: transform 0.2s ease;
}
.vx-mobile-cat-group[open] > .vx-mobile-cat-summary::after {
  transform: rotate(90deg);
}
.vx-mobile-cat-sub-list {
  padding: 8px 12px 14px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vx-mobile-cat-sub-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  min-height: 44px;
  color: #005FFF;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}
.vx-mobile-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vx-mobile-cat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  min-height: 48px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  color: #0f172a;
}
.vx-mobile-cat-card img {
  width: 44px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.vx-mobile-cat-card-text strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}
.vx-mobile-cat-card-text small {
  font-size: 11px;
  color: #64748b;
}

.vx-solutions-menu .vx-mega-inner { min-height: 260px; }
.vx-solutions-menu .vx-solution-menu-card { padding: 24px; border: 1px solid #e2e8f0; background: #fff; gap: 8px; }
.vx-solutions-menu .vx-solution-menu-card:hover { background: #f8fbff; border-color: #bfdbfe; }
.vx-solutions-menu-heading { padding-top: 6.5px; }
.vx-solutions-menu-heading strong { display: block; font-size: 10px; line-height: 15px; letter-spacing: 2px; color: #005FFF; }
.vx-solutions-menu-heading p { margin: 6.5px 0 0; font-size: 12px; line-height: 16px; color: #000; }
.vx-solutions-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vx-solution-menu-card { display: flex; flex-direction: column; color: #111827; border-radius: 8px; text-decoration: none; }
.vx-solutions-menu .vx-solution-menu-card img { width: 100%; height: auto; aspect-ratio: 341/164; object-fit: contain; border: 1px solid #f3f4f6; border-bottom: 15px solid #f3f4f6; border-radius: 8px; }
.vx-solution-menu-category { margin-top: 4px; font-size: 12px; font-weight: 700; line-height: 18px; color: #2563eb; }
.vx-solution-menu-card :is(h3, [data-vx-navigation-label]) { margin: 3px 0 4px; font-size: 18px; font-weight: 700; line-height: 24px; }
.vx-solution-menu-card :is(h3, [data-vx-navigation-label]) span { font-weight: 400; color: #000; }
.vx-solution-menu-card p { margin: 0 0 7px; color: #6b7280; font-size: 12px; line-height: 20px; }
.vx-solution-menu-cta { margin-top: auto; font-size: 12px; line-height: 20px; font-weight: 600; }
.vx-solutions-menu-all { padding-top: 14px; border-top: 1px solid #f3f4f6; font-size: 12px; line-height: 20px; font-weight: 700; color: #005FFF; }
.vx-solution-menu-card:hover .vx-solution-menu-cta { color: #005FFF; }
.vx-solution-menu-card:focus-visible,.vx-solutions-menu-all:focus-visible { outline: 2px solid #005FFF; outline-offset: 4px; }

/* Header Actions */
.vx-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language Selector */
.vx-lang-selector {
  position: relative;
}

.vx-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--vx-color-text-main);
  background: transparent;
  border: 1px solid var(--vx-color-border);
  padding: 0.35rem 0.65rem;
  border-radius: var(--vx-radius-sm);
  cursor: pointer;
  transition: var(--vx-transition);
}

.vx-lang-btn:hover {
  border-color: var(--vx-color-primary);
  color: var(--vx-color-primary);
}

.vx-lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--vx-color-border);
  border-radius: var(--vx-radius-md);
  box-shadow: var(--vx-shadow-card);
  padding: 0.5rem 0;
  min-width: 120px;
  display: none;
  z-index: 1010;
}

.vx-lang-dropdown.open {
  display: block;
}

.vx-lang-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--vx-color-text-main);
}

.vx-lang-item:hover, .vx-lang-item.active {
  background: var(--vx-color-tint);
  color: var(--vx-color-primary);
}

/* Mobile Toggle Hamburger */
.vx-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--vx-color-text-main);
}

.vx-mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Drawer Overlay & Menu */
.vx-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background: #ffffff;
  z-index: 1100;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

/* Keep the closed fixed panel out of the document's scrollable overflow. */
.vx-mobile-drawer:not(.open) {
  display: none;
}

.vx-mobile-drawer.open {
  display: flex;
  transform: translateX(0);
}

.vx-mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 16, 21, 0.6);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vx-mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.vx-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vx-color-border);
}

.vx-mobile-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--vx-color-text-main);
}

.vx-mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vx-mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--vx-color-text-main);
  display: block;
}

.vx-mobile-nav-link:hover, .vx-mobile-nav-link.active {
  color: var(--vx-color-primary);
}

/* Global Footer Layout */
.vx-footer {
  background-color: var(--vx-color-dark);
  color: #ffffff;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--vx-color-border-dark);
}

.vx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.vx-footer-brand p {
  color: #a0aec0;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 340px;
}

.vx-footer-brand > a {
  display: block;
  width: 145px;
  height: 38px;
  overflow: hidden;
}

.vx-footer-brand > a img {
  filter: invert(1);
  mix-blend-mode: screen;
  width: 145px;
  max-width: none;
  height: 38px;
  object-fit: contain;
  object-position: center;
}

.vx-footer-business { margin-top: 24px; }
.vx-footer-brand .vx-footer-business p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.vx-footer-brand .vx-footer-business-name { font-size: 15px; line-height: 1.5; }
.vx-footer-business-name strong { font-weight: 700; }
.vx-footer-registration { font-size: 13px; }

body.home .vx-footer-brand > a img,
body:has(.vx-blog-design, .vx-contact-design, .vx-products-design, .vx-why-design, .vx-solution-detail, .vx-solutions-design) .vx-footer-brand > a img {
  mix-blend-mode: multiply;
}

.vx-footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.vx-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vx-footer-link {
  color: #a0aec0;
  font-size: 0.9375rem;
  transition: var(--vx-transition);
}

.vx-footer-link:hover {
  color: #ffffff;
  padding-left: 4px;
}

.vx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #718096;
  font-size: 0.875rem;
}

/* Keep all primary content pages on the same light footer treatment. */
body:has(.vx-blog-design, .vx-catalogue-grid, .vx-quote-sidebar-card, .vx-product-showcase) .vx-footer { background: #e7f1ff; border-top: 0; padding-block: 50px 28px; }
body:has(.vx-blog-design, .vx-catalogue-grid, .vx-quote-sidebar-card, .vx-product-showcase) .vx-footer-brand > a img { filter: none; }
body:has(.vx-blog-design, .vx-catalogue-grid, .vx-quote-sidebar-card, .vx-product-showcase) .vx-footer-title,
body:has(.vx-blog-design, .vx-catalogue-grid, .vx-quote-sidebar-card, .vx-product-showcase) .vx-footer-link,
body:has(.vx-blog-design, .vx-catalogue-grid, .vx-quote-sidebar-card, .vx-product-showcase) .vx-footer-brand p,
body:has(.vx-blog-design, .vx-catalogue-grid, .vx-quote-sidebar-card, .vx-product-showcase) .vx-footer-bottom { color: #475461; }
body:has(.vx-blog-design, .vx-catalogue-grid, .vx-quote-sidebar-card, .vx-product-showcase) .vx-footer-title { color: #20272c; }
body:has(.vx-blog-design, .vx-catalogue-grid, .vx-quote-sidebar-card, .vx-product-showcase) .vx-footer-bottom { border-color: #cad9eb; }

/* Responsive Navigation Adjustments */
@media (max-width: 1024px) {
  .vx-nav-desktop {
    display: none;
  }
  .vx-mobile-toggle {
    display: block;
  }
  .vx-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .vx-header-inner .vx-header-logo-img {
    width: 120px;
    height: 32px;
  }
  .vx-header-actions {
    gap: 0.5rem;
  }
  /* The same CTA remains available in the mobile drawer; hiding the desktop
   * copy prevents the compact header from overflowing on 390px screens. */
  .vx-header-actions > .vx-btn-primary {
    display: none;
  }
  .vx-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .vx-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .vx-header > .vx-container {
    max-width: none;
    padding-inline: 20px;
  }
}
/* Category filters for taxonomy pages */
.vx-category-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 24px auto 0; max-width: 1200px; }
.vx-category-filters a { padding: 12px 24px; border: 1px solid #ccd7e5; border-radius: 999px; background: white; color: #263448; text-decoration: none; }
.vx-category-filters a:hover, .vx-category-filters a[aria-current] { background: #005FFF; border-color: #005FFF; color: white; }

/* Header and mobile navigation quote action. */
.vx-header-actions .vx-btn-primary, .vx-header-actions .vx-btn-primary:hover,
.vx-mobile-drawer .vx-btn-primary, .vx-mobile-drawer .vx-btn-primary:hover {
 background: #005FFF; border-color: #005FFF; color: #fff;
}

/* Shared brand color for public controls and WordPress palette. */
:root { --vx-color-primary: #005FFF; --vx-color-primary-hover: #005FFF; --wp--preset--color--primary: #005FFF; }

/* The footer uses a dark logo on all light footer variants. */
body:has(.vx-contact-design, .vx-solutions-design, .vx-solution-detail, .vx-why-design, .vx-products-design, .vx-blog-design, .vx-product-showcase) .vx-footer-brand > a img {
  filter: none !important;
}

/* Shared footer treatment across every page. */
.vx-footer {
  background: #e7f1ff !important;
  color: #475461 !important;
  border-top: 0 !important;
  padding-block: 50px 28px !important;
}
.vx-footer-brand > a img { filter: none !important; mix-blend-mode: multiply !important; }
.vx-footer-title { color: #20272c !important; }
.vx-footer-link, .vx-footer-brand p, .vx-footer-bottom { color: #475461 !important; }
.vx-footer-bottom { border-color: #cad9eb !important; }
.vx-footer-contact { color: #475461; font-size: .9375rem; line-height: 1.7; margin-top: 1.25rem; }
.vx-footer-contact p { margin: 0; }
.vx-footer-contact strong { color: #20272c; }
.vx-footer-contact a { color: #005fff; text-decoration: none; }
.vx-footer-contact a:hover { text-decoration: underline; }

/* Square category cards with a contained, uncropped product image. */
.vx-mega-cat-card { aspect-ratio:1 / 1; box-sizing:border-box; min-width:0; }
.vx-mega-cat-card .vx-mega-card-media { flex:1 1 0; min-height:0; height:auto; padding:4px; }
.vx-mega-cat-card .vx-mega-card-info { flex:0 0 auto; gap:8px; }
.vx-mega-cat-card .vx-mega-card-media img { min-height:0; object-fit:contain; }

/* Close the gap between blog heading and article copy. */
.single-post .vx-article-heading-section { padding-bottom:16px; margin-bottom:0; }
.single-post .vx-article-heading-section > div > :last-child { margin-bottom:0; }
.single-post .vx-article-body-section { padding-top:8px; margin-top:0; }
.single-post .vx-article-body-section .vx-article-content > :first-child { margin-top:0; }
