/* ═══════════════════════════════════════════
   Product Page Styles
   ═══════════════════════════════════════════ */

/* Page header for product page */
.page-header--product {
  background: transparent;
  margin-top: 70px; /* 導航列高度 */
}

.page-header--product .page-header__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-header--product .page-header__title {
  color: #1a3a2a;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
  z-index: 2;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Product Section */
.product-section {
  padding: 40px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-section__card {
  background: rgba(245, 248, 250, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  justify-items: center;
}

/* Product Card */
.product-card {
  background: rgba(245, 248, 250, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 420px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Product Card Image - 457x257 ratio (16:9) */
.product-card__image {
  width: 100%;
  padding-top: 56.1%; /* 257/457 = 0.561 = 56.1% aspect ratio */
  overflow: hidden;
  background: #fff;
  position: relative;
}

.product-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

/* Product Card Content */
.product-card__content {
  padding: 28px 32px;
}

.product-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a3a2a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Badge for coming soon */
.product-card__badge {
  font-size: 0.85rem;
  background: #FFB703;
  color: #1a3a2a;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
}

/* Price */
.product-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.product-card__price-label {
  font-size: 1rem;
  color: #333;
}

.product-card__price-current {
  font-size: 1.8rem;
  font-weight: 900;
  color: #d32f2f;
}

.product-card__price-original {
  font-size: 1.1rem;
  color: #999;
  text-decoration: line-through;
}

.product-card__price-empty {
  font-size: 1.8rem;
  font-weight: 900;
  color: #d32f2f;
}

/* Specs */
.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.product-card__spec {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card__spec-label {
  font-size: 0.95rem;
  color: #555;
  white-space: nowrap;
}

.product-card__spec-value {
  font-size: 0.95rem;
  color: #222;
  font-weight: 500;
}

/* View Details Link */
.product-card__link {
  display: inline-block;
  font-size: 0.95rem;
  color: #2196c4;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card__link:hover {
  color: #1a3a2a;
}

/* Purchase Section */
.purchase-section {
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.purchase-section__card {
  background: rgba(245, 248, 250, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.purchase-section__title {
  text-align: center;
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: #111;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Divider: green line + gold accent */
.purchase-section__divider {
  position: relative;
  width: 100%;
  height: 6px;
  margin: 0 auto 28px;
}

.purchase-section__divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #2D6A4F;
}

.purchase-section__divider::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 72px;
  height: 4px;
  background: #FFB703;
}

.purchase-section__body {
  text-align: left;
}

.purchase-section__body p {
  font-size: 1rem;
  color: #222;
  line-height: 1.85;
  margin-bottom: 16px;
}

.purchase-section__list {
  margin: 0;
  padding-left: 24px;
  font-size: 1rem;
  color: #222;
  line-height: 2;
}

.purchase-section__list a {
  color: #2196c4;
  text-decoration: none;
  font-weight: 600;
}

.purchase-section__list a:hover {
  text-decoration: underline;
}

.purchase-section__shops {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.purchase-section__link img {
  height: 52px;
  width: auto;
  display: block;
}

/* RWD */
@media (max-width: 768px) {
  .product-section {
    padding: 24px 16px;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 100%;
  }

  .product-card__content {
    padding: 24px 20px;
  }

  .product-card__image {
    height: 220px;
  }

  .product-card__title {
    font-size: 1.3rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .purchase-section__card {
    padding: 24px 20px;
  }

  .purchase-section {
    display: none;
  }
}
