.page-products {
  background: #f4f8fb;
}

.products-hero {
  position: relative;
  height: clamp(500px, 35.416667vw, 680px);
  overflow: hidden;
  background: var(--color-deep);
  color: #fff;
}

.products-hero__background,
.products-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.products-hero__background {
  object-fit: cover;
  object-position: 54% 48%;
  transform: scale(1.035);
}

.products-hero__shade {
  background:
    radial-gradient(circle at 72% 44%, rgba(0, 206, 189, 0.14), transparent 31%),
    linear-gradient(90deg, rgba(5, 24, 46, 0.96) 0%, rgba(5, 41, 68, 0.85) 39%, rgba(4, 64, 91, 0.4) 68%, rgba(4, 42, 65, 0.18) 100%);
}

.products-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center;
}

.products-hero__content {
  width: min(700px, 53vw);
  padding-top: 8px;
}

.products-hero__eyebrow,
.category-heading__eyebrow,
.catalog-cta__eyebrow {
  color: #69c4ff;
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.products-hero h1 {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(50px, 4.166667vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.products-hero__lead {
  max-width: 610px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.9;
}

.products-hero__stats {
  display: flex;
  gap: 44px;
  margin-top: 42px;
}

.products-hero__stat {
  display: flex;
  min-width: 126px;
  flex-direction: column;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.products-hero__stat strong {
  color: #fff;
  font-family: var(--font-utility);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.products-hero__stat span {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-utility);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-heading__eyebrow {
  color: var(--color-primary);
}

.category-jump {
  position: sticky;
  z-index: 80;
  top: 0;
  border-top: 1px solid #dbe6ee;
  border-bottom: 1px solid #dbe6ee;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(8, 26, 48, 0.06);
  backdrop-filter: blur(12px);
}

.category-jump__list {
  display: grid;
  min-height: 82px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-jump__list li {
  min-width: 0;
}

.category-jump__list a {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-right: 1px solid #e2eaf0;
  color: #40546a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.category-jump__list li:first-child a {
  border-left: 1px solid #e2eaf0;
}

.category-jump__list a::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  background: var(--color-primary);
  content: "";
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.category-jump__list a:hover,
.category-jump__list a:focus-visible,
.category-jump__list a.is-current {
  background: #f3f9fd;
  color: var(--color-primary-dark);
}

.category-jump__list a:hover::after,
.category-jump__list a:focus-visible::after,
.category-jump__list a.is-current::after {
  transform: scaleX(1);
}

.product-catalog {
  padding: 82px 0 126px;
  background:
    linear-gradient(rgba(15, 50, 78, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 50, 78, 0.025) 1px, transparent 1px),
    #f4f8fb;
  background-size: 48px 48px;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid #ccdbe6;
}

.catalog-toolbar__eyebrow {
  color: var(--color-primary);
  font-family: var(--font-utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.catalog-toolbar h2 {
  margin-top: 10px;
  color: var(--color-heading);
  font-size: clamp(30px, 2.1875vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.catalog-toolbar__count {
  flex: 0 0 auto;
  color: #697f93;
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.catalog-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.catalog-results:empty {
  display: none;
}

.is-catalog-enhanced .catalog-category {
  display: none;
}

.catalog-category {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: clamp(48px, 5.208333vw, 100px);
  padding-top: 108px;
  scroll-margin-top: 84px;
}

.catalog-category + .catalog-category {
  margin-top: 10px;
  padding-top: 110px;
  border-top: 1px solid rgba(157, 178, 195, 0.38);
}

.category-heading {
  position: sticky;
  top: 114px;
  align-self: start;
}

.category-heading__number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border: 1px solid #b7ccdc;
  border-radius: 50%;
  color: var(--color-primary);
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 700;
}

.category-heading h2 {
  margin-top: 13px;
  color: var(--color-heading);
  font-size: clamp(26px, 1.875vw, 36px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.category-heading__count {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  color: #7a8ca0;
  font-family: var(--font-utility);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-heading__count::before {
  width: 34px;
  height: 1px;
  background: #aebfcd;
  content: "";
}

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

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: auto;
  border: 1px solid #e0e9f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(14, 42, 67, 0.07);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

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

.product-card__detail-link {
  position: absolute;
  z-index: 4;
  inset: 0 0 64px;
  border-radius: 10px 10px 0 0;
}

.product-card__detail-link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -5px;
}

.product-card:hover {
  border-color: #c1d9e9;
  box-shadow: 0 26px 58px rgba(14, 42, 67, 0.12);
  transform: translateY(-5px);
}

.product-card__media {
  position: relative;
  display: grid;
  min-height: 0;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: #edf5fa;
}

.product-card__category {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  max-width: calc(100% - 36px);
  padding: 7px 11px;
  border: 1px solid rgba(168, 193, 209, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(14, 42, 67, 0.08);
  color: #48657c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.product-card__media::before {
  display: none;
}

.product-card__media::after {
  display: none;
}

.product-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 600ms var(--ease-out);
}

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

.product-card__body {
  position: relative;
  min-height: 154px;
  flex: 1;
  padding: 26px 25px 27px;
  border-top: 1px solid #e6edf2;
}

.product-card__index {
  position: absolute;
  top: 25px;
  right: 24px;
  color: #a6b5c2;
  font-family: var(--font-utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.product-card__type {
  display: block;
  padding-right: 44px;
  color: var(--color-primary);
  font-family: var(--font-utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.product-card h3 {
  margin-top: 11px;
  color: var(--color-heading);
  font-size: clamp(18px, 1.09375vw, 21px);
  font-weight: 650;
  line-height: 1.48;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.product-card__variant {
  margin-top: 8px;
  color: #7b8da0;
  font-size: 12px;
  line-height: 1.55;
}

.product-card__actions {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 64px;
  flex: 0 0 64px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e1eaf0;
  background: #fff;
}

.product-card__action {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.product-card__action + .product-card__action {
  border-left: 1px solid #e1eaf0;
}

.product-card__action svg {
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card__action--cart {
  background: #fff;
  color: #294159;
}

.product-card__action--cart:hover,
.product-card__action--cart:focus-visible {
  background: #eef7fd;
  color: var(--color-primary-dark);
}

.product-card__action--buy {
  background: var(--color-primary);
  color: #fff;
}

.product-card__action--buy:hover,
.product-card__action--buy:focus-visible {
  background: var(--color-primary-dark);
  color: #fff;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 62px;
}

.catalog-pagination__page,
.catalog-pagination__arrow {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdee8;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #344f65;
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 700;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.catalog-pagination__arrow {
  width: 58px;
  border-radius: 999px;
  font-size: 17px;
}

a.catalog-pagination__page:hover,
a.catalog-pagination__page:focus-visible,
a.catalog-pagination__arrow:hover,
a.catalog-pagination__arrow:focus-visible,
.catalog-pagination__page.is-current {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.catalog-pagination__arrow.is-disabled {
  opacity: 0.35;
}

.catalog-pagination__ellipsis {
  display: inline-flex;
  width: 28px;
  align-items: center;
  justify-content: center;
  color: #8396a8;
}

.catalog-cta {
  position: relative;
  min-height: 342px;
  overflow: hidden;
  background: var(--color-deep);
}

.catalog-cta__background,
.catalog-cta__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.catalog-cta__background {
  object-fit: cover;
  object-position: center;
  opacity: 0.56;
}

.catalog-cta__shade {
  background: linear-gradient(90deg, rgba(4, 25, 48, 0.94), rgba(3, 69, 100, 0.58));
}

.catalog-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 342px;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.catalog-cta__eyebrow {
  color: #58d9cf;
}

.catalog-cta h2 {
  margin-top: 12px;
  color: #fff;
  font-size: clamp(32px, 2.291667vw, 44px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.catalog-cta p {
  max-width: 660px;
  margin-top: 17px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.9;
}

.catalog-cta .pill-button {
  min-width: 224px;
  flex: 0 0 auto;
}

@media (max-width: 1399.98px) {
  .product-grid,
  .catalog-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-jump__list a {
    padding-inline: 12px;
    font-size: 12px;
  }
}

@media (max-width: 1199.98px) {
  .products-hero__content {
    width: min(660px, 63vw);
  }

  .catalog-category {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 46px;
  }

}

@media (max-width: 991.98px) {
  .products-hero {
    height: 570px;
  }

  .products-hero__content {
    width: min(600px, 72vw);
  }

  .category-jump__inner {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-jump__inner::-webkit-scrollbar {
    display: none;
  }

  .category-jump__list {
    width: max-content;
    min-width: 100%;
    grid-template-columns: repeat(7, minmax(155px, 1fr));
  }

  .catalog-category {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 84px;
  }

  .category-heading {
    position: static;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: start;
  }

  .category-heading__number {
    grid-row: 1 / 4;
    margin: 0;
  }

  .category-heading__eyebrow,
  .category-heading h2,
  .category-heading__count {
    grid-column: 2;
  }

  .category-heading h2 {
    margin-top: 8px;
  }

  .category-heading__count {
    margin-top: 14px;
  }

}

@media (max-width: 767.98px) {
  .products-hero {
    height: 530px;
  }

  .products-hero__background {
    object-position: 66% center;
  }

  .products-hero__shade {
    background: linear-gradient(90deg, rgba(5, 24, 46, 0.94), rgba(5, 44, 70, 0.64));
  }

  .products-hero__content {
    width: 90%;
  }

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

  .products-hero__lead {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.75;
  }

  .products-hero__stats {
    gap: 24px;
    margin-top: 32px;
  }

  .products-hero__stat {
    min-width: 110px;
  }

  .category-jump__list {
    min-height: 68px;
  }

  .category-jump__list a {
    min-height: 68px;
  }

  .product-catalog {
    padding-top: 62px;
    padding-bottom: 80px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 22px;
  }

  .catalog-category,
  .catalog-category + .catalog-category {
    padding-top: 70px;
  }

  .product-grid {
    gap: 18px;
  }

  .catalog-results {
    gap: 18px;
  }

  .product-card__body {
    min-height: 146px;
    padding: 22px 20px 24px;
  }

  .product-card__index {
    top: 21px;
    right: 19px;
  }

  .product-card__action {
    gap: 6px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .catalog-pagination {
    margin-top: 46px;
  }

  .catalog-cta__inner {
    min-height: 390px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
  }

  .catalog-cta p {
    font-size: 12px;
  }
}

@media (max-width: 575.98px) {
  .products-hero {
    height: 500px;
  }

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

  .products-hero__stats {
    gap: 14px;
  }

  .products-hero__stat {
    min-width: 98px;
    padding-left: 12px;
  }

  .products-hero__stat strong {
    font-size: 21px;
  }

  .product-grid,
  .catalog-results {
    grid-template-columns: 1fr;
  }

  .category-heading {
    grid-template-columns: 50px 1fr;
  }

  .category-heading__number {
    width: 40px;
    height: 40px;
  }

  .catalog-cta h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__media img,
  .catalog-pagination__page,
  .catalog-pagination__arrow {
    transition: none;
  }
}
