/* Product category detail pages */
#category-page {
  background: #f2f3f3;
}

.category-hero {
  position: relative;
  overflow: hidden;
  min-height: var(--hero-min);
  display: grid;
  align-items: end;
  padding: clamp(118px, 12vw, 160px) 0 clamp(52px, 7vw, 84px);
  color: #fff;
  background:
    linear-gradient(90deg, rgb(8 16 17 / 0.86) 0%, rgb(8 16 17 / 0.58) 52%, rgb(8 16 17 / 0.18) 100%),
    url("../images/hero-line-wide.webp") center / cover no-repeat;
}

.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: end;
}

.category-hero-copy h1 {
  max-width: 920px;
  margin: 32px 0 26px;
  font-size: var(--fs-hero);
  line-height: 1.04;
}

.category-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgb(255 255 255 / 0.82);
  font-size: var(--fs-body);
  line-height: 1.68;
}

.category-hero .products-ghost-button {
  border-color: rgb(255 255 255 / 0.64);
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.category-hero-image {
  display: none;
}

.category-hero-image img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
  border-radius: 16px;
  background: #f6f7f7;
}

.category-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.category-model-grid article {
  overflow: hidden;
  display: grid;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(10 18 20 / 0.08);
}

.category-model-grid img {
  width: 100%;
  height: clamp(260px, 21vw, 370px);
  object-fit: cover;
  background: #f6f7f7;
}

.category-model-grid h3 {
  margin: 0;
  padding: 26px 28px 0;
  font-size: var(--fs-card-title);
  line-height: 1.08;
}

.category-model-grid p {
  margin: 0;
  padding: 14px 28px 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.58;
}

.category-model-grid a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 26px 28px 30px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.category-advantages-section,
.category-spec-section {
  background: #fff;
}

.category-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
}

.category-split h2 {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: var(--fs-section-title);
  line-height: 0.98;
}

.category-split > div > p {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.category-advantage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 18px;
  background: #dde1e1;
}

.category-advantage-list article {
  min-height: 250px;
  padding: clamp(24px, 2.5vw, 40px);
  background: #f7f8f8;
}

.category-advantage-list strong {
  display: block;
  color: var(--green);
  font-size: var(--fs-number);
  line-height: 0.9;
}

.category-advantage-list span {
  display: block;
  margin-top: 22px;
  font-size: var(--fs-card-title);
  line-height: 1.08;
  font-weight: 900;
}

.category-advantage-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.category-spec-table {
  overflow: hidden;
  border-radius: 18px;
  background: #f7f8f8;
  box-shadow: 0 24px 70px rgb(10 18 20 / 0.06);
}

.category-spec-table div {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  padding: 24px clamp(24px, 2.4vw, 38px);
  border-bottom: 1px solid rgb(35 38 38 / 0.1);
}

.category-spec-table div:last-child {
  border-bottom: 0;
}

.category-spec-table span {
  color: var(--muted);
  font-size: var(--fs-body-sm);
  font-weight: 800;
}

.category-spec-table strong {
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.42;
}

@media (max-width: 980px) {
  .category-hero-grid,
  .category-split {
    grid-template-columns: 1fr;
  }

  .category-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-hero {
    min-height: var(--hero-min);
    padding-top: 104px;
    padding-bottom: 38px;
    background:
      linear-gradient(180deg, rgb(8 16 17 / 0.58) 0%, rgb(8 16 17 / 0.78) 58%, rgb(8 16 17 / 0.94) 100%),
      url("../images/hero-line-mobile.jpg") center top / cover no-repeat;
  }

  .category-model-grid,
  .category-advantage-list {
    grid-template-columns: 1fr;
  }

  .category-spec-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
