/* Product archive and product-category templates — Pixso frames 02 and 03. */
.products-page {
  --products-page-blue: #2facd4;
  --products-page-ink: #1b2738;
  --products-page-muted: #647585;
  --products-page-pale: #f1f7f9;
  color: var(--products-page-ink);
  background: #fff;
}

.products-container {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}

.products-hero {
  position: relative;
  height: 400px;
  color: #fff;
  background: var(--products-hero-image) center 48% / cover no-repeat;
}

.products-hero__overlay,
.products-capable__overlay,
.products-footer-cta__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.products-hero__overlay {
  background: rgba(23, 50, 66, 0.7);
}

.products-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 49px;
}

.products-hero__content > p {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.products-hero__content > p span {
  margin-inline: 8px;
  opacity: 0.72;
}

.products-hero__content > div {
  margin-top: 54px;
  text-align: center;
}

.products-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-footer);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.products-hero h1 + p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 22px;
}

.products-hero .button-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.products-hero .button {
  min-width: 145px;
  min-height: 38px;
  padding: 0 19px;
  border-width: 1px;
  font-size: 12px;
}

.product-category-intro {
  height: 300px;
  padding: 64px 0 0;
  background: var(--products-page-pale);
  text-align: center;
}

.product-category-intro h2,
.products-section-header h2,
.products-sustainability h2 {
  margin: 0;
  font-family: var(--font-footer);
  font-size: 32px;
  font-weight: 700;
  line-height: 39px;
}

.products-section-header h2 {
  font-size: 34px;
  line-height: 41px;
}

.product-category-intro i,
.products-section-header i,
.products-sustainability i {
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto;
  background: var(--products-page-blue);
}

.product-category-intro p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--products-page-muted);
  font-size: 14px;
  line-height: 22px;
}

.product-catalog__main {
  background: #fff;
}

.product-catalog__main--term {
  padding-top: 52px;
  padding-bottom: 52px;
}

.product-catalog__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  min-height: 504px;
}

.product-catalog__sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  padding-top: 48px;
  border-right: 1px solid #dfe7eb;
}

.product-catalog__main--term .product-catalog__sidebar {
  padding-top: 0;
}

.product-catalog__sidebar h2 {
  display: table;
  margin: 0 0 15px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--products-page-blue);
  color: var(--products-page-blue);
  font-family: var(--font-footer);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 18px;
}

.product-catalog__sidebar > i {
  display: none;
}

.product-catalog__sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-catalog__sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 53px;
  padding: 0 20px;
  color: #51677a;
  font-size: 15px;
  font-weight: 500;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.product-catalog__sidebar a:hover,
.product-catalog__sidebar .is-current > a,
.product-catalog__sidebar .is-active > a,
.product-catalog__sidebar .is-active > .product-catalog__parent-link {
  color: var(--products-page-blue);
}

.product-catalog__parent-link,
.product-catalog__root {
  border-left: 3px solid var(--products-page-blue);
}

.product-catalog__sidebar summary {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
}

.product-catalog__sidebar summary::-webkit-details-marker {
  display: none;
}

.product-catalog__parent {
  position: relative;
}

.product-catalog__parent-link {
  padding-right: 56px;
}

.product-catalog__disclosure,
.product-catalog__root-arrow {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  background: var(--products-page-blue);
}

.product-catalog__disclosure {
  margin: 0;
}

.product-catalog__root-arrow {
  margin-right: 0;
}

.product-catalog__disclosure svg,
.product-catalog__root-arrow svg {
  width: 4.737305px;
  height: 8.237305px;
  fill: none;
  transition: transform 180ms ease;
}

.product-catalog__disclosure path,
.product-catalog__root-arrow path {
  fill: none;
  stroke: #000;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.166667;
}

.product-catalog__sidebar details[open] .product-catalog__disclosure svg {
  transform: rotate(90deg);
}

.product-catalog__sidebar details > ul {
  padding: 1px 0 6px;
}

.product-catalog__sidebar details > ul a {
  min-height: 54px;
  padding-left: 20px;
  font-size: 14px;
}

.product-catalog__sidebar small {
  color: #99a5ad;
  font-size: 12px;
  font-weight: 400;
}

.product-catalog__root + .product-catalog__root {
  margin-top: 0;
}

.product-catalog__content {
  padding: 48px 0 48px 54px;
}

.product-catalog__main--term .product-catalog__content {
  padding-top: 0;
}

.product-catalog__content > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.product-catalog__content > header h2 {
  margin: 0;
  font-family: var(--font-footer);
  font-size: 29px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0.01em;
}

.product-catalog__content form {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #536779;
  font-size: 14px;
}

.product-catalog__content select {
  width: 214px;
  height: 42px;
  padding: 0 34px 0 15px;
  border: 1px solid #d8e0e4;
  border-radius: 5px;
  color: #536779;
  background: #fff;
  font-size: 14px;
}

.product-catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 16px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5e9;
  border-radius: 7px;
  background: #fff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(20, 49, 64, 0.1);
  transform: translateY(-2px);
}

