/* INOVIALAB NEXT V23 | Product detail design, single-source replacement.
   All rules live in the existing product-detail.css. Never exposes private prices. */

/* Page frame and intra-page navigation */
.container.v8-product-detail{
  width:min(1280px,calc(100% - 72px));
  padding-top:26px;
  padding-bottom:78px;
}
.v8-breadcrumbs{
  display:flex;flex-wrap:wrap;align-items:center;gap:9px;
  margin:0 0 20px;color:#708795;font-size:12px;line-height:1.5;
}
.v8-breadcrumbs a{color:#41637a;text-decoration:none;font-weight:600}
.v8-breadcrumbs a:hover{text-decoration:underline;text-underline-offset:3px}
.v19-section-nav{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
  margin:0 0 27px;padding:0;
}
.v19-section-nav a{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:34px;padding:7px 13px;border:1px solid #dce7ee;
  border-radius:999px;background:#f6f9fb;color:#426276;
  font-size:12px;line-height:1.25;font-weight:680;text-decoration:none;
  transition:background-color .16s,border-color .16s,color .16s;
}
.v19-section-nav a:hover{background:#e9f4fa;border-color:#a9d1e6;color:#0c6e9f}
.v19-section-nav a:focus-visible,.v9-gallery-thumb:focus-visible{
  outline:3px solid #1386bf;outline-offset:3px;
}
.v19-section-target,#v8-quote-request{scroll-margin-top:28px}

/* Main composition: media on the left; information, price and action on the right. */
.v8-product-layout{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:clamp(28px,3.6vw,56px);
  align-items:start;
  min-width:0;
}
.v8-photo-panel,.v8-product-summary{min-width:0}
.v8-photo-panel{position:sticky;top:26px}
.v8-photo-stage{
  position:relative;isolation:isolate;display:flex;align-items:center;
  justify-content:center;overflow:hidden;
  width:100%;height:clamp(380px,40vw,545px);
  max-width:100%;border-radius:21px;
  background:#f9fbfc;border:1px solid #e0e9ef;
  box-shadow:0 8px 32px rgba(17,49,72,.055);
}
.v8-photo-stage img{
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;
  padding:12px;object-fit:contain;object-position:center;
}
.v19-product-figure[aria-busy="true"]{opacity:.7}
.v8-image-placeholder{display:grid;place-items:center;gap:8px;color:#6d8c9c;text-align:center}
.v8-image-placeholder span{font-size:68px;line-height:1}
.v8-image-placeholder small{font-size:13px}
.v9-gallery{
  display:flex;align-items:center;gap:10px;overflow-x:auto;
  padding:13px 1px 5px;scroll-snap-type:x proximity;
  overscroll-behavior-inline:contain;scrollbar-width:thin;
}
.v9-gallery-thumb{
  display:flex;align-items:center;justify-content:center;
  flex:0 0 76px;width:76px;height:76px;overflow:hidden;
  border:1.5px solid #dbe7ed;border-radius:12px;
  background:#fff;scroll-snap-align:start;cursor:pointer;
  transition:border-color .15s,box-shadow .15s;
}
.v9-gallery-thumb img{display:block;width:100%;height:100%;object-fit:contain;padding:4px}
.v9-gallery-thumb:hover,.v9-gallery-thumb.is-selected,
.v9-gallery-thumb[aria-current="true"]{
  border-color:#007eaf;box-shadow:0 0 0 2px rgba(0,126,175,.1)
}
.v8-photo-note,.v19-media-note{font-size:12px;line-height:1.55;color:#80919e;margin:10px 0 0}

/* Product summary */
.v8-product-summary{
  border:1px solid #e2eaf0;border-radius:21px;
  padding:clamp(24px,2.7vw,36px);
  background:#fff;box-shadow:0 18px 48px rgba(18,53,79,.045);
}
.v8-kicker{
  display:block;color:#087fac;font-size:11px;font-weight:800;
  line-height:1.5;letter-spacing:.08em;text-transform:uppercase;
}
.v8-product-summary h1{
  margin:10px 0 15px;color:#142f46;
  font-size:clamp(27px,2.65vw,39px);line-height:1.16;
  font-weight:775;letter-spacing:-.045em;overflow-wrap:anywhere;
}
.v8-product-category{font-size:13px;font-weight:600;line-height:1.5;color:#617788}
.v8-availability{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin:18px 0 22px;
}
.v8-availability>span{font-size:12px;color:#69818f}
.v8-price-panel{
  display:flex;flex-direction:column;align-items:flex-start;gap:7px;
  border:1px solid #d6e8f0;border-radius:15px;
  background:linear-gradient(135deg,#f5fbff,#f4f9fb);
  padding:19px 21px;
}
.v8-price-heading{
  color:#657d8e;font-size:11px;font-weight:780;
  letter-spacing:.09em;text-transform:uppercase;
}
.v8-price-panel strong{font-size:clamp(20px,2.1vw,28px);line-height:1.3;color:#142f46;overflow-wrap:anywhere}
.v8-price-panel small{font-size:12px;color:#168068;line-height:1.5}
.v8-sign-in,.v8-spec-link{
  font-size:13px;font-weight:760;color:#076e9d;
  text-decoration:underline;text-underline-offset:3px;
}
.v8-price-panel .v8-sign-in{display:inline-flex;align-items:center;min-height:30px}
.v8-purchase-actions{margin:19px 0 0}
.v8-purchase-actions>a.button{
  display:inline-flex;min-height:46px;min-width:165px;
  align-items:center;justify-content:center;
  background:#0b334d;color:#fff;border-color:#0b334d;
  border-radius:11px;font-size:13px;font-weight:750;
  box-shadow:0 6px 14px rgba(17,52,75,.12);
}
.v8-purchase-actions>a.button:hover{background:#175574;border-color:#175574}
.v8-add-cart{display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin:0 0 12px}
.v8-add-cart label{color:#4f6776;font-weight:650;font-size:12px}
.v8-add-cart input{
  width:76px;height:44px;min-height:44px;
  border:1px solid #cddfe9;border-radius:10px;
  padding:9px 10px;font-size:16px;color:#163549;
}
.v8-add-cart button{min-height:44px;gap:8px}
.v8-inventory-message{margin:10px 0;font-size:12px;line-height:1.6;color:#9a6b18}
.v8-payment-info{margin-top:20px;padding-top:19px;border-top:1px solid #e4ebef}
.v8-payment-info>strong{display:block;font-size:13px;color:#27475d;margin-bottom:5px}
.v8-payment-info p{margin:4px 0;font-size:12px;color:#718492;line-height:1.6}
.v8-payment-info small{display:block;margin-top:9px;color:#7e929e;font-size:11px;line-height:1.55}
.v20-bank-note{
  display:block;margin:12px 0!important;padding:11px 13px;
  border:1px solid #cce9e2;border-radius:10px;
  background:#f1faf7;color:#176554!important;
  font-weight:660;font-size:12px!important;
}

/* Below-the-fold product content */
.v8-detail-columns{
  display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);
  gap:20px;margin-top:30px;
}
.v8-info-card{
  min-width:0;background:#fff;
  border:1px solid #dfe8ee;border-radius:19px;
  padding:clamp(24px,2.6vw,33px);
  box-shadow:0 7px 25px rgba(17,49,72,.027);
}
.v8-info-card h2{
  margin:0 0 18px;color:#19364c;
  font-size:clamp(20px,2vw,25px);line-height:1.24;
  letter-spacing:-.025em;font-weight:740;
}
.v8-info-card p{margin:0 0 11px;color:#506778;line-height:1.75;font-size:14px;overflow-wrap:anywhere}
.v8-info-card p:last-child{margin-bottom:0}
.v20-description-block{font-size:14px!important;line-height:1.8!important;white-space:normal;margin:0 0 15px!important}
.v20-description-block:last-child{margin-bottom:0!important}
.v8-spec-table{display:grid;margin:0}
.v8-spec-table>div{
  display:grid;grid-template-columns:minmax(125px,39%) minmax(0,1fr);
  gap:13px;padding:12px 0;
  border-bottom:1px solid #eaf0f3;font-size:13px;line-height:1.55;
}
.v8-spec-table>div:last-child{border-bottom:0}
.v8-spec-table dt{color:#78909c}
.v8-spec-table dd{margin:0;color:#233f51;font-weight:690;overflow-wrap:anywhere}
.v8-export-note{padding-top:12px;color:#80939d!important;font-size:12px!important}
.v20-spec-empty{border-left:3px solid #b1d6e6;padding:9px 0 9px 16px;color:#647d8e}
.v8-documents{
  margin-top:20px;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,255px);
  align-items:start;gap:25px;
}
.v8-documents>div:first-child{min-width:0}
.v8-document-status{
  border-radius:14px;padding:15px;
  background:#f5f8fb;border:1px solid #e3ecf1;
  color:#647e8f;font-size:12px;line-height:1.62;
}
.v8-not-found{padding:90px 0;min-height:420px}
.v8-not-found p{margin-bottom:25px}
.v8-request-disclaimer{font-size:12px;color:#718899;margin-top:15px}

/* Quote form reuses the existing request handler and layout system. */
#v8-quote-request{background:#f3f8fb;border-top:1px solid #e2ebf1}
#v8-quote-request.section{padding-top:66px;padding-bottom:80px}
#v8-quote-request .container.narrow{width:min(940px,calc(100% - 48px));max-width:940px}
#v8-quote-request .overline{margin-bottom:9px}
#v8-quote-request h2{font-size:clamp(25px,2.8vw,38px);color:#173449;margin-bottom:10px}
#v8-quote-request .modern-form{margin-top:28px}
#v8-quote-request .modern-form input,
#v8-quote-request .modern-form textarea,
#v8-quote-request .modern-form select{min-height:44px;border-radius:10px}

/* Responsive: preserve side-by-side layout on laptop/desktop, never clip on mobile. */
@media(max-width:1050px){
  .container.v8-product-detail{width:min(100% - 40px,1280px)}
  .v8-product-layout{gap:24px;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr)}
  .v8-product-summary{padding:22px}
  .v8-photo-stage{height:clamp(350px,44vw,470px)}
}
@media(max-width:780px){
  .v8-product-layout,.v8-detail-columns{grid-template-columns:1fr}
  .v8-photo-panel{position:static}
  .v8-photo-stage{height:clamp(310px,70vw,480px)}
  .v8-product-summary{padding:27px}
  .v8-documents{grid-template-columns:1fr}
  .v8-document-status{max-width:none}
  .v19-section-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:7px}
  .v19-section-nav a{flex:0 0 auto;white-space:nowrap}
}
@media(max-width:520px){
  .container.v8-product-detail{width:calc(100% - 28px);padding-top:16px;padding-bottom:46px}
  .v8-breadcrumbs{font-size:11px;margin-bottom:15px}
  .v19-section-nav{margin-bottom:18px}
  .v19-section-nav a{min-height:32px;padding:6px 12px}
  .v8-product-layout{gap:15px}
  .v8-photo-stage{height:auto;aspect-ratio:1.05;border-radius:15px}
  .v8-photo-stage img{padding:8px}
  .v9-gallery{gap:8px;padding-top:9px}
  .v9-gallery-thumb{flex-basis:61px;width:61px;height:61px;border-radius:9px}
  .v8-product-summary{padding:19px;border-radius:15px}
  .v8-product-summary h1{font-size:clamp(24px,7vw,31px)}
  .v8-availability{margin:15px 0}
  .v8-price-panel{padding:15px}
  .v8-purchase-actions>a.button{width:100%}
  .v8-add-cart{display:grid;grid-template-columns:auto 74px minmax(0,1fr)}
  .v8-add-cart button{min-width:0;padding-inline:9px;white-space:normal}
  .v8-detail-columns{gap:13px;margin-top:20px}
  .v8-info-card{padding:20px;border-radius:15px}
  .v8-info-card h2{font-size:20px}
  .v8-spec-table>div{grid-template-columns:minmax(0,36%) minmax(0,1fr);gap:9px}
  #v8-quote-request.section{padding-block:44px 54px}
  #v8-quote-request .container.narrow{width:calc(100% - 28px)}
}
@media(prefers-reduced-motion:reduce){
  .v19-section-nav a,.v9-gallery-thumb{transition:none}
}

/* INOVIA_V175_MAIN_GALLERY_START: progressive gallery upgrades, scoped to existing numeric-ID product pages. */
.v8-photo-stage:has(.inovia-v175-zoom-trigger) { position: relative; }
.v8-photo-stage .inovia-v175-openable { cursor: zoom-in; }
.inovia-v175-zoom-trigger {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 14px;
  background: rgba(13,27,48,.76); color: #fff; font-size: 27px;
  cursor: zoom-in; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 26px rgba(0,0,0,.14);
}
.inovia-v175-zoom-trigger:hover { background: rgba(13,27,48,.94); }
.inovia-v175-zoom-trigger:focus-visible,
.inovia-v175-modal button:focus-visible { outline: 3px solid #56bff5; outline-offset: 3px; }
.v9-gallery-thumb { scroll-snap-align: center; }
.inovia-v175-modal {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; grid-template-columns: minmax(50px,88px) minmax(0,1fr) minmax(50px,88px);
  align-items: center; background: rgba(5,12,24,.96); color: #fff;
  padding: max(16px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  box-sizing: border-box;
}
.inovia-v175-modal[hidden] { display: none !important; }
.inovia-v175-figure { grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; display: grid; place-items: center; height: min(88dvh,960px); }
.inovia-v175-full-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 84dvh; object-fit: contain; user-select: none; -webkit-user-drag: none; border-radius: 4px; }
.inovia-v175-modal button {
  cursor: pointer; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1);
  color: #fff; border-radius: 999px; display: grid; place-items: center;
  font: 400 36px/1 system-ui, sans-serif; width: 49px; height: 49px;
}
.inovia-v175-modal button:hover { background: rgba(255,255,255,.22); }
.inovia-v175-modal button[hidden] { display: none !important; }
.inovia-v175-close { position: absolute; top: max(18px,env(safe-area-inset-top)); right: max(18px,env(safe-area-inset-right)); z-index: 2; }
.inovia-v175-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.inovia-v175-next { grid-column: 3; grid-row: 1; justify-self: center; }
.inovia-v175-counter { position: absolute; bottom: max(20px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font: 500 13px/1.3 system-ui,sans-serif; letter-spacing: .08em; background: rgba(0,0,0,.3); padding: 7px 14px; border-radius: 20px; }
@media (max-width: 650px) {
  .inovia-v175-modal { grid-template-columns: 48px minmax(0,1fr) 48px; padding: 8px; }
  .inovia-v175-figure { height: 83dvh; }
  .inovia-v175-modal button { width: 42px; height: 42px; font-size: 30px; }
  .inovia-v175-full-image { max-height: 78dvh; }
  .inovia-v175-close { top: 16px; right: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .inovia-v175-modal button { transition: background-color .15s ease, transform .15s ease; }
  .inovia-v175-modal button:hover { transform: scale(1.035); }
}
/* INOVIA_V175_MAIN_GALLERY_END */

/* INOVIA_V178_MOBILE_GALLERY_START: mobile review refinement; keeps product sources untouched. */
@media (max-width: 650px) {
  /* Keep all tabs reachable without exposing the distracting horizontal scrollbar. */
  .v19-section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }
  .v19-section-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .v19-section-nav > a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 9px;
    font-size: clamp(11px, 2.9vw, 12px);
    scroll-snap-align: start;
  }
  /* On phones, use nearly the full width for the photo. Controls belong below it. */
  .inovia-v175-modal {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    padding: max(62px, env(safe-area-inset-top))
             max(10px, env(safe-area-inset-right))
             max(84px, calc(env(safe-area-inset-bottom) + 68px))
             max(10px, env(safe-area-inset-left));
  }
  .inovia-v175-figure {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .inovia-v175-full-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(74dvh, calc(100dvh - 160px));
    object-fit: contain;
  }
  .inovia-v175-prev, .inovia-v175-next {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
  .inovia-v175-prev { left: max(14px, env(safe-area-inset-left)); }
  .inovia-v175-next { right: max(14px, env(safe-area-inset-right)); }
  .inovia-v175-counter {
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 8px));
    white-space: nowrap;
  }
}
@media (max-width: 650px) and (max-height: 520px) {
  .inovia-v175-modal {
    padding-top: max(52px, env(safe-area-inset-top));
    padding-bottom: max(62px, calc(env(safe-area-inset-bottom) + 50px));
  }
  .inovia-v175-full-image { max-height: min(63dvh, calc(100dvh - 114px)); }
}
/* INOVIA_V178_MOBILE_GALLERY_END */
