
.valentine-section {
  padding: 40px 20px;
  background: #ffffff;
}

/* ===== 標題 & 內文 ===== */
.valentine-header {
  text-align: center;
  margin-bottom: 30px;
}

.valentine-title {
  font-size: 2rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
}

.valentine-subtitle {
  font-size: 1rem;
  color: #000000;
  font-weight: normal; /* 內文非粗體 */
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* 按鈕 */
.valentine-button-wrapper {
  margin-bottom: 40px;
}

.valentine-button {
  display: inline-block;
  padding: 10px 25px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.valentine-button:hover {
  background: #333333;
}

/* ===== 商品列表 ===== */
.valentine-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 電腦版4個一排 */
  gap: 20px;
  justify-items: center;
}

/* ===== 商品卡片 ===== */
.product-card {
  width: 100%;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;

  /* 波浪上下 + 微旋轉 */
  margin-top: var(--wave, 0px);
  transform: rotate(var(--rotate, 0deg));
}

.product-card:hover {
  transform: rotate(0deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 圖片完整顯示，沒有圓角 */
.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

/* 標題下方留白一致 */
.product-card h3 {
  margin-top: 10px;
  font-size: 1rem;
  color: #000000;
  min-height: 1.5em;
}

/* 波浪上下 + 微旋轉 */
.product-card:nth-child(8n+1) { --rotate: -3deg; --wave: 0px; }
.product-card:nth-child(8n+2) { --rotate: 2deg;  --wave: 20px; }
.product-card:nth-child(8n+3) { --rotate: -2deg; --wave: 10px; }
.product-card:nth-child(8n+4) { --rotate: 3deg;  --wave: 30px; }
.product-card:nth-child(8n+5) { --rotate: -1deg; --wave: 15px; }
.product-card:nth-child(8n+6) { --rotate: 2deg;  --wave: 5px; }
.product-card:nth-child(8n+7) { --rotate: -3deg; --wave: 25px; }
.product-card:nth-child(8n+8) { --rotate: 1deg;  --wave: 0px; }

/* ===== 手機版 ===== */
@media (max-width: 768px) {
  .valentine-products {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card {
    --rotate: 0deg;
    --wave: 0px;
    margin-top: 0;
  }
}
