/* DaruGet product gallery v5 — clean, image-first, stable */
.product-page .product-gallery-v5{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  align-self:start!important;
}

.product-page .product-gallery-stage{
  position:relative!important;
  width:100%!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  padding:16px!important;
  box-sizing:border-box!important;
  border:1px solid #e3e9e5!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 26px rgba(15,23,42,.045)!important;
}

/* Never show legacy generated symbols/badges over the product image */
.product-page .product-gallery-stage > :not(.product-gallery-main-image){
  display:none!important;
}

.product-page .product-gallery-main-image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  box-shadow:none!important;
}

.product-page .product-gallery-v5 .product-thumb-row{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
}

.product-page .product-gallery-v5 .product-thumb{
  appearance:none!important;
  -webkit-appearance:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:6px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  cursor:pointer!important;
}

.product-page .product-gallery-v5 .thumb-media{
  position:relative!important;
  width:100%!important;
  aspect-ratio:1.22/1!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  padding:6px!important;
  border:1px solid #e1e8e4!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:none!important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}

.product-page .product-gallery-v5 .thumb-media::before,
.product-page .product-gallery-v5 .thumb-media::after{
  content:none!important;
  display:none!important;
}

.product-page .product-gallery-v5 .thumb-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}

.product-page .product-gallery-v5 .product-thumb small{
  display:block!important;
  min-height:17px!important;
  margin:0!important;
  padding:0!important;
  color:#64748b!important;
  background:transparent!important;
  border:0!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.55!important;
  text-align:center!important;
  white-space:nowrap!important;
}

.product-page .product-gallery-v5 .product-thumb:hover .thumb-media{
  border-color:#cbdad1!important;
}

.product-page .product-gallery-v5 .product-thumb.active .thumb-media{
  border-color:#79b58d!important;
  box-shadow:0 0 0 2px rgba(21,128,61,.08)!important;
}

.product-page .product-gallery-v5 .product-thumb.active small{
  color:#15803d!important;
  font-weight:950!important;
}

/* Neutralize old gallery states that previously opened symbols/badges/icons */
.product-page .product-gallery-v5 .visual-symbol,
.product-page .product-gallery-v5 #visualForm,
.product-page .product-gallery-v5 > b,
.product-page .product-gallery-v5 .product-gallery-stage > b,
.product-page .product-gallery-v5 .product-thumb svg,
.product-page .product-gallery-v5 .product-thumb i{
  display:none!important;
}

@media(max-width:900px){
  .product-page .product-gallery-stage{
    max-width:460px!important;
    margin-inline:auto!important;
  }
  .product-page .product-gallery-v5 .product-thumb-row{
    max-width:460px!important;
    margin-inline:auto!important;
  }
}

@media(max-width:680px){
  .product-page .product-gallery-v5{gap:9px!important}
  .product-page .product-gallery-stage{
    padding:12px!important;
    border-radius:15px!important;
  }
  .product-page .product-gallery-v5 .product-thumb-row{gap:6px!important}
  .product-page .product-gallery-v5 .thumb-media{
    padding:4px!important;
    border-radius:9px!important;
  }
  .product-page .product-gallery-v5 .product-thumb small{
    font-size:12px!important;
  }
}
