/* Only the new component catalogue and its homepage entry. */
body.cinematic-home .products-section .product-tabs {
  grid-template-columns: repeat(var(--product-category-count, 4), minmax(0, 1fr));
  max-width: 1080px;
}
body.cinematic-home .products-section .product-tabs button { font-size: clamp(14px, 1.3vw, 19px); }
body.cinematic-home .products-section .product-feature { grid-template-columns: 1.2fr 1fr; }
body.cinematic-home .products-section .product-image { border-radius: 12px; }
/* Let the confirmed product facts form one quiet, readable group. */
body.cinematic-home .products-section .product-copy {
  text-align: left;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  padding-block: 24px;
}
body.cinematic-home .products-section .product-copy > .product-type {
  margin: 0 0 14px;
  color: var(--ink);
  opacity: .68;
  font-size: 12px;
  line-height: 1.6;
}
body.cinematic-home .products-section .product-copy > h3 {
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.6px;
  overflow-wrap: anywhere;
}
body.cinematic-home .products-section .product-copy > .product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
  margin: 28px 0 32px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}
body.cinematic-home .products-section .product-copy > .product-specs[hidden] { display: none; }
body.cinematic-home .products-section .product-specs > div { min-width: 0; }
body.cinematic-home .products-section .product-specs > div:only-child { grid-column: 1 / -1; }
body.cinematic-home .products-section .product-specs dt {
  margin-bottom: 8px;
  color: var(--ink);
  opacity: .68;
  font-size: 12px;
  line-height: 1.5;
}
body.cinematic-home .products-section .product-specs dd {
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.cinematic-home .products-section .product-specs[hidden] + .button { margin-top: 30px; }
body[data-page="products"] .pc-app-nav { flex-wrap: wrap; }
body[data-page="products"] .pc-app-nav a { white-space: normal; }
body[data-page="products"] .pc-card-image { border-radius: 10px; }
body[data-page="products"] .pc-card-heading h3 { font-size: clamp(18px, 1.6vw, 23px); }
body[data-page="products"] .pc-card-category { margin-top: 2px; }
body[data-page="products"] .pc-card-spec {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body[data-page="products"] .pd-product-copy h1 { font-size: clamp(28px, 3.4vw, 46px); }
body[data-page="products"] .pc-grid { align-items: start; }
body[data-page="products"] .pd-product-copy h1 { overflow-wrap: anywhere; }
/* Category filters occupy their own row so the search field keeps its space. */
body[data-page="products"] .pc-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
body[data-page="products"] .pc-filters[hidden] { display: none; }
body[data-page="products"] .pc-subtypes { display: flex; flex-wrap: wrap; gap: 8px; }
body[data-page="products"] .pc-subtypes button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #d7dde0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}
body[data-page="products"] .pc-subtypes button[aria-pressed="true"] {
  border-color: #b9231b;
  background: #fff5f3;
  color: #a82019;
}
body[data-page="products"] .pc-select-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; }
body[data-page="products"] .pc-select-filters label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}
body[data-page="products"] .pc-select-filters select {
  box-sizing: border-box;
  min-width: 112px;
  max-width: 200px;
  min-height: 40px;
  padding: 8px 28px 8px 10px;
  border: 1px solid #d7dde0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
body[data-page="products"] .pc-filter-reset {
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body[data-page="products"] .pc-filters :is(button, select):hover { border-color: #b9231b; color: #a82019; }
body[data-page="products"] .pc-filters :is(button, select):focus-visible { outline: 2px solid #b9231b; outline-offset: 3px; }
/* Gallery controls surround the existing photo surface without adding a frame. */
body[data-page="products"] .pd-gallery { width: 100%; min-width: 0; }
body[data-page="products"] .pd-gallery > .pd-product-photo { width: 100%; max-width: none; margin: 0; }
body[data-page="products"] .pd-gallery > [data-pd-slide][hidden] { display: none !important; }
body.cinematic-inner[data-page="products"] .cinematic-hero .pd-gallery {
  grid-column: 2;
  grid-row: 1;
  max-width: 590px;
  justify-self: end;
}
body[data-page="products"] .pd-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  max-width: 100%;
}
body[data-page="products"] .pd-gallery-thumb {
  display: block;
  box-sizing: border-box;
  width: 96px;
  padding: 5px;
  border: 1px solid #cbd3d8;
  border-radius: 8px;
  background: #f1f4f6;
  color: #43515b;
  text-decoration: none;
}
body[data-page="products"] .pd-gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: normal;
  border-radius: 3px;
}
body[data-page="products"] .pd-gallery-thumb span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
body[data-page="products"] .pd-gallery-thumb:is(:hover, [aria-current="true"]) { border-color: #b9231b; color: #b9231b; }
body[data-page="products"] .pd-gallery-thumb[aria-current="true"] { box-shadow: inset 0 0 0 1px #b9231b; }
body[data-page="products"] .pd-gallery-thumb:focus-visible { outline: 3px solid #b9231b; outline-offset: 3px; }
body[data-page="products"] .pd-gallery-status { margin: 10px 0 0; color: #53616b; font-size: 12px; line-height: 1.5; }
@media (max-width:900px) {
  body.cinematic-inner[data-page="products"] .cinematic-hero .pd-gallery {
    grid-column: auto;
    grid-row: auto;
    order: 1;
    max-width: 620px;
    justify-self: start;
  }
}
@media (max-width:767px) {
  body.cinematic-inner[data-page="products"] .cinematic-hero .pd-gallery { max-width: 100%; justify-self: stretch; }
  body[data-page="products"] .pd-gallery-thumbs { gap: 8px; margin-top: 12px; }
  body[data-page="products"] .pd-gallery-thumb { width: 76px; }
}
@media (min-width:768px) and (max-width:1100px) {
  body.cinematic-home .products-section .product-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Real product renders are the focus; no invented product sits behind them. */
body.cinematic-inner[data-page="products"] .cinematic-hero[data-hero-key="product-studio"] {
  min-height: 0;
  padding-block: clamp(48px, 5.8vw, 86px);
  background: #f3f5f6;
}
body.cinematic-inner[data-page="products"] .product-studio-background {
  background: linear-gradient(115deg, #f6f7f8, #edf0f2);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.cinematic-inner[data-page="products"] .cinematic-hero[data-hero-key="product-studio"] .cinematic-hero-media::after { display: none; }
body.cinematic-inner[data-page="products"] .cinematic-hero[data-hero-key="product-studio"] .pc-centre-heading > :is(h1,p) { max-width: 800px; }
@media(max-width:767px) {
  body.cinematic-inner[data-page="products"] .cinematic-hero[data-hero-key="product-studio"] { padding-block: 0; }
  body.cinematic-home .products-section .product-feature { grid-template-columns: 1fr; }
  body.cinematic-home .products-section .product-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  body.cinematic-home .products-section .product-tabs button { text-align: left; }
  body.cinematic-home .products-section .product-copy { max-width: none; padding-block: 24px 14px; }
  body.cinematic-home .products-section .product-copy > .product-type { margin-bottom: 10px; }
  body.cinematic-home .products-section .product-copy > h3 { font-size: clamp(28px, 7.8vw, 36px); }
  body.cinematic-home .products-section .product-copy > .product-specs { margin-block: 24px 26px; padding-block: 18px; gap: 16px; }
  body.cinematic-home .products-section .product-specs dd { font-size: 18px; }
  body.cinematic-home .products-section .product-specs[hidden] + .button { margin-top: 26px; }
  body[data-page="products"] .pc-app-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; overflow: visible; }
  body[data-page="products"] .pc-app-nav a { justify-content: space-between; min-height: 58px; }
  body[data-page="products"] .pc-filters { gap: 14px; padding-block: 18px; }
  body[data-page="products"] .pc-subtypes { width: 100%; gap: 7px; }
  body[data-page="products"] .pc-subtypes button { min-height: 44px; padding-inline: 13px; }
  body[data-page="products"] .pc-select-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 12px; }
  body[data-page="products"] .pc-select-filters label { flex-direction: column; align-items: stretch; gap: 7px; }
  body[data-page="products"] .pc-select-filters select { width: 100%; min-width: 0; max-width: none; min-height: 44px; }
  body[data-page="products"] .pc-filter-reset { min-height: 44px; }
}
