/* Product Detail page redesign (supervisor PDP mockup) — scoped to
   .pd2-page / .pd2-* so nothing else on the site is affected. */
.pd2-page { background: #f4f5f2 !important; }
.pd2-page .main-page { background: transparent !important; }
@media (min-width: 768px) {
  .pd2-page .common-search { display: none !important; }
}
.pd2-page .ct-videoSection { display: none; }
.pd2-page .text-bread {
  color: var(--muted, #697386);
  padding: 10px 0 2px;
  font-size: 13px;
}
.pd2-page .text-bread a { color: var(--green, #168a4a); }
.pd2-page .Productsearch_result { color: var(--ink, #18202b); }

.prod-detail .pd2-legacyhead { display: none !important; }

.pd2-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 20, 10, 0.08);
  padding: 28px;
  margin-top: 14px;
  margin-bottom: 8px;
}
.pd2-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px;
}
@media (max-width: 900px) {
  .pd2-grid { grid-template-columns: 1fr; }
  .pd2-card { padding: 18px; }
}
.pd2-gallery .product-slider-container {
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 18px;
}
.pd2-gallery .slider-for .fig img {
  display: block;
  max-width: 100%;
  height: 400px;
  object-fit: contain;
  margin: 0 auto;
}
.pd2-gallery .slider-for .fig a { display: block; }
.pd2-thumbs {
  display: flex !important;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}
.pd2-thumbs .fig {
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  width: 74px;
}
.pd2-thumbs .fig img { max-width: 100%; height: 60px; object-fit: contain; }

.pd2-eyebrow {
  color: var(--muted, #697386);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.pd2-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink, #18202b);
  margin: 0 0 10px;
  line-height: 1.25;
}
.pd2-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted, #697386);
}
.pd2-sku { font-weight: 600; }
.pd2-badge {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 700;
}
.pd2-badge.is-in { background: #e6f4ea; color: var(--green, #168a4a); }
.pd2-badge.is-out { background: #fdecea; color: var(--red, #c7362f); }
.pd2-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--orange, #f7a000);
  margin: 16px 0 18px;
}
.pd2-price .pd2-cur { font-size: 17px; font-weight: 700; }
.pd2-buyrow { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }
.pd2-qty {
  display: inline-flex;
  border: 1px solid var(--line, #dce4ef);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.pd2-qbtn {
  width: 44px;
  border: 0;
  background: #f6f7f4;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #18202b);
  cursor: pointer;
}
.pd2-qbtn:hover { background: #ecede8; }
.pd2-qty input.quantity {
  width: 62px;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.pd2-qty input.quantity::-webkit-outer-spin-button,
.pd2-qty input.quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pd2-atc {
  background: var(--orange, #f7a000) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 12px 36px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border: 0 !important;
}
.pd2-atc:hover { filter: brightness(0.94); color: #fff !important; }
.pd2-atc[disabled] { opacity: 0.55; pointer-events: none; }

.pd2-attrs {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid #eee;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.pd2-attrs li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted, #697386);
}
.pd2-attrs .fa { color: var(--green, #168a4a); font-size: 18px; margin-top: 2px; }
.pd2-attrs b { display: block; color: var(--ink, #18202b); font-weight: 600; }

.pd2-tabs { margin-top: 28px; }
.pd2-r { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.pd2-tablist {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #eee;
  flex-wrap: wrap;
}
.pd2-tablist label {
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted, #697386);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.pd2-tablist label:hover { color: var(--ink, #18202b); }
.pd2-r1:checked ~ .pd2-tablist label[for^="pd2t1_"],
.pd2-r2:checked ~ .pd2-tablist label[for^="pd2t2_"],
.pd2-r3:checked ~ .pd2-tablist label[for^="pd2t3_"] {
  color: var(--green, #168a4a);
  border-bottom-color: var(--orange, #f7a000);
}
.pd2-panel { display: none; padding: 20px 4px 6px; color: #3c4652; line-height: 1.7; font-size: 14.5px; }
.pd2-r1:checked ~ .pd2-p1,
.pd2-r2:checked ~ .pd2-p2,
.pd2-r3:checked ~ .pd2-p3 { display: block; }
.pd2-specs { width: 100%; max-width: 560px; border-collapse: collapse; }
.pd2-specs td { padding: 9px 14px; border-bottom: 1px solid #f0f0f0; }
.pd2-specs td:first-child { color: var(--muted, #697386); width: 220px; }
.pd2-comment {
  width: 100%;
  border: 1px solid var(--line, #dce4ef);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}
.pd2-comment-lbl { margin-bottom: 6px; }
.pd2-chars { color: var(--muted, #697386); }
.pd2-muted { color: var(--muted, #697386); font-size: 13px; }

/* Related products — modern card grid */
.pd2-related { margin-top: 34px; }
.pd2-related .related_products_title {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink, #18202b);
  background: none;
  border: 0;
  padding: 0 0 14px;
  text-transform: none;
}
.pd2-relgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 20px;
}
.pd2-related .ProductBlock {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
  margin-bottom: 0 !important;
}
.pd2-related .ProductBlock:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, .10);
  transform: translateY(-3px);
}
.pd2-related .VehicleBlockItems { display: block; }
.pd2-related .product_type_image_wrap {
  display: block;
  height: auto;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.pd2-related .product_type_image_wrap .overflowhidden { width: 100%; height: 190px; display: flex; align-items: center; justify-content: center; }
.pd2-related .product_type_image_wrap .carousel,
.pd2-related .product_type_image_wrap .carousel-inner,
.pd2-related .product_type_image_wrap .carousel-item,
.pd2-related .product_type_image_wrap .carousel-item a { height: 100%; display: flex; align-items: center; justify-content: center; }
.pd2-related .product_type_image_wrap img {
  max-height: 170px;
  max-width: 88%;
  width: auto !important;
  object-fit: contain;
}
.pd2-related .related-prod-info-details { padding: 14px 16px 16px; }
.pd2-related .avia-arrow { display: none; }
.pd2-related .prod-name .element_desc {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #18202b);
  min-height: 42px;
  line-height: 1.35;
}
.pd2-related .prod-name:hover .element_desc { color: var(--green, #168a4a); }
.pd2-related .pro-item-ft { margin-top: 10px; }
.pd2-related .start_from { color: var(--orange, #f7a000); font-weight: 800; font-size: 16px; }
.pd2-related .btn-omega {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--orange, #f7a000) !important;
  color: var(--orange, #f7a000) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-weight: 700 !important;
}
.pd2-related .btn-omega:hover { background: var(--orange, #f7a000); color: #fff !important; }

/* prod-descp picks up a flex display from legacy rules — force normal flow */
.pd2-info { display: block !important; min-width: 0; }
.pd2-meta { width: 100%; }

/* related-list container chain must expand (legacy float collapsed it to 45px) */
.pd2-related.related_product_block{height:auto !important;min-height:0 !important;}
.pd2-related .col-md-12{height:auto !important;min-height:0 !important;}
.pd2-related .product-list-list{height:auto !important;min-height:0 !important;overflow:visible !important;}
.pd2-related .float-start{float:none !important;}
.pd2-related .related-prod-info-details{display:block;}

/* --- related-cards / radio overrides: beat legacy attribute+3-class selectors --- */
.pd2-r { width: 1px !important; height: 1px !important; }
.pd2-related .pro-item { height: auto !important; }
.pd2-related .product_type_image_wrap { display: block !important; height: auto !important; }
.pd2-related .product_type_image_wrap .overflowhidden { height: 190px !important; }
.pd2-related .product-list-list.filter-list .product_type_image_wrap { display: block !important; }

/* --- related-cards: fill grid cells, kill carousel flex squeeze --- */
.pd2-related .ProductBlock { width: 100% !important; display: block !important; }
.pd2-related .VehicleBlockItems { width: 100% !important; display: block !important; float: none !important; }
.pd2-related .carousel.slide,
.pd2-related .carousel-inner { display: block !important; width: 100% !important; height: 190px !important; }
.pd2-related .carousel-item { display: none !important; width: 100% !important; height: 100% !important; }
.pd2-related .carousel-item.active,
.pd2-related .carousel-item.showing { display: block !important; }
.pd2-related .carousel-item a.carousel_img { display: flex !important; width: 100% !important; height: 100% !important; align-items: center !important; justify-content: center !important; }

/* --- related-cards: force name + price blocks to fill card width --- */
.pd2-related a.prod-name { display: block !important; width: 100% !important; height: auto !important; min-height: 42px; }
.pd2-related .element_desc { display: block !important; width: 100% !important; min-width: 100% !important; overflow: visible !important; position: static !important; }
.pd2-related .related-prod-info-price-title { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; }
.pd2-related .related-prod-info-details { width: 100% !important; }

/* stray legacy price-request textarea: keep in DOM for products.js, keep offscreen */
.pd2-page #pricerequest_message { position: absolute !important; left: -9999px !important; }
