:root{--blue:#123f66;--sky:#eaf6ff;--yellow:#f6c744;--ink:#17212b;--muted:#66717d;--line:#dfe7ee}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:#f7fafc}a{text-decoration:none;color:inherit}.top{background:var(--blue);color:#fff;padding:8px 5%;font-size:13px}.nav{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.navin{max-width:1180px;margin:auto;padding:14px 18px;display:flex;align-items:center;gap:24px}.logo{font-size:22px;font-weight:800;color:var(--blue)}.search{flex:1;display:flex}.search input{width:100%;padding:12px 15px;border:1px solid var(--line);border-radius:9px 0 0 9px}.search button{border:0;background:var(--yellow);padding:0 18px;border-radius:0 9px 9px 0;font-weight:700}.btn{display:inline-block;border:0;border-radius:8px;padding:11px 16px;background:var(--blue);color:#fff;font-weight:700;cursor:pointer}.btn.yellow{background:var(--yellow);color:#1d2630}.container{max-width:1180px;margin:auto;padding:24px 18px}.hero{background:linear-gradient(120deg,var(--blue),#1d628e);color:#fff;border-radius:18px;padding:42px 30px;display:grid;grid-template-columns:1.4fr .8fr;gap:25px}.hero h1{font-size:40px;margin:0 0 12px}.hero p{font-size:17px;line-height:1.6}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.product{overflow:hidden;padding:0;display:flex;flex-direction:column;height:100%}.pic{height:210px;min-height:210px;background:var(--sky);display:grid;place-items:center;font-size:48px;color:var(--blue);padding:10px;overflow:hidden}.pic img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.product .body{padding:16px;display:flex;flex-direction:column;flex:1;min-width:0}.product .body h3{margin:10px 0 7px;font-size:17px;line-height:1.3;min-height:44px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product .body .muted{margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product .body .btn{margin-top:auto;align-self:flex-start}.product .body br{display:none}.price{font-size:20px;font-weight:800}.old{text-decoration:line-through;color:#999;font-size:13px;margin-left:5px}.badge{display:inline-block;padding:5px 8px;background:#e9f7ee;color:#20733b;border-radius:99px;font-size:12px;font-weight:700}.muted{color:var(--muted)}.two{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.form{display:grid;gap:12px}.form input,.form select,.form textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px}.footer{background:var(--blue);color:#fff;margin-top:35px;padding:35px 5%}.adminnav{background:#102f4a;color:#fff;padding:14px 5%;display:flex;gap:20px}.adminnav a{color:#fff}.statgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.stat strong{font-size:28px}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:12px;border-bottom:1px solid var(--line);text-align:left}@media(max-width:800px){.navin{flex-wrap:wrap}.search{order:3;flex-basis:100%}.hero,.two{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,1fr)}.statgrid{grid-template-columns:repeat(2,1fr)}.hero h1{font-size:30px}}@media(max-width:800px){.pic{height:190px;min-height:190px}.product .body{padding:13px}.product .body h3{font-size:16px;min-height:42px}}
@media(max-width:520px){.grid{grid-template-columns:1fr 1fr}.container{padding:16px 12px}.navin{padding:12px}.hero{padding:28px 20px}.pic{height:175px;min-height:175px}.product .body{padding:12px}.product .body h3{font-size:15px;min-height:39px}.price{font-size:18px}.btn{padding:9px 12px;font-size:13px}}

.payoption{display:block;padding:13px;border:1px solid var(--line);border-radius:9px;background:#fff}.payoption input{margin-right:8px}.paymentbox{display:none;gap:10px;padding:15px;border:1px solid var(--line);border-radius:9px;background:var(--sky)}.paymentbox small{line-height:1.4}.notice{padding:12px;border-radius:8px;margin-bottom:14px}.notice.error{background:#fff0f0;color:#9b2226}

/* FINAL PRODUCT CARD FIX v2 */
.product{position:relative;overflow:hidden;padding:0!important;display:flex!important;flex-direction:column!important;height:100%;min-width:0;}
.product .pic{position:relative!important;width:100%!important;height:210px!important;min-height:210px!important;max-height:210px!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;background:var(--sky)!important;padding:10px!important;flex:0 0 210px!important;}
.product .pic img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;border-radius:12px!important;}
.product .body{position:relative!important;background:#fff!important;padding:14px 16px 16px!important;display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:180px!important;min-width:0!important;overflow:hidden!important;}
.product .body h3{position:static!important;margin:9px 0 7px!important;font-size:17px!important;line-height:1.3!important;height:44px!important;min-height:44px!important;max-height:44px!important;overflow:hidden!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;}
.product .body .muted{margin:0 0 8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.product .body .btn{margin-top:auto!important;align-self:flex-start!important;}
@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.product .pic{height:190px!important;min-height:190px!important;max-height:190px!important;flex-basis:190px!important}.product .body{min-height:175px!important;padding:13px!important}.product .body h3{font-size:16px!important;height:42px!important;min-height:42px!important;max-height:42px!important}}
@media(max-width:520px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.product .pic{height:165px!important;min-height:165px!important;max-height:165px!important;flex-basis:165px!important}.product .body{padding:11px!important;min-height:165px!important}.product .body h3{font-size:15px!important;height:39px!important;min-height:39px!important;max-height:39px!important}.price{font-size:18px!important}.product .body .btn{font-size:13px!important;padding:9px 12px!important}}

/* BRAND LOGO */
.logo{display:flex;align-items:center;flex:0 0 auto;line-height:0}
.logo-img{display:block;width:190px;height:auto;max-height:70px;object-fit:contain}
@media(max-width:800px){.logo-img{width:165px;max-height:62px}}
@media(max-width:520px){.logo-img{width:145px;max-height:56px}}

/* V16 logo safety fix */
.navin .logo{display:flex!important;align-items:center!important;flex:0 0 auto!important;width:auto!important;max-width:190px!important;overflow:hidden!important;line-height:0!important;}
.navin .logo-img{display:block!important;width:190px!important;max-width:190px!important;height:70px!important;max-height:70px!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;}
@media(max-width:800px){.navin .logo{max-width:165px!important}.navin .logo-img{width:165px!important;max-width:165px!important;height:62px!important;max-height:62px!important}}
@media(max-width:520px){.navin .logo{max-width:145px!important}.navin .logo-img{width:145px!important;max-width:145px!important;height:56px!important;max-height:56px!important}}

/* V17 - 25-category catalogue */
.category-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:28px;margin-bottom:12px}.category-heading h2{margin:0 0 4px}.category-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-card-mini{display:block;transition:transform .15s,box-shadow .15s}.category-card-mini:hover,.category-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(18,63,102,.10)}.category-icon{font-size:34px;margin-bottom:8px}.category-card-mini h3{margin:5px 0}.category-card-mini p{margin:0;font-size:13px}.category-hero{background:linear-gradient(120deg,var(--blue),#1d628e);color:#fff;border-radius:18px;padding:30px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.category-hero h1{margin:0 0 8px;font-size:34px}.category-hero p{margin:0;line-height:1.6}.category-hero .btn{background:var(--yellow);color:#1d2630}.breadcrumb{font-size:13px;color:var(--muted);margin:4px 0 18px}.breadcrumb a{color:var(--blue);font-weight:700}.category-grid-full{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.category-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;align-items:center;gap:14px;transition:transform .15s,box-shadow .15s}.category-card h2{font-size:18px;margin:0 0 5px}.category-card p{margin:0;color:var(--muted);font-size:13px}.category-card>span{margin-left:auto;font-size:24px;color:var(--blue);font-weight:800}.subcategory-wrap{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:25px}.subcategory-wrap h2{margin-top:0}.subcat-grid{display:flex;flex-wrap:wrap;gap:9px}.subcat-pill{padding:9px 12px;border-radius:999px;background:var(--sky);color:var(--blue);font-size:13px;font-weight:700;border:1px solid #d7eaf7}.adminnav select{color:var(--ink)}
@media(max-width:900px){.category-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-grid-full{grid-template-columns:repeat(2,minmax(0,1fr))}.category-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.category-heading{align-items:flex-start;flex-direction:column}.category-home-grid,.category-grid-full{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card{padding:13px;gap:10px}.category-card h2{font-size:15px}.category-card-mini{padding:13px}.category-icon{font-size:28px}.category-hero{padding:24px 18px}.category-hero h1{font-size:27px}}
/* V18 Bike Finder */
.bike-finder{margin:22px 0;padding:22px;background:linear-gradient(120deg,#f8fcff,#eef8ff);border-color:#cfe5f3}.bike-finder h1,.bike-finder h2{margin-top:0}.bike-finder-form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end;margin-top:14px}.bike-finder-form label{font-weight:700;font-size:13px}.bike-finder-form select{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}.compat-box{margin:14px 0;padding:14px;border:1px solid #cfe5f3;background:#f6fbff;border-radius:10px}.compat-tags{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0}.compat-tags span{padding:6px 9px;background:#fff;border:1px solid #d7eaf7;border-radius:999px;font-size:12px;font-weight:700;color:var(--blue)}
@media(max-width:800px){.bike-finder-form{grid-template-columns:1fr 1fr}.bike-finder-form .btn{grid-column:1/-1}}
@media(max-width:520px){.bike-finder-form{grid-template-columns:1fr}.bike-finder-form .btn{grid-column:auto}}
.brand-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 34px}.brand-home-card{display:block;text-decoration:none;color:inherit;padding:20px;min-height:170px;transition:.18s}.brand-home-card:hover,.model-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(0,0,0,.08)}.engine-oil-card{border:2px solid #f1c40f;background:linear-gradient(135deg,#fffdf0,#fff)}.model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.model-card{display:block;text-decoration:none;color:inherit;padding:20px}.model-icon{font-size:38px}.year-strip{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0 24px}.model-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.model-category-card{padding:18px}.model-category-card>a{text-decoration:none;color:inherit;display:block}.model-category-card h2{font-size:19px;margin:8px 0}.subcat-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.subcat-list a{background:#eef6ff;border-radius:999px;padding:7px 10px;text-decoration:none;color:#163b63;font-size:13px}.subcat-list a:hover{background:#dbeeff}@media(max-width:800px){.brand-home-grid,.model-grid,.model-category-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.brand-home-grid,.model-grid,.model-category-grid{grid-template-columns:1fr}.brand-home-card{min-height:auto}}
/* V21 compatibility selector */
.compat-row select{min-width:0;width:100%;}
@media(max-width:700px){.compat-row{grid-template-columns:1fr !important}.compat-row .btn{width:100%}}

/* V28 PRODUCT DETAIL IMAGE FIX
   Remote image URLs are supported. Keep the complete product visible without
   cropping or distortion on desktop and mobile. */
.product-detail-pic{
  width:100%;
  height:380px;
  min-height:380px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  overflow:hidden;
}
.product-detail-pic img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  margin:0;
  padding:0;
  border-radius:10px;
}
@media(max-width:800px){
  .product-detail-pic{height:320px;min-height:320px;padding:14px}
}
@media(max-width:520px){
  .product-detail-pic{height:270px;min-height:270px;padding:12px;border-radius:12px}
  .product-detail-pic img{border-radius:8px}
}
