/* =============================================================
   PRODUCTS PAGE
   1. Hero - reuses .au-hero classes from about.css
   2. Intro - reuses .au-overview classes from about.css
      (sticky-bg image inside .au-hero-pin + sliding black band)
   3. Catalog (filter bar + product grid with inline expand)
   ============================================================= */

/* ── Intro stats - replaces the 50yr SVG in the left column.
       Reuses home .stats font treatment (Inter 700 tabular orange)
       and count-up animation via js/stats.js. */
.pr-overview__band-left {
  align-items: center;
  justify-content: flex-start;
}
.pr-stats {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  display: block;
  overflow: visible;
}
.pr-stats::after { display: none; }
.pr-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.6vw, 24px) clamp(20px, 2.4vw, 36px);
  border-top: none;
  border-bottom: none;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pr-stats .stats__cell {
  border: none;
  background: transparent;
  padding: clamp(12px, 1.4vw, 18px) clamp(8px, 1vw, 14px) clamp(12px, 1.4vw, 18px) 0;
  gap: 4px;
  min-width: 0;            /* let the 2 grid tracks shrink below content */
}
.pr-stats .stats__cell::before,
.pr-stats .stats__cell::after { display: none; }
.pr-stats .stats__num {
  font-size: clamp(28px, 3vw, 40px);
  /* The base .stats__num is white-space:nowrap; on the fixed 2-column
     grid the longest value ("70,000 RPM") could not shrink or wrap and
     pushed the page wider on narrow phones (horizontal scroll). Allow it
     to wrap at its space as a last resort so the page never overflows. */
  white-space: normal;
}
.pr-stats .pr-stats__num-unit {
  font-size: 1em;
  font-weight: 700;
  margin-left: 2px;
  color: inherit;
}
.pr-stats .stats__label {
  font-size: var(--fs-s);
  color: rgba(255,255,255,0.72);
  max-width: 24ch;
}

@media (max-width: 1023px) {
  .pr-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phones: shrink the stat numbers so the longest ("70,000 RPM") fits one
   line inside a 2-column track instead of overflowing the viewport. */
@media (max-width: 600px) {
  .pr-stats .stats__num { font-size: clamp(21px, 6.4vw, 28px); }
}

/* ═══════════════════════════════════════════════════════════
   3. CATALOG - filter bar + product grid (DARK by default;
   light-mode.css flips to warm paper)
   ═══════════════════════════════════════════════════════════ */
.pr-catalog {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(64px, 8vw, 100px) 0 clamp(80px, 10vw, 120px);
}
.pr-catalog__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.pr-catalog__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.pr-catalog__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
}
.pr-catalog__sub {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 60ch;
}

