/* =========================================================
   HYDRAULIC SEAL DEPOT SHARED THEME
   Brand and shell adaptations layered over the cleaned store.
   Functional selectors remain owned by their component files.
   ========================================================= */

:root {
  --hsd-blue: #00224b;
  --hsd-blue-deep: #001025;
  --hsd-blue-card: #00142e;
  --hsd-blue-mid: #001b3a;
  --hsd-electric: #0090e1;
  --hsd-electric-bright: #00b9ff;
  --hsd-gold: #f9b001;
  --hsd-gold-bright: #ffc000;
  --hsd-line: #dce2e8;
}

body {
  color: var(--text-primary);
  background: #f5f7fa;
}

.site-header {
  border-bottom: 2px solid #08a6df;
  background: #fff;
  color: var(--hsd-blue);
}

.site-header #nav1 {
  height: 36px;
  min-height: 36px;
  background: linear-gradient(90deg, #002149 0%, var(--hsd-blue) 30%, #000e42 52%, var(--hsd-blue) 72%, #002149 100%);
  border-bottom: 1px solid rgba(0, 144, 225, .3);
}

.site-header .top-bar {
  width: min(92%, 1700px);
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.site-header .top-message,
.site-header .ticker-group,
.site-header .top-social {
  color: #fff;
  font-size: 12px;
}

.site-header .ticker-group span::after {
  width: 15px;
  height: 15px;
  border: 2px solid var(--hsd-gold);
  border-radius: 50%;
  background: transparent;
  color: var(--hsd-gold);
  box-shadow: none;
}

.site-header .top-social-icons {
  gap: 28px;
}

.site-header .top-social-icons > a:not(.top-help-toggle) {
  width: auto;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.site-header .top-help-toggle {
  border-color: var(--hsd-gold);
  color: var(--hsd-gold);
}

.site-header #nav2 {
  background: #fff;
  border-bottom: 0;
}

.site-header .nav2-container {
  height: auto;
}

.site-header .hsd-search-launch {
  min-width: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 28px;
  overflow: hidden;
  border: 1px solid #ccd3dc;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 20, 45, .05);
  color: #52627a;
  cursor: text;
  font: inherit;
  text-align: left;
}

.site-header .hsd-search-launch > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header .hsd-search-launch > i {
  width: 56px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  margin-left: 18px;
  border: 2px solid var(--hsd-electric);
  background: var(--hsd-blue);
  color: #fff;
  font-size: 22px;
  box-shadow: inset 0 0 5px rgba(0, 144, 225, .48);
}

.site-header .hsd-search-launch:hover,
.site-header .hsd-search-launch:focus-visible {
  border-color: var(--hsd-electric);
  box-shadow: 0 0 0 3px rgba(0, 144, 225, .12);
}

.site-header .nav-icon-link:hover i,
.site-header .shop-products-link:hover {
  color: var(--hsd-electric);
}

.site-header .shop-products-link--primary {
  min-width: 252px;
  min-height: 45px;
  justify-content: flex-start;
  padding: 0 22px;
  gap: 12px;
  border: 2px solid var(--hsd-electric);
  border-radius: 6px;
  background: var(--hsd-blue);
  box-shadow: 0 0 5px rgba(0, 144, 225, .48), 0 2px 4px rgba(0, 16, 37, .18);
  color: #fff;
}

.site-header .shop-products-link--primary i:last-child {
  margin-left: auto;
}

.site-header .shop-products-link--primary:hover,
.site-header .shop-products-link--primary.nav2-mega-link-active {
  background: #00346f;
  color: #fff;
}

.site-header .shop-all-link,
.dsn-mega__primary-link,
.dsn-feature__cta {
  border-color: var(--hsd-gold);
  background: linear-gradient(180deg, var(--hsd-gold-bright), var(--hsd-gold));
  color: #07111f;
}

.dsn-mega__eyebrow,
.dsn-feature__topline,
.dsn-category-card__top > span,
.dsn-category-card__action,
.dsn-brand-card__copy small {
  color: var(--hsd-electric);
}

.dsn-mega__intro {
  border-left-color: var(--hsd-gold);
}

.dsn-mega__intro h2 span,
.dsn-assistant-card__identity > i {
  color: var(--hsd-gold);
}

.dsn-feature__cta {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 16px;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.site-footer__logo {
  width: min(100%, 320px);
  height: auto;
}

.site-footer__eyebrow span {
  background: var(--hsd-gold);
}

.site-header .quick-order-nav-trigger {
  isolation: isolate;
}

.site-header .quick-order-nav-trigger > * {
  position: relative;
  z-index: 1;
}

.site-header .quick-order-nav-trigger::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  z-index: 0;
  width: 32px;
  height: 32px;
  border: 2px solid var(--hsd-electric);
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-50%) scale(.45);
  pointer-events: none;
}

