@charset "UTF-8";

/* ベース */
body {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #fafafa;
  color: #222;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ヘッダー */
header {
  text-align: center;
  padding: 28px 16px 8px;
}
h1 {
  margin: 0;
  font-size: 1.6rem;
  color: #111;
  letter-spacing: 0.02em;
}

/* ボタン群（フィルタ等） */
.buttons {
  text-align: center;
  margin: 12px 0 20px;
}
button {
  padding: 8px 14px;
  margin: 0 6px;
  cursor: pointer;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #333;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform .14s ease, box-shadow .14s ease;
}
button:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

/* 商品コンテナ：レスポンシブなグリッド（メルカリ風） */
#product-container {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  align-items: start;
}

/* カード */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(17,17,17,0.06);
  transition: transform .16s ease, box-shadow .16s ease;
  border: 1px solid rgba(0,0,0,0.03);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(17,17,17,0.10);
}

/* 画像 */
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
}

/* 情報エリア */
.card .info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
}
.card h2 {
  font-size: 0.98rem;
  margin: 0;
  color: #111;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 価格を強調（メルカリ系のピンク） */
.price {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ff3b6d;
}

/* 副情報（送料・出品者等） */
.meta {
  font-size: 0.85rem;
  color: #777;
}

/* アクションボタン（「いいね」「カート」風） */
.card .actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}
.btn-like {
  background: #fff;
  color: #ff3b6d;
  border: 1px solid #ffe6ee;
  box-shadow: 0 2px 6px rgba(255,59,109,0.06);
  width: 44px;
  padding: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.btn-buy {
  background: linear-gradient(90deg,#ff6c88,#ff3b6d);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,59,109,0.16);
}

/* フッター */
footer {
  text-align: center;
  color: #999;
  padding-bottom: 32px;
}

/* レスポンシブ微調整 */
@media (max-width: 700px) {
  #product-container { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card img { height: 140px; }
  .price { font-size: 1rem; }
}