/* Locked shop listing: pager + 60-per-page grid. Do not fold into store.js. */
.shop-main .product-grid.product-catalog,
.shop-main .product-catalog,
#product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  min-height: 640px;
}
#shop-pager[hidden] {
  display: none !important;
}
#shop-pager:not([hidden]),
.shop-pagination:not([hidden]) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 36px 0 48px !important;
  grid-column: 1 / -1 !important;
}
#shop-pager .blog-page-btn,
.shop-pagination .blog-page-btn {
  min-width: 52px !important;
  height: 52px !important;
  font-size: 17px !important;
}
@media (max-width: 1100px) {
  .shop-main .product-grid.product-catalog,
  .shop-main .product-catalog,
  #product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Hover swaps to the second gallery photo */
.product-card .product-image {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  background: #f3f3f3;
}
.product-card .product-image img:not(.hover-img) {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-card .product-image img.hover-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 0 !important;
  z-index: 1;
  pointer-events: none;
  transform: none !important;
  transition: opacity .18s ease !important;
}
.product-card .likes {
  z-index: 2;
}
.product-card-rating {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 22px !important;
  margin: 8px 0 2px !important;
}
.product-card-stars {
  color: #c9a227 !important;
  letter-spacing: 1px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
.product-card-review-count {
  color: #555 !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-image img.hover-img {
    opacity: 1 !important;
  }
}
