/* 2026-10-13: isolated updates, no changes to GIM/Featured/Downloads. */
@media (min-width: 992px) {
  .ct-nav-menu > li.mega-parent > .ct-modern-mega {
    background: rgba(23,27,30,.93) !important;
    backdrop-filter: blur(8px) !important;
  }
  .ct-nav-menu > li.mega-parent.mega-open > .ct-modern-mega {
    opacity:1 !important; visibility:visible !important; pointer-events:auto !important;
  }
}
.ct-pd-category-picker {position:relative;display:inline-flex}
.ct-pd-category-picker .ct-pd-nav-category {cursor:pointer;font:inherit}
.ct-pd-category-options[hidden] {display:none !important}
.ct-pd-category-options {position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);z-index:80;display:grid;grid-template-columns:42px;gap:5px;padding:9px;background:#fff;border:1px solid #d6dfe2;border-radius:9px;box-shadow:0 12px 32px rgba(0,0,0,.16)}
.ct-pd-category-option {display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:6px;color:#44515a;text-decoration:none;font-size:20px}
.ct-pd-category-option:hover,.ct-pd-category-option:focus-visible,.ct-pd-category-option.is-current {background:#f1f8e4;color:#5f9700;outline-color:#84bd00}
.ct-category-smart_city .ct-detail-media {background:#edf1f2}
.ct-category-smart_city .ct-detail-media img {object-fit:contain !important;object-position:center center !important}
@media(max-width:1199px){.ct-category-smart_city .ct-detail-media {min-height:210px;max-height:none;aspect-ratio:1280/510}}
@media(max-width:767px){.ct-category-smart_city .ct-detail-media {min-height:0;max-height:none;aspect-ratio:1280/510}}

/* Show identical product navigation on category landing pages. */
.ct-category-restyle .ct-category-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0 12px}
.ct-category-restyle .ct-category-topline .ct-breadcrumb{margin:0;padding:0;min-width:0;flex:1}
.ct-category-restyle .ct-pd-product-nav{position:relative;z-index:20}
@media(max-width:720px){.ct-category-restyle .ct-category-topline{flex-wrap:wrap}.ct-category-restyle .ct-category-topline .ct-breadcrumb{flex-basis:100%}.ct-category-restyle .ct-pd-product-nav{margin-left:auto}}

/* 2026-10-13 fix: category landing navigation uses EXACT product-detail horizontal controls. */
.ct-category-restyle .ct-category-topline {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px;
}
.ct-category-restyle .ct-category-topline > .ct-breadcrumb {flex:1 1 auto;min-width:0}
.ct-category-restyle .ct-category-topline > .ct-pd-product-nav {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex:0 0 auto !important;
  width:auto !important;
  margin-left:auto !important;
}
.ct-category-restyle .ct-category-topline .ct-pd-category-picker {
  display:inline-flex !important;
  flex-direction:row !important;
  flex:0 0 auto !important;
}
.ct-category-restyle .ct-category-topline .ct-pd-nav-button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 39px !important;
  width:39px !important;
  height:39px !important;
  padding:0 !important;
  border:1px solid #cdd6da !important;
  border-radius:5px !important;
  background:#fff !important;
  color:#20272b !important;
  box-sizing:border-box !important;
  text-decoration:none !important;
}
.ct-category-restyle .ct-category-topline .ct-pd-nav-button svg {
  width:21px !important;height:21px !important;display:block !important;
  fill:none !important;stroke:currentColor !important;stroke-width:2 !important;
  stroke-linecap:round;stroke-linejoin:round;
}
.ct-category-restyle .ct-category-topline .ct-pd-nav-category {
  color:#5f9700 !important;
  border-color:#b5d47d !important;
  background:#f8fbf2 !important;
}
.ct-category-restyle .ct-category-topline .ct-pd-nav-button:hover,
.ct-category-restyle .ct-category-topline .ct-pd-nav-button:focus-visible {
  color:#426c00 !important;background:#f1f8e4 !important;border-color:#84bd00 !important;
}
/* Only the dropdown is a vertical column; the three navigation buttons never are. */
.ct-category-restyle .ct-pd-category-options {display:grid;grid-template-columns:42px;}
@media(max-width:720px) {
  .ct-category-restyle .ct-category-topline {flex-wrap:wrap;}
  .ct-category-restyle .ct-category-topline > .ct-breadcrumb {flex-basis:100%;}
  .ct-category-restyle .ct-category-topline .ct-pd-nav-button {width:38px !important;height:38px !important;flex-basis:38px !important;}
}

/* CT 2026-10-13: preserve the top of the product in seven selected galleries.
   The original card dimensions, thumbnail styling and layout remain unchanged. */
.ct-product-detail-page .ct-pd-gallery-main--top-aligned img {
  object-fit: cover;
  object-position: center top;
}

/* Product gallery fine-tuning: 5% for the seven selected products. */
.ct-product-detail-page .ct-pd-gallery-main--top-aligned img {object-position:center 5% !important;}
/* Smart City information PMV: preserve the full previously supplied photograph. */
.ct-product-detail-page .ct-pd-gallery-main--full-photo {background:#edf1f2;}
.ct-product-detail-page .ct-pd-gallery-main--full-photo img {object-fit:contain !important;object-position:center center !important;}

/* Weather alert product only: position the image at 35%, leaving other products at 5%. */
.ct-product-detail-page .ct-pd-gallery-main--ai-weather img {
  object-position: center 35% !important;
}
.ct-product-detail-page .ct-pd-gallery-main--ai-weather { position: relative; }
.ct-product-detail-page .ct-pd-ai-badge {
  position:absolute; top:12px; right:12px; z-index:2;
  display:inline-flex; align-items:center; gap:4px;
  padding:5px 9px; border-radius:5px;
  background:rgba(21,25,28,.88); color:#fff;
  font:600 12px/1.3 system-ui,sans-serif; letter-spacing:.02em;
  pointer-events:none;
}
.ct-product-detail-page .ct-pd-ai-caption {
  margin:7px 0 10px; font:400 12px/1.5 system-ui,sans-serif;
  color:#526068;
}
