/* Products page — genchemph reference (products.html + css/style.css) */

html:has(.genchem-products-page),
body:has(.genchem-products-page),
body.genchem-products-active,
body.genchemph-canvas.genchem-products-active {
  overflow-x: visible !important;
}

.genchemph .genchem-public-shell:has(.genchem-products-page),
.genchemph #wrapper.genchem-public-shell:has(.genchem-products-page),
.genchemph .genchem-public-shell:has(.genchem-products-page) main#content,
.genchemph .genchem-public-shell .public-page-content.genchem-products-page,
.genchemph .genchem-public-shell .cms-content.genchem-products-page,
.genchemph-canvas-root,
.genchemph-canvas {
  overflow: visible !important;
  overflow-x: visible !important;
}

/* Beat custom.css max-width:100% on all CMS images */
.genchem-products-page .bg-dark-red .border-2-white img,
.genchemph-canvas .bg-dark-red .border-2-white img {
  max-width: 340px !important;
  width: auto !important;
  height: auto !important;
}

.genchem-products-page,
.genchem-products-page .bg-dark-red,
.genchem-products-page .bg-dark-red .container,
.genchem-products-page .bg-dark-red .tab-content,
.genchem-products-page .bg-dark-red .tab-pane,
.genchem-products-page .bg-dark-red .tab-content .row,
.genchem-products-page #products-tabbings,
.genchemph-canvas .bg-dark-red,
.genchemph-canvas .bg-dark-red .container,
.genchemph-canvas .bg-dark-red .tab-content,
.genchemph-canvas .bg-dark-red .tab-pane,
.genchemph-canvas .bg-dark-red .tab-content .row,
.genchemph-canvas #products-tabbings {
  overflow: visible !important;
}

/* Same width as genchemph bootstrap .container — room for bag overlap */
.genchem-products-page #products-tabbings,
.genchem-products-page #products-tabbings.container,
.genchem-products-page .bg-dark-red > .container,
.genchemph-canvas #products-tabbings,
.genchemph-canvas #products-tabbings.container,
.genchemph-canvas .bg-dark-red > .container {
  width: 100% !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 992px) {
  .genchem-products-page #products-tabbings,
  .genchem-products-page #products-tabbings.container,
  .genchem-products-page .bg-dark-red > .container,
  .genchemph-canvas #products-tabbings,
  .genchemph-canvas #products-tabbings.container,
  .genchemph-canvas .bg-dark-red > .container {
    padding-left: 110px !important;
    padding-right: 110px !important;
  }
}

.genchem-products-page .bg-dark-red {
  width: 100%;
}

