/* 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;
}

.product-category-intro i,
.products-section-header i,
.products-sustainability i {
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto 18px;
  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 {
  height: 784px;
  padding-top: 52px;
}

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

.product-catalog__sidebar {
  padding-top: 48px;
  border-right: 1px solid #dfe7eb;
}

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

.product-catalog__sidebar h2 {
  margin: 0;
  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: block;
  width: 100%;
  height: 2px;
  margin: 7px 0 15px;
  background: var(--products-page-blue);
}

.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 summary > a {
  color: var(--products-page-blue);
}

.product-catalog__sidebar details {
  border-left: 3px solid transparent;
}

.product-catalog__sidebar .is-active details,
.product-catalog__sidebar details[open] {
  border-left-color: var(--products-page-blue);
}

.product-catalog__sidebar summary {
  list-style: none;
}

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

.product-catalog__sidebar summary a::after,
.product-catalog__sidebar .product-catalog__root a span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--products-page-blue);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.product-catalog__sidebar summary a::after {
  content: "+";
}

.product-catalog__sidebar details[open] summary a::after {
  content: "−";
}

.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 {
  border-left: 3px solid var(--products-page-blue);
}

.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;
  height: 352px;
  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: 240px;
  background: #fff;
  overflow: hidden;
}

.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-card p {
  margin: 0 0 7px;
  color: var(--products-page-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 14px;
}

.product-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

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

.product-catalog__pagination {
  margin-top: 32px;
  text-align: center;
}

.product-catalog__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 3px;
  border: 1px solid #d7e0e4;
  border-radius: 5px;
  color: #51677a;
  font-size: 14px;
}

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

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

.product-catalog__pagination li {
  display: inline;
}

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

.products-benefits {
  height: 719px;
  padding: 64px 0;
  background: var(--products-page-pale);
}

.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: 14px;
  line-height: 20px;
}

.products-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.products-benefits article {
  position: relative;
  min-height: 210px;
  padding: 34px 32px 26px;
  border: 1px solid #e1eaed;
  border-radius: 5px;
  background: #fff;
}

.products-benefits article > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--products-page-blue);
  font-size: 12px;
  font-weight: 700;
}

.products-benefits h3 {
  margin: 0;
  font-size: 18px;
  line-height: 22px;
}

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

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

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

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

.products-personalized article {
  position: relative;
  height: 225px;
  overflow: hidden;
  border-radius: 5px;
  background: #152d3d;
}

.products-personalized article::after {
  position: absolute;
  inset: 50% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(11, 33, 47, 0.76));
}

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

.products-personalized h3 {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 22px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 22px;
}

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

.products-capable__overlay {
  background: rgba(21, 45, 61, 0.82);
}

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

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

.products-capable p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 20px;
}

.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(16, 51, 69, 0.78);
}

.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 {
    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));
  }

  .product-card {
    height: 320px;
  }

  .product-card__image {
    height: 205px;
  }

  .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,
  .product-catalog__content form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .product-card {
    height: auto;
  }

  .product-card__image {
    height: 260px;
  }
}
