/* catalog pages: group nav, group index, product grid */

.chips-nav {
  position: sticky;
  top: 64px;
  z-index: 15;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(8px);
}

.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
}

.chips-scroll::-webkit-scrollbar { display: none; }

.gnav {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  background: var(--white);
}

.gnav.active {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.group-head { padding-bottom: 8px; }

.group-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 5.5vw, 38px);
  font-weight: 800;
  line-height: 1.35;
}

.muted { color: var(--ink-soft); margin: 0; }

.pgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pcard {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pcard img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

.pcard figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
}

.pcode { font-size: 13px; color: var(--ink-soft); direction: ltr; }

.pcard figcaption{justify-content:stretch;padding:8px}
.ask{display:block;text-align:center;width:100%;font-size:13px;font-weight:700;text-decoration:none;color:#fff;background:var(--brand-2);border-radius:999px;padding:8px 12px}
.ask:hover{background:var(--brand)}


.ask:hover { background: var(--brand); }

.ggrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gcard img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #f4f4f4;
}

.gcard-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }

.gnum { font-size: 12px; color: var(--brand-2); font-weight: 700; }

.gcard-body strong { font-size: 17px; font-weight: 800; line-height: 1.4; }

.gcount { font-size: 13px; color: var(--ink-soft); }

@media (min-width: 640px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ggrid { grid-template-columns: repeat(3, 1fr); }
  .gcard img { height: 170px; }
}

@media (min-width: 1000px) {
  .pgrid { grid-template-columns: repeat(4, 1fr); }
  .ggrid { grid-template-columns: repeat(4, 1fr); }
  .chips-scroll { padding: 12px 24px; }
}

/* pallet group: original model cards */
.model-card { grid-column: 1 / -1; }
.model-card img { height: 240px; object-fit: cover; background: #eef0ee; }
.model-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.model-body h3 { margin: 0; font-size: 20px; font-weight: 800; }
.model-body .specs { margin: 0; }
.model-body .ask { width: 100%; text-align: center; }
@media (min-width: 640px) {
  .model-card { grid-column: auto; }
  .model-card img { height: 220px; }
}

.subhead{font-size:20px;font-weight:800;margin:0 0 14px;padding-inline-start:12px;border-inline-start:4px solid var(--brand-2);line-height:1.3}

.sector{font-size:13px;color:#5b6b62;margin:0;line-height:1.6}
.chip-lbl{background:#eef4f0;color:var(--brand);font-weight:700}
.model-body .specs dd{line-height:1.55}

.section .subhead{margin-top:28px;font-size:19px}
.section .subhead:first-of-type{margin-top:0}
.card .ask{display:block;text-align:center;margin-top:10px}