.product-card__image {
  display: block;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.product-card__image img,
.product-card__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__image-placeholder {
  background: linear-gradient(135deg, #f6fafb, #e5eff2);
}

.product-card > div {
  padding: 14px 16px;
}

.product-catalog__grid .product-card p {
  overflow: hidden;
  margin: 0 0 6px;
  color: var(--products-page-blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-catalog__grid .product-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.product-catalog__grid .product-card h3 a:hover {
  color: var(--products-page-blue);
}

.product-catalog__pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.product-catalog__pagination li > .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d7e0e4;
  border-radius: 5px;
  color: #51677a;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.product-catalog__pagination li > .page-numbers:not(.prev):not(.next) {
  width: 40px;
  padding-inline: 0;
}

.product-catalog__pagination li > .page-numbers.current,
.product-catalog__pagination li > .page-numbers:hover {
  border-color: var(--products-page-blue);
  color: #fff;
  background: var(--products-page-blue);
}

.product-catalog__pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-catalog__pagination li {
  display: block;
  margin: 0;
}

.product-catalog__empty {
  margin: 50px 0;
  color: var(--products-page-muted);
}

.products-benefits {
  height: 719px;
  padding: 64px 0;
  background: #fff;
}

.products-section-header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.products-section-header p {
  margin: 0;
  color: var(--products-page-muted);
  font-size: 16px;
  line-height: 20px;
}

.products-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 340px);
  align-items: start;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.products-benefits article {
  min-height: 211px;
  padding: 28px 24px;
  border-radius: 8px;
  background: #f5f8fa;
}

.products-benefits__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: #e2f5fb;
}

.products-benefits__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.products-benefits h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 20px;
}

.products-benefits article p {
  margin: 14px 0 0;
  color: var(--products-page-muted);
  font-size: 13px;
  line-height: 21px;
}

.products-personalized {
  height: 565px;
  padding: 64px 0;
  background: #f5f8fa;
}

.products-personalized .products-section-header p {
  font-size: 14px;
  line-height: 23.8px;
}

.products-personalized .products-section-header h2 {
  font-size: 32px;
  line-height: 38.4px;
}

.products-personalized__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.products-personalized article {
  height: 225px;
  overflow: hidden;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  background: #fff;
}

.products-personalized img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.products-personalized h3 {
  display: grid;
  height: 43px;
  margin: 0;
  color: #1a2332;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

.products-capable {
  position: relative;
  height: 320px;
  padding: 53px 0;
  color: #fff;
  background: var(--products-capable-image) center / cover no-repeat;
  text-align: center;
}

.products-capable__overlay {
  background: rgba(47, 172, 212, 0.66);
}

.products-capable .products-container {
  position: relative;
  z-index: 1;
}

.products-capable h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-footer);
  font-size: 38px;
  font-weight: 700;
  line-height: 44px;
}

.products-capable p {
  max-width: 860px;
  margin: 20px auto 0;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
}

.products-sustainability {
  height: 576px;
  padding: 80px 0;
  background: #fff;
}

.products-sustainability__grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) 420px;
  align-items: center;
  gap: 80px;
}

.products-sustainability h2 {
  font-size: 32px;
}

.products-sustainability h2 + i {
  margin: 10px 0 20px;
}

.products-sustainability p {
  margin: 0 0 16px;
  color: var(--products-page-muted);
  font-size: 13px;
  line-height: 20px;
}

.products-sustainability .button {
  min-height: 38px;
  margin-top: 5px;
  padding-inline: 20px;
  font-size: 12px;
}

.products-sustainability img {
  width: 420px;
  height: 380px;
  border-radius: 4px;
  object-fit: cover;
}

.products-footer-cta {
  position: relative;
  height: 248px;
  padding: 65px 0;
  color: #fff;
  background: var(--products-footer-image) center 43% / cover no-repeat;
}

.products-footer-cta__overlay {
  background: rgba(47, 172, 212, 0.6);
}

.products-footer-cta .products-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.products-footer-cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-footer);
  font-size: 27px;
  font-weight: 700;
  line-height: 34px;
}

.products-footer-cta p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 19px;
}

.products-footer-cta .button {
  min-width: 115px;
  min-height: 38px;
  font-size: 12px;
}

@media (max-width: 1000px) {
  .product-catalog__content {
    padding-left: 30px;
  }

  .product-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-catalog__main,
  .product-catalog__main--term {
    height: auto;
    padding: 55px 0 70px;
  }

  .products-sustainability__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 40px;
  }

  .products-sustainability img {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .products-container {
    width: calc(100% - 40px);
  }

  .products-hero {
    height: auto;
    min-height: 400px;
  }

  .products-hero__content {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .products-hero__content > div {
    margin-top: 48px;
  }

  .products-hero h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .product-category-intro,
  .products-benefits,
  .products-personalized,
  .products-capable,
  .products-sustainability,
  .products-footer-cta {
    height: auto;
    padding-block: 58px;
  }

  .product-catalog__layout {
    grid-template-columns: 1fr;
  }

  .product-catalog__sidebar {
    position: static;
    padding: 0 0 25px;
    border-right: 0;
    border-bottom: 1px solid #dfe7eb;
  }

  .product-catalog__sidebar > i {
    max-width: 240px;
  }

  .product-catalog__content,
  .product-catalog__main--term .product-catalog__content {
    padding: 35px 0 0;
  }

  .product-catalog__content > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }

  .product-catalog__content select {
    width: 190px;
  }

  .product-catalog__grid,
  .products-benefits__grid,
  .products-personalized__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-benefits__grid {
    margin-top: 32px;
  }

  .products-benefits article {
    padding: 25px 20px;
  }

  .products-personalized__grid {
    gap: 14px;
  }

  .products-personalized article {
    height: 190px;
  }

  .products-capable h2,
  .products-footer-cta h2 {
    font-size: 24px;
  }

  .products-sustainability__grid {
    grid-template-columns: 1fr;
  }

  .products-sustainability img {
    max-width: 420px;
  }

  .products-footer-cta .products-container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .products-hero .button-row {
    align-items: stretch;
    flex-direction: column;
  }
  .product-catalog__content form {
    align-items: center;
  }

  .product-catalog__grid,
  .products-benefits__grid,
  .products-personalized__grid {
    grid-template-columns: 1fr;
  }

}
