/* HTCWindow product catalogue page — sourced from the supplied 1440/1300 Figma HTML. */
.products-page,
.products-page * {
  box-sizing: border-box;
}

.products-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px var(--htc-gutter) 126px;
  background: var(--htc-bg);
  color: var(--htc-black);
  font-family: "Montserrat", Arial, sans-serif;
}

.products-page__shortcode,
.product-catalog {
  width: 100%;
}

.product-catalog {
  max-width: var(--htc-container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.product-catalog__intro {
  width: 100%;
  display: grid;
  grid-template-columns: 377px minmax(0, 1fr);
  gap: 160px;
  align-items: start;
}

.product-catalog__intro-title {
  margin: 0;
  color: var(--htc-primary);
  font-size: var(--htc-title-size);
  line-height: 1.2;
  font-weight: 700;
}

.product-catalog__intro-text {
  margin: 0;
  color: rgba(31, 31, 31, 0.8);
  font-size: var(--htc-body-size);
  line-height: 1.7;
  font-weight: 500;
}

.product-catalog__intro-text p {
  margin: 0 0 1.7em;
}

.product-catalog__intro-text p:last-child {
  margin-bottom: 0;
}

.product-catalog__products {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.product-catalog__row {
  width: 100%;
  display: grid;
  grid-template-columns: 420px 760px;
  gap: 120px;
  align-items: start;
}

.product-catalog__row.is-reverse {
  grid-template-columns: 760px 420px;
}

.product-catalog__spec {
  width: 420px;
  overflow: hidden;
  padding: 0 0 40px;
  border-radius: var(--htc-radius-sm);
  background: var(--htc-white);
}

.product-catalog__spec h3 {
  margin: 0;
  padding: 24px;
  border-radius: var(--htc-radius-sm) var(--htc-radius-sm) 0 0;
  background: var(--htc-primary);
  color: var(--htc-white);
  font-size: var(--htc-body-size);
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.product-catalog__spec dl {
  margin: 32px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-catalog__spec dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.product-catalog__spec dt,
.product-catalog__spec dd {
  margin: 0;
  font-size: var(--htc-body-size);
  line-height: 1.3;
}

.product-catalog__spec dt {
  max-width: 52%;
  font-weight: 700;
}

.product-catalog__spec dd {
  max-width: 48%;
  text-align: right;
  font-weight: 500;
}

@media (min-width: 1201px) {
  .product-catalog__spec dl > div:nth-child(2) {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 12px;
  }

  .product-catalog__spec dl > div:nth-child(2) dt {
    max-width: none;
    white-space: nowrap;
  }

  .product-catalog__spec dl > div:nth-child(2) dd {
    width: 100%;
    max-width: none;
    text-align: right;
  }
}

.product-catalog__gallery {
  width: 760px;
}

.product-catalog__main-image {
  width: 760px;
  height: 506.667px;
  display: block;
  border-radius: 5.883px;
  background: var(--htc-stroke);
  object-fit: cover;
}

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

.product-catalog__thumb {
  width: 100%;
  height: 118.667px;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 5.883px;
  background: transparent;
  cursor: pointer;
}

.product-catalog__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.product-catalog__thumb.is-active {
  border: 2px solid var(--htc-secondary);
}

.product-catalog__thumb.is-active::after {
  background: transparent;
}

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

.product-catalog__features {
  width: 100%;
  max-width: var(--htc-container);
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 420px);
  gap: 20px;
}

.product-catalog__feature {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-radius: var(--htc-radius-md);
  background: var(--htc-white);
}

.product-catalog__feature-icon {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--htc-radius-sm);
  background: rgba(180, 4, 2, 0.08);
  color: var(--htc-secondary);
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
}

.product-catalog__feature-icon i {
  font-size: inherit;
}

.product-catalog__feature-icon svg {
  width: 36px;
  height: 36px;
}

.product-catalog__feature h4 {
  margin: 0;
  color: var(--htc-secondary);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.product-catalog__feature p {
  margin: 20px 0 0;
  color: var(--htc-black);
  font-size: var(--htc-body-size);
  line-height: 1.35;
  font-weight: 500;
}

@media (max-width: 1200px) {
  .product-catalog__intro {
    grid-template-columns: minmax(280px, 32%) minmax(0, 1fr);
    gap: 64px;
  }

  .product-catalog__row,
  .product-catalog__row.is-reverse {
    grid-template-columns: minmax(300px, 34%) minmax(0, 1fr);
    gap: 48px;
  }

  .product-catalog__row.is-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 34%);
  }

  .product-catalog__spec,
  .product-catalog__gallery,
  .product-catalog__main-image {
    width: 100%;
  }

  .product-catalog__main-image {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .product-catalog__thumb {
    height: auto;
    aspect-ratio: 3 / 2;
  }

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

@media (max-width: 900px) {
  .products-page {
    padding-top: var(--htc-section-space-tablet);
    padding-bottom: var(--htc-section-space-tablet);
  }

  .product-catalog {
    gap: 64px;
  }

  .product-catalog__intro,
  .product-catalog__row,
  .product-catalog__row.is-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-catalog__row.is-reverse .product-catalog__spec {
    order: 1;
  }

  .product-catalog__row.is-reverse .product-catalog__gallery {
    order: 2;
  }

  .product-catalog__products {
    gap: 64px;
  }

  .product-catalog__features {
    margin-top: 64px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .products-page {
    padding: var(--htc-section-space-mobile) 14px;
  }

  .product-catalog__intro-title {
    font-size: 32px;
  }

  .product-catalog__spec dl {
    margin-right: 24px;
    margin-left: 24px;
    gap: 28px;
  }

  .product-catalog__thumbs {
    gap: 8px;
    margin-top: 8px;
  }

  .product-catalog__features {
    margin-top: 56px;
    grid-template-columns: 1fr;
  }

  .product-catalog__feature {
    height: auto;
  }
}
