/* product_detail.css */

/* Product detail: keep CTA button stable */
.product-detail-col {
  display: flex;
  flex-direction: column;
  min-height: 420px; /* match photo block height roughly */
}

.product-detail-desc {
  flex: 1 1 auto;
  max-height: 260px;          /* limit description area */
  overflow: auto;             /* scroll if too long */
  padding-right: .25rem;      /* room for scrollbar */
}

/* Optional: nicer scrollbar on webkit */
.product-detail-desc::-webkit-scrollbar {
  width: 8px;
}
.product-detail-desc::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 8px;
}

/* Product detail main image: show full image (no crop) */
.product-detail-main-img {
  height: 420px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: none;
}

/* Thumbnails strip (horizontal scroll) */
.thumb-strip{
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: .5rem;
  margin-top: .75rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.03);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;

  /* Hide scrollbar */
  scrollbar-width: none;      /* Firefox */
}
.thumb-strip::-webkit-scrollbar{
  display: none;              /* Chrome/Safari/Edge */
}

.thumb-btn{
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  border-radius: .5rem;
  padding: 0;
  overflow: hidden;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.thumb-btn:hover{
  border-color: rgba(255,255,255,.35);
}

.thumb-btn.is-active{
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.thumb-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 576px){
  .product-detail-main-img{
    height: 300px;
  }
}

@media (max-width: 576px){
  .thumb-btn{
    width: 60px;
    height: 60px;
  }
}

/* Hide scrollbar in description, keep scrolling */
.product-detail-desc{
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* old Edge/IE */
}
.product-detail-desc::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;                  /* Chrome/Safari */
}