/* Product detail extra sections: Customization / Applications / Related blogs / Related products */

.onpow-extra {
  margin: 0;
  color: #333;
  font-family: 'GothamRounded Book', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.onpow-extra h2,
.onpow-extra p,
.onpow-extra a {
  font-family: inherit;
}

.n_pro_det .bot .bot_con .des .pw-post-content p,.onpow-extra p:nth-of-type(1){
  font-family: Arial, Helvetica, sans-serif;
}

.onpow-extra__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #c82126;
  color: #c82126;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 110px;
}

.onpow-extra__title .fa {
  color: #c82126;
  font-size: 16px;
}

.onpow-extra p {
  margin: 0 0 8px;
}

.onpow-extra a {
  color: #8f171b;
  text-decoration: none;
}

.onpow-extra a:hover,
.onpow-extra a:focus-visible {
  text-decoration: underline;
}


/* ---------------------------------------------------------------- carousel */

.onpow-carousel {
  --onpow-per-view: 4;
  --onpow-gap: 14px;
  position: relative;
  margin: 8px 0 18px;
}

.onpow-carousel--series {
  --onpow-per-view: 4;
  --onpow-gap: 20px;
}

.onpow-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.onpow-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.onpow-carousel__track {
  display: flex;
  gap: var(--onpow-gap);
  align-items: stretch;
}

.onpow-carousel__track > * {
  flex: 0 0 calc((100% - (var(--onpow-per-view) - 1) * var(--onpow-gap)) / var(--onpow-per-view));
  min-width: 0;
  scroll-snap-align: start;
}

/* Prev/next buttons stay hidden until the JS layer detects overflow. */
.onpow-carousel__nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #e0e2e8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #c82126;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.onpow-carousel.is-scrollable .onpow-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.onpow-carousel__nav--prev {
  left: -18px;
}

.onpow-carousel__nav--next {
  right: -18px;
}

.onpow-carousel__nav:hover {
  background: #c82126;
  color: #fff;
}

.onpow-carousel__nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.onpow-carousel__nav[disabled]:hover {
  background: #fff;
  color: #c82126;
}

/* -------------------------------------------------------------------- card */

.onpow-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #fff;
}

.onpow-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  padding: 12px;
  background: #fff;
}

.onpow-card__media img {
  width: 100%;
  height: 144px;
  object-fit: contain;
}

/* The rect-5625 helper supplies the 16:9 box, so drop the fixed image frame. */
.onpow-carousel--blogs .onpow-card__media {
  display: block;
  height: auto;
  padding: 0;
}

.onpow-carousel--blogs .onpow-card__media .pic {
  background: #f5f6f8;
}

.onpow-carousel--blogs .onpow-card__media img {
  height: 100%;
  object-fit: cover;
}

/*
 * Single line by default; only the blog row is allowed to wrap to two.
 *
 * gather.css sets "font-size:16px; line-height:30px" on every <p> inside
 * ".n_pro_det .bot .bot_con .des" at a higher specificity than any practical
 * selector here. These two properties drive the fixed two-line height below,
 * so they are forced rather than left to lose the cascade.
 */
.onpow-card__title {
  margin: 0;
  padding: 10px 12px 14px;
  overflow: hidden;
  color: #222;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onpow-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Blog titles wrap to two lines: spacing here, the fixed two-line box below. */
.onpow-carousel--blogs .onpow-card__title {
  padding: 16px 18px 20px;
  white-space: normal;
}

/*
 * A fixed two-line box (3em at line-height 1.5) that clips the rest, which
 * every browser handles identically. Two things must stay as they are: the
 * spacing belongs on the <p> because overflow clips at the padding edge, so
 * padding here would let the clipped third line paint inside it; and
 * -webkit-line-clamp is not used because Chrome ignores it once the element has
 * padding, and when it does apply it still paints the clamped-away line.
 */
.onpow-carousel--blogs .onpow-card__title a {
  height: 3em;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.onpow-card:hover .onpow-card__title,
.onpow-card:hover .onpow-card__title a,
.onpow-card:focus-within .onpow-card__title,
.onpow-card:focus-within .onpow-card__title a {
  color: #c82126;
  text-decoration: none;
}

/* ---------------------------------------------------- related product item */

.onpow-series__item {
  display: block;
  color: #333;
  text-decoration: none;
}

.onpow-series__item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.onpow-series__item p {
  display: block;
  margin: 0.25rem 0 0;
  overflow: hidden;
  color: #333;
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.5 !important;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onpow-series__item:hover,
.onpow-series__item:hover p,
.onpow-series__item:focus-visible,
.onpow-series__item:focus-visible p {
  color: #c82126;
  text-decoration: none;
}

/* ------------------------------------------------------- section anchor tabs */

.bot_tit.onpow-anchor-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.bot_tit.onpow-anchor-tabs a {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 8px 6px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .onpow-carousel,
  .onpow-carousel--series {
    --onpow-per-view: 3;
  }
}

@media (max-width: 780px) {
  .onpow-carousel,
  .onpow-carousel--series {
    --onpow-per-view: 2;
    --onpow-gap: 10px;
  }

  .onpow-card__media {
    height: 132px;
  }

  .onpow-card__media img {
    height: 108px;
  }

  /* Two-up cards are much narrower, so give the text back some line width. */
  .onpow-carousel--blogs .onpow-card__title {
    padding: 12px 12px 14px;
  }

  .onpow-carousel__nav--prev {
    left: 2px;
  }

  .onpow-carousel__nav--next {
    right: 2px;
  }

  .bot_tit.onpow-anchor-tabs {
    overflow-x: auto;
  }

  .bot_tit.onpow-anchor-tabs a {
    flex: 0 0 auto;
    padding: 8px 10px;
  }
}
