
/* HD LIGHTING PRODUCT PAGE V2
   Main fix: theme is forcing the WooCommerce product into a very narrow parent.
*/
html body.single-product,
html body.single-product .site,
html body.single-product .site-content,
html body.single-product .content-area,
html body.single-product main,
html body.single-product .woocommerce,
html body.single-product .woocommerce-page {
  width: 100% !important;
  max-width: none !important;
}

/* Remove narrow theme wrappers around the product */
html body.single-product .site-main,
html body.single-product #primary,
html body.single-product .content-area,
html body.single-product .woocommerce,
html body.single-product .woocommerce-page {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Product itself */
html body.single-product div.product {
  box-sizing: border-box !important;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin: 50px auto 80px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr) !important;
  column-gap: 56px !important;
  row-gap: 42px !important;
  float: none !important;
  clear: both !important;
  background: #fff !important;
  color: #17181c !important;
}

/* Override percentage widths/floats from Woo/theme */
html body.single-product div.product > .woocommerce-product-gallery,
html body.single-product div.product > .summary {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
}

/* Gallery */
html body.single-product .woocommerce-product-gallery {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
html body.single-product .woocommerce-product-gallery__wrapper {
  width: 100% !important;
  margin: 0 !important;
}
html body.single-product .woocommerce-product-gallery__image {
  width: 100% !important;
  height: 600px !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f7f7f5 !important;
  border: 1px solid #e6e5df !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}
html body.single-product .woocommerce-product-gallery__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 600px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Zoom button */
html body.single-product .woocommerce-product-gallery__trigger {
  z-index: 5 !important;
}

/* Thumbnails */
html body.single-product .flex-control-thumbs {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(6, 86px) !important;
  gap: 12px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body.single-product .flex-control-thumbs li {
  width: 86px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.single-product .flex-control-thumbs li img {
  display: block !important;
  width: 86px !important;
  height: 86px !important;
  object-fit: cover !important;
  border: 1px solid #deded9 !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 2px !important;
  opacity: .72 !important;
}
html body.single-product .flex-control-thumbs li img.flex-active {
  border: 2px solid #d7a900 !important;
  opacity: 1 !important;
}

/* Summary */
html body.single-product div.product > .summary {
  grid-column: 2 !important;
  grid-row: 1 !important;
  padding: 8px 0 0 !important;
}
html body.single-product .summary .product_title {
  margin: 0 0 16px !important;
  padding: 0 !important;
  font-size: clamp(30px, 3.2vw, 46px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.8px !important;
  color: #17181c !important;
}
html body.single-product .summary .price {
  display: block !important;
  margin: 0 0 20px !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}
html body.single-product .summary .price del {
  color: #8b8b8b !important;
  font-size: 18px !important;
  margin-right: 9px !important;
}
html body.single-product .summary .price ins {
  color: #c99500 !important;
  text-decoration: none !important;
}
html body.single-product .summary .woocommerce-product-details__short-description {
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #555 !important;
  margin: 0 0 22px !important;
}
html body.single-product .summary form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 22px 0 24px !important;
}
html body.single-product .summary form.cart .quantity {
  margin: 0 !important;
}
html body.single-product .summary form.cart .quantity .qty {
  width: 78px !important;
  height: 50px !important;
  border: 1px solid #d5d5d5 !important;
  border-radius: 8px !important;
}
html body.single-product .summary form.cart .single_add_to_cart_button {
  min-height: 50px !important;
  padding: 0 32px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #d8a900 !important;
  color: #111 !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
html body.single-product .summary form.cart .single_add_to_cart_button:hover {
  background: #bd9200 !important;
}

/* Trust badges */
html body.single-product .hd-product-trust-v2 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin: 24px 0 !important;
}
html body.single-product .hd-product-trust-v2 > div {
  padding: 13px 8px !important;
  border: 1px solid #e4e4df !important;
  border-radius: 10px !important;
  background: #fafaf8 !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* Tabs and related products MUST span full product width */
html body.single-product .woocommerce-tabs,
html body.single-product .related.products,
html body.single-product .up-sells.products {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}
html body.single-product .woocommerce-tabs ul.tabs {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 4px !important;
  border-bottom: 1px solid #ddd !important;
}
html body.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html body.single-product .woocommerce-tabs ul.tabs li a {
  padding: 15px 18px !important;
  font-weight: 700 !important;
}
html body.single-product .woocommerce-tabs .panel {
  padding: 25px 0 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

/* Related products */
html body.single-product .related.products ul.products,
html body.single-product .up-sells.products ul.products {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 20px 0 0 !important;
}
html body.single-product .related.products ul.products li.product,
html body.single-product .up-sells.products ul.products li.product {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Responsive */
@media (max-width: 950px) {
  html body.single-product div.product {
    width: calc(100% - 30px) !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  html body.single-product .woocommerce-product-gallery,
  html body.single-product div.product > .summary {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  html body.single-product .woocommerce-product-gallery__image {
    height: 480px !important;
  }
  html body.single-product .woocommerce-product-gallery__image img {
    max-height: 480px !important;
  }
  html body.single-product .flex-control-thumbs {
    grid-template-columns: repeat(6, 70px) !important;
  }
  html body.single-product .flex-control-thumbs li,
  html body.single-product .flex-control-thumbs li img {
    width: 70px !important;
    height: 70px !important;
  }
}
@media (max-width: 600px) {
  html body.single-product div.product {
    width: calc(100% - 20px) !important;
    margin-top: 25px !important;
  }
  html body.single-product .woocommerce-product-gallery__image {
    height: 330px !important;
  }
  html body.single-product .woocommerce-product-gallery__image img {
    max-height: 330px !important;
  }
  html body.single-product .flex-control-thumbs {
    grid-template-columns: repeat(4, 64px) !important;
  }
  html body.single-product .flex-control-thumbs li,
  html body.single-product .flex-control-thumbs li img {
    width: 64px !important;
    height: 64px !important;
  }
  html body.single-product .hd-product-trust-v2 {
    grid-template-columns: 1fr !important;
  }
  html body.single-product .related.products ul.products,
  html body.single-product .up-sells.products ul.products {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
