﻿/* Shared WooCommerce product detail refinements. */
@media (min-width: 901px) {
  .ytl-dem2a-detail .ytl-series-hero > .container.hero-grid {
    position: relative;
    left: 50vw !important;
    right: auto !important;
    box-sizing: border-box;
    width: min(1180px, calc(100vw - 48px)) !important;
    max-width: 1180px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    transform: translateX(-50%) !important;
  }
}

.ytl-dem2a-detail .ytl-product-gallery {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

.ytl-dem2a-detail .ytl-gallery-main {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

.ytl-dem2a-detail .ytl-gallery-main img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
}

.ytl-dem2a-detail .ytl-gallery-thumbs {
  display: flex;
  gap: 9px;
  justify-content: center;
  padding: 4px 2px 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ytl-dem2a-detail .ytl-gallery-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 4px;
  border: 1px solid #d5e1ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ytl-dem2a-detail .ytl-gallery-thumb:hover,
.ytl-dem2a-detail .ytl-gallery-thumb.active {
  border-color: #2faa28;
  box-shadow: 0 0 0 2px rgba(47, 170, 40, .14);
}

.ytl-dem2a-detail .ytl-gallery-thumb img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain;
}

.ytl-dem2a-detail .quick-specs-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.ytl-dem2a-detail .quick-specs-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ytl-dem2a-detail .quick-specs-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ytl-dem2a-detail .media-grid.media-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.ytl-dem2a-detail .ytl-product-certifications {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  bottom: 92px;
  display: flex;
  width: 72px;
  max-height: calc(100% - 114px);
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 172, 69, .42) transparent;
}

.ytl-dem2a-detail .ytl-product-certifications::-webkit-scrollbar {
  width: 4px;
}

.ytl-dem2a-detail .ytl-product-certifications::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(47, 172, 69, .42);
}

.ytl-dem2a-detail .ytl-product-certifications + .ytl-gallery-main {
  padding-right: 86px;
  padding-left: 86px;
}

.ytl-dem2a-detail .ytl-product-certification {
  display: inline-flex;
  flex: 0 0 auto;
  width: 68px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid #dce9e0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}

.ytl-dem2a-detail .ytl-product-certification img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 30px;
  object-fit: contain;
}

.ytl-dem2a-detail .ytl-product-certification-text {
  color: #101828;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .03em;
}

.ytl-dem2a-detail #features .feature {
  position: relative;
  min-width: 0;
  padding: 60px 24px 24px;
  overflow: hidden;
}

.ytl-dem2a-detail #features .feature .icon {
  position: absolute;
  top: 17px;
  right: 18px;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: #dfebf4;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

.ytl-dem2a-detail #specs .spec-tabs {
  display: grid;
  gap: 10px;
  width: 100%;
}

.ytl-dem2a-detail #specs .spec-count-1 .spec-tabs {
  grid-template-columns: minmax(0, 1fr);
}

.ytl-dem2a-detail #specs .spec-count-2 .spec-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ytl-dem2a-detail #specs .spec-count-3 .spec-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ytl-dem2a-detail #specs .spec-count-4 .spec-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ytl-dem2a-detail #specs .spec-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  text-align: center;
}

/* Let each active specification table expand naturally with the page. */
.ytl-dem2a-detail #specs .spec-tab-panel .table-wrap {
  max-height: none !important;
  overflow-y: visible !important;
}

.ytl-dem2a-detail .ytl-related-products-section {
  padding: 72px 0 84px;
  background: #fff;
}

.ytl-dem2a-detail .ytl-related-products-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.ytl-dem2a-detail .ytl-related-products-heading > span {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: #21a9df;
}

.ytl-dem2a-detail .ytl-related-products-heading h2 {
  margin: 0;
  color: #0b365f;
  font-size: 38px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
}

.ytl-dem2a-detail .ytl-related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.ytl-dem2a-detail .ytl-related-product-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d7e4ed;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.ytl-dem2a-detail .ytl-related-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 20px;
  background: #fff;
  overflow: hidden;
}

.ytl-dem2a-detail .ytl-related-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.ytl-dem2a-detail .ytl-related-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.ytl-dem2a-detail .ytl-related-product-category {
  margin-bottom: 8px;
  color: #25a83d;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ytl-dem2a-detail .ytl-related-product-card h3 {
  margin: 0;
  color: #0b365f;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.ytl-dem2a-detail .ytl-related-product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: #25a83d;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}

.ytl-dem2a-detail .ytl-related-product-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.ytl-dem2a-detail .ytl-related-product-card:hover .ytl-related-product-link svg,
.ytl-dem2a-detail .ytl-related-product-card:focus-visible .ytl-related-product-link svg {
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .ytl-dem2a-detail .ytl-related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ytl-dem2a-detail .ytl-gallery-main img {
    max-height: 330px;
  }

  .ytl-dem2a-detail .ytl-gallery-thumb {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .ytl-dem2a-detail .ytl-product-certifications {
    top: 14px;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    max-width: none;
    max-height: none;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 0 4px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .ytl-dem2a-detail .ytl-product-certifications + .ytl-gallery-main {
    padding: 58px 0 0;
  }

  .ytl-dem2a-detail .ytl-product-certification {
    width: 58px;
    height: 38px;
    padding: 6px 8px;
  }

  .ytl-dem2a-detail #features .feature {
    padding: 56px 22px 22px;
  }

  .ytl-dem2a-detail #features .feature .icon {
    top: 16px;
    right: 17px;
    font-size: 42px;
  }

  .ytl-dem2a-detail #specs .spec-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ytl-dem2a-detail #specs .spec-tab-btn {
    padding-inline: 10px;
    white-space: normal;
  }

  .ytl-dem2a-detail .ytl-related-products-section {
    padding: 56px 0 64px;
  }

  .ytl-dem2a-detail .ytl-related-products-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ytl-dem2a-detail .ytl-related-product-image {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ytl-dem2a-detail .ytl-related-product-image img,
  .ytl-dem2a-detail .ytl-related-product-link svg {
    transition: none;
  }
}

.ytl-product-series-detail .applications-section {
  background: #fff;
}

.ytl-product-series-detail .applications-section .section-label {
  padding: 0;
  background: transparent;
}

