
:root{
  --blue:#0757c9;
  --blue2:#0b78ff;
  --navy:#0b1f3a;
  --black:#111827;
  --muted:#5f6b7a;
  --line:#dfe6ef;
  --bg:#f7faff;
  --white:#fff;
  --orange:#ff8a00;
  --green:#0b8f55;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--black);line-height:1.55}
a{color:inherit;text-decoration:none}
.container{width:min(1180px,92%);margin:auto}
.topbar{background:var(--navy);color:#fff;font-size:13px}
.topbar .inner{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.topbar a{color:#fff}
header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.head{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:13px}
.logo{width:64px;height:64px;object-fit:contain;border-radius:8px}
.logo-fallback{width:64px;height:64px;border-radius:8px;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:900;font-size:22px}
.brand h1{font-size:18px;line-height:1.15;margin:0;color:var(--black);letter-spacing:.2px}
.brand span{display:block;color:var(--blue);font-size:11px;font-weight:700;margin-top:4px}
nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
nav a{padding:11px 13px;font-size:13px;font-weight:800;color:#26364d;border-radius:6px}
nav a:hover,nav a.active{background:#eaf3ff;color:var(--blue)}
.nav-cta{background:var(--blue)!important;color:#fff!important}
.menu{display:none;border:0;background:#edf5ff;color:var(--blue);font-size:25px;padding:7px 11px;border-radius:6px}
.hero{background:linear-gradient(135deg,#fff 0%,#eef6ff 55%,#fff 100%);padding:70px 0 62px;border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:55px}
.kicker{color:var(--blue);font-size:12px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase}
h2{font-size:42px;line-height:1.08;margin:10px 0 18px;color:var(--black)}
h3{color:var(--black)}
.hero p{font-size:17px;color:var(--muted);max-width:650px}
.btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 19px;border-radius:6px;font-weight:800;font-size:14px;border:1px solid var(--blue);background:var(--blue);color:#fff}
.btn.secondary{background:#fff;color:var(--blue)}
.visual{background:#fff;border:1px solid #d6e5f7;border-radius:16px;box-shadow:0 18px 50px rgba(19,67,120,.12);padding:28px}
.pulley-art{height:300px;border-radius:12px;background:radial-gradient(circle at 50% 45%,#dcecff 0 16%,transparent 17%),linear-gradient(145deg,#f9fcff,#e9f3ff);display:grid;place-items:center;position:relative;overflow:hidden}
.pulley-art:before{content:"";width:205px;height:205px;border:30px solid #173d68;border-radius:50%;box-shadow:0 0 0 8px #2b6fb2 inset,0 0 0 1px #0b1f3a;position:absolute}
.pulley-art:after{content:"";width:62px;height:62px;border-radius:50%;background:#fff;border:15px solid #0b1f3a;position:absolute}
.tooth{position:absolute;inset:37px;border:7px dashed #0b78ff;border-radius:50%;opacity:.8}
.statbar{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stats{display:grid;grid-template-columns:repeat(4,1fr)}
.stat{padding:23px;border-right:1px solid var(--line)}
.stat:last-child{border:0}.stat strong{display:block;font-size:25px;color:var(--blue)}.stat span{font-size:13px;color:var(--muted)}
.section{padding:65px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:28px}.section-head p{max-width:650px;color:var(--muted);margin:0}.section-head h2{font-size:32px;margin:0}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;transition:.2s;box-shadow:0 7px 25px rgba(20,50,90,.05)}
.card:hover{transform:translateY(-3px);box-shadow:0 13px 32px rgba(20,50,90,.10);border-color:#b9d5f7}
.card .mini{height:150px;background:#f1f7ff;border-radius:9px;margin-bottom:17px;display:grid;place-items:center}
.mini-pulley{width:92px;height:92px;border:15px solid #1d4d7e;border-radius:50%;box-shadow:0 0 0 5px #0b78ff inset;position:relative}
.mini-pulley:after{content:"";width:24px;height:24px;border-radius:50%;background:#fff;border:7px solid #172d47;position:absolute;left:19px;top:19px}
.card h3{margin:0 0 7px;font-size:20px}.card p{color:var(--muted);font-size:14px;margin:0 0 16px}.link{color:var(--blue);font-weight:800;font-size:13px}
.band{background:var(--blue);color:#fff;padding:34px 0}.band .inner{display:flex;justify-content:space-between;align-items:center;gap:25px}.band h2{color:#fff;font-size:28px;margin:0}.band p{margin:5px 0 0;color:#dcecff}
.page-hero{background:linear-gradient(120deg,#fff,#eaf4ff);padding:52px 0;border-bottom:1px solid var(--line)}
.page-hero h2{font-size:38px;margin:8px 0}.page-hero p{color:var(--muted);max-width:720px;margin:0}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.product{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.product .image{height:205px;background:#eef6ff;display:grid;place-items:center}
.product .body{padding:20px}.tag{display:inline-block;background:#e7f1ff;color:var(--blue);font-size:11px;font-weight:900;padding:5px 8px;border-radius:4px}.product h3{font-size:21px;margin:10px 0 5px}.product p{color:var(--muted);font-size:13px;margin:0 0 15px}
.detail{display:grid;grid-template-columns:.8fr 1.2fr;gap:40px;align-items:start}
.detail-box{background:#fff;border:1px solid var(--line);border-radius:12px;padding:30px}
.specs{width:100%;border-collapse:collapse;margin-top:20px}.specs td{padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}.specs td:first-child{font-weight:800;color:#34445a;width:35%}.notice{background:#fff8e8;border:1px solid #f4d99d;padding:14px;border-radius:8px;color:#704f12;font-size:13px}
.form{background:#fff;border:1px solid var(--line);border-radius:12px;padding:28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;font-size:12px;font-weight:800;color:#35465d;margin-bottom:6px}input,select,textarea{width:100%;border:1px solid #cfd9e6;border-radius:6px;padding:13px;font:inherit;background:#fff;color:#111}textarea{min-height:145px;resize:vertical}.full{grid-column:1/-1}
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:25px}.contact-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:14px}.contact-card strong{display:block;color:var(--blue);font-size:13px;text-transform:uppercase;letter-spacing:.5px}.contact-card a{font-weight:700}.mapbox{min-height:340px;background:#eaf3ff;border:1px solid #cfe0f4;border-radius:12px;display:grid;place-items:center;text-align:center;padding:25px;color:#40536c}.timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.step{background:#fff;border:1px solid var(--line);border-radius:10px;padding:23px}.num{width:38px;height:38px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:13px}
footer{background:#0b1f3a;color:#dce7f5;padding:42px 0 20px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:35px}.footer-title{color:#fff;font-weight:900;margin-bottom:12px}.footer-grid a{display:block;color:#c7d5e7;font-size:13px;margin:7px 0}.copyright{border-top:1px solid #29405e;margin-top:30px;padding-top:18px;font-size:12px;color:#9eb0c5}
@media(max-width:900px){.hero-grid,.detail,.contact-grid{grid-template-columns:1fr}.grid,.product-grid{grid-template-columns:repeat(2,1fr)}nav{display:none;position:absolute;left:4%;right:4%;top:82px;background:#fff;border:1px solid var(--line);padding:10px;box-shadow:0 15px 35px rgba(0,0,0,.1);flex-direction:column;align-items:stretch}nav.open{display:flex}.menu{display:block}.stats{grid-template-columns:repeat(2,1fr)}.stat:nth-child(2){border-right:0}.band .inner{flex-direction:column;align-items:flex-start}}
@media(max-width:620px){h2{font-size:34px}.hero{padding:45px 0}.grid,.product-grid,.timeline,.form-grid,.stats,.footer-grid{grid-template-columns:1fr}.full{grid-column:auto}.topbar .inner{justify-content:center;text-align:center}.topbar .inner span{display:none}.brand h1{font-size:15px}.logo,.logo-fallback{width:52px;height:52px}.head{min-height:72px}.page-hero h2{font-size:31px}.visual{padding:15px}.pulley-art{height:250px}}

/* Utility controls */
.search-wrap{display:flex;align-items:center;gap:7px;background:#f4f8fd;border:1px solid #cfdceb;border-radius:7px;padding:4px;margin-left:6px}
.search-wrap input{width:180px;border:0;background:transparent;padding:8px 9px;outline:0;font-size:13px;color:#111}
.search-wrap button{border:0;background:var(--blue);color:#fff;border-radius:5px;padding:8px 11px;font-weight:800;cursor:pointer}
.back-btn{margin:0 0 20px;display:inline-flex;align-items:center;gap:7px;border:1px solid #cbd8e7;background:#fff;color:#17385f;padding:9px 13px;border-radius:6px;font-size:13px;font-weight:800;cursor:pointer}
.back-btn:hover{border-color:#9fc2ee;color:var(--blue);background:#f5f9ff}
.float-actions{position:fixed;right:20px;bottom:20px;z-index:80;display:flex;flex-direction:column;gap:10px}
.float-btn{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;box-shadow:0 8px 22px rgba(0,0,0,.18);font-size:22px;font-weight:900;border:0;cursor:pointer}
.float-wa{background:#19b85a;color:#fff}.float-top{background:var(--blue);color:#fff;display:none}
.search-results{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid var(--line);border-radius:0 0 8px 8px;box-shadow:0 15px 30px rgba(0,0,0,.12);display:none;z-index:100;overflow:hidden}
.search-results.show{display:block}.search-results a{display:block;padding:11px 13px;font-size:13px;border-bottom:1px solid #edf1f6;color:#243a56}.search-results a:hover{background:#eef6ff;color:var(--blue)}
.search-box{position:relative}
@media(max-width:1100px){.search-wrap input{width:125px}}
@media(max-width:900px){.search-wrap{margin:4px 0}.search-wrap input{width:100%}.search-wrap{width:100%}}
@media(max-width:620px){.float-actions{right:14px;bottom:14px}.float-btn{width:45px;height:45px}.back-btn{width:100%;justify-content:center}}

/* Exact product-code search result */
.catalog-search-result{
  background:#f7faff;
  border-bottom:1px solid var(--line);
  padding:28px 0;
  position:relative;
  z-index:40;
}
.catalog-result-card{
  background:#fff;
  border:1px solid #cbdced;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(20,50,90,.08);
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  align-items:stretch;
}
.catalog-result-table-wrap{
  overflow-x:auto;
  display:flex;
  align-items:center;
}
.catalog-result-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  font-size:13px;
}
.catalog-result-table th{
  background:#edf5ff;
  color:#193b61;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.35px;
  padding:12px 10px;
  border-bottom:1px solid #cbdced;
  white-space:nowrap;
}
.catalog-result-table td{
  padding:16px 10px;
  border-bottom:0;
  text-align:center;
  font-weight:700;
  white-space:nowrap;
}
.catalog-result-table td:first-child{
  color:var(--blue);
  font-size:14px;
}
.catalog-result-image{
  min-height:280px;
  padding:18px;
  border-left:1px solid var(--line);
  background:#fbfdff;
  display:grid;
  place-items:center;
}
.catalog-result-image img{
  display:block;
  max-width:100%;
  max-height:330px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.search-product-hit{
  display:flex;
  flex-direction:column;
  width:100%;
  border:0;
  background:#fff;
  text-align:left;
  padding:11px 13px;
  cursor:pointer;
  border-bottom:1px solid #edf1f6;
  color:#243a56;
}
.search-product-hit:hover{background:#eef6ff;color:var(--blue)}
.search-product-hit strong{font-size:13px}
.search-product-hit span{font-size:11px;color:var(--muted);margin-top:2px}
.search-no-match{padding:13px;font-size:13px;color:var(--muted);background:#fff}
@media(max-width:900px){
  .catalog-result-card{grid-template-columns:1fr}
  .catalog-result-image{
    border-left:0;
    border-top:1px solid var(--line);
    min-height:250px;
  }
}


/* ===== FINAL SEARCH + PRODUCT PHOTO UPDATE ===== */
.search-wrap{
  flex-direction:column !important;
  align-items:stretch !important;
  gap:6px !important;
  padding:5px !important;
  width:220px;
}
.search-wrap input{width:100% !important;}
.search-wrap button{width:100%;}
.brand h1{white-space:nowrap;}
.family-photo{display:block;width:auto;height:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 10px 12px rgba(15,35,55,.14));}
.imperial-photo.mxl{width:86px}.imperial-photo.xl{width:112px}.imperial-photo.l{width:140px}.imperial-photo.h{width:170px}.imperial-photo.xh{width:198px}
.family-photo.standard{width:170px}
.family-photo.cnc{width:185px}
.card .family-photo{max-height:130px}
.product .image{overflow:hidden}
.product .image .family-photo{max-height:185px}
@media(max-width:1100px){
  .brand h1{font-size:16px}
  .search-wrap{width:190px}
}
@media(max-width:900px){
  .search-wrap{width:100%;margin:4px 0 !important;}
  .brand h1{font-size:15px}
}
@media(max-width:620px){
  .brand h1{font-size:12px;letter-spacing:0;white-space:nowrap}
  .brand{gap:8px;min-width:0}
  .brand>div:last-child{min-width:0;overflow:visible}
  .search-wrap{width:100%;padding:6px !important}
  .search-wrap input{font-size:14px;padding:9px 10px}
  .search-wrap button{padding:9px 11px}
  .product .image{height:190px}
  .imperial-photo.mxl{width:72px}.imperial-photo.xl{width:94px}.imperial-photo.l{width:118px}.imperial-photo.h{width:145px}.imperial-photo.xh{width:168px}
  .family-photo.standard{width:145px}.family-photo.cnc{width:155px}
}

/* Series image size progression — same family photo, progressively larger */
.htd-photo.p2m{width:82px}.htd-photo.p3m{width:104px}.htd-photo.p5m{width:128px}.htd-photo.p8m{width:155px}.htd-photo.p14m{width:182px}
.std-photo.s2m{width:82px}.std-photo.s3m{width:104px}.std-photo.s5m{width:128px}.std-photo.s8m{width:155px}.std-photo.s14m{width:182px}
.metric-photo.mt25{width:76px}.metric-photo.mt5{width:94px}.metric-photo.mt10{width:114px}.metric-photo.mt20{width:136px}.metric-photo.at5{width:156px}.metric-photo.at10{width:176px}.metric-photo.at20{width:194px}
.gt-photo.g2{width:82px}.gt-photo.g3{width:106px}.gt-photo.g5{width:132px}.gt-photo.g8{width:158px}.gt-photo.g14{width:184px}
.cnc-photo{width:205px;max-height:245px}.cnc-image-box{display:grid;place-items:center;overflow:hidden}
@media(max-width:760px){
.htd-photo.p2m,.std-photo.s2m,.gt-photo.g2{width:70px}.htd-photo.p3m,.std-photo.s3m,.gt-photo.g3{width:88px}.htd-photo.p5m,.std-photo.s5m,.gt-photo.g5{width:108px}.htd-photo.p8m,.std-photo.s8m,.gt-photo.g8{width:130px}.htd-photo.p14m,.std-photo.s14m,.gt-photo.g14{width:152px}
.metric-photo.mt25{width:65px}.metric-photo.mt5{width:80px}.metric-photo.mt10{width:96px}.metric-photo.mt20{width:114px}.metric-photo.at5{width:132px}.metric-photo.at10{width:150px}.metric-photo.at20{width:166px}.cnc-photo{width:175px;max-height:215px}
}

/* FINAL: same image size on every View Family page */
.family-photo,
.imperial-photo,
.htd-photo,
.std-photo,
.metric-photo,
.gt-photo,
.cnc-photo {
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
  max-height: 180px !important;
  object-fit: contain !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media(max-width:700px){
  .family-photo,
  .imperial-photo,
  .htd-photo,
  .std-photo,
  .metric-photo,
  .gt-photo,
  .cnc-photo {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
  }
}
