
:root { --blue:#0f3d91; --accent:#f59e0b; --ink:#1f2937; --bg:#f8fafc; --e:#e5e7eb; }
* { margin:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; color:var(--ink); line-height:1.6; background:#fff; }
a { color:inherit; text-decoration:none; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* Top bar */
.topbar { background:#0b1f54; color:#cbd5e1; font-size:13px; padding:9px 0; }
.topbar-inner { display:flex; justify-content:space-between; align-items:center; }
.topbar-left { display:flex; gap:20px; }
.topbar-left a { color:#94a3b8; }
.topbar-left a:hover { color:#fff; }
.topbar-cta { background:var(--accent); color:#000; padding:6px 14px; border-radius:4px; font-weight:700; font-size:12px; }
.topbar-cta:hover { background:#e08f00; }

header { background:#fff; border-bottom:1px solid var(--e); position:sticky; top:0; z-index:50; }
nav { display:flex; justify-content:space-between; align-items:center; padding:15px 0; }
.logo { font-size:18px; font-weight:800; color:var(--blue); letter-spacing:-.3px; }
.logo span { color:var(--accent); }
.nav-links { display:flex; gap:22px; }
.nav-links a { font-weight:500; font-size:14px; color:#4b5563; }
.nav-links a:hover { color:var(--blue); }
.cta-btn { background:var(--blue); color:#fff; padding:9px 18px; border-radius:6px; font-size:14px; font-weight:600; }
.cta-btn:hover { background:#0c3169; }

.hero {
  background: linear-gradient(135deg,rgba(10,18,40,.82),rgba(15,30,65,.75)), url('assets/BOLTS/Hexagon flange bolts-DIN6921/DIN6921-Black.jpg') center/cover no-repeat;
  color:#fff; padding:90px 0 100px; text-align:center;
}
.hero h1 { font-size:46px; font-weight:800; line-height:1.15; margin-bottom:18px; }
.hero p { font-size:17px; opacity:.85; max-width:640px; margin:0 auto 12px; }
.hero-profile { font-size:14px; opacity:.72; max-width:720px; margin:0 auto 28px; line-height:1.7; }
.hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn-p { background:var(--accent); color:#000; padding:14px 26px; border-radius:6px; font-weight:700; }
.btn-s { background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.3); padding:14px 26px; border-radius:6px; font-weight:600; }

section { padding:80px 0; }
.sec-title { text-align:center; margin-bottom:44px; }
.sec-title h2 { font-size:30px; font-weight:800; margin-bottom:8px; }
.sec-title p { color:#6b7280; font-size:15px; }

/* Product grids */
.grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.card { background:#fff; border:1px solid var(--e); border-radius:12px; overflow:hidden; transition:transform .2s,box-shadow .2s; cursor:pointer; }
.card:hover { transform:translateY(-5px); box-shadow:0 14px 36px rgba(0,0,0,.07); }
.card img.card-img { width:100%; aspect-ratio:16/11; object-fit:cover; background:#eef2ff; display:block; }
.card-body { padding:15px 18px; }
.card h3 { font-size:16px; font-weight:700; }
.card p { font-size:13px; color:#6b7280; margin:4px 0 8px; }
.card-meta { font-size:12px; color:#9ca3af; }

.cat-section { background:var(--bg); }
.banner { width:100%; height: clamp(220px, 36vw, 420px); max-height:420px; object-fit:cover; background:#f1f5f9; border-radius:12px; margin-bottom:28px; }
.sub-pills { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 20px; }
.pill { background:#fff; border:1px solid var(--e); padding:7px 14px; border-radius:6px; font-size:13px; cursor:pointer; font-weight:500; transition:all .2s; }
.pill:hover, .pill.on { border-color:var(--blue); color:var(--blue); background:#eff6ff; font-weight:700; }

.gal { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.gal-item { background:#fff; border:1px solid var(--e); border-radius:8px; overflow:hidden; cursor:zoom-in; transition:transform .2s; }
.gal-item:hover { transform:scale(1.03); }
.gal-item img { width:100%; aspect-ratio:4/3; object-fit:cover; background:#eef2ff; display:block; }
.gal-item .gal-title { padding:8px 10px; font-size:12px; color:#374151; font-weight:500; }

.forms { background:#fff; border:1px solid var(--e); border-radius:12px; padding:30px; max-width:760px; margin:0 auto; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
input,select,textarea { width:100%; padding:11px; border:1px solid var(--e); border-radius:6px; font-size:14px; font-family:inherit; resize:vertical; }
.submit { background:var(--blue); color:#fff; padding:13px 26px; border:none; border-radius:6px; font-weight:700; font-size:14px; cursor:pointer; }
.submit:hover { background:#0c3169; }

.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; text-align:center; margin-top:24px; }
.stat { font-size:34px; font-weight:800; color:var(--blue); }
.stat-label { color:#6b7280; font-size:13px; margin-top:4px; }

.about-img { width:100%; max-height:420px; object-fit:cover; border-radius:12px; margin-bottom:32px; }

.adv-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:28px; }
.adv-item { background:#fff; border:1px solid var(--e); border-radius:12px; padding:22px; text-align:center; }
.adv-icon { font-size:28px; margin-bottom:10px; }
.adv-item h4 { font-size:15px; font-weight:700; margin-bottom:6px; }
.adv-item p { font-size:13px; color:#6b7280; line-height:1.6; }

/* OEM & ODM section */
.oem-inner { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.oem-text h2 { font-size:28px; font-weight:800; margin-bottom:14px; }
.oem-text p { color:#4b5563; line-height:1.8; font-size:15px; }
.oem-visual img { width:100%; border-radius:12px; object-fit:cover; }

/* Experience section */
.exp-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; margin-top:28px; }
.exp-item { background:#fff; border:1px solid var(--e); border-radius:12px; padding:28px; text-align:center; }
.exp-icon { font-size:32px; margin-bottom:12px; }
.exp-item h4 { font-size:16px; font-weight:700; margin-bottom:8px; }
.exp-item p { font-size:13px; color:#6b7280; line-height:1.6; }

/* Partners */
.partner-row { display:flex; flex-wrap:wrap; gap:16px; justify-content:center; }
.partner-box { background:#fff; border:1px solid var(--e); border-radius:8px; padding:14px 24px; font-weight:600; font-size:14px; color:#4b5563; }

/* Bottom CTA */
.bottom-cta { background:linear-gradient(135deg,rgba(10,18,40,.9),rgba(15,30,65,.85)); color:#fff; padding:72px 0; text-align:center; }
.bottom-cta h2 { font-size:30px; font-weight:800; margin-bottom:10px; }
.bottom-cta p { opacity:.82; font-size:15px; }

footer { background:#0b1f54; color:#cbd5e1; padding:52px 0 22px; font-size:13px; }
.fgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:28px; margin-bottom:36px; }
footer h4 { color:#fff; margin-bottom:10px; font-size:13px; text-transform:uppercase; letter-spacing:1px; }
footer a { color:#94a3b8; display:block; padding:2px 0; }
footer a:hover { color:#fff; }
.copy { border-top:1px solid #1e3a6e; padding-top:20px; text-align:center; color:#64748b; font-size:12px; }

.light { position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:999; display:none; align-items:center; justify-content:center; padding:24px; }
.light.open { display:flex; }
.light img { max-width:94vw; max-height:90vh; border-radius:6px; }
.light-hint { position:absolute; bottom:16px; left:0; right:0; text-align:center; color:#fff; opacity:.8; font-size:13px; cursor:pointer; }

.hidden { display:none; }

.menu-btn { display:none; background:none; border:none; font-size:26px; line-height:1; color:var(--ink); cursor:pointer; padding:6px; }

@media (max-width: 960px) {
  .grid { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
  .oem-inner { grid-template-columns:1fr; }
}

@media (max-width: 860px) {
  .grid { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .hero h1 { font-size:32px; }
  .hero p { font-size:15px; }
  .nav-links { display:none; }
  .nav-links.open { display:flex; flex-direction:column; position:absolute; left:0; right:0; top:100%; background:#fff; border-bottom:1px solid var(--e); padding:14px 20px; gap:12px; box-shadow: 0 18px 30px rgba(0,0,0,.06); }
  .row { grid-template-columns:1fr; }
  section { padding:56px 0; }
  .sec-title h2 { font-size:24px; }
  .menu-btn { display:block; }
  header { position:relative; }
  nav { gap:10px; }
  .topbar-inner { flex-direction:column; gap:6px; text-align:center; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns:1fr; }
  .grid-3 { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
  .stat { font-size:26px; }
  .stat-label { font-size:12px; }
  .hero h1 { font-size:26px; }
  .hero p { font-size:14px; }
  .btn-p, .btn-s { width:100%; }
  .hero-btns { flex-direction:column; align-items:center; }
  .forms { padding:20px; }
  .gal { grid-template-columns:repeat(2,1fr); }
  .fgrid { grid-template-columns:1fr; }
  .container { padding:0 16px; }
}

/* Carousel banner (G&T style multi-image scroll) */
.hero-carousel { position: relative; height: 70vh; min-height: 420px; overflow: hidden; }
.carousel-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; z-index: 1; }
.carousel-slide.active { opacity: 1; z-index: 2; }
.carousel-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(10,18,40,.82),rgba(15,30,65,.75)); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2); border: none; color: #fff; font-size: 32px; padding: 12px 18px; cursor: pointer; z-index: 3; border-radius: 4px; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(255,255,255,.35); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.45); border: 2px solid transparent; cursor: pointer; padding: 0; }
.carousel-dot.active { background: #fff; border-color: rgba(255,255,255,.6); }

/* About left-text right-image (G&T style) */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image img { width: 100%; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.08); }

/* Product detail panel (G&T style: left image+thumbs, right info) */
.product-detail { background: #fff; border: 1px solid var(--e); border-radius: 12px; padding: 28px; margin-top: 24px; }
.breadcrumb { font-size: 13px; color: #6b7280; margin-bottom: 18px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* New G&T-style layout: left gallery col + right info sidebar */
.detail-grid--gallery { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.detail-gallery-col { display: flex; flex-direction: column; gap: 12px; }
.main-img-wrap { position: relative; }
.main-img-wrap img { width: 100%; border-radius: 8px; border: 1px solid var(--e); display: block; aspect-ratio: 4/3; object-fit: cover; background: #f1f5f9; }
.thumb-row { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb-item { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color .2s, transform .2s; flex-shrink: 0; }
.thumb-item:hover { border-color: var(--blue); transform: scale(1.05); }
.thumb-active { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(245,158,11,.3); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-sidebar { display: flex; flex-direction: column; gap: 12px; }
.detail-sidebar h2 { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.contact-row { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.contact-row a { color: #4b5563; }
.contact-row a:hover { color: var(--blue); }
.detail-short-desc { color: #4b5563; font-size: 14px; line-height: 1.7; margin: 0; }
.detail-sidebar .cta-btn { display: inline-block; background: var(--accent); color: #000; padding: 11px 22px; border-radius: 6px; font-weight: 700; text-align: center; font-size: 14px; }
.detail-sidebar .cta-btn:hover { background: #e08f00; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.spec-table th, .spec-table td { border: 1px solid var(--e); padding: 9px 12px; text-align: left; font-size: 13px; }
.spec-table th { background: var(--bg); font-weight: 700; width: 120px; white-space: nowrap; }

/* All category thumbs in sidebar */
.all-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.all-thumb-item { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color .2s, transform .2s; }
.all-thumb-item:hover { border-color: var(--blue); transform: scale(1.05); }
.all-thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product information panel */
.pinfo-header { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
#pinfoPanel p { font-size: 14px; color: #4b5563; line-height: 1.75; }
#pinfoPanel { border: 1px solid var(--e); border-radius: 10px; padding: 22px 26px; background: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .detail-grid--gallery { grid-template-columns: 1fr; }
  .thumb-item { width: 52px; height: 52px; }
}
@media (max-width: 480px) {
  .thumb-row { gap: 6px; }
  .thumb-item { width: 48px; height: 48px; }
  .main-img-wrap img { aspect-ratio: 1/1; }
  .detail-sidebar h2 { font-size: 18px; }
  .product-detail { padding: 18px; }
}

/* Product cards for category pages */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-card { background: #fff; border: 1px solid var(--e); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef2ff; display: block; }
.product-card-body { padding: 12px 14px; }
.product-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.product-card p { font-size: 12px; color: #6b7280; }

@media (max-width: 960px) {
  .about-layout { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid--scrolling { grid-template-columns: 1fr; }
  .detail-image-col { position: static; max-height: none; overflow-y: visible; }
  .detail-info-col { position: static; max-height: none; overflow-y: visible; padding-left: 0; }
}
@media (max-width: 860px) {
  .hero-carousel { min-height: 360px; }
  .carousel-prev, .carousel-next { font-size: 24px; padding: 8px 12px; }
}
@media (max-width: 480px) {
  .hero-carousel { min-height: 300px; }
}

/* Full-width gallery below detail panel */
.gal--all { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 12px; }
@media (min-width: 961px) {
  .gal--all { grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); }
}


/* ===== B MODE GNT PRODUCT DETAIL ENHANCEMENT ===== */
.product-detail{
  border-radius:0;
  padding:32px;
  background:#fff;
}
.detail-grid--gallery{
  grid-template-columns:minmax(0, 1.15fr) minmax(360px, .85fr);
  gap:42px;
}
.main-img-wrap{
  background:#fafafa;
  border:1px solid #e5e7eb;
  padding:18px;
}
.main-img-wrap img{
  aspect-ratio:1/1;
  object-fit:contain;
  background:#fff;
  cursor:zoom-in;
}
.thumb-row{
  padding-top:6px;
  flex-wrap:nowrap;
  overflow-x:auto;
}
.thumb-item{
  flex:0 0 72px;
  width:72px;
  height:72px;
  border-radius:4px;
  background:#fff;
}
.detail-sidebar h2{
  font-size:28px;
  margin-bottom:8px;
}
.detail-sidebar .cta-btn{
  width:100%;
  margin:8px 0 12px;
  letter-spacing:.5px;
}
.spec-table th{
  width:140px;
  background:#f7f7f7;
}
.all-thumbs{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(70px,1fr));
  gap:8px;
  margin-top:15px;
}
.all-thumb-item{
  border:1px solid #e5e7eb;
  cursor:pointer;
}
.all-thumb-item img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.pinfo-header{
  font-size:22px;
  font-weight:800;
  border-bottom:2px solid #0f3d91;
  padding-bottom:12px;
  margin-bottom:18px;
}
@media(max-width:960px){
 .detail-grid--gallery{grid-template-columns:1fr;}
 .detail-sidebar h2{font-size:22px;}
}


/* ===== V2 GNT visual enhancement ===== */
.main-img-wrap { background:#fff; overflow:hidden; border-radius:10px; }
.main-img-wrap img { cursor:zoom-in; transition:transform .35s ease; }
.main-img-wrap:hover img { transform:scale(1.06); }

.detail-sidebar .cta-btn {
  width:100%;
  letter-spacing:.4px;
  text-transform:uppercase;
  margin:4px 0;
}

.all-thumbs {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(64px,1fr));
  gap:8px;
  margin-top:10px;
}
.all-thumb-item {
  border:1px solid var(--e);
  border-radius:6px;
  overflow:hidden;
  cursor:pointer;
  aspect-ratio:1;
}
.all-thumb-item img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.pinfo-header {
  font-size:20px;
  font-weight:800;
  padding-bottom:12px;
  border-bottom:2px solid var(--accent);
  margin-bottom:18px;
}

@media(max-width:960px){
 .detail-grid--gallery{gap:20px}
}

/* V3 product layout fixes */
.all-thumbs{display:grid;grid-template-columns:repeat(4,70px);gap:10px;margin-top:10px;}
.all-thumb-item{width:70px;height:70px;border:1px solid var(--e);border-radius:6px;overflow:hidden;cursor:pointer;background:#fff;}
.all-thumb-item img{width:100%;height:100%;object-fit:cover;}
.spec-title{margin-top:24px;font-size:18px;font-weight:700;}
.main-img-wrap img{cursor:zoom-in;}
@media(max-width:960px){.all-thumbs{grid-template-columns:repeat(5,52px)}.all-thumb-item{width:52px;height:52px}}

/* V4 product gallery */
.sub-gallery-title{font-weight:800;font-size:15px;margin-top:8px;color:var(--ink);}
.all-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;}
.all-thumb-item{width:58px;height:58px;border:1px solid var(--e);border-radius:6px;overflow:hidden;cursor:pointer;background:#fff;}
.all-thumb-item img{width:100%;height:100%;object-fit:cover;display:block;}
.all-thumb-item:hover{border-color:var(--accent);}
.product-specifications{margin-top:20px;}
.product-specifications h3{font-size:18px;margin-bottom:10px;}


/* V5 right product thumbnails */
.all-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.all-thumb-item{width:72px;height:72px;border:1px solid #ddd;border-radius:6px;overflow:hidden;cursor:pointer;background:#fff}
.all-thumb-item img{width:100%;height:100%;object-fit:cover}
/* V5.2: Global Products hover dropdown — applied site-wide */
.nav-links > .nav-products { position:relative; align-self:stretch; display:flex; align-items:center; }
.nav-links > .nav-products > a { display:inline-flex; align-items:center; gap:5px; height:100%; }
.nav-links > .nav-products > a::after { content:"\25BE"; font-size:10px; line-height:1; opacity:.75; }
.nav-links > .nav-products > .products-dropdown {
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%) translateY(4px);
  min-width:220px;
  padding:8px 0;
  margin:0;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:4px;
  box-shadow:0 12px 28px rgba(15,23,42,.16);
  z-index:99999;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .14s ease, visibility .14s ease, transform .14s ease;
}
.nav-links > .nav-products:hover > .products-dropdown,
.nav-links > .nav-products:focus-within > .products-dropdown {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}
.nav-links > .nav-products > .products-dropdown::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-10px;
  height:10px;
}
.nav-links > .nav-products > .products-dropdown a {
  display:block;
  padding:11px 16px;
  color:#374151;
  text-decoration:none;
  font-size:14px;
  line-height:1.2;
  white-space:nowrap;
  border-bottom:1px solid #eee;
}
.nav-links > .nav-products > .products-dropdown a:last-child { border-bottom:0; }
.nav-links > .nav-products > .products-dropdown a:hover,
.nav-links > .nav-products > .products-dropdown a:focus {
  color:var(--blue,#0b3b70);
  background:#f7f9fc;
}
@media (max-width:960px) {
  .nav-links > .nav-products { display:block; }
  .nav-links > .nav-products > a { height:auto; }
  .nav-links > .nav-products > .products-dropdown {
    position:static;
    transform:none;
    min-width:0;
    margin:4px 0 8px;
    box-shadow:none;
    border-radius:6px;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  .nav-links > .nav-products > .products-dropdown::before { display:none; }
}

/* V5.1 standard-specific product gallery */
.detail-grid--gallery{align-items:start}
.detail-gallery-col{min-width:0}
.main-img-wrap{background:#fff;display:flex;align-items:center;justify-content:center;min-height:420px;overflow:hidden}
.main-img-wrap img{width:100%;height:420px;object-fit:contain;display:block}
.detail-sidebar{min-width:0}
.standard-gallery-title{font-size:15px;font-weight:700;color:#173b67;margin:22px 0 10px}
.standard-gallery-subtitle{font-size:12px;color:#6b7280;margin:-5px 0 12px}
.all-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
.all-thumb-item{border:1px solid #e1e5ea;background:#fff;padding:6px;cursor:pointer;transition:.15s}
.all-thumb-item:hover,.all-thumb-item.active{border-color:#0b4a82;box-shadow:0 0 0 1px #0b4a82}
.all-thumb-item img{width:100%;height:72px;object-fit:contain;display:block;background:#fff}
.all-thumb-name{font-size:11px;line-height:1.3;color:#4b5563;margin-top:6px;word-break:break-word}
@media(max-width:900px){
 .detail-grid--gallery{grid-template-columns:1fr}
 .main-img-wrap img{height:360px}
 .all-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* ===== V5.2 FINAL PRODUCT DETAIL + NAVIGATION FIX ===== */

/* Desktop Products submenu: hidden by default; visible ONLY on hover/focus. */
@media (min-width: 961px) {
  .nav-links > .nav-products {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
  }
  .nav-links > .nav-products > a {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .nav-links > .nav-products > .products-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 210px;
    margin: 0;
    padding: 7px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .15);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99999;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
  }
  .nav-links > .nav-products:hover > .products-dropdown,
  .nav-links > .nav-products:focus-within > .products-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* Product main area */
.detail-grid--gallery {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 36px;
  align-items: start;
}
.detail-gallery-col,
.detail-sidebar { min-width: 0; }

.main-img-wrap {
  min-height: 440px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}
.main-img-wrap img {
  width: 100%;
  height: 440px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
  transition: opacity .14s ease;
}
.main-img-wrap img.is-changing { opacity: .72; }

.detail-sidebar h2 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.detail-sidebar .cta-btn {
  width: 100%;
  margin-top: 8px;
  padding: 13px 22px;
}

.product-gallery-label {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  color: #173b67;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.detail-sidebar .all-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.detail-sidebar .all-thumb-item {
  appearance: none;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 6px;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.detail-sidebar .all-thumb-item:hover,
.detail-sidebar .all-thumb-item:focus,
.detail-sidebar .all-thumb-item.active {
  border-color: #0f3d91;
  box-shadow: 0 0 0 1px #0f3d91;
  outline: none;
  transform: translateY(-1px);
}
.detail-sidebar .all-thumb-item img {
  width: 100%;
  height: 74px;
  display: block;
  object-fit: contain;
  background: #fff;
}
.detail-sidebar .all-thumb-name {
  display: block;
  margin-top: 6px;
  color: #5b6472;
  font-size: 10px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.gallery-empty {
  grid-column: 1 / -1;
  color: #6b7280;
  font-size: 13px;
  padding: 10px 0;
}

/* Product Information: specifications live here, not in the right column. */
#pinfoPanel {
  padding: 28px 30px;
}
#pinfoPanel .pinfo-header {
  font-size: 22px;
  font-weight: 800;
  color: #173b67;
  margin-bottom: 14px;
}
#pinfoPanel #detailInfo {
  max-width: 1000px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
}
#pinfoPanel .detail-description {
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}
.product-spec-list {
  margin-top: 22px;
  max-width: 920px;
  border-top: 1px solid #e5e7eb;
}
.product-spec-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f3;
}
.product-spec-label {
  color: #173b67;
  font-weight: 700;
  font-size: 14px;
}
.product-spec-value {
  color: #374151;
  font-size: 14px;
}

@media (max-width: 960px) {
  .detail-grid--gallery {
    grid-template-columns: 1fr;
  }
  .main-img-wrap,
  .main-img-wrap img {
    min-height: 0;
    height: 360px;
  }
  .detail-sidebar .all-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .main-img-wrap img { height: 300px; }
  .detail-sidebar .all-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-spec-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
