.konic-mode-switch {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 28px);
  padding: 5px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(20, 20, 20, .9);
  box-shadow: 0 16px 50px rgba(0,0,0,.3);
  backdrop-filter: blur(18px) saturate(1.1);
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-geist-sans), Inter, ui-sans-serif, sans-serif;
}

.konic-mode-switch a {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.konic-mode-switch a:hover { color: #fff; }
.konic-mode-switch a:active { transform: scale(.97); }
.konic-mode-switch a.is-active { color: #fff; background: #df181d; box-shadow: 0 7px 18px rgba(223,24,29,.28); }
.konic-mode-switch .konic-mode-all { color: #fff; padding-left: 12px; }
[data-konic-hidden="true"] { display: none !important; }

:root { --content-max: 1440px; }
html { scrollbar-gutter: stable; }
html { scrollbar-width: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; }

/* The bundled Office header starts with its legacy category links. Keep only
   that centre group hidden until the context layer has placed the final nav,
   so cross-site switching never exposes a moving intermediate text layout. */
html:not([data-konic-context="office"]) .site-header .desktop-nav {
  visibility: hidden !important;
}

.konic-arrow-glyph {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  -webkit-text-stroke: .08px currentColor !important;
}

.arrow::before { height: 1.35px !important; }
.arrow::after { border-top-width: 1.35px !important; border-right-width: 1.35px !important; }

.site-header .desktop-nav .nav-item {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: normal !important;
}

.site-header .desktop-nav .nav-item[data-konic-primary-role="products"] {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 6px !important;
}

.site-header .desktop-nav .nav-item[data-konic-primary-role="products"]::after {
  content: "+";
  display: block;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin-left: 7px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: currentColor;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.site-header .desktop-nav .konic-primary-link {
  height: 72px;
  display: inline-flex;
  align-items: center;
  position: relative;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: normal !important;
}

.site-header .desktop-nav .konic-primary-link:hover {
  color: #e3062d;
}

.site-header .konic-site-route,
.site-header .konic-route-copy {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header .header-actions > .icon-button {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header .social-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}

.site-header .social-link {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 5px 15px rgba(27, 23, 20, .12);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), filter .2s;
}

.site-header .social-link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.site-header .social-link.fb { background: #3478d4; font: 900 17px Arial, sans-serif; }
.site-header .social-link.ig { background: linear-gradient(140deg, #7137b6 0%, #d71568 48%, #f06b31 100%); }
.site-header .ig-camera { position: relative; width: 15px; height: 15px; border: 1.6px solid #fff; border-radius: 4.5px; }
.site-header .ig-camera::before { content: ""; position: absolute; inset: 3px; border: 1.4px solid #fff; border-radius: 50%; }
.site-header .ig-camera::after { content: ""; position: absolute; right: 1.6px; top: 1.6px; width: 2px; height: 2px; border-radius: 50%; background: #fff; }
.site-header .social-link.yt { background: #ef3f33; }
.site-header .yt-play { position: relative; width: 16px; height: 11px; border-radius: 3px; background: #fff; }
.site-header .yt-play::after { content: ""; position: absolute; left: 6px; top: 3px; border-left: 5px solid #ef3f33; border-top: 2.5px solid transparent; border-bottom: 2.5px solid transparent; }

.site-header .header-actions > .icon-button .search-icon {
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  transform: translate(-1.5px, -1px);
}

.site-header .header-actions > .icon-button .search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 6px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

@media (min-width: 961px) {
  .hero-content h1,
  .x-route-active .x-hero h1,
  .x-route-active .x-support-hero h1,
  .x-route-active .x-company-hero h1 {
    white-space: nowrap;
  }

  .site-header,
  #root main,
  #root footer,
  .extended-main {
    width: min(1440px, calc(100% - 64px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .site-header {
    width: min(1440px, calc(100vw - 64px)) !important;
    margin-left: max(32px, calc((100vw - 1440px) / 2)) !important;
    margin-right: 0 !important;
    grid-template-columns: 185px minmax(0, 1fr) 326px !important;
    gap: 36px !important;
  }

  .site-header .konic-brand-link {
    width: 185px !important;
  }

  .site-header .desktop-nav {
    justify-content: flex-start !important;
    gap: 30px !important;
  }

  .site-header .konic-brand-link > img {
    width: 136px !important;
  }

  .site-header .konic-site-label {
    left: 138px !important;
    bottom: 8px !important;
  }

  .site-header .header-actions {
    width: 326px !important;
    height: 44px;
    padding: 0 !important;
    gap: 8px !important;
    justify-self: end;
    justify-content: flex-start !important;
    transform: none !important;
  }

  .site-header .x-header-socials {
    flex: 0 0 99px;
    width: 99px;
    gap: 6px !important;
    margin: 0 !important;
  }

  .site-header .x-header-socials a {
    width: 29px !important;
    height: 29px !important;
    flex: 0 0 29px;
  }

  .site-header .header-actions > .icon-button {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px;
  }

  .site-header .konic-site-route {
    width: 171px !important;
    min-width: 171px !important;
    max-width: 171px !important;
    height: 44px;
    min-height: 44px;
    flex: 0 0 171px;
    box-sizing: border-box;
  }

  .site-header .mega-menu {
    position: fixed !important;
    top: 74px !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    min-height: 206px !important;
    padding: 24px 28px !important;
    grid-template-columns: .72fr 1.95fr .72fr !important;
    border-radius: 18px !important;
    transform: none !important;
  }

  .site-header .desktop-nav .nav-item[data-konic-primary-role="products"]::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 100%;
    left: 0;
    right: 0;
    height: 4px;
  }

  .site-header .desktop-nav .nav-item[data-konic-primary-role="products"] {
    height: 72px;
    display: flex;
    align-items: center;
  }

  .site-header .mega-menu .mega-links {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .site-header .mega-menu .mega-links a {
    min-height: 92px;
    padding: 9px 10px 9px 14px;
    border: 1px solid rgba(17, 16, 15, .07);
    border-radius: 12px;
  }

  .site-header .mega-menu .mega-links .office-mega-category-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    align-items: center;
    gap: 6px;
    overflow: hidden;
  }

  .office-mega-category-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .office-mega-category-copy strong { font-size: 14px; font-weight: 620; }
  .office-mega-category-copy i { font-style: normal; font-size: 13px; }
  .office-mega-category-card picture { width: 84px; height: 72px; display: grid; place-items: center; }
  .office-mega-category-card img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.08); }
}

/* Product, news, retailer, support and company route heroes share one compact rhythm. */
.x-route-active .x-hero,
.x-route-active .x-support-hero,
.x-route-active .x-company-hero {
  min-height: 400px !important;
  height: 400px;
}

.x-route-active .x-hero > *,
.x-route-active .x-support-hero > *,
.x-route-active .x-company-hero > * {
  min-height: 400px !important;
  height: 400px;
}

.x-route-active .x-hero h1,
.x-route-active .x-support-hero h1,
.x-route-active .x-company-hero h1 {
  text-wrap: balance;
}

.category-band.konic-office-categories {
  --office-card-width: 238px;
  --office-product-gap: 10px;
  --office-marquee-duration: 430s;
  grid-template-columns: minmax(290px, 300px) minmax(0, 1fr);
  grid-auto-rows: 142px;
  gap: 10px;
  align-items: stretch;
  min-height: 142px;
  height: 142px;
  overflow: hidden;
}

.category-band.konic-office-categories > * {
  min-width: 0;
  height: 142px;
}

.category-band.konic-office-categories .office-workspace-intro {
  position: relative;
  grid-template-columns: 1fr;
  align-content: start;
  padding: 17px 20px 14px;
  overflow: hidden;
  cursor: pointer;
}

.category-band.konic-office-categories .office-workspace-intro:focus-visible {
  outline: 2px solid rgba(223, 24, 29, .42);
  outline-offset: -2px;
}

.office-workspace-intro > div:first-child {
  display: contents;
}

.office-workspace-intro h2 {
  position: relative;
  z-index: 2;
  max-width: 225px;
  font-size: clamp(23px, 1.55vw, 27px);
  line-height: .92;
  letter-spacing: -.045em;
}

.office-workspace-intro p {
  display: none;
}

.office-workspace-intro button {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: auto;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: max-content;
  font-size: 10px;
}

.office-workspace-intro .room-sketch {
  position: absolute;
  z-index: 1;
  right: 4px;
  bottom: 2px;
  width: 124px;
  height: 65px;
  opacity: .46;
  pointer-events: none;
}

.office-sketch-svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #989389;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.office-product-viewport {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 142px;
  overflow: hidden;
  border-radius: 14px;
}

.office-product-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation: office-products-marquee var(--office-marquee-duration) linear 0s infinite;
}

.office-product-viewport:hover .office-product-track,
.office-product-viewport:focus-within .office-product-track {
  animation-play-state: paused;
}

.office-product-group {
  display: flex;
  flex: 0 0 auto;
  gap: var(--office-product-gap);
  height: 100%;
  padding-right: var(--office-product-gap);
}

@keyframes office-products-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.category-band.konic-office-categories .office-product-card {
  position: relative;
  display: grid !important;
  flex: 0 0 var(--office-card-width);
  grid-template-columns: minmax(92px, .82fr) minmax(116px, 1.18fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  width: var(--office-card-width);
  min-width: 0;
  height: 142px;
  padding: 0;
  border: 1px solid rgba(24, 22, 20, .08);
  border-radius: 14px;
  background: #f1eee7;
  color: #181614;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .28s ease, border-color .28s ease;
}

.category-band.konic-office-categories .office-product-card:hover,
.category-band.konic-office-categories .office-product-card:focus-visible {
  z-index: 4;
  transform: translateZ(0) scale(1);
  border-color: rgba(24, 22, 20, .08);
  box-shadow: none;
}

.category-band.konic-office-categories .office-product-card:focus-visible {
  outline: 2px solid rgba(223, 24, 29, .48);
  outline-offset: 2px;
}

.office-product-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 1px 19px 12px;
}

.office-product-copy strong {
  display: block;
  max-height: 2.15em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.office-product-copy small {
  display: block;
  max-height: 2.56em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 6px;
  font-size: 8px;
  line-height: 1.28;
  color: rgba(24, 22, 20, .60);
}

.office-product-media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 3px 1px 3px 0;
  overflow: visible;
}

.office-product-media::before {
  content: "";
  position: absolute;
  inset: 16% 3% 13% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.92), rgba(255,255,255,0) 70%);
}

.office-product-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.15);
  transform-origin: center;
  transition: transform .30s cubic-bezier(.16, 1, .3, 1);
}

.category-band.konic-office-categories .office-product-card:hover .office-product-media img,
.category-band.konic-office-categories .office-product-card:focus-visible .office-product-media img {
  transform: scale(1.20);
}

.office-product-arrow {
  display: none !important;
}

@media (max-width: 860px) {
  .konic-mode-switch { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); }
  .konic-mode-switch a { flex: 1; padding: 0 8px; }
  .category-band.konic-office-categories {
    grid-template-columns: 220px minmax(760px, 1fr);
    grid-auto-rows: 132px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  .category-band.konic-office-categories > * {
    height: 132px;
    scroll-snap-align: start;
  }
  .category-band.konic-office-categories .category-intro { grid-column: auto; }
  .office-product-viewport,
  .category-band.konic-office-categories .office-product-card { height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  .konic-mode-switch a { transition: none; }
  .office-product-track { animation: none !important; }
}
html[data-konic-menu-dismissed="true"] .mega-menu {
  display: none !important;
}

/* V16 — Office catalog now follows the Home catalog hierarchy:
   one 260px theme banner, then a persistent category rail, then products. */
body.x-route-active {
  overflow-x: clip;
}

.x-route-active .site-shell {
  overflow: visible;
}

.x-route-active .is-office-catalog .x-office-catalog-hero {
  position: relative;
  display: block;
  width: 100%;
  height: 260px !important;
  min-height: 260px !important;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-section);
  background: #e8e3db;
}

.x-route-active .is-office-catalog .x-office-catalog-hero > * {
  height: auto !important;
  min-height: 0 !important;
}

.x-route-active .is-office-catalog .x-office-catalog-hero .x-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  border-radius: 0;
  background: #e8e3db;
}

.x-route-active .is-office-catalog .x-office-catalog-hero .x-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.x-route-active .is-office-catalog .x-office-catalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.x-route-active .is-office-catalog .x-office-catalog-hero.is-light-copy::after {
  background: linear-gradient(90deg, rgba(14, 13, 12, .90) 0%, rgba(14, 13, 12, .65) 31%, rgba(14, 13, 12, .16) 57%, rgba(14, 13, 12, 0) 78%);
}

.x-route-active .is-office-catalog .x-office-catalog-hero.is-dark-copy::after {
  background: linear-gradient(90deg, rgba(248, 245, 240, .94) 0%, rgba(248, 245, 240, .76) 31%, rgba(248, 245, 240, .20) 58%, rgba(248, 245, 240, 0) 78%);
}

.x-route-active .is-office-catalog .x-office-catalog-hero .x-hero-copy {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  display: flex;
  width: min(50%, 670px);
  min-height: 0 !important;
  padding: clamp(28px, 3.2vw, 50px);
  justify-content: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.x-route-active .is-office-catalog .x-office-catalog-hero .x-hero-copy::after {
  display: none;
}

.x-route-active .is-office-catalog .x-office-catalog-hero .x-hero-copy h1 {
  width: 100%;
  max-width: 600px;
  font-size: clamp(40px, 4.25vw, 66px);
  line-height: .94;
  text-wrap: balance;
}

.x-route-active .is-office-catalog .x-office-catalog-hero.is-light-copy .x-hero-copy {
  color: #fff;
}

.x-route-active .is-office-catalog .x-office-catalog-hero.is-dark-copy .x-hero-copy {
  color: #181614;
}

.x-route-active .is-office-catalog .x-category-switcher {
  position: sticky;
  top: 0;
  z-index: 92;
  min-height: 58px;
  margin: 28px 0;
  padding: 8px;
  border: 1px solid rgba(24, 22, 20, .07);
  border-radius: 14px;
  background: rgba(241, 238, 231, .94);
  box-shadow: 0 7px 22px rgba(27, 23, 19, .035);
  backdrop-filter: blur(18px) saturate(1.08);
}

.x-route-active .is-office-catalog .x-category-switcher button {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  color: #5f5b56;
}

.x-route-active .is-office-catalog .x-category-switcher button:hover {
  background: rgba(255, 255, 255, .78);
  color: var(--red);
}

.x-route-active .is-office-catalog .x-category-switcher button.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 7px 18px rgba(223, 24, 29, .15);
}

.x-route-active .is-office-catalog .x-catalog-layout {
  margin-top: 0;
}

.x-route-active .is-office-catalog .x-filter-panel {
  top: 76px;
}

/* Transparent product photography keeps the four Office homepage entrances
   visually equal even though the silhouettes are very different. */
.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-image-wrap {
  padding: 7px 18px 1px;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 15px 20px rgba(37, 31, 26, .14));
}

.hero-grid .mount-grid .product-card[data-konic-category-entry="cleaning"] .product-image-wrap img {
  transform: scale(1.03);
}

.hero-grid .mount-grid .product-card[data-konic-category-entry="accessories"] .product-image-wrap img {
  transform: scale(1.06);
}

.hero-grid .mount-grid .product-card[data-konic-category-entry="gaming"] .product-image-wrap img {
  transform: scale(1.05);
}

.hero-grid .mount-grid .product-card[data-konic-category-entry]:hover .product-image-wrap img {
  transform: translateY(-2px) scale(1.075);
}

@media (max-width: 960px) {
  .x-route-active .is-office-catalog .x-category-switcher {
    top: 65px;
  }

  .x-route-active .is-office-catalog .x-filter-panel {
    top: auto;
  }
}

/* Keep the V18 art direction last in the cascade. */
@media (min-width: 961px) {
  .site-header .mega-menu {
    top: 74px !important;
    height: 146px !important;
    min-height: 146px !important;
    padding: 12px 18px !important;
    grid-template-columns: minmax(210px, .74fr) minmax(620px, 1.95fr) minmax(250px, .76fr) !important;
    gap: 20px !important;
    align-items: center !important;
  }

  .site-header .mega-menu .mega-links {
    height: 88px !important;
    min-height: 88px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .site-header .mega-menu .mega-links .office-mega-category-card {
    height: 82px !important;
    min-height: 82px !important;
    padding: 8px 8px 8px 12px !important;
    grid-template-columns: minmax(0, 1fr) 66px !important;
  }

  .site-header .mega-menu .mega-feature {
    height: 88px !important;
    min-height: 88px !important;
    padding: 13px 16px !important;
  }
}

.hero-grid .mount-grid .product-card[data-konic-category-entry="monitors"] {
  --entry-scale: .77;
  --entry-hover-scale: .80;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="cleaning"] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="accessories"] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="gaming"] .product-image-wrap img {
  filter: contrast(.98) drop-shadow(0 13px 18px rgba(37, 31, 26, .14)) !important;
}

/* V18 — one navigation language and one spacing system for every Office route. */
:root {
  --konic-gap-large: 40px;
  --konic-gap-medium: 20px;
  --konic-gap-small: 10px;
}

.site-header .desktop-nav .nav-item,
.site-header .desktop-nav .konic-primary-link {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.site-header .desktop-nav .nav-item::after,
.site-header .desktop-nav .konic-primary-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 13px;
  height: 2px;
  background: var(--red);
  transition: left .22s cubic-bezier(.16, 1, .3, 1), right .22s cubic-bezier(.16, 1, .3, 1);
}

.site-header .desktop-nav .nav-item:hover::after,
.site-header .desktop-nav .nav-item.is-open::after,
.site-header .desktop-nav .nav-item.is-current::after,
.site-header .desktop-nav .konic-primary-link:hover::after,
.site-header .desktop-nav .konic-primary-link.is-current::after {
  left: 0;
  right: 0;
}

.site-header .desktop-nav .nav-item.is-current,
.site-header .desktop-nav .konic-primary-link.is-current {
  color: var(--red);
}

@media (min-width: 961px) {
  .site-header .mega-menu {
    top: 74px !important;
    height: 146px !important;
    min-height: 146px !important;
    padding: 12px 18px !important;
    grid-template-columns: minmax(210px, .74fr) minmax(620px, 1.95fr) minmax(250px, .76fr) !important;
    gap: 20px !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .site-header .mega-menu::before,
  .site-header .mega-menu::after {
    display: none !important;
  }

  .site-header .mega-menu > * {
    min-width: 0;
    align-self: center !important;
  }

  .site-header .mega-menu h2 {
    max-width: 215px;
    margin: 0 !important;
    font-size: clamp(29px, 2.25vw, 36px) !important;
    line-height: .98 !important;
  }

  .site-header .mega-menu .mega-kicker {
    margin: 0 0 6px !important;
  }

  .site-header .mega-menu .mega-links {
    height: 88px;
    min-height: 88px;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-content: center !important;
    align-items: stretch !important;
  }

  .site-header .mega-menu .mega-links .office-mega-category-card {
    width: 100%;
    height: 82px !important;
    min-height: 82px !important;
    padding: 8px 8px 8px 12px !important;
    grid-template-columns: minmax(0, 1fr) 66px !important;
    align-items: center !important;
    border: 1px solid rgba(17, 16, 15, .08) !important;
    border-radius: 12px !important;
  }

  .site-header .mega-menu .mega-links .office-mega-category-card picture {
    width: 66px !important;
    height: 58px !important;
    display: grid;
    place-items: center;
  }

  .site-header .mega-menu .mega-links .office-mega-category-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(.88) !important;
    filter: contrast(.98) drop-shadow(0 7px 10px rgba(24, 20, 18, .12)) !important;
  }

  .site-header .mega-menu .mega-feature {
    width: 100%;
    height: 88px !important;
    min-height: 88px !important;
    padding: 13px 16px !important;
    justify-content: center;
  }

  .site-header .mega-menu .mega-feature strong {
    margin: 5px 0 0 !important;
    font-size: 17px !important;
  }

  .site-header .mega-menu .mega-feature .arrow {
    position: absolute;
    right: 16px;
    bottom: 15px;
    width: 14px;
    height: 10px;
    margin: 0 !important;
    color: var(--red);
  }
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] {
  --entry-scale: .82;
  --entry-hover-scale: .85;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry="monitors"] {
  --entry-scale: .77;
  --entry-hover-scale: .80;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="cleaning"] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="accessories"] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="gaming"] .product-image-wrap img {
  filter: contrast(.98) drop-shadow(0 13px 18px rgba(37, 31, 26, .14)) !important;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-card-copy {
  min-height: 72px;
  padding: 10px 40px 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-card-copy > span:first-child {
  display: none !important;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-card-copy strong {
  margin: 0;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-card-copy p {
  margin: 3px 0 0;
}

.finder-strip .button,
.finder-strip button,
.hero-panel .hero-buttons .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  line-height: 1 !important;
}

.finder-strip .button .arrow,
.finder-strip button .arrow,
.hero-panel .hero-buttons .button .arrow {
  align-self: center !important;
  margin: 0 !important;
  transform: none !important;
}

.x-route-active .extended-main {
  --space-1: var(--konic-gap-small);
  --space-2: var(--konic-gap-medium);
  --section-gap: var(--konic-gap-large);
}

.x-route-active .x-page-enter > .x-section,
.x-route-active .x-page-enter > .x-category-switcher,
.x-route-active .x-page-enter > .x-catalog-layout,
.x-route-active .x-page-enter > .x-form-shell,
.x-route-active .x-page-enter > .x-article-body,
.x-route-active .x-page-enter > .x-search-page,
.x-route-active .x-page-enter > .x-empty {
  margin-top: 40px !important;
}

.x-route-active .x-page-enter > :first-child {
  margin-top: 0 !important;
}

.x-route-active .x-category-switcher + .x-catalog-layout,
.x-route-active .x-retailer-filter + .x-store-grid,
.x-route-active .x-section-head + .x-search-tools,
.x-route-active .x-search-tools + .x-download-groups {
  margin-top: 20px !important;
}

.x-route-active .x-category-switcher {
  margin-bottom: 0 !important;
}

.x-route-active .x-support-hero,
.x-route-active .x-company-hero,
.x-route-active .x-hero:not(.x-product-detail) {
  gap: 10px !important;
}

.x-route-active .x-support-hero article > p:not(.x-eyebrow),
.x-route-active .x-company-hero article > p:not(.x-eyebrow),
.x-route-active .x-hero:not(.x-product-detail) .x-hero-copy > p:not(.x-eyebrow) {
  display: none !important;
}

.x-route-active .x-support-links,
.x-route-active .x-store-grid {
  gap: 10px !important;
  grid-auto-rows: 1fr;
}

.x-route-active .x-news-grid,
.x-route-active .x-help-split,
.x-route-active .x-about-grid,
.x-route-active .x-form-shell,
.x-route-active .x-article-body,
.x-route-active .x-catalog-layout,
.x-route-active .x-product-grid,
.x-route-active .x-guide-grid,
.x-route-active .x-search-results {
  gap: 20px !important;
  align-items: stretch !important;
}

.x-route-active :is(.x-support-link,.x-store-card,.x-news-card,.x-help-card,.x-about-copy,.x-form-aside,.x-form-panel,.x-product-card,.x-guide-card) {
  height: 100%;
}

.x-route-active .x-form-shell {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.x-route-active .x-form-shell > * {
  min-height: 100%;
}

.x-route-active .x-news-grid .x-news-card:nth-last-child(2) {
  grid-column: span 2;
}

.x-route-active .x-news-grid .x-news-card:last-child {
  grid-column: span 2;
}

.x-route-active .x-news-grid .x-news-card {
  min-height: 340px;
}

@media (max-width: 960px) {
  .x-route-active .x-form-shell {
    grid-template-columns: 1fr !important;
  }

  .x-route-active .x-news-grid .x-news-card:nth-last-child(2),
  .x-route-active .x-news-grid .x-news-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .x-route-active .is-office-catalog .x-office-catalog-hero,
  .x-route-active .is-office-catalog .x-office-catalog-hero .x-hero-media {
    height: 260px !important;
    min-height: 260px !important;
  }

  .x-route-active .is-office-catalog .x-office-catalog-hero .x-hero-copy {
    width: 72%;
    min-height: 0 !important;
    padding: 28px 22px;
  }

  .x-route-active .is-office-catalog .x-office-catalog-hero .x-hero-copy h1 {
    font-size: clamp(37px, 11.4vw, 48px);
  }

  .x-route-active .is-office-catalog .x-category-switcher {
    margin: 18px 0;
  }

  .x-route-active .is-office-catalog .x-category-switcher button {
    padding: 0 14px;
  }
}

/* V17 — compact menu, unified tertiary heroes and a consistent product-card art direction. */
.site-header .desktop-nav {
  gap: 30px !important;
  column-gap: 30px !important;
}

@media (min-width: 961px) {
  .site-header .mega-menu {
    top: 72px !important;
    height: 174px !important;
    min-height: 174px !important;
    padding: 14px 20px !important;
    grid-template-columns: minmax(220px, .7fr) minmax(620px, 1.95fr) minmax(250px, .72fr) !important;
    align-items: center !important;
    gap: 18px !important;
    border-radius: 16px !important;
    background: rgba(248, 245, 240, .995) !important;
    overflow: hidden !important;
    box-shadow: 0 22px 56px rgba(38, 29, 18, .2) !important;
  }

  .site-header .mega-menu .mega-kicker {
    margin-bottom: 7px;
  }

  .site-header .mega-menu h2 {
    max-width: 230px;
    font-size: clamp(30px, 2.35vw, 38px) !important;
    line-height: .96 !important;
  }

  .site-header .mega-menu .mega-links {
    align-content: center !important;
  }

  .site-header .mega-menu .mega-links a,
  .site-header .mega-menu .mega-links .office-mega-category-card {
    min-height: 78px !important;
    height: 78px !important;
    padding: 7px 9px 7px 13px !important;
    grid-template-columns: minmax(0, 1fr) 68px !important;
    transition: transform .22s cubic-bezier(.16, 1, .3, 1), border-color .18s ease, background .18s ease !important;
  }

  .site-header .mega-menu .mega-links .office-mega-category-card:hover,
  .site-header .mega-menu .mega-links .office-mega-category-card:focus-visible {
    transform: scale(1.018);
    padding-left: 13px !important;
    background: rgba(255, 255, 255, .62);
    border-color: rgba(17, 16, 15, .12);
  }

  .office-mega-category-copy {
    gap: 5px;
  }

  .office-mega-category-copy strong {
    white-space: nowrap;
    font-size: 13px !important;
  }

  .office-mega-category-copy i {
    font-size: 0 !important;
    width: 13px;
    height: 9px;
    position: relative;
    flex: 0 0 13px;
  }

  .office-mega-category-copy i::before {
    content: "";
    position: absolute;
    left: 1px;
    right: 2px;
    top: 4px;
    height: 1px;
    background: currentColor;
  }

  .office-mega-category-copy i::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 1px;
    width: 5px;
    height: 5px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
  }

  .office-mega-category-card picture {
    width: 68px !important;
    height: 58px !important;
  }

  .office-mega-category-card img {
    transform: scale(.9) !important;
    filter: grayscale(1) contrast(.96);
  }

  .site-header .mega-menu .mega-feature {
    min-height: 112px !important;
    height: 112px !important;
    padding: 15px 18px !important;
    overflow: hidden;
  }

  .site-header .mega-menu .mega-feature strong {
    margin-top: 7px;
    font-size: 18px;
  }

  .site-header .mega-menu .mega-feature > .arrow {
    align-self: flex-end;
    margin-top: auto;
  }
}

/* All Office third-level visual headers use the same 260px height. */
.x-route-active .x-hero:not(.x-product-detail),
.x-route-active .x-support-hero,
.x-route-active .x-company-hero,
.x-route-active .x-hero:not(.x-product-detail) > *,
.x-route-active .x-support-hero > *,
.x-route-active .x-company-hero > * {
  height: 260px !important;
  min-height: 260px !important;
}

.x-route-active .x-hero:not(.x-product-detail) h1,
.x-route-active .x-support-hero h1,
.x-route-active .x-company-hero h1 {
  font-size: clamp(38px, 4vw, 58px) !important;
  line-height: .96 !important;
}

.x-route-active .x-breadcrumb,
.x-route-active .x-page-top {
  display: none !important;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] {
  --entry-scale: .82;
  --entry-hover-scale: .855;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry="monitors"] {
  --entry-scale: .88;
  --entry-hover-scale: .915;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-image-wrap {
  padding: 15px 25px 8px !important;
  overflow: hidden;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="cleaning"] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="accessories"] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="gaming"] .product-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: scale(var(--entry-scale)) !important;
  filter: grayscale(1) contrast(.96) drop-shadow(0 13px 18px rgba(37, 31, 26, .13)) !important;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), filter .22s ease;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry]:hover .product-image-wrap img {
  transform: translateY(-2px) scale(var(--entry-hover-scale)) !important;
  filter: grayscale(1) contrast(.99) drop-shadow(0 17px 22px rgba(37, 31, 26, .17)) !important;
}

@media (max-width: 960px) {
  .x-route-active .x-hero:not(.x-product-detail),
  .x-route-active .x-support-hero,
  .x-route-active .x-company-hero,
  .x-route-active .x-hero:not(.x-product-detail) > *,
  .x-route-active .x-support-hero > *,
  .x-route-active .x-company-hero > * {
    height: 260px !important;
    min-height: 260px !important;
  }
}

/* V18 final cascade: preserve red accents and the compact, aligned mega menu. */
@media (min-width: 961px) {
  .site-header .mega-menu {
    top: 74px !important;
    height: 146px !important;
    min-height: 146px !important;
    padding: 12px 18px !important;
    grid-template-columns: minmax(210px, .74fr) minmax(620px, 1.95fr) minmax(250px, .76fr) !important;
    gap: 20px !important;
    align-items: center !important;
  }

  .site-header .mega-menu .mega-links {
    height: 88px !important;
    min-height: 88px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .site-header .mega-menu .mega-links .office-mega-category-card {
    height: 82px !important;
    min-height: 82px !important;
    padding: 8px 8px 8px 12px !important;
    grid-template-columns: minmax(0, 1fr) 66px !important;
  }

  .site-header .mega-menu .mega-feature {
    height: 88px !important;
    min-height: 88px !important;
    padding: 13px 16px !important;
  }
}

.hero-grid .mount-grid .product-card[data-konic-category-entry="monitors"] {
  --entry-scale: .77;
  --entry-hover-scale: .80;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="cleaning"] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="accessories"] .product-image-wrap img,
.hero-grid .mount-grid .product-card[data-konic-category-entry="gaming"] .product-image-wrap img {
  filter: contrast(.98) drop-shadow(0 13px 18px rgba(37, 31, 26, .14)) !important;
}

.hero-grid .mount-grid .product-card[data-konic-category-entry]:hover .product-image-wrap img {
  filter: contrast(1) drop-shadow(0 17px 22px rgba(37, 31, 26, .17)) !important;
}
