@charset "UTF-8";

/* =========================================
   Product List Page Styles
========================================= */

.category-title {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

/* 均等配置のレスポンシブグリッド */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* カード本体 */
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(17, 163, 161, 0.15);
  /* Scienceカラーの影 */
  border-color: rgba(17, 163, 161, 0.3);
}

/* カード内の画像エリア */
.product-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.product-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* 白背景画像を綺麗に馴染ませる */
}

/* カード内のテキストエリア */
.product-card-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.product-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-card-price {
  margin-top: auto;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.6;
}

.price-tax {
  font-size: 0.85rem;
  font-weight: normal;
  color: #94a3b8;
}

/* レスポンシブ調整（スマホ向け） */
@media screen and (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 16px;
  }

  .product-card {
    flex-direction: row;
  }

  .product-card-img {
    width: 38%;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    border-right: 1px solid #f1f5f9;
    border-bottom: 0;
  }

  .product-card-body {
    min-width: 0;
    padding: 16px;
    text-align: left;
  }
}