/**
 * Global Science — Product listing pages
 */

.gs-product-page {
  background-color: var(--gs-color-white);
  margin-top: 0;
}

/* ------------------------------------------------------------------
 * Intro (below page hero)
 * ------------------------------------------------------------------ */
.gs-product-page-intro {
  background-color: var(--gs-color-white);
}

.gs-product-page-intro__inner {
  margin-inline: auto;
  max-width: 900px;
  padding-block: 64px;
  text-align: left;
}

.gs-product-page-intro__text {
  color: var(--gs-color-text);
  font-family: var(
    --wp--preset--font-family--noto-sans,
    "Noto Sans",
    sans-serif
  );
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.9;
  margin: 0;
}

.gs-product-page-intro__text > :first-child {
  margin-top: 0;
}

.gs-product-page-intro__text > :last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------
 * Product tables
 * ------------------------------------------------------------------ */
.gs-product-page-products {
  background-color: var(--gs-color-white);
}

.gs-product-page-products__inner {
  margin-inline: auto;
  max-width: 1200px;
  padding-block: 80px;
}

.gs-product-page-products__empty {
  color: var(--gs-color-text);
  font-family: var(
    --wp--preset--font-family--noto-sans,
    "Noto Sans",
    sans-serif
  );
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

.gs-product-page-category + .gs-product-page-category {
  margin-top: 4rem;
}

.gs-product-page-category__title {
  align-items: center;
  color: var(--gs-color-text);
  display: flex;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 30px;
  font-weight: 500;
  gap: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.gs-product-page-category__title::before {
  background-color: var(--gs-color-text);
  content: "";
  flex-shrink: 0;
  height: 1.25em;
  width: 4px;
}

.gs-product-page-table-wrap {
  overflow-x: auto;
}

.gs-product-page-table {
  border-collapse: collapse;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  table-layout: fixed;
  width: 100%;
}

.gs-product-page-table th,
.gs-product-page-table td {
  border: 1px solid var(--gs-color-content);
  color: var(--gs-color-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  padding: 1.5rem;
  text-align: left;
  vertical-align: top;
}

.gs-product-page-table thead th {
  font-weight: 500;
  text-align: start;
}

.gs-product-page-table thead th.gs-product-page-table__col-name,
.gs-product-page-table th.gs-product-page-table__name {
  background: linear-gradient(
    to left,
    var(--gs-color-section) 0%,
    var(--gs-color-content-light) 100%
  );
}

.gs-product-page-table__col-name {
  width: 18%;
}

.gs-product-page-table__col-photo {
  width: 16%;
}

.gs-product-page-table__col-features {
  width: 26%;
}

.gs-product-page-table__col-details {
  width: 40%;
}

.gs-product-page-table th.gs-product-page-table__name {
  font-weight: 500;
  text-align: start;
  vertical-align: middle;
}

.gs-product-page-table__photo {
  text-align: center;
}

.gs-product-page-table__photo-figure {
  aspect-ratio: 1 / 1;
  background-color: var(--gs-color-content-light);
  margin: 0 auto;
  max-width: 160px;
  overflow: hidden;
  width: 100%;
}

.gs-product-page-table__photo-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gs-product-page-table__text {
  margin: 0;
}

@media (max-width: 1280px) {
  .gs-product-page-intro__inner {
    padding-block: 56px;
  }

  .gs-product-page-intro__text {
    font-size: 1rem;
  }

  .gs-product-page-products__inner {
    padding-block: 56px;
  }

  .gs-product-page-category + .gs-product-page-category {
    margin-top: 3rem;
  }

  .gs-product-page-category__title {
    font-size: 1.625rem;
  }

  .gs-product-page-table th,
  .gs-product-page-table td {
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
  }

  .gs-product-page-table__photo-figure {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .gs-product-page-table {
    min-width: 720px;
  }
}