.genchem-products-page .bg-dark-red .tab-content {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.genchem-products-page .bg-dark-red .tab-content .row {
  --bs-gutter-x: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.genchem-products-page .bg-dark-red .width-img-control,
.genchem-products-page .bg-dark-red .border-2-white.position-relative,
.genchemph-canvas .bg-dark-red .width-img-control,
.genchemph-canvas .bg-dark-red .border-2-white.position-relative {
  position: relative;
  width: 100%;
  margin-bottom: 2.5rem !important;
  box-sizing: border-box;
}
.genchem-products-page .bg-dark-red .tab-content .row > .border-2-white:last-child,
.genchem-products-page .bg-dark-red .width-img-control:last-child {
  margin-bottom: 0 !important;
}

.genchemph .genchem-products-page .bg-dark-red .border-2-white,
.genchemph .genchem-products-page .bg-dark-red .rounded-lg.border-2-white,
.genchemph-canvas .bg-dark-red .border-2-white,
.genchemph-canvas .bg-dark-red .rounded-lg.border-2-white {
  border: 3px solid #ffffff !important;
  border-radius: 30px !important;
  overflow: visible !important;
  background: transparent !important;
  padding: 2.5rem 1.75rem !important;
  min-height: 0 !important;
}

/* Product bag — outside the box edge (reference inline styles) */
@media (min-width: 992px) {
.genchem-products-page .bg-dark-red .border-2-white > a,
.genchemph-canvas .bg-dark-red .border-2-white > a {
  position: absolute;
  top: auto;
  bottom: 0;
  z-index: 5;
  display: block;
  line-height: 0;
  text-decoration: none;
  pointer-events: auto;
}

.genchem-products-page .bg-dark-red .border-2-white img,
.genchemph-canvas .bg-dark-red .border-2-white img {
  position: absolute !important;
  bottom: -3px !important;
  max-width: 340px !important;
  width: auto !important;
  height: auto !important;
  z-index: 6 !important;
  background: transparent !important;
  display: block !important;
  pointer-events: auto !important;
  cursor: pointer;
  will-change: transform;
  transform-origin: center bottom;
  transition: transform 0.4s ease;
}

.genchem-products-page .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(odd) > a,
.genchem-products-page .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(odd) img,
.genchemph-canvas .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(odd) > a,
.genchemph-canvas .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(odd) img {
  left: -95px !important;
  right: auto !important;
}

.genchem-products-page .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(even) > a,
.genchem-products-page .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(even) img,
.genchemph-canvas .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(even) > a,
.genchemph-canvas .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(even) img {
  left: auto !important;
  right: -100px !important;
}

/* Inner body — flex row fills full card width */
.genchem-products-page .bg-dark-red .border-2-white .d-flex.flex-row,
.genchemph-canvas .bg-dark-red .border-2-white .d-flex.flex-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.genchem-products-page .bg-dark-red .border-2-white .d-flex.flex-row *,
.genchemph-canvas .bg-dark-red .border-2-white .d-flex.flex-row * {
  pointer-events: auto;
}

.genchem-products-page .bg-dark-red .border-2-white .col-md-2,
.genchemph-canvas .bg-dark-red .border-2-white .col-md-2 {
  flex: 0 0 22% !important;
  max-width: 22% !important;
  width: 22% !important;
}

.genchem-products-page .bg-dark-red .border-2-white .col-md-10,
.genchemph-canvas .bg-dark-red .border-2-white .col-md-10 {
  flex: 1 1 0 !important;
  max-width: none !important;
  width: auto !important;
  min-width: 0;
}
}

.genchem-products-page .bg-dark-red .border-2-white .col-md-10 p,
.genchem-products-page .bg-dark-red .border-2-white .col-md-10 ul,
.genchem-products-page .bg-dark-red .border-2-white .col-md-10 h4 {
  width: 100%;
  max-width: 100%;
}

/* Beat main.css global `ul, li { list-style-type: none }` */
.genchem-products-page .bg-dark-red .border-2-white ul.text-white,
.genchemph-canvas .bg-dark-red .border-2-white ul.text-white {
  list-style: disc outside !important;
  list-style-type: disc !important;
  padding-left: 1.5rem !important;
  margin: 0.5rem 0 0 !important;
}

.genchem-products-page .bg-dark-red .border-2-white ul.text-white li,
.genchemph-canvas .bg-dark-red .border-2-white ul.text-white li {
  display: list-item !important;
  list-style: disc outside !important;
  list-style-type: disc !important;
  margin-bottom: 0.2rem;
  padding-left: 0.15rem;
}

.genchem-products-page .bg-dark-red .border-2-white ul.text-white li::marker,
.genchemph-canvas .bg-dark-red .border-2-white ul.text-white li::marker {
  color: #ffffff;
}

.genchem-products-page .bg-dark-red .border-2-white .text-white,
.genchem-products-page .bg-dark-red .border-2-white h4,
.genchem-products-page .bg-dark-red .border-2-white p,
.genchem-products-page .bg-dark-red .border-2-white li,
.genchemph-canvas .bg-dark-red .border-2-white .text-white,
.genchemph-canvas .bg-dark-red .border-2-white h4,
.genchemph-canvas .bg-dark-red .border-2-white p,
.genchemph-canvas .bg-dark-red .border-2-white li {
  color: #ffffff !important;
}
.genchem-products-page .bg-dark-red .border-2-white h4.display-6 {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.-hover-scale:not(.active):hover,
.genchem-products-page .bg-dark-red .border-2-white > a:hover img,
.genchem-products-page .bg-dark-red .border-2-white img.-hover-scale:hover,
.genchem-products-page .bg-dark-red .border-2-white img:hover,
.genchemph-canvas .bg-dark-red .border-2-white > a:hover img,
.genchemph-canvas .bg-dark-red .border-2-white img.-hover-scale:hover,
.genchemph-canvas .bg-dark-red .border-2-white img:hover {
  transform: scale(0.9) !important;
  transition: transform 0.4s ease;
}

@media (max-width: 991px) {
  html:has(.genchem-products-page),
  body:has(.genchem-products-page),
  body.genchem-products-active,
  body.genchemph-canvas.genchem-products-active {
    overflow-x: hidden !important;
  }

  .genchem-products-page .about-us-low,
  .genchem-products-page .bg-dark-red,
  .genchem-products-page .bg-dark-red > .container,
  .genchem-products-page .bg-dark-red .tab-content,
  .genchem-products-page .bg-dark-red .tab-pane,
  .genchem-products-page .bg-dark-red .tab-content .row,
  .genchemph-canvas .about-us-low,
  .genchemph-canvas .bg-dark-red,
  .genchemph-canvas .bg-dark-red > .container,
  .genchemph-canvas .bg-dark-red .tab-content,
  .genchemph-canvas .bg-dark-red .tab-pane,
  .genchemph-canvas .bg-dark-red .tab-content .row {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .genchem-products-page #products-tabbings,
  .genchem-products-page .bg-dark-red > .container,
  .genchemph-canvas #products-tabbings,
  .genchemph-canvas .bg-dark-red > .container {
    max-width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .genchem-products-page .display-4,
  .genchemph-canvas .display-4 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .genchem-products-page #demo-drone-tab,
  .genchemph-canvas #demo-drone-tab {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    align-items: stretch !important;
    width: 100% !important;
    border: 0 !important;
    margin-bottom: 0.5rem !important;
  }

  .genchem-products-page #demo-drone-tab .nav-item,
  .genchemph-canvas #demo-drone-tab .nav-item {
    flex: 1 1 calc(50% - 0.25rem) !important;
    min-width: 0 !important;
    max-width: calc(50% - 0.25rem) !important;
    width: auto !important;
    margin: 0 !important;
  }

  .genchem-products-page #demo-drone-tab .nav-link,
  .genchemph .genchem-products-page #demo-drone-tab .nav-link,
  .genchemph-canvas #demo-drone-tab .nav-link {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    border: 0 !important;
    background: transparent !important;
  }

  .genchemph .genchem-products-page #demo-drone-tab .nav-link h3,
  .genchemph .genchem-products-page #demo-drone-tab .nav-link h4,
  .genchemph .genchem-products-page #demo-drone-tab .nav-link .text-uppercase,
  .genchem-products-page #demo-drone-tab .nav-link h3,
  .genchem-products-page #demo-drone-tab .nav-link h4,
  .genchem-products-page #demo-drone-tab .nav-link .text-uppercase,
  .genchemph-canvas #demo-drone-tab .nav-link h3,
  .genchemph-canvas #demo-drone-tab .nav-link h4,
  .genchemph-canvas #demo-drone-tab .nav-link .text-uppercase {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(0.62rem, 2.8vw, 0.82rem) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    hyphens: auto;
    padding: 0.55rem 0.45rem !important;
    margin: 0 !important;
    border-width: 2px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .genchem-products-page .bg-dark-red .width-img-control,
  .genchem-products-page .bg-dark-red .border-2-white.position-relative,
  .genchemph-canvas .bg-dark-red .width-img-control,
  .genchemph-canvas .bg-dark-red .border-2-white.position-relative {
    margin-bottom: 1rem !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white,
  .genchem-products-page .bg-dark-red .rounded-lg.border-2-white,
  .genchemph-canvas .bg-dark-red .border-2-white,
  .genchemph-canvas .bg-dark-red .rounded-lg.border-2-white {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0.75rem 0.85rem 0.85rem !important;
  }

  .genchem-products-page .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(odd) > a,
  .genchem-products-page .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(odd) img,
  .genchem-products-page .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(even) > a,
  .genchem-products-page .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(even) img,
  .genchemph-canvas .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(odd) > a,
  .genchemph-canvas .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(odd) img,
  .genchemph-canvas .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(even) > a,
  .genchemph-canvas .bg-dark-red .tab-pane > .row > .border-2-white:nth-child(even) img {
    left: auto !important;
    right: auto !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white > a,
  .genchemph-canvas .bg-dark-red .border-2-white > a {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto 0.5rem !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white img,
  .genchemph-canvas .bg-dark-red .border-2-white img {
    position: relative !important;
    display: block !important;
    max-width: min(200px, 62vw) !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 0.5rem !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white .d-flex.flex-row,
  .genchemph-canvas .bg-dark-red .border-2-white .d-flex.flex-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.35rem !important;
    text-align: left !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white .col-md-10,
  .genchemph-canvas .bg-dark-red .border-2-white .col-md-10 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white .col-md-10 p,
  .genchem-products-page .bg-dark-red .border-2-white .col-md-10 ul,
  .genchem-products-page .bg-dark-red .border-2-white .col-md-10 li,
  .genchem-products-page .bg-dark-red .border-2-white p,
  .genchemph-canvas .bg-dark-red .border-2-white .col-md-10 p,
  .genchemph-canvas .bg-dark-red .border-2-white .col-md-10 ul,
  .genchemph-canvas .bg-dark-red .border-2-white .col-md-10 li,
  .genchemph-canvas .bg-dark-red .border-2-white p {
    text-align: left !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white .col-md-10 > p:not(:first-of-type),
  .genchemph-canvas .bg-dark-red .border-2-white .col-md-10 > p:not(:first-of-type) {
    text-align: left !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white .col-md-10 h4,
  .genchem-products-page .bg-dark-red .border-2-white h4.display-6,
  .genchemph-canvas .bg-dark-red .border-2-white .col-md-10 h4,
  .genchemph-canvas .bg-dark-red .border-2-white h4.display-6 {
    text-align: center !important;
    margin-bottom: 0.15rem !important;
    font-size: clamp(1rem, 4.5vw, 1.35rem) !important;
  }

  /* Product title + weight/subtitle centered */
  .genchem-products-page .bg-dark-red .border-2-white .col-md-10 > p:first-of-type,
  .genchemph-canvas .bg-dark-red .border-2-white .col-md-10 > p:first-of-type {
    text-align: center !important;
    margin-bottom: 0.35rem !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white .col-md-2,
  .genchemph-canvas .bg-dark-red .border-2-white .col-md-2 {
    display: none !important;
    flex: 0 0 0 !important;
    max-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white .ps-3,
  .genchem-products-page .bg-dark-red .border-2-white .ps-5,
  .genchemph-canvas .bg-dark-red .border-2-white .ps-3,
  .genchemph-canvas .bg-dark-red .border-2-white .ps-5 {
    padding-left: 0 !important;
  }

  .genchem-products-page .bg-dark-red .tab-content,
  .genchemph-canvas .bg-dark-red .tab-content {
    padding-top: 0.75rem !important;
    padding-bottom: 1rem !important;
  }
}

@media (max-width: 575px) {
  .genchem-products-page #products-tabbings,
  .genchem-products-page .bg-dark-red > .container,
  .genchemph-canvas #products-tabbings,
  .genchemph-canvas .bg-dark-red > .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .genchem-products-page #demo-drone-tab,
  .genchemph-canvas #demo-drone-tab {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }

  .genchem-products-page #demo-drone-tab .nav-item,
  .genchemph-canvas #demo-drone-tab .nav-item {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .genchemph .genchem-products-page #demo-drone-tab .nav-link h3,
  .genchemph .genchem-products-page #demo-drone-tab .nav-link h4,
  .genchemph .genchem-products-page #demo-drone-tab .nav-link .text-uppercase,
  .genchem-products-page #demo-drone-tab .nav-link h3,
  .genchem-products-page #demo-drone-tab .nav-link h4,
  .genchem-products-page #demo-drone-tab .nav-link .text-uppercase,
  .genchemph-canvas #demo-drone-tab .nav-link h3,
  .genchemph-canvas #demo-drone-tab .nav-link h4,
  .genchemph-canvas #demo-drone-tab .nav-link .text-uppercase {
    font-size: 0.9rem !important;
    padding: 0.7rem 1rem !important;
    line-height: 1.25 !important;
  }

  .genchem-products-page .bg-dark-red .border-2-white img,
  .genchemph-canvas .bg-dark-red .border-2-white img {
    max-width: min(180px, 58vw) !important;
  }
}
