/* Product lists share two columns on phones; larger layouts keep their own columns. */
@media (max-width:767px), (max-width:900px) and (max-height:500px) and (any-pointer:coarse) {
  body.rr-redesign[data-rr-product-page] #rr-main :is(
    .rr-catalog-grid:has(> .rr-selectable-product-card),
    .rr-aignep-product-grid,.rr-airpipe-product-grid,.rr-pipe-fitting-grid,
    .rr-pipe-fitting-gallery,.rr-fitting-grid,.rr-fitting-name-grid,
    .rr-valve-grid,.rr-aluminium-brand-links
  ),
  body.rr-redesign[data-rr-product-page] #rr-main .rr-tap-related > div {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 12px; align-items:stretch;
  }
  /* Expanded specifications remain a full-width reading area. */
  body.rr-redesign[data-rr-product-page] #rr-main :is(.rr-aignep-product-grid,.rr-airpipe-product-grid) > :is(.rr-fitting-static-detail,details[open]) { grid-column:1 / -1; }
  body.rr-redesign #rr-main :is(.rr-selectable-product-card,.rr-pipe-fitting-card,.rr-fitting-item,.rr-fitting-showcase-card,.rr-compressor-editorial-item) {
    min-width:0;
    --rr-add-button-width:min(140px,100%);
    --rr-add-button-font-size:16px;
    --rr-add-button-padding:6px;
  }
  body.rr-redesign #rr-main .rr-product-card-actions { padding:0 10px 12px; }
  body.rr-redesign #rr-main :is(
    .rr-aluminium-product-link .rr-pipe-fitting-card-copy,
    .rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy,
    .rr-catalog-card:not(.rr-service-card):not(.rr-gateway) .rr-catalog-card-body,
    .rr-valve-copy
  ) { padding:12px 10px; gap:8px; }
  body.rr-redesign #rr-main :is(
    .rr-aluminium-product-link .rr-pipe-fitting-card-copy,
    .rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy,
    .rr-catalog-card:not(.rr-service-card):not(.rr-gateway) .rr-catalog-card-body,
    .rr-valve-copy
  )::before { left:10px; right:10px; }
  body.rr-redesign #rr-main :is(
    .rr-selectable-product-card h3,.rr-selectable-product-card h4,
    .rr-selectable-product-card strong,.rr-selectable-product-card p,
    .rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy h4,
    .rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy p,
    .rr-tap-related > div > a > span
  ) { font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
  body.rr-redesign #rr-main :is(
    .rr-selectable-product-card .rr-quote-add,
    .rr-pipe-fitting-card-copy > .rr-quote-add,
    .rr-fitting-showcase-card .rr-quote-add,
    .rr-compressor-editorial-item .rr-quote-add
  ) > span { white-space:normal; }
  body.rr-redesign #rr-main :is(
    .rr-selectable-product-card .rr-valve-image,
    .rr-selectable-product-card .rr-catalog-card-media,
    .rr-selectable-product-card .rr-pipe-fitting-card-image,
    .rr-pipe-fitting-gallery .rr-pipe-fitting-card-image
  ) { height:auto; aspect-ratio:5 / 4; }
  body.rr-redesign #rr-main .rr-selectable-product-card .rr-valve-image { padding:8px; }
  body.rr-redesign #rr-main .rr-fitting-item img { height:auto; aspect-ratio:5 / 4; object-fit:contain; }
  body.rr-redesign #rr-main .rr-tap-related > div > a { padding:10px; gap:10px; }
  body.rr-redesign #rr-main .rr-tap-related img { height:auto; aspect-ratio:5 / 4; object-fit:contain; }
  body.rr-redesign.rr-home #rr-main #home-valves .rr-home-valve-categories,
  body.rr-redesign.rr-home #rr-main #home-compressors .rr-compressor-editorial-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px; }
  body.rr-redesign.rr-home #rr-main #home-compressors .rr-compressor-editorial-item {
    display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr auto; gap:10px; padding:0 0 12px;
  }
  body.rr-redesign.rr-home #rr-main #home-compressors .rr-compressor-editorial-stage { grid-column:1; grid-row:1; width:100%; height:140px; }
  body.rr-redesign.rr-home #rr-main #home-compressors .rr-compressor-editorial-item h3 { grid-column:1; grid-row:2; font-size:16px; line-height:1.5; margin:0; }
  body.rr-redesign.rr-home #rr-main #home-compressors .rr-compressor-editorial-footer { grid-column:1; grid-row:3; display:flex; flex-direction:column; gap:8px; margin:0; }
  body.rr-redesign.rr-home #rr-main #home-compressors .rr-compressor-quote-slot { width:100%; }
}