.site-header .quick-order-nav-trigger.has-received-item i {
  animation: hsdQuickOrderCatch 720ms cubic-bezier(.2, .85, .25, 1) both;
}

.site-header .quick-order-nav-trigger.has-received-item::after {
  animation: hsdQuickOrderCatchRing 820ms ease-out both;
}

@keyframes hsdQuickOrderCatch {
  0% { transform: translateY(-12px) scale(.72) rotate(-16deg); }
  45% { transform: translateY(2px) scale(1.22) rotate(7deg); color: var(--hsd-electric); }
  70% { transform: translateY(-1px) scale(.96) rotate(-2deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

@keyframes hsdQuickOrderCatchRing {
  0% { opacity: 0; transform: translateX(-50%) scale(.45); }
  30% { opacity: .8; }
  100% { opacity: 0; transform: translateX(-50%) scale(1.35); }
}

@media (min-width: 1001px) {
  .site-header .nav2-container {
    width: min(92%, 1700px);
    max-width: 1700px;
    min-height: 150px;
    display: grid;
    grid-template-columns: 350px minmax(320px, 1fr) auto;
    grid-template-rows: 86px 64px;
    align-items: center;
    column-gap: clamp(22px, 2vw, 36px);
    padding: 0;
  }

  .site-header .nav2-left {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .site-header .site-wordmark__mark {
    width: min(100%, 340px);
  }

  .site-header .hsd-search-launch {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .nav2-right {
    grid-column: 3;
    grid-row: 1;
    flex-basis: auto;
    gap: 16px;
  }

  .site-header .quick-order-nav-trigger {
    flex: 0 0 68px;
    width: 68px;
    min-width: 68px;
  }

  .site-header .quick-order-nav-trigger .icon-label {
    white-space: nowrap;
  }

  .site-header .nav2-right > .search-button,
  .site-header .nav2-right > .shop-all-link,
  .site-header .nav2-right > .hamburger-btn {
    display: none;
  }

  .site-header .nav2-center {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    border-top: 1px solid #e8edf1;
  }

  .site-header .nav-links-wrapper {
    width: 100%;
    justify-content: flex-start;
    gap: clamp(30px, 3vw, 56px);
  }

  .site-header .shop-products-link {
    height: 45px;
    min-height: 44px;
    border-bottom: 0;
    color: var(--hsd-blue);
    font-size: clamp(12px, .85vw, 15px);
    font-weight: 650;
    white-space: nowrap;
  }

  .site-header .shop-products-link::after {
    display: none;
  }

  .site-header .shop-products-link--primary {
    height: 45px;
    margin-right: clamp(10px, 1vw, 20px);
    color: #fff;
    font-weight: 800;
  }

  .site-header .nav2-mega-tray {
    top: 100%;
  }
}

@media (max-width: 1400px) and (min-width: 1001px) {
  .site-header .nav2-container {
    grid-template-columns: 285px minmax(280px, 1fr) auto;
    column-gap: 22px;
  }

  .site-header .shop-products-link--primary {
    min-width: 220px;
  }

  .site-header .nav2-right {
    gap: 10px;
  }

  .site-header .nav-icon-link {
    width: 48px;
  }
}

@media (max-width: 1000px) {
  .site-header .quick-entry-nav-link {
    display: flex;
  }

  .site-header .quick-entry-nav-link .icon-label {
    font-size: 0;
  }

  .site-header .quick-entry-nav-link .icon-label::after {
    content: 'Entry';
    font-size: .66rem;
  }

  .site-header #nav1,
  .site-header .top-bar {
    height: 32px;
    min-height: 32px;
  }

  .site-header .top-bar {
    width: 100%;
    padding-inline: 14px;
  }

  .site-header .hsd-search-launch {
    display: none;
  }

  .site-header .site-wordmark__mark {
    width: clamp(190px, 36vw, 265px);
  }
}

@media (max-width: 560px) {
  .site-header .nav2-container {
    width: 100%;
    max-width: none;
  }

  .site-header .nav2-right {
    width: auto;
  }

  .site-header .site-wordmark__mark {
    width: min(100%, 190px);
  }

  #mobileMenu .mm-appbar__brand img {
    width: min(230px, 68vw);
    max-width: 100%;
  }
}
