/* ==============================================
   wa-product.css — アフィリエイト商品カード
   ============================================== */

/* ==============================================
   商品カード
   ============================================== */
.wa-product-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 32px 0;
}

.wa-product-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wa-product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-product-category {
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  margin: 0;
}

.wa-product-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin: 0;
}

.wa-product-comment {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 4px 0;
  /* 手書き風のニュアンスを添える */
  font-style: italic;
}

.wa-product-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Amazon ボタン */
.wa-btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.06em;
  background: #FF9900;
  color: #111;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.wa-btn-amazon::before {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111'%3E%3Cpath d='M13.23 10.56V10c-1.94 0-3.99.39-3.99 2.67 0 1.15.6 1.93 1.63 1.93.75 0 1.43-.46 1.86-1.22.5-.93.5-1.8.5-2.82zM21.64 19c-.13.15-.4.09-.57-.06-1.6-1.33-1.87-1.95-2.73-3.22C16.12 17.74 14.5 18.4 12 18.4c-2.83 0-5.04-1.75-5.04-5.26 0-2.73 1.48-4.59 3.6-5.51 1.83-.82 4.39-1.01 6.34-1.23v-.46c0-.85.07-1.85-.43-2.58-.43-.65-1.26-.9-2-.9-1.37 0-2.59.71-2.88 2.19-.06.32-.29.64-.61.65L8.3 5.11c-.26-.06-.56-.27-.48-.67C8.56 1.77 11.3 1 13.76 1c1.25 0 2.9.33 3.88 1.27C18.88 3.44 18.77 5.07 18.77 6.81v4.79c0 1.44.6 2.07 1.16 2.85.2.28.24.61-.01.82l-2.28 1.73z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.wa-btn-amazon:hover {
  opacity: 0.88;
  color: #111;
}

/* 楽天ボタン */
.wa-btn-rakuten {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.06em;
  background: #BF0000;
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.wa-btn-rakuten:hover {
  opacity: 0.88;
  color: #fff;
}

/* Yahoo! ボタン */
.wa-btn-yahoo {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.06em;
  background: #FF0033;
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.wa-btn-yahoo:hover {
  opacity: 0.88;
  color: #fff;
}

/* ==============================================
   Pochipp 互換スタイル上書き（任意）
   ============================================== */
.pochipp-box {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
}

.pochipp-box__title {
  font-family: var(--font-serif) !important;
  color: var(--color-text) !important;
}

/* ==============================================
   レスポンシブ
   ============================================== */
@media (max-width: 767px) {
  .wa-product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .wa-product-image {
    width: 100px;
    height: 100px;
  }

  .wa-product-buttons {
    justify-content: center;
  }
}
