/* ===== 공통 컨테이너 ===== */
.product-page-v1-main {
  display: grid;
  box-sizing: border-box;

  /* 기본: 모바일 기준 (2열) */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;

  max-width: 1200px;
  margin: 0 auto;
}

/* ===== 카드 공통 스타일 그대로 사용 ===== */
.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, rgb(174 83 209 / 60%), rgba(45, 95, 63, 0) 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.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: #fff;
  background: #dc84f9;
  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(189, 100, 227, 0.35);
  background: #ce6aef;
}

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

.product-list-page-info.product-card__name {
  margin: 0;
  line-height: 1.45;
  font-size: 14px;
  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: 13px;
  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: 6px;
  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: 12px;
  text-decoration: line-through;
}

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

/* 할인 있을 때만 원가 노출 */
.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;
}

/* ===== 480px 이상 (작은 태블릿/큰 모바일) ===== */
@media (min-width: 480px) {
  .product-page-v1-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
  }

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

/* ===== 768px 이상 (태블릿) ===== */
@media (min-width: 768px) {
  .product-page-v1-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 16px;
    max-width: 1200px;
  }

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

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

  .product-list-page-summary-description {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

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

/* ===== 1200px 이상 (데스크탑) ===== */
@media (min-width: 1200px) {
  .product-page-v1-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
  }

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

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

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