/* Shared Valve-style geometry; desktop grid column counts remain owned by each catalogue. */
body.rr-redesign #rr-main :is(.rr-aluminium-product-link,.rr-catalog-card:not(.rr-service-card):not(.rr-gateway),.rr-pipe-fitting-grid > .rr-pipe-fitting-card,.rr-fitting-gallery-single-row .rr-pipe-fitting-card) { border:1px solid var(--rr-border); border-radius:0; box-shadow:none; background:transparent; overflow:hidden; }
body.rr-redesign #rr-main :is(.rr-aluminium-product-link,.rr-catalog-card:not(.rr-service-card):not(.rr-gateway)):is(:hover,:focus-visible) { border-color:var(--rr-green-900); box-shadow:none; }
body.rr-redesign #rr-main .rr-aluminium-product-link { display:flex; flex-direction:column; min-width:0; text-decoration:none; color:var(--rr-green-900); }
body.rr-redesign #rr-main .rr-aluminium-product-link > article { display:flex; flex-direction:column; width:100%; height:100%; padding:0; margin:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
body.rr-redesign #rr-main .rr-aluminium-product-link .rr-pipe-fitting-card-image { aspect-ratio:5/4; height:auto; background:transparent; }
body.rr-redesign #rr-main .rr-aluminium-product-link .rr-pipe-fitting-card-copy { position:relative; padding:24px; flex:1; }
body.rr-redesign #rr-main .rr-aluminium-product-link .rr-pipe-fitting-card-copy::before { content:""; position:absolute; top:0; left:24px; right:24px; border-top:1px solid var(--rr-green-700); }
body.rr-redesign #rr-main .rr-aluminium-product-link:focus-visible { outline:2px solid var(--rr-green-700); outline-offset:4px; }
body.rr-redesign #rr-main .rr-catalog-card:not(.rr-service-card):not(.rr-gateway) .rr-catalog-card-body { border-radius:0; }
body.rr-redesign #rr-main .rr-aluminium-product-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:48px; padding-block:48px; }
body.rr-redesign #rr-main .rr-aluminium-product-hero figure { margin:0; height:360px; }
body.rr-redesign #rr-main .rr-aluminium-product-hero img { width:100%; height:100%; object-fit:contain; }
body.rr-redesign #rr-main .rr-aluminium-product-hero h1 { font-size:clamp(30px,3vw,46px); line-height:1.3; margin:12px 0; }
body.rr-redesign #rr-main .rr-aluminium-product-hero .rr-catalog-eyebrow { margin-top:24px; }
body.rr-redesign #rr-main .rr-aluminium-product-spec { padding-block:24px 64px; }
body.rr-redesign #rr-main .rr-aluminium-product-spec .rr-fitting-detail-panel { display:grid; grid-template-columns:minmax(180px,280px) minmax(0,1fr); gap:32px; margin:24px 0 0; padding:0; }
body.rr-redesign #rr-main .rr-aluminium-product-spec .rr-fitting-spec-scroll { max-height:none; overflow:auto; }
body.rr-redesign #rr-main .rr-aluminium-product-spec table { min-width:680px; }
@media(max-width:700px) {
 body.rr-redesign #rr-main .rr-aluminium-product-hero { grid-template-columns:1fr; gap:24px; }
 body.rr-redesign #rr-main .rr-aluminium-product-hero figure { height:260px; grid-row:1; }
 body.rr-redesign #rr-main .rr-aluminium-product-spec .rr-fitting-detail-panel { grid-template-columns:1fr; }
}

body.rr-redesign #rr-main .rr-pipe-fitting-gallery .rr-pipe-fitting-card { border:1px solid var(--rr-border); border-radius:0; background:transparent; box-shadow:none; }
body.rr-redesign #rr-main :is(.rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy,.rr-catalog-card:not(.rr-service-card):not(.rr-gateway) .rr-catalog-card-body) { position:relative; padding:24px; }
body.rr-redesign #rr-main :is(.rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy,.rr-catalog-card:not(.rr-service-card):not(.rr-gateway) .rr-catalog-card-body)::before { content:""; position:absolute; top:0; left:24px; right:24px; border-top:1px solid var(--rr-green-700); }

