/* ==========================================================
   BeOrganic.sk – product detail customer cards fix
   06/2026
   ==========================================================
   Goal:
   - keep "Fotky od zákazníkov" on product detail visually close
     to the homepage version
   - remove the oversized white frames introduced by the last fix
   - leave Google review text clamping to the existing
     oprava-recenzie-detail-produktu_2.css file
   ========================================================== */

#page_product_detail_out .bo-customers-wrap {
  max-width: 1380px !important;
  margin: 0 auto !important;
}

#page_product_detail_out .bo-customers-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
}

#page_product_detail_out .bo-customers-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 4px 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

#page_product_detail_out .bo-customers-grid::-webkit-scrollbar {
  display: none !important;
}

#page_product_detail_out .bo-customers-item {
  flex: 0 0 calc((100% - 40px) / 3) !important;
  min-width: 300px !important;
  height: auto !important;
  min-height: 0 !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px rgba(44, 56, 38, 0.08) !important;
  scroll-snap-align: start !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

#page_product_detail_out .bo-customers-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 34px rgba(44, 56, 38, 0.12) !important;
}

#page_product_detail_out .bo-customers-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 16px !important;
  background: #ffffff !important;
}

#page_product_detail_out .bo-customers-grid::after {
  content: "" !important;
  display: block !important;
  flex: 0 0 calc((100% - 40px) / 3) !important;
  min-width: 300px !important;
  aspect-ratio: 1402 / 1122 !important;
  box-sizing: border-box !important;
  border-radius: 24px !important;
  border: 1px dashed rgba(116, 134, 104, 0.28) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(44, 56, 38, 0.08) !important;
  scroll-snap-align: start !important;
}

#page_product_detail_out .bo-customers-arrow {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #ffffff !important;
  color: #64775d !important;
  box-shadow: 0 10px 28px rgba(44, 56, 38, 0.12) !important;
  flex: 0 0 52px !important;
}

#page_product_detail_out .bo-customers-arrow[disabled] {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

@media only screen and (max-width: 1120px) {
  #page_product_detail_out .bo-customers-item {
    flex: 0 0 calc((100% - 20px) / 2) !important;
    min-width: 280px !important;
  }

  #page_product_detail_out .bo-customers-grid::after {
    flex-basis: calc((100% - 20px) / 2) !important;
    min-width: 280px !important;
  }
}

@media only screen and (max-width: 800px) {
  #page_product_detail_out .bo-customers-content {
    gap: 12px !important;
  }

  #page_product_detail_out .bo-customers-grid {
    gap: 12px !important;
    padding-bottom: 8px !important;
  }

  #page_product_detail_out .bo-customers-item {
    flex: 0 0 84% !important;
    min-width: 0 !important;
    border-radius: 20px !important;
    padding: 8px !important;
  }

  #page_product_detail_out .bo-customers-item img {
    border-radius: 14px !important;
  }

  #page_product_detail_out .bo-customers-grid::after {
    display: none !important;
  }

  #page_product_detail_out .bo-customers-arrow {
    display: none !important;
  }
}