/* ── Filter bar ─────────────────────────────────────────── */
.pr-filters {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 32px);
  margin-bottom: clamp(36px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pr-filters__row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.pr-filters__label {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
  padding-top: 8px;
  min-width: 110px;
}
.pr-filters__chips {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pr-chip {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.pr-chip:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.40);
}
.pr-chip.is-active {
  color: #ffffff;
  background: var(--accent, #F58220);
  border-color: var(--accent, #F58220);
}

.pr-filters__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pr-filters__count {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  color: rgba(255, 255, 255, 0.60);
}
.pr-filters__clear {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--accent, #F58220);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pr-filters__clear:hover { color: #F7A25C; }

/* ── Product grid ──────────────────────────────────────── */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.pr-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  color: rgba(255, 255, 255, 0.60);
  padding: 80px 20px;
}

/* ── Card (closed state) ─────────────────────────────────── */
.pr-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 220ms ease, transform 220ms ease;
  position: relative;
}
.pr-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pr-card {
  /* element is now an <a> - clear default link styling */
  text-decoration: none;
  color: inherit;
}
.pr-card:focus-visible {
  outline: 2px solid var(--accent, #F58220);
  outline-offset: 4px;
}

.pr-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1416 0%, #0A0809 60%, #231F20 100%);
}
.pr-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pr-card__media img.is-fallback {
  /* Image missing - hide so the gradient background shows */
  opacity: 0;
}
.pr-card:hover .pr-card__media img:not(.is-fallback) {
  transform: scale(1.05);
}
.pr-card__type-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pr-card__body {
  padding: clamp(20px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pr-card__family {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  margin: 0;
}
.pr-card__name {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}
.pr-card__intro {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pr-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.pr-card__tag {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 100px;
}
/* ── "View product" CTA inside the card ─────────────── */
.pr-card__cta {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--accent, #F58220);
}
.pr-card__cta svg {
  transition: transform 220ms ease;
}
.pr-card:hover .pr-card__cta svg {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .pr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .pr-catalog__title { font-size: var(--fs-l); }
  .pr-grid { grid-template-columns: 1fr; }
  .pr-filters__row { flex-direction: column; gap: 10px; }
  .pr-filters__label { padding-top: 0; }
  .pr-filters__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* ═══════════════════════════════════════════════════════════
   EDITORIAL CATEGORY SECTIONS - HIGH SPEED / NICHE SLOW SPEED /
   SPECIAL GEAR SYSTEM / DESIGN TYPES. Replaces the old filterable
   catalog grid. Static cards, no detail-page hop.
   ═══════════════════════════════════════════════════════════ */
.pr-cat {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 6vw, 96px) 0;
  border-top: 1px solid var(--ink-06);
}
.pr-cat--alt { background: var(--paper-elev); }
.pr-cat__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.pr-cat__header {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.pr-cat__eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  margin: 0 0 12px;
}
.pr-cat__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
}

/* High-Speed category intro ("Turbo gear unit HSG"). Two-column band
   below the header - heading on the LEFT, body on the RIGHT. The body
   after the first paragraph is collapsed behind a Read more toggle so
   the image + product picker below stay near the top of the section. */
.pr-cat__intro {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (max-width: 767px) {
  .pr-cat__intro {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.pr-cat__intro-body { min-width: 0; }
.pr-cat__intro-title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  margin: 0;
}
.pr-cat__intro p {
  font-size: var(--fs-m);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1em;
}
.pr-cat__intro p:last-child { margin-bottom: 0; }
.pr-cat__intro-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 520ms ease;
}
.pr-cat__intro-more.is-open { max-height: 60em; }
.pr-cat__intro-toggle {
  margin-top: 16px;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  cursor: pointer;
}
.pr-cat__intro-toggle:hover { text-decoration: underline; }

/* Card grid - 3-up at desktop, 2-up tablet, 1-up phone */
.pr-cat__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
@media (max-width: 1023px) {
  .pr-cat__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pr-cat__grid { grid-template-columns: 1fr; }
}

.pr-card {
  padding: 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.pr-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(245,130,32,0.35);
  transform: translateY(-2px);
}

/* Image placeholder slot at the top of every card. Today it shows
   the shared products-hero.webp; replace each <img src> per card
   with a specific product image whenever real photography arrives. */
.pr-card__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1518 0%, #0A0809 100%);
}
.pr-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}
.pr-card:hover .pr-card__media img {
  transform: scale(1.03);
}

/* Card text content padding (was on .pr-card directly before media
   slot was added) */
.pr-card > h3,
.pr-card > p {
  padding-left: clamp(22px, 2.4vw, 30px);
  padding-right: clamp(22px, 2.4vw, 30px);
}
.pr-card > h3 { padding-top: clamp(18px, 2vw, 24px); margin-bottom: 6px; }
.pr-card > p { margin-top: 8px; }
.pr-card > p:last-child { padding-bottom: clamp(22px, 2.4vw, 30px); }
.pr-card__name {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 6px;
}
.pr-card__body {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.pr-card__body--alt {
  color: rgba(255,255,255,0.62);
  font-size: var(--fs-s);
}

/* Design Types uses single-line descriptions - tighter card. The global
   .pr-card > h3 (margin-bottom 6px) + > p (margin-top 8px) were stacking on
   top of the flex gap, leaving ~20px between name and body. Neutralise them
   so the name<->body spacing is just the flex gap. */
.pr-cat--design .pr-card { gap: 3px; }
.pr-cat--design .pr-card > h3 { margin-bottom: 0; }
.pr-cat--design .pr-card > p { margin-top: 0; }
/* Tight uniform 10px inset on the card text. (The body p also picks up
   the stray .pr-card__body { padding: clamp(20–26px) } rule above, so set
   all four sides explicitly here.) */
.pr-cat--design .pr-card > h3 { padding: 10px 10px 0; }
.pr-cat--design .pr-card > p { padding: 0 10px 10px; }


/* ── BIG-IMAGE-LEFT + BOXES-RIGHT LAYOUT ───────────────────
   Used by High Speed / Niche Slow Speed / Special Gear System.
   Sticky category image on the left, grid of clickable name-only
   boxes on the right. Click any box -> the side drawer slides in
   with the full detail. */
.pr-cat--with-image .pr-cat__layout {
  display: grid;
  /* Image gets the larger share (was 5/7, now 7/5) so it can
     breathe at a more impressive scale. */
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 1023px) {
  .pr-cat--with-image .pr-cat__layout {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 32px);
  }
  .pr-cat__media-large { position: static; }
}

.pr-grid-boxes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
@media (max-width: 600px) {
  .pr-grid-boxes { grid-template-columns: 1fr; }
}
/* Special Gear System has 3 products - 2 across the first row, the
   third sits alone in row 2. Inherits the .pr-grid-boxes 2-col
   default; rule kept here as an explicit anchor in case the default
   changes later. */
#pr-special-gear .pr-grid-boxes {
  grid-template-columns: repeat(2, 1fr);
}

.pr-box {
  /* Compact tile - name on the left, arrow on the right. The
     little 01/02/.. number is hidden to keep the boxes lean. */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: clamp(72px, 7.5vw, 88px);
  padding: clamp(14px, 1.6vw, 20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: #FFFFFF;
  font-family: "Raleway", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms ease, transform 220ms ease;
}
.pr-box__num { display: none; }
.pr-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pr-box__num {
  /* sits in the top-left of the tile */
  grid-column: 1;
  grid-row: 1;
  font-feature-settings: "tnum" 1;
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent, #F58220);
  align-self: start;
}
.pr-box__name {
  font-size: var(--fs-m);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  min-width: 0;
}
.pr-box__arrow {
  color: rgba(255,255,255,0.30);
  transition: color 200ms ease, transform 200ms ease;
  flex-shrink: 0;
}
.pr-box:hover .pr-box__arrow {
  color: var(--accent, #F58220);
  transform: translate(2px, -2px);
}

/* Light-mode boxes */
[data-theme="light"] .pr-box {
  background: rgba(35,31,32,0.03);
  border-color: rgba(35,31,32,0.10);
  color: #231F20;
}
[data-theme="light"] .pr-box:hover {
  background: rgba(35,31,32,0.06);
  border-color: rgba(245,130,32,0.40);
}
[data-theme="light"] .pr-box__arrow {
  color: rgba(35, 31, 32, 0.42);
}


/* ── SIDE DRAWER ────────────────────────────────────────────
   Fixed-position panel that slides in from the right edge of the
   viewport when a .pr-box is clicked. Full-height. Holds the
   active product's image placeholder + title + body + nav arrows.
*/
.pr-drawer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}
.pr-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pr-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 9, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.pr-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  /* Narrow by default; widened to two columns only when the product has a
     Technical-data table or the dual layout (class set in products-picker.js). */
  width: min(520px, 92vw);
  background: #FAFAF8;
  color: #231F20;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.35);
}
.pr-drawer.is-open .pr-drawer__panel {
  transform: translateX(0);
}
.pr-drawer__panel.is-wide { width: min(1040px, 96vw); }
.pr-drawer__media {
  margin: 0 0 clamp(14px, 1.6vw, 20px);
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #E8E4DC;
}
.pr-drawer__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pr-drawer__num {
  display: none;        /* product number hidden in the drawer */
  font-family: "Raleway", sans-serif;
  font-feature-settings: "tnum" 1;
  font-size: var(--fs-s);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(35, 31, 32, 0.58);
  margin: 0 0 6px;
  flex-shrink: 0;
}
.pr-drawer__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #231F20;
  margin: 0 0 clamp(10px, 1.2vw, 14px);
  flex-shrink: 0;
}
/* Scroll region: image + num + title + body scroll together so the
   copy gets the full panel height (image is no longer pinned). The
   footer stays fixed below. */
.pr-drawer__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* Give the content a hair of breathing room next to the scrollbar */
  padding-right: 4px;
}
/* Two-column drawer (laptop+): image + prose on the LEFT, Technical-data
   table on the RIGHT. The spec is moved into .pr-drawer__aside by JS;
   drawers without a table stay single-column. */
