/* Family pages (univers-*.html) and category pages (categorie-*.html), built by scripts/build-pages.mjs.
   Buttons, product card and project strip come from css/home.css. */

.cat-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 20px 0; color: #6b747a; font-size: var(--fs-small); }
.cat-crumb a:hover { color: var(--orange); }
.cat-crumb [aria-current] { color: var(--black); font-weight: 600; }

.cat-hero {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin: 20px 20px 0;
  padding: 28px;
  border-radius: 14px;
  background: #f4f6f7;
}
/* Photos are taken out of the flow: their tall portrait size never sets the height of the frame. */
.cat-hero-media { position: relative; display: grid; place-items: center; height: 380px; overflow: hidden; border-radius: 10px; background: #e8ecef; }
.cat-hero-media img, .cat-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero-media.is-icon svg, .cat-card-media.is-icon svg { width: 42%; height: auto; fill: none; stroke: var(--orange); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.cat-eyebrow { display: block; margin-bottom: 12px; color: var(--orange); font: 800 var(--fs-meta)/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.cat-hero h1 { margin: 0 0 16px; font: 800 var(--fs-title)/1.06 var(--font-display); letter-spacing: -.035em; }
.cat-lead { max-width: 620px; margin: 0 0 18px; color: #3d464d; font-size: var(--fs-lead); line-height: 1.55; }
.cat-status { display: inline-flex; margin: 0 0 24px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #d6dce0; color: #3d464d; font: 800 var(--fs-small)/1.2 var(--font-display); }
.cat-status.is-available { border-color: #a9dcb8; background: #ecf8f0; color: #1d6b37; }
.cat-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cat-section { padding: 56px 20px 0; }
.cat-section > h2, .cat-guide h2 { margin: 0 0 22px; font: 800 var(--fs-panel)/1.1 var(--font-display); letter-spacing: -.03em; }
.cat-product { max-width: 520px; }
.cat-product h3 { margin: 0; font: 800 var(--fs-lead)/1.25 var(--font-display); }
.cat-product .home2-price { margin: auto 0 0; color: var(--orange); font: 800 var(--fs-sub)/1.1 var(--font-display); }

/* Uses and buying points side by side. */
.cat-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
.cat-guide h2 { font-size: var(--fs-sub); }
.cat-uses, .cat-checks { margin: 0; padding: 0; list-style: none; }
.cat-uses li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid #e4e7ea; line-height: 1.5; }
.cat-uses li::before { content: "✓"; position: absolute; left: 4px; color: var(--orange); font-weight: 900; }
.cat-checks { counter-reset: check; display: grid; gap: 12px; }
.cat-checks li { counter-increment: check; display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; border: 1px solid #e1e5e9; border-radius: 10px; background: #fff; line-height: 1.5; }
.cat-checks li::before { content: counter(check); flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font: 800 var(--fs-small)/1 var(--font-display); }

/* Category cards: photo or line icon, name, status. */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cat-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #e1e5e9; border-radius: 10px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.cat-card:hover { border-color: var(--orange); box-shadow: 0 10px 26px #0c111614; }
.cat-card-media { position: relative; display: grid; place-items: center; height: 180px; overflow: hidden; background: #f4f6f7; }
.cat-card-media.is-icon svg { width: 64px; }
.cat-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.cat-card-body b { font: 800 var(--fs-ui)/1.25 var(--font-display); }
.cat-card-body small { color: #6b747a; font-size: var(--fs-small); }
.cat-card-body small.is-available { color: #1d6b37; font-weight: 700; }

/* Example products: reference, price, demo notice and specification table. */
.prod-ref { color: #8a949b; font: 800 var(--fs-meta)/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.prod-price { margin-top: auto; padding-top: 8px; color: var(--orange); font: 800 var(--fs-card)/1.1 var(--font-display); }
.prod-card .cat-card-body { flex: 1; }
.prod-demo-note { color: #6b747a; font-size: var(--fs-small); }
.prod-price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 16px; }
.prod-price-block b { color: var(--orange); font: 800 var(--fs-price)/1.05 var(--font-display); letter-spacing: -.03em; }
.prod-price-block small { color: #56616a; font-size: var(--fs-small); }
.cat-status.prod-demo { display: block; max-width: 560px; border-radius: 10px; border-color: #ffd3b3; background: #fff5ee; color: #8a3d00; font: 600 var(--fs-small)/1.45 var(--font-body); }
.prod-specs { width: 100%; border-collapse: collapse; }
.prod-specs th, .prod-specs td { padding: 13px 4px; border-bottom: 1px solid #e4e7ea; text-align: left; vertical-align: top; font-size: var(--fs-small); }
.prod-specs th { width: 45%; color: #56616a; font-weight: 500; }
.prod-specs td { font-weight: 700; }

/* Sort and filter bar of the product grid (js/category-filters.mjs). */
.prod-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: -6px 0 20px; padding: 16px 18px; border-radius: 10px; background: #f4f6f7; }
.prod-filters label, .prod-variants label { display: grid; gap: 6px; color: #56616a; font: 800 var(--fs-meta)/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.prod-filters select, .prod-variants select { min-width: 160px; min-height: 42px; padding: 0 36px 0 12px; border: 1px solid #cfd6db; border-radius: 8px; background: #fff; color: var(--black); font: 500 var(--fs-body)/1.2 var(--font-body); text-transform: none; letter-spacing: 0; }
.prod-count { margin: 0 0 0 auto; align-self: center; color: #56616a; font-size: var(--fs-small); }
.prod-reset { align-self: center; padding: 0; border: 0; background: none; color: var(--orange); font: 800 var(--fs-small)/1.2 var(--font-display); cursor: pointer; }
.prod-empty { margin: 0; padding: 32px; border: 1px dashed #d6dce0; border-radius: 10px; text-align: center; color: #56616a; }
.prod-choices { color: #1d6b37 !important; font-weight: 600; }
/* Made-to-measure tile at the end of the sur-mesure grids. */
.prod-custom { justify-content: center; border-style: dashed; border-color: #ffb37a; background: #fff8f2; }
.prod-custom-body { display: grid; gap: 8px; padding: 22px 20px; }
.prod-custom-body .cat-eyebrow { margin: 0; }
.prod-custom-body b { font: 800 var(--fs-lead)/1.25 var(--font-display); }
.prod-custom-body small { color: #56616a; font-size: var(--fs-small); line-height: 1.5; }
/* Variant selectors of a product page (js/product-variants.mjs). */
.prod-variants { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 18px; }

@media (max-width: 1050px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-hero { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 32px; }
  .cat-hero-media { height: 320px; }
}
@media (max-width: 800px) {
  .cat-hero { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .cat-hero-media { height: 240px; }
  .cat-hero-media.is-icon { height: 160px; }
  .cat-guide { grid-template-columns: 1fr; gap: 32px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cat-crumb { padding: 16px 3px 0; }
  .cat-hero { margin: 16px 0 0; padding: 16px; }
  .cat-actions .home2-btn { flex: 1 1 100%; }
  .cat-section { padding: 44px 3px 0; }
  .cat-card-media { height: 130px; }
  .cat-card-body { padding: 12px; }
  .prod-filters label, .prod-variants label { flex: 1 1 140px; }
  .prod-filters select, .prod-variants select { min-width: 0; width: 100%; }
  .prod-count { margin-left: 0; }
}
