/* ASOS-style product detail layout */
.ps-page--product .ps-page__container {
  display: block !important;
}

.ps-page--product .ps-page__left,
.ps-page--product .ps-page__right {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
}

.ps-page--product .ps-product--detail .ps-product__header {
  display: grid !important;
  grid-template-columns: minmax(560px, 60%) minmax(360px, 1fr) !important;
  gap: 44px !important;
  align-items: start !important;
}

.ps-page--product .ps-product--detail .ps-product__thumbnail {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 690px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f3f4f5 !important;
}

.ps-page--product .bb-product-gallery-wrapper,
.ps-page--product .bb-product-gallery {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 690px !important;
}

.ps-page--product .bb-product-gallery.bb-product-gallery-vertical {
  position: relative !important;
  display: block !important;
}

.ps-page--product .bb-product-gallery-images {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  max-height: 690px !important;
  min-height: 690px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scroll-snap-type: y mandatory !important;
  scrollbar-width: thin !important;
  padding: 0 !important;
  background: #f3f4f5 !important;
}

.ps-page--product .bb-product-gallery-images .slick-list,
.ps-page--product .bb-product-gallery-images .slick-track {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}

.ps-page--product .bb-product-gallery-images .slick-slide,
.ps-page--product .bb-product-gallery-images > a,
.ps-page--product .bb-product-gallery-images > .bb-product-video {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  display: flex !important;
  width: 100% !important;
  height: 690px !important;
  min-height: 690px !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  scroll-snap-align: start !important;
  background: #f3f4f5 !important;
}

.ps-page--product .bb-product-gallery-images img,
.ps-page--product .bb-product-gallery-images iframe {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

.ps-page--product .bb-product-gallery-thumbnails {
  position: absolute !important;
  top: 22px !important;
  left: 22px !important;
  z-index: 5 !important;
  display: grid !important;
  width: 74px !important;
  max-width: 74px !important;
  gap: 12px !important;
}

.ps-page--product .bb-product-gallery-thumbnails .slick-list,
.ps-page--product .bb-product-gallery-thumbnails .slick-track {
  display: grid !important;
  gap: 12px !important;
  height: auto !important;
  transform: none !important;
}

.ps-page--product .bb-product-gallery-thumbnails .slick-slide,
.ps-page--product .bb-product-gallery-thumbnails > div {
  width: 74px !important;
  height: 74px !important;
  overflow: hidden !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  background: #fff !important;
  cursor: pointer !important;
}

.ps-page--product .bb-product-gallery-thumbnails img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.ps-page--product .ps-product--detail .ps-product__info {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  position: sticky !important;
  top: 24px !important;
  padding-top: 8px !important;
}

.ps-page--product .ps-product--detail .ps-product__shopping {
  grid-template-columns: 112px minmax(220px, 1fr) auto !important;
}

.ps-page--product .ps-page__right {
  margin-top: 26px !important;
}

.ps-page--product .widget_features {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  box-shadow: none !important;
}

.ps-page--product .widget_features p {
  margin-bottom: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}

@media (max-width: 1199px) {
  .ps-page--product .ps-product--detail .ps-product__header {
    grid-template-columns: minmax(440px, 56%) minmax(330px, 1fr) !important;
    gap: 30px !important;
  }
}

@media (max-width: 991px) {
  .ps-page--product .ps-product--detail .ps-product__header {
    grid-template-columns: 1fr !important;
  }

  .ps-page--product .ps-product--detail .ps-product__thumbnail,
  .ps-page--product .bb-product-gallery-wrapper,
  .ps-page--product .bb-product-gallery,
  .ps-page--product .bb-product-gallery-images {
    min-height: 560px !important;
    max-height: 560px !important;
  }

  .ps-page--product .bb-product-gallery-images .slick-slide,
  .ps-page--product .bb-product-gallery-images > a,
  .ps-page--product .bb-product-gallery-images > .bb-product-video {
    height: 560px !important;
    min-height: 560px !important;
  }

  .ps-page--product .ps-product--detail .ps-product__info {
    position: static !important;
  }

  .ps-page--product .widget_features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .ps-page--product .ps-product--detail .ps-product__header {
    padding: 0 !important;
  }

  .ps-page--product .ps-product--detail .ps-product__thumbnail,
  .ps-page--product .bb-product-gallery-wrapper,
  .ps-page--product .bb-product-gallery,
  .ps-page--product .bb-product-gallery-images {
    min-height: 460px !important;
    max-height: 460px !important;
  }

  .ps-page--product .bb-product-gallery-images .slick-slide,
  .ps-page--product .bb-product-gallery-images > a,
  .ps-page--product .bb-product-gallery-images > .bb-product-video {
    height: 460px !important;
    min-height: 460px !important;
  }

  .ps-page--product .bb-product-gallery-thumbnails {
    top: 14px !important;
    left: 14px !important;
  }

  .ps-page--product .widget_features {
    grid-template-columns: 1fr !important;
  }
}