.pr-drawer__aside:empty { display: none; }
@media (min-width: 1024px) {
  .pr-drawer__layout.has-spec {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 3vw, 48px);
    align-items: start;
  }
  .pr-drawer__aside .pr-spec__title:first-child { margin-top: 0; }
}

/* Dual-product drawer (data-layout="dual", e.g. Gas Turbine): two product
   columns side by side, each image -> para -> table. */
.pr-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 36px);
}
.pr-dual__col { min-width: 0; }
.pr-dual__col > .pr-drawer__fig:first-child { margin-top: 0; }
@media (min-width: 1024px) {
  .pr-dual {
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 3vw, 48px);
    align-items: start;
  }
}
.pr-drawer__body {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  line-height: 1.65;
  color: rgba(35, 31, 32, 0.8);
}
.pr-drawer__body p {
  margin: 0 0 12px;
}
/* Sub-section label inside the product drawer (e.g. "Load Gearbox - Double helical"). */
.pr-subhead {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #231F20;
  margin: clamp(18px, 2.2vw, 24px) 0 8px;
}
.pr-subhead:first-child { margin-top: 0; }

/* Inline figure inside the drawer body (e.g. the Epicyclic load gearbox). */
.pr-drawer__fig {
  margin: clamp(14px, 1.6vw, 20px) 0;
  border-radius: 12px;
  overflow: hidden;
  background: #E8E4DC;
}
.pr-drawer__fig img {
  display: block;
  width: 100%;
  height: auto;
}

