/* Products page */
#products-page {
  background: #f2f3f3;
}

.products-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(620px, 78vh, 820px);
  display: grid;
  align-items: end;
  padding: clamp(118px, 12vw, 160px) 0 clamp(52px, 7vw, 84px);
  color: #fff;
  background: #101819;
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 16 17 / 0.92) 0%, rgb(8 16 17 / 0.66) 38%, rgb(8 16 17 / 0.12) 72%),
    url("../images/hero-line-wide.webp") center / cover no-repeat;
  transform: scale(1.02);
}

.products-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 78px);
  align-items: end;
}

.products-hero-copy {
  max-width: 820px;
}

.products-hero .section-label,
.news-contact-section .section-label {
  color: inherit;
}

.products-hero h1 {
  margin: 34px 0 28px;
  max-width: 820px;
  font-size: clamp(52px, 6.4vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

.products-hero p {
  max-width: 690px;
  margin: 0;
  color: rgb(255 255 255 / 0.82);
  font-size: var(--fs-body-lg);
  line-height: 1.62;
}

.products-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.products-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid rgb(255 255 255 / 0.64);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: rgb(255 255 255 / 0.08);
}

.products-hero-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 22px;
  background: rgb(255 255 255 / 0.12);
  box-shadow: 0 28px 78px rgb(0 0 0 / 0.28);
  backdrop-filter: blur(18px);
}

.products-hero-card img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  border-radius: 16px;
  background: #fff;
}

.products-hero-image-link {
  display: block;
  border-radius: 18px;
  text-decoration: none;
}

.products-hero-card div {
  padding: 0 6px 6px;
}

.products-hero-card span {
  display: block;
  margin-bottom: 8px;
  color: rgb(255 255 255 / 0.68);
  font-size: var(--fs-body-sm);
  font-weight: 800;
}

.products-hero-card strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.08;
}

.products-hero-card p {
  margin-top: 12px;
  font-size: var(--fs-body-sm);
  line-height: 1.55;
}

.products-content-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: 12;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid rgb(35 38 38 / 0.1);
  box-shadow: 0 18px 46px rgb(10 18 20 / 0.06);
}

.products-content-nav .shell {
  display: flex;
  gap: clamp(18px, 3vw, 46px);
  overflow-x: auto;
  padding-top: 18px;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.products-content-nav .shell::-webkit-scrollbar {
  display: none;
}

.products-content-nav a {
  flex: 0 0 auto;
  position: relative;
  color: var(--ink);
  font-size: var(--fs-body-sm);
  font-weight: 900;
  text-decoration: none;
  scroll-snap-align: start;
}

.products-content-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.products-content-nav a:hover::after {
  transform: scaleX(1);
}

.products-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.products-section-head h2,
.products-guide-grid h2 {
  margin: 26px 0 0;
  max-width: 760px;
  font-size: clamp(42px, 4.4vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.products-section-head p,
.products-guide-grid > div > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body-lg);
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.product-shop-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 100%;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(10 18 20 / 0.08);
}

.product-shop-card-large {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
}

.product-shop-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  justify-self: center;
  background: #f6f7f7;
}

.product-shop-card > .product-shop-image-link {
  display: grid;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.product-shop-card > .product-shop-image-link:focus-visible,
.products-hero-image-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}

.product-shop-card-large img {
  height: auto;
  min-height: 0;
}

.product-shop-card > div:last-child {
  display: grid;
  align-content: start;
  padding: clamp(24px, 2.4vw, 38px);
}

.product-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: #009a32;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.product-shop-card h3 {
  margin: 0;
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1.06;
}

.product-shop-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.product-shop-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 700;
}

.product-shop-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
}

.product-shop-card .product-shop-detail-link {
  align-self: end;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.products-guide-section {
  background: #fff;
}

.products-use-section {
  background: #fff;
}

.products-application-section {
  background: #f2f3f3;
}

.products-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.products-use-grid a {
  overflow: hidden;
  display: grid;
  min-height: 100%;
  border-radius: 18px;
  background: #f7f8f8;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 22px 60px rgb(10 18 20 / 0.06);
}

.products-use-grid img {
  width: 100%;
  height: clamp(190px, 16vw, 270px);
  object-fit: cover;
  background: #eef0f0;
}

.products-use-grid span,
.products-application-grid strong {
  display: block;
  padding: 24px 24px 0;
  font-size: var(--fs-card-title);
  line-height: 1.08;
  font-weight: 900;
}

.products-use-grid p {
  margin: 0;
  padding: 14px 24px 26px;
  color: var(--muted);
  font-size: var(--fs-body-sm);
  line-height: 1.58;
}

.products-application-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 18px;
  background: #d9dddd;
}

.products-application-grid a {
  min-height: 270px;
  display: grid;
  align-content: space-between;
  padding: clamp(24px, 2.4vw, 38px);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.products-application-grid strong {
  padding: 0;
}

.products-application-grid span {
  display: block;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.58;
}

.products-guide-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
}

.products-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 18px;
  background: #dde1e1;
}

.products-guide-list article {
  min-height: 230px;
  padding: clamp(24px, 2.5vw, 40px);
  background: #f7f8f8;
}

.products-guide-list strong {
  display: block;
  color: var(--green);
  font-size: clamp(38px, 4vw, 68px);
  line-height: 0.9;
}

.products-guide-list span {
  display: block;
  margin-top: 22px;
  font-size: var(--fs-h4);
  font-weight: 900;
}

.products-guide-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .products-hero {
    min-height: auto;
  }

  .products-hero-grid,
  .products-section-head,
  .products-guide-grid {
    grid-template-columns: 1fr;
  }

  .products-hero-card {
    max-width: 520px;
  }

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

  .products-use-grid,
  .products-application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-shop-card-large {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .product-shop-card-large img {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 640px) {
  .products-hero {
    padding-top: 104px;
    padding-bottom: 38px;
  }

  .products-hero-bg {
    background:
      linear-gradient(180deg, rgb(8 16 17 / 0.74) 0%, rgb(8 16 17 / 0.82) 62%, rgb(8 16 17 / 0.94) 100%),
      url("../images/hero-line-mobile.jpg") center / cover no-repeat;
  }

  .products-hero h1 {
    margin-top: 28px;
    font-size: clamp(43px, 12vw, 58px);
  }

  .products-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .products-hero-actions a {
    width: 100%;
  }

  .store-nav-head {
    display: grid;
  }

  .products-grid,
  .products-guide-list,
  .products-use-grid,
  .products-application-grid {
    grid-template-columns: 1fr;
  }

  .products-content-nav {
    top: var(--nav-height);
  }

  .products-content-nav .shell {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .products-content-nav a::after {
    bottom: -15px;
  }

  .product-shop-card-large {
    grid-column: span 1;
  }

  .product-shop-card img,
  .product-shop-card-large img {
    width: min(100%, 420px);
    height: auto;
  }

  .products-guide-list article {
    min-height: auto;
  }
}
