/* ==========================================================================
   Product Card — Unified Styles (#188)
   Extracted from inline CSS to external enqueued file.
   Uses SWELL CSS variables for theme integration.
   ========================================================================== */

.product-card {
  display: flex;
  gap: 24px;
  background: var(--color_bg, #fff);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  margin: 1.8em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .3s;
}
.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.product-card__img {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}
.product-card__body {
  flex: 1;
  min-width: 0;
}
.product-card__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
  color: var(--color_text, #1a1a1a);
}
.product-card__specs {
  font-size: 14px;
  color: #555;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 6px;
  margin: 0 0 14px;
  line-height: 1.7;
}
.product-card__price {
  font-size: 22px;
  font-weight: 700;
  color: #b91c1c;
  margin: 0 0 10px;
}
.product-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color_text, #333);
  margin: 0 0 14px;
}
.product-card__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.product-card__link {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform .15s, box-shadow .15s;
}
.product-card__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
  color: #fff;
}
.product-card__link--amazon {
  background: #FF9900;
}
.product-card__link--rakuten {
  background: #BF0000;
}

/* #158: Text-link affiliate styling */
.post_content a[href*="amazon.co.jp"],
.post_content a[href*="amzn.to"] {
  display: inline-block;
  background: #FF9900;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.post_content a[href*="rakuten.co.jp"] {
  display: inline-block;
  background: #BF0000;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.post_content a[href*="amazon.co.jp"]:hover,
.post_content a[href*="amzn.to"]:hover,
.post_content a[href*="rakuten.co.jp"]:hover {
  opacity: .85;
}

/* Mobile */
@media (max-width: 600px) {
  .product-card {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  .product-card__img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
  .product-card__name { font-size: 18px; }
  .product-card__price { font-size: 20px; }
  .product-card__links { justify-content: stretch; }
  .product-card__link { flex: 1; text-align: center; padding: 12px 16px; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .product-card {
    background: #1e293b;
    border-color: #334155;
  }
  .product-card__name { color: #f1f5f9; }
  .product-card__specs { background: #334155; color: #cbd5e1; }
  .product-card p { color: #cbd5e1; }
  .product-card__img { background: #0f172a; }
}