/* Technical-data spec list inside the product drawer (light panel). */
.pr-spec__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  margin: clamp(16px, 2vw, 22px) 0 8px;
}
.pr-spec {
  margin: 0;
  /* Match the drawer body paragraph (the spec is moved into .pr-drawer__aside,
     which otherwise doesn't inherit the body font). */
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  line-height: 1.65;
}
.pr-spec__row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(35, 31, 32, 0.12);
}
.pr-spec__row:last-child { border-bottom: 1px solid rgba(35, 31, 32, 0.12); }
.pr-spec dt {
  font-weight: 600;
  color: #231F20;
}
.pr-spec dd {
  margin: 0;
  color: rgba(35, 31, 32, 0.78);
}
/* Column-header row ("Parameter" / "Value") - a shaded header band atop each
   table, in full caps so it reads as headers rather than another data row. */
.pr-spec__head {
  background: rgba(35, 31, 32, 0.07);
  border-top: 0;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 4px;
}
.pr-spec__head dt,
.pr-spec__head dd {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(35, 31, 32, 0.62);
}
.pr-drawer__footer {
  flex-shrink: 0;
  padding-top: clamp(14px, 1.8vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pr-drawer__nav {
  display: flex;
  gap: 8px;
}
.pr-drawer__nav-btn,
.pr-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(35,31,32,0.25);
  background: transparent;
  color: #231F20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.pr-drawer__nav-btn svg,
.pr-drawer__close svg {
  width: 14px;
  height: 14px;
}
.pr-drawer__nav-btn:hover,
.pr-drawer__close:hover {
  background: var(--accent, #F58220);
  border-color: var(--accent, #F58220);
  color: #FFFFFF;
  transform: scale(1.05);
}
.pr-drawer__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pr-drawer__nav-btn:disabled:hover {
  background: transparent;
  color: rgba(35, 31, 32, 0.58);
  border-color: rgba(35,31,32,0.25);
  transform: scale(1);
}

/* Dark-mode variant (page is dark, drawer stays a light paper card
   per the screenshot reference - keeps strong contrast). */
[data-theme="dark"] .pr-drawer__panel {
  background: #FAFAF8;
  color: #231F20;
}
@media (max-width: 600px) {
  .pr-drawer__panel { width: 100vw; padding: 20px; }
}
.pr-cat__media-large {
  margin: 0;
  position: sticky;
  top: clamp(96px, 12vh, 120px);
  align-self: start;
}
.pr-cat__media-large img {
  display: block;
  width: 100%;
  height: auto;
  /* Natural aspect, no crop, no card background. */
  object-fit: contain;
}

/* ── LEFT COLUMN: image + detail panel stacked ──────────────
   The detail card sits under the image on the LEFT side so the
   user's eye travels HORIZONTALLY (picker on right -> detail on
   left), not vertically downward like an accordion. The whole
   left column is sticky as a unit on desktop. */
.pr-cat__left {
  position: sticky;
  top: clamp(96px, 12vh, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  align-self: start;
  min-width: 0;
}
.pr-cat__left .pr-cat__media-large {
  position: static; /* parent .pr-cat__left already sticky */
  top: auto;
}

/* ── PICKER + DETAIL PANEL ──────────────────────────────────
   The right column of .pr-cat--with-image is just the vertical
   product picker now. Clicking a row updates the detail panel
   on the left (under the image) - horizontal eye movement
   rather than the accordion-y open-down effect. */
.pr-picker {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.pr-picker__item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: clamp(14px, 1.6vw, 18px) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
  text-align: left;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  transition: color 200ms ease, transform 200ms ease;
}
.pr-picker__item:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}
.pr-picker__item.is-active {
  color: #FFFFFF;
}
.pr-picker__num {
  font-feature-settings: "tnum" 1;
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent, #F58220);
}
.pr-picker__name {
  font-size: var(--fs-m);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.pr-picker__arrow {
  color: rgba(255,255,255,0.35);
  transition: color 200ms ease, transform 200ms ease;
  flex-shrink: 0;
}
.pr-picker__item:hover .pr-picker__arrow,
.pr-picker__item.is-active .pr-picker__arrow {
  color: var(--accent, #F58220);
  transform: translateX(3px);
}

/* Detail panel - holds all .pr-detail__panel children; only the
   active one is visible at a time. Cross-fade transitions. */
.pr-detail {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid rgba(245,130,32,0.25);
  border-radius: 14px;
  background: rgba(245,130,32,0.04);
  min-height: clamp(160px, 18vw, 220px);
  overflow: hidden;
}
.pr-detail__panel {
  /* Stack panels - active one fades in, others fade out */
  position: absolute;
  inset: clamp(22px, 2.6vw, 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
  transform: translateY(8px);
}
.pr-detail__panel.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  inset: auto;
}
.pr-detail__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #FFFFFF;
  margin: 0 0 10px;
}
.pr-detail__panel p {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 8px;
}
.pr-detail__panel p:last-child {
  margin-bottom: 0;
  color: rgba(255,255,255,0.65);
  font-size: var(--fs-s);
}

/* Light-mode picker + detail */
[data-theme="light"] .pr-picker {
  border-top-color: rgba(35,31,32,0.10);
}
[data-theme="light"] .pr-picker__item {
  color: rgba(35, 31, 32, 0.8);
  border-bottom-color: rgba(35,31,32,0.10);
}
[data-theme="light"] .pr-picker__item:hover,
[data-theme="light"] .pr-picker__item.is-active {
  color: #231F20;
}
[data-theme="light"] .pr-picker__arrow {
  color: rgba(35, 31, 32, 0.42);
}
[data-theme="light"] .pr-detail {
  background: rgba(245,130,32,0.06);
  border-color: rgba(245,130,32,0.30);
}
[data-theme="light"] .pr-detail__title {
  color: #231F20;
}
[data-theme="light"] .pr-detail__panel p {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .pr-detail__panel p:last-child {
  color: rgba(35, 31, 32, 0.58);
}

@media (max-width: 1023px) {
  .pr-cat--with-image .pr-cat__layout {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 32px);
  }
  .pr-cat__media-large {
    position: static;
  }
  /* The product render carries a lot of empty space above/below the
     machinery; on tablet/mobile it would otherwise render near-square and
     leave the section mostly whitespace. Crop it to a band so only the
     machinery shows. */
  .pr-cat__media-large img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
  }
}


/* ── LIGHT MODE ─────────────────────────────────────────── */
/* .pr-cat now uses var(--paper) which is theme-aware - no
   light-mode override needed for the section background. */
[data-theme="light"] .pr-cat__title,
[data-theme="light"] .pr-cat__intro-title,
[data-theme="light"] .pr-card__name {
  color: var(--ink);
}
[data-theme="light"] .pr-cat__intro p {
  color: var(--ink-80);
}
[data-theme="light"] .pr-card__body {
  color: var(--ink-80);
}
[data-theme="light"] .pr-card__body--alt {
  color: var(--ink-60);
}
[data-theme="light"] .pr-card {
  background: var(--paper-elev, #F5F4F1);
  border-color: var(--ink-06);
}
[data-theme="light"] .pr-card:hover {
  border-color: var(--accent);
}
[data-theme="light"] .pr-box {
  background: var(--paper-elev, #F5F4F1);
  border-color: var(--ink-06);
  color: var(--ink);
}
[data-theme="light"] .pr-box:hover {
  border-color: var(--accent);
}
