/* 메인 + 검색 둘 다 같은 그리드 사용 */
.product-page-v1-main,
.product-page-v1-search {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.soldout-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  background: #ed422c;
  border-radius: 20px;
  z-index: 5;
  pointer-events: none;
}

.empty-product {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 50px;
}

@media (max-width: 1020px) {
  .product-page-v1-main,
  .product-page-v1-search {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 750px) {
  .product-page-v1-main,
  .product-page-v1-search {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-page-v1-main,
  .product-page-v1-search {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-list-page-product-card {
  background: white;
  padding: 0 12px 24px;
  overflow: hidden;
  width: 100%;
  max-width: 454px;
}

.product-list-page-product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.product-list-page-product-card__image .main-img,
.product-list-page-product-card__image .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  object-position: center;
  transition: opacity 0.25s ease;
}
.product-list-page-product-card__image .main-img {
  opacity: 1;
}

.product-list-page-product-card__image .hover-img {
  opacity: 0;
}

.product-list-page-product-card__image:hover .main-img {
  opacity: 0;
}

.product-list-page-product-card__image:hover .hover-img {
  opacity: 1;
}

.product-list-page-product-card__info {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.product-list-page-product-name {
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

.product-list-page-info-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.product-actions {
  position: relative;
  height: 24px;
  overflow: hidden;
}

.product-actions .product-list-page-selling-price {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 500;
  color: #282828;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.product-actions .btn-actions {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: 12px;
  align-items: baseline;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.product-actions .btn {
  background: #fff;
  color: #222;
  font-size: 14px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.product-actions .btn:hover {
}

.product-list-page-product-card:hover .product-actions .product-list-page-selling-price {
  opacity: 0;
  transform: translateY(-10px);
}

.product-list-page-product-card:hover .product-actions .btn-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn:hover {
  color: #a0b8ae;
}

.wishlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.wishlist-btn.active {
  color: #a0b8ae;
}

.wishlist-btn svg {
  width: 19px;
  height: 17px;
  stroke: #333;
  fill: none;
  transition: all 0.2s ease;
}

.wishlist-btn.active svg path {
  stroke: currentColor;
  fill: currentColor;
}

.wishlist-btn:hover svg {
  stroke: #000000;
  fill: #000000;
}

.product-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 200px;
  gap: 12px;
  font-size: 14px;
  color: #666;
}

.product-loading .spinner {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 3px solid #ddd;
  border-top-color: #333;
  animation: spinner-rotate 0.7s linear infinite;
}

@keyframes spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}
