/* Imported Amazon product image fixes. Kept separate so existing theme CSS is not overwritten. */
.product-gallery__main,
.product-gallery__thumbs button,
.product-link-card img,
.product-demo-product{
  background:#fff;
}
.product-gallery__main img,
.product-gallery__thumbs img,
.product-link-card img,
.product-demo-product img{
  object-fit:contain !important;
}
.product-link-card img{
  padding:12px;
  aspect-ratio:1/1;
}
.product-gallery__main img{
  max-width:100%;
  max-height:100%;
}
.product-demo-product img{
  width:100%;
  height:100%;
}

/* Product Links: horizontal slider with per-product proof metrics */
.product-links-section .section-heading{
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
}
.product-link-slider{
  overflow:hidden;
  padding:4px 4px 0;
}
.product-link-slider .swiper-wrapper{
  align-items:stretch;
}
.product-link-slider .swiper-slide{
  height:auto;
  display:flex;
}
.product-link-slider:not(.swiper-initialized){
  overflow:visible;
}
.product-link-slider:not(.swiper-initialized) .swiper-wrapper{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.product-link-slider:not(.swiper-initialized) .swiper-slide{
  width:auto !important;
}
.product-link-card{
  width:100%;
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.product-link-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain !important;
  background:#fff;
  padding:12px;
}
.product-link-card__body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:16px;
}
.product-link-card__category{
  align-self:flex-start;
  margin-bottom:10px !important;
}
.product-link-card h3{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  min-height:3.75em;
  margin-bottom:12px;
}
.product-link-card__rating{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-bottom:12px;
  color:#475467;
  font-weight:800;
}
.product-link-card__stars{
  color:#f59e0b;
  letter-spacing:.04em;
  font-size:.9rem;
  line-height:1;
}
.product-link-card__rating strong{
  color:#101828;
  font-size:.92rem;
}
.product-link-card__rating small{
  color:#667085;
  font-size:.78rem;
  font-weight:800;
}
.product-link-card__metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0 0 14px;
}
.product-link-card__metrics span{
  display:grid;
  gap:3px;
  margin:0;
  padding:8px 6px;
  border-radius:14px;
  background:#f3f6ff;
  color:#0f172a;
  text-align:center;
}
.product-link-card__metrics small{
  color:#667085;
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.06em;
  line-height:1;
  text-transform:uppercase;
}
.product-link-card__metrics strong{
  color:#0f172a;
  font-size:.9rem;
  font-weight:950;
  line-height:1.12;
}
.product-link-card a{
  margin-top:auto;
}
.product-link-slider__controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:20px;
}
.product-link-slider__button{
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:1.5rem;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(15,23,42,.18);
}
.product-link-slider__button.swiper-button-disabled{
  opacity:.45;
  cursor:not-allowed;
}
.product-link-slider__pagination{
  position:static !important;
  width:auto !important;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.product-link-slider__pagination .swiper-pagination-bullet{
  width:9px;
  height:9px;
  margin:0 !important;
  border-radius:999px;
  background:#98a2b3;
  opacity:.6;
  transition:width .22s ease,opacity .22s ease,background .22s ease;
}
.product-link-slider__pagination .swiper-pagination-bullet-active{
  width:24px;
  background:#2f6df6;
  opacity:1;
}

@media (max-width: 980px){
  .product-link-slider:not(.swiper-initialized) .swiper-wrapper{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 640px){
  .product-link-slider{
    padding-inline:2px;
  }
  .product-link-slider:not(.swiper-initialized) .swiper-wrapper{
    grid-template-columns:1fr;
  }
  .product-link-card__body{
    padding:14px;
  }
  .product-link-card h3{
    min-height:auto;
    -webkit-line-clamp:2;
  }
  .product-link-slider__controls{
    gap:10px;
    margin-top:16px;
  }
  .product-link-slider__button{
    width:38px;
    height:38px;
  }
}
.product-link-card .product-link-card__stars{
  display:inline;
  margin:0;
  padding:0;
  border-radius:0;
  background:transparent;
  color:#f59e0b;
  font-size:.9rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:none;
}
.product-link-slider__controls{
  display:none;
}
.product-link-slider.swiper-initialized .product-link-slider__controls{
  display:flex;
}
