/* Reference-led homepage category composition. All coordinates use the visible cutout bounds. */
@font-face { font-family:"RTC Gateway Thai"; src:url("fonts/Prompt-Light.ttf") format("truetype"); font-style:normal; font-weight:300; font-display:swap; }
body.rr-home #product-categories { padding-top:24px; padding-bottom:24px; }
body.rr-home #product-categories .rr-catalog-grid.rr-gateway-grid { --rr-product-row-gap:12px; --rr-product-column-gap:12px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:auto; gap:12px; }
body.rr-home #product-categories .rr-catalog-card.rr-gateway { container-type:inline-size; position:relative; display:block; isolation:isolate; min-height:0; aspect-ratio:440 / 378; overflow:visible; border:0; border-radius:0; background:radial-gradient(ellipse at 72% 2%,#286547 0%,#1b4b35 50%,#103725 100%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); text-decoration:none; color:#fff; }
body.rr-home #product-categories .rr-gateway::before { content:""; position:absolute; z-index:0; inset:0; border-radius:inherit; background:url("images/gateway-dots.svg") center / 100% 100% no-repeat; opacity:.65; pointer-events:none; }
body.rr-home #product-categories .rr-catalog-card.rr-gateway-pipes { grid-column:1 / -1; aspect-ratio:1348 / 380; background:radial-gradient(ellipse at 53% 88%,#2b6b4c 0%,#20543b 48%,#123925 100%); }
body.rr-home #product-categories .rr-gateway-pipes::before { background-image:url("images/gateway-waves.svg"); opacity:1; }
body.rr-home #product-categories .rr-gateway-title { position:absolute; z-index:3; display:block; top:4%; left:8%; margin:0; color:#fff; font-family:var(--rr-heading-font); font-size:14.8cqw; font-weight:400; font-style:normal; line-height:1.05; letter-spacing:.005em; white-space:nowrap; }
body.rr-home #product-categories .rr-gateway-pipes .rr-gateway-title { top:5%; left:2%; width:98%; text-align:center; font-size:7.3cqw; line-height:1.12; letter-spacing:-.025em; }
body.rr-home #product-categories .rr-gateway-initial { font-family:inherit; font-weight:inherit; font-size:1.24em; }
body.rr-home #product-categories .rr-gateway-subtitle { position:absolute; z-index:3; top:21.5%; left:8%; margin:0; color:#fff; font-family:"RTC Gateway Thai",var(--rr-font); font-size:8.2cqw; font-weight:300; line-height:1.35; white-space:nowrap; }
body.rr-home #product-categories .rr-gateway-pipes .rr-gateway-subtitle { top:46%; left:0; width:100%; text-align:center; font-size:3cqw; }
body.rr-home #product-categories .rr-gateway-compressors .rr-gateway-title { top:4%; left:0; width:100%; text-align:center; font-size:16cqw; }
body.rr-home #product-categories .rr-gateway-compressors .rr-gateway-title > span { display:inline; font:inherit; font-size:.68em; letter-spacing:0; }
body.rr-home #product-categories .rr-gateway-compressors .rr-gateway-subtitle { top:23%; left:0; width:100%; text-align:center; }
body.rr-home #product-categories .rr-gateway-compressors { background:linear-gradient(145deg,#285f43 0%,#143d29 54%,#103423 100%); }
body.rr-home #product-categories .rr-gateway-art { position:absolute; z-index:1; inset:0; display:block; overflow:hidden; border-radius:inherit; pointer-events:none; }
body.rr-home #product-categories .rr-gateway-object { position:absolute; display:block; pointer-events:none; }
body.rr-home #product-categories .rr-gateway-object img { position:absolute; display:block; max-width:none; margin:0; padding:0; border:0; border-radius:0; object-fit:fill; box-shadow:none; }
body.rr-home #product-categories .rr-gateway-ppr { width:62%; left:-27%; top:74.5%; transform:rotate(-4deg); }
body.rr-home #product-categories .rr-gateway-stainless { width:52%; left:-10%; top:76.5%; transform:rotate(-1deg); }
body.rr-home #product-categories .rr-gateway-galvanized { width:78%; left:-7%; top:85%; }
body.rr-home #product-categories .rr-gateway-carbon { width:60%; left:49%; top:72.5%; transform:scaleX(-1) rotate(-2deg); }
body.rr-home #product-categories .rr-gateway-aluminium { width:56%; left:75.4%; top:84%; transform:scaleX(-1); }
body.rr-home #product-categories .rr-gateway-elbow { width:70%; left:56.5%; top:4%; transform:scaleY(-1); }
body.rr-home #product-categories .rr-gateway-tee { z-index:2; width:82%; left:14%; top:43%; transform:scaleX(-1); }
body.rr-home #product-categories .rr-gateway-valve-back { width:82%; left:48%; top:-22%; }
body.rr-home #product-categories .rr-gateway-valve-front { z-index:2; width:74%; left:7%; top:40%; }
body.rr-home #product-categories .rr-gateway-compressors .rr-gateway-object { aspect-ratio:4 / 3; }
body.rr-home #product-categories .rr-gateway-compressors .rr-gateway-object img { inset:0; width:100%; height:100%; object-fit:contain; }
body.rr-home #product-categories .rr-gateway-compressor-screw { width:72%; left:47%; top:32%; }
body.rr-home #product-categories .rr-gateway-compressor-pressure { z-index:2; width:58%; left:-3%; top:46%; }
body.rr-home #product-categories .rr-gateway-compressor-piston { z-index:2; width:64%; left:32%; top:55%; }
body.rr-home #product-categories .rr-catalog-card.rr-gateway:focus-visible { outline:3px solid var(--rr-green-500); outline-offset:5px; }
/* Category artwork stays still and clear, including while pointing at a card. */
body.rr-home #product-categories.rr-catalog-section .rr-catalog-card.rr-gateway { filter:none; transition:none; }
body.rr-home #product-categories .rr-catalog-card.rr-gateway:focus-visible { filter:none; }
@media(hover:hover) and (pointer:fine) {
  body.rr-home #product-categories .rr-catalog-card.rr-gateway:hover { filter:none; }
}
@media(prefers-reduced-motion:reduce) {
  body.rr-home #product-categories.rr-catalog-section .rr-catalog-card.rr-gateway { transition:none; }
}
@media(max-width:600px) {
  body.rr-home #product-categories .rr-catalog-grid.rr-gateway-grid { --rr-product-row-gap:24px; --rr-product-column-gap:24px; grid-template-columns:1fr; gap:24px; }
  body.rr-home #product-categories .rr-catalog-card.rr-gateway-pipes { grid-column:1; aspect-ratio:1.65; }
  body.rr-home #product-categories .rr-gateway-pipes .rr-gateway-title { top:8%; font-size:12.8cqw; }
  body.rr-home #product-categories .rr-gateway-pipes .rr-gateway-subtitle { top:43%; font-size:4.8cqw; }
  body.rr-home #product-categories .rr-gateway-fittings { margin-bottom:0; }
  body.rr-home #product-categories .rr-gateway-valves { margin-bottom:0; }
}
body.rr-home #product-categories .rr-gateway-ppr { aspect-ratio:2017 / 129; }
body.rr-home #product-categories .rr-gateway-ppr img { width:105.4041%; height:573.6434%; left:-2.7268%; top:-242.6357%; }
body.rr-home #product-categories .rr-gateway-stainless { aspect-ratio:2046 / 121; }
body.rr-home #product-categories .rr-gateway-stainless img { width:106.1584%; height:598.3471%; left:-3.3724%; top:-262.8099%; }
body.rr-home #product-categories .rr-gateway-carbon { aspect-ratio:2090 / 166; }
body.rr-home #product-categories .rr-gateway-carbon img { width:103.9234%; height:436.1446%; left:-1.9617%; top:-166.2651%; }
body.rr-home #product-categories .rr-gateway-aluminium { aspect-ratio:2106 / 151; }
body.rr-home #product-categories .rr-gateway-aluminium img { width:103.1339%; height:479.4702%; left:-1.5670%; top:-186.7550%; }
body.rr-home #product-categories .rr-gateway-galvanized { aspect-ratio:2002 / 122; }
body.rr-home #product-categories .rr-gateway-galvanized img { width:105.0450%; height:613.1148%; left:-2.5974%; top:-261.4754%; }
body.rr-home #product-categories .rr-gateway-tee { aspect-ratio:1176 / 772; }
body.rr-home #product-categories .rr-gateway-tee img { width:119.2177%; height:145.3368%; left:-8.4184%; top:-24.4819%; }
body.rr-home #product-categories .rr-gateway-elbow { aspect-ratio:961 / 962; }
body.rr-home #product-categories .rr-gateway-elbow img { width:145.8897%; height:116.6320%; left:-23.2050%; top:-8.3160%; }
body.rr-home #product-categories .rr-gateway-valve-front { aspect-ratio:1087 / 889; }
body.rr-home #product-categories .rr-gateway-valve-front img { width:128.9788%; height:126.2092%; left:-14.3514%; top:-12.9359%; }
body.rr-home #product-categories .rr-gateway-valve-back { aspect-ratio:916 / 949; }
body.rr-home #product-categories .rr-gateway-valve-back img { width:153.0568%; height:118.2297%; left:-35.2620%; top:-12.0126%; }
/* Compact brand signature before the next section divider. */
body.rr-home #product-categories .rr-home-brands { display:grid; grid-template-columns:repeat(3,minmax(0,216px)); align-items:center; justify-content:center; gap:28px 64px; margin:96px auto 0; padding:8px 12px 0; }
body.rr-home #product-categories .rr-home-brand { display:flex; align-items:center; justify-content:center; min-height:44px; border-radius:4px; }
body.rr-home #product-categories .rr-home-brand img { display:block; width:216px; max-width:100%; height:54px; object-fit:contain; filter:grayscale(1); opacity:.55; transition:filter 450ms ease,opacity 450ms ease; }
body.rr-home #product-categories .rr-home-brand-kt img { width:106px; }
body.rr-home #product-categories .rr-home-brand-best img { width:162px; }
body.rr-home #product-categories .rr-home-brand:hover img,
body.rr-home #product-categories .rr-home-brand:focus-visible img { filter:grayscale(0); opacity:1; }
body.rr-home #product-categories .rr-home-brand:focus-visible { outline:2px solid var(--rr-green-500); outline-offset:6px; }
@media(max-width:600px) { body.rr-home #product-categories .rr-home-brands { gap:20px 28px; margin-top:72px; } body.rr-home #product-categories .rr-home-brand-handal img { width:176px; } }
@media(prefers-reduced-motion:reduce) { body.rr-home #product-categories .rr-home-brand img { transition:none; } }

/* Pipe System: reuse the reference's five cutouts, mirrored as a group on the left. */
body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes { display:block; padding:0; overflow:hidden; aspect-ratio:1348 / 380; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-art { inset:0 50% 0 0; width:auto; height:auto; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-pipe-bundle { display:block; position:absolute; inset:0 auto auto 0; width:100%; aspect-ratio:1; transform:scaleX(-1); transform-origin:center; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-pipe { position:absolute; display:block; width:22%; height:auto; max-width:none; object-fit:contain; transform:rotate(39deg); transform-origin:top center; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-carbon { z-index:3; top:22%; left:44%; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-galvanize { z-index:1; top:10%; left:60%; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-blue { z-index:2; top:22%; left:76%; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-stainless { z-index:4; top:32%; left:58%; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-ppr { z-index:5; top:50%; left:67%; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-title { position:absolute; top:25%; left:54%; width:42%; text-align:left; font-size:54px; white-space:normal; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-initial { font-size:inherit; }
body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-subtitle { position:absolute; top:52%; left:54%; width:42%; text-align:left; font-size:24px; line-height:1.5; white-space:normal; }
@media(max-width:1000px) {
  body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-title { font-size:40px; }
  body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-subtitle { font-size:18px; }
}
@media(max-width:600px) {
  body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes { min-height:240px; aspect-ratio:1.4; }
  body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-pipe-bundle { width:150%; left:-15%; top:12%; }
  body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-title { top:23%; left:53%; width:43%; font-size:24px; }
  body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-subtitle { top:49%; left:53%; width:43%; font-size:16px; }
}
/* Match the three category cards below and let the pipe cutouts fill their half. */
@media(min-width:901px) {
 body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-art { right:40%; }
 body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-pipe-bundle { width:100%; height:100%; aspect-ratio:auto; left:-32%; top:0; }
 body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-carbon { top:31%; left:-2%; width:25%; transform:rotate(39deg); }
 body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-galvanize { top:11.5%; left:26.5%; width:25%; transform:rotate(39deg); }
 body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-blue { top:31%; left:44.5%; width:25%; transform:rotate(39deg); }
 body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-stainless { top:39%; left:22.5%; width:25%; transform:rotate(39deg); }
 body.rr-redesign.rr-home #rr-main #product-categories .rr-gateway-pipes .rr-gateway-cover-ppr { top:64%; left:40%; width:25%; transform:rotate(39deg); }
 body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-title { top:25%; font-size:calc(4.933333cqw - 1.184px); white-space:nowrap; }
 body.rr-redesign.rr-home #rr-main #product-categories .rr-catalog-card.rr-gateway-pipes .rr-gateway-subtitle { top:52%; font-size:calc(2.733333cqw - .656px); line-height:1.35; }
}
