/* Products page rebuilt to match the supplied catalog reference. */

body[data-page="products"] {
  background: #ffffff;
}

.products-hero {
  position: relative;
  min-height: 320px;
  margin-top: var(--header-height);
  overflow: hidden;
  background: #0c214b;
}

.products-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(26, 72, 177, 0.9) 0%, rgba(28, 76, 176, 0.78) 34%, rgba(28, 76, 176, 0.25) 55%, rgba(7, 16, 30, 0.16) 100%),
    linear-gradient(180deg, rgba(1, 8, 28, 0.18), rgba(1, 8, 28, 0.16));
}

.products-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  max-width: 1180px;
  min-height: 320px;
  margin: 0 auto;
  padding: 0 24px;
}

.products-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.products-breadcrumb {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  pointer-events: none;
}

.products-breadcrumb-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  background: rgba(7, 14, 28, 0.82);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 700;
  pointer-events: auto;
}

.products-breadcrumb-box a {
  color: #ffe900;
}

.products-catalog-section {
  padding: 60px 0 72px;
  background: #ffffff;
}

.products-catalog-shell {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.product-category-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  border-radius: 8px;
  background: #eef2fc;
  padding: 30px;
}

.product-category-panel h2 {
  margin: 0 0 28px;
  background: linear-gradient(135deg, #2e34ad 0%, #078ee2 100%);
  color: #ffffff;
  padding: 16px 24px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.product-category-panel ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-category-panel a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 28px;
  padding-left: 18px;
  color: #303645;
  font-size: 17px;
  line-height: 1.35;
  transition: color 180ms ease;
}

.product-category-panel a::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #0066e6;
}

.product-category-panel a:hover {
  color: #0066e6;
}

.product-category-panel a.is-active {
  color: #0066e6;
  font-weight: 700;
}

.product-category-panel a.is-active,
.product-category-panel a[aria-current="location"] {
  color: #0066e6;
  font-weight: 800;
}

.product-category-panel a.is-active::before,
.product-category-panel a[aria-current="location"]::before {
  border-left-color: #f3b21a;
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.product-card-grid.is-filtered-by-category {
  align-items: start;
}

.product-card {
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.product-card[hidden] {
  display: none;
}

.product-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 246px;
  background: #e5e7eb;
}

.product-card__media img {
  width: 100%;
  height: 246px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.035);
}

.product-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  background: #0065e8;
  color: #ffffff;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.product-card__body {
  padding: 28px 30px 32px;
}

.product-card__category {
  margin: 0 0 10px;
  color: #0065e8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.product-card h3 {
  margin: 0 0 14px;
  color: #11182c;
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0;
}

.product-card p {
  max-width: none;
  margin: 0 0 12px;
  color: #4b5565;
  font-size: 15px;
  line-height: 1.72;
}

.product-card__note {
  color: #263247 !important;
}

.product-flow {
  border-top: 1px solid #e5e9f2;
  margin-top: 16px !important;
  padding-top: 14px;
}

.product-flow strong {
  color: #11182c;
}

.product-mini-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.product-mini-list li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
}

.product-mini-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: #0065e8;
  transform: rotate(45deg);
}

.product-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e9f2;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #0065e8;
  background: #0065e8;
  color: #ffffff;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.product-card__link:hover,
.product-card__link:focus-visible {
  border-color: #07183a;
  background: #07183a;
  color: #ffffff;
  transform: translateY(-1px);
}

.product-card__link--secondary {
  border-color: #d5dfef;
  background: #ffffff;
  color: #0f2f66;
}

.product-card__link--secondary:hover,
.product-card__link--secondary:focus-visible {
  border-color: #0065e8;
  background: #eef4ff;
  color: #0065e8;
}

@media (max-width: 1100px) {
  .products-catalog-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .products-catalog-shell {
    grid-template-columns: 1fr;
  }

  .product-category-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .products-hero,
  .products-hero-inner {
    min-height: 260px;
  }

  .products-hero h1 {
    font-size: 42px;
  }

  .products-breadcrumb,
  .products-hero-inner,
  .products-catalog-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .products-catalog-section {
    padding-top: 24px;
    padding-bottom: 54px;
  }

  .product-category-panel {
    overflow: hidden;
    padding: 14px;
  }

  .product-category-panel h2 {
    margin: 0 0 12px;
    padding: 0;
    background: transparent;
    color: #07183a;
    font-size: 16px;
    line-height: 1.3;
  }

  .product-category-panel ul {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-category-panel ul::-webkit-scrollbar {
    display: none;
  }

  .product-category-panel li {
    flex: 0 0 auto;
  }

  .product-category-panel a {
    min-height: 42px;
    border: 1px solid #d5dfef;
    border-radius: 999px;
    background: #ffffff;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .product-category-panel a::before {
    display: none;
  }

  .product-category-panel a:hover,
  .product-category-panel a.is-active,
  .product-category-panel a[aria-current="location"] {
    border-color: #0065e8;
    background: #0065e8;
    color: #ffffff;
  }

  .product-card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card__media,
  .product-card__media img {
    min-height: 220px;
    height: 220px;
  }

  .product-card__body {
    padding: 24px 22px 28px;
  }

  .product-card__links {
    gap: 8px;
  }

  .product-card__link {
    flex: 1 1 auto;
    min-height: 44px;
  }
}

@media (max-width: 460px) {
  .products-breadcrumb-box {
    min-height: 46px;
    font-size: 14px;
  }

  .product-category-panel a {
    font-size: 16px;
  }

  .product-card h3 {
    font-size: 21px;
  }

  .product-card__link {
    width: 100%;
  }
}