body.rr-redesign #rr-main .rr-aluminium-product-page { padding-top:112px; }

/* A real product link and an independent add button, aligned at the foot of each card. */
body.rr-redesign #rr-main .rr-selectable-product-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--rr-border); background:transparent; }
body.rr-redesign #rr-main .rr-selectable-product-card > a { display:flex; flex:1; flex-direction:column; min-width:0; width:100%; border:0; box-shadow:none; }
body.rr-redesign #rr-main .rr-selectable-product-card:hover { border-color:var(--rr-green-900); }
body.rr-redesign #rr-main .rr-product-card-actions { display:flex; align-items:center; justify-content:center; padding:0 24px 24px; margin-top:auto; }
body.rr-redesign #rr-main .rr-pipe-fitting-card-copy > .rr-quote-add { display:flex; width:fit-content; margin-inline:auto; }
body.rr-redesign #rr-main .rr-selectable-product-card .rr-valve-copy { flex:1; }
body.rr-redesign #rr-main .rr-product-card-actions .rr-quote-add { max-width:100%; }
body.rr-redesign #rr-main :is(.rr-product-card-actions,.rr-pipe-fitting-card-copy) > .rr-quote-add { width:168px; max-width:100%; }
body.rr-redesign #rr-main .rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy { display:flex; flex-direction:column; flex:1; }
body.rr-redesign #rr-main .rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy > p { margin-bottom:20px; }
body.rr-redesign #rr-main .rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy > .rr-quote-add { margin-top:auto; align-self:center; }
body.rr-redesign #rr-main :is(.rr-selectable-product-card,.rr-pipe-fitting-card) { container-type:inline-size; }
@container (max-width:240px) {
 body.rr-redesign #rr-main :is(.rr-selectable-product-card,.rr-pipe-fitting-card) .rr-quote-add { width:150px; max-width:100%; min-height:44px; padding:10px; gap:6px; font-size:14px; line-height:1.5; }
 body.rr-redesign #rr-main :is(.rr-selectable-product-card,.rr-pipe-fitting-card) .rr-quote-add svg { width:16px; height:16px; }
}
@container (max-width:180px) {
 body.rr-redesign #rr-main :is(.rr-selectable-product-card,.rr-pipe-fitting-card) .rr-quote-add { padding-inline:8px; }
 body.rr-redesign #rr-main :is(.rr-selectable-product-card,.rr-pipe-fitting-card) .rr-quote-add svg { display:none; }
 body.rr-redesign #rr-main .rr-pipe-fitting-gallery .rr-pipe-fitting-card-copy { padding-inline:16px; }
}
/* The wrapper owns the only perimeter, including the independent action area. */
body.rr-redesign #rr-main .rr-selectable-product-card > a,
body.rr-redesign #rr-main .rr-selectable-product-card > a > .rr-pipe-fitting-card {
 border:0!important; box-shadow:none!important;
}
body.rr-redesign #rr-main .rr-selectable-product-card > a:focus-visible { outline:none; }
body.rr-redesign #rr-main .rr-selectable-product-card:has(> a:focus-visible) { outline:2px solid var(--rr-green-700); outline-offset:3px; }
/* Newly refreshed cutouts use the same complete card as the PP-R gallery. */
body.rr-redesign #rr-main :is(.rr-carbon-product-grid,.rr-stainless-product-grid).rr-pipe-fitting-gallery { margin-top:0; }
body.rr-redesign #rr-main .rr-pipe-fitting-gallery :is(.rr-carbon-product,.rr-stainless-product) .rr-pipe-fitting-card-image { height:auto; aspect-ratio:5/4; }
body.rr-redesign #rr-main .rr-pipe-fitting-gallery :is(.rr-carbon-product,.rr-stainless-product) .rr-pipe-fitting-card-copy h4 { margin:0 0 8px; font-size:18px; line-height:1.4; }
body.rr-redesign #rr-main .rr-pipe-fitting-gallery :is(.rr-carbon-product,.rr-stainless-product) .rr-pipe-fitting-card-copy p { margin-top:0; font-size:16px; line-height:1.5; }
