.product-page-v1-main,
module[class*="product-page"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: var(--container, 1400px);
  margin: 0 auto;
  box-sizing: border-box;
}

.product-list-page-container.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.product-list-page-container.product-card:hover {
  transform: translateY(-2px);
  border-color: #dcdcdc;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* ===== 이미지 ===== */
.product-list-page-section.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f6f7;
  overflow: hidden;
}

.product-list-page-thumbnail-image-url {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-list-page-container.product-card:hover .product-list-page-thumbnail-image-url {
  transform: scale(1.04);
}

/* Hover 오버레이 (구매하기) */
.product-list-page-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(45, 95, 63, 0.6), rgba(45, 95, 63, 0) 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-list-page-container.product-card:hover .product-list-page-actions {
  opacity: 1;
}

.hover_layer {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #0b2316;
  background: #4ade80;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(74, 222, 128, 0.25);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.hover_layer:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(74, 222, 128, 0.35);
  background: #22c55e;
}

/* ===== 정보 영역 ===== */
.product-list-page-section.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
  flex: 1;
}

.product-list-page-info.product-card__name {
  margin: 0;
  line-height: 1.45;
  font-size: 16px;
  font-weight: 600;
}

.product-list-page-name {
  color: #1f2937;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.product-list-page-name:hover {
  color: #2d5f3f;
}

.product-list-page-summary-description {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 가격 ===== */
.product-list-page-info.product-card__price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

/* 할인율 배지 */
.product-list-page-discount-persent {
  display: none;
  /* 기본 숨김 */
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
}

.product-list-page-discount-persent:not(:empty) {
  display: inline-block;
}

/* 원가/판매가 */
.product-list-page-consumer-price {
  display: none;
  /* 기본 숨김 (할인 있을 때만 보여줌) */
  color: #9ca3af;
  font-size: 13px;
  text-decoration: line-through;
}

.product-list-page-selling-price {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

/* :has() 대신 .is-discounted 클래스로 제어 (아래 JS 참고) */
.product-card__price.is-discounted .product-list-page-consumer-price {
  display: inline-block;
}

/* ===== 포커스 접근성 */
.product-list-page-container.product-card:focus-within {
  outline: 2px solid #2d5f3f22;
  outline-offset: 2px;
}

/* ===== 반응형 */
@media (max-width: 768px) {
  .product-page-v1-main,
  module[class*="product-page"] {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 16px;
  }

  .product-list-page-section.product-card__info {
    padding: 14px;
    gap: 8px;
  }

  .product-list-page-info.product-card__name {
    font-size: 14px;
  }

  .product-list-page-summary-description {
    font-size: 13px;
  }

  .product-list-page-selling-price {
    font-size: 16px;
  }

  .hover_layer {
    font-size: 14px;
    padding: 9px 18px;
  }
}

@media (max-width: 480px) {
  .product-page-v1-main,
  module[class*="product-page"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .product-list-page-container {
    border-radius: 12px;
  }

  .product-list-page-section.product-card__info {
    padding: 12px;
  }

  .product-list-page-summary-description {
    display: none;
  }
}
