/* ===========================
   商品一覧ページ
   =========================== */

/* ===========================
   商品一覧セクション
   =========================== */
.products-section {
  padding: 80px 0 100px;
}

/* ===========================
   カテゴリフィルター
   =========================== */
.products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.products-filter__btn {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--cyan);
  background: var(--white);
  color: var(--cyan);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.products-filter__btn:hover {
  background: var(--cyan);
  color: var(--white);
}

.products-filter__btn.is-active {
  background: var(--cyan);
  color: var(--white);
}

/* ===========================
   商品グリッド
   =========================== */
.products-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 60px;
}

.products-grid > li {
  width: calc((100% - 48px) / 3);
  max-width: 333px;
}

/* ===========================
   商品カード
   =========================== */
.product-card {
  background: #f1f3f5;
  border-radius: 30px;
  overflow: hidden;
  height: 100%;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.product-card__link:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 8px;
}

.product-card__price-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}

.product-card__price-unit {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--navy);
}

.product-card__desc {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #bebebe;
  line-height: 1.6;
  margin-top: auto;
}

/* ===========================
   ページネーション
   =========================== */
.products-pagination {
  display: flex;
  justify-content: center;
}

.products-pagination__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-pagination__link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.products-pagination__link:hover {
  background: var(--cyan);
  color: var(--white);
}

.products-pagination__link.is-current {
  background: var(--cyan);
  color: var(--white);
}

.products-pagination__link--next {
  font-size: 16px;
}

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 1100px) {
  .products-grid > li {
    width: calc((100% - 24px) / 2);
    max-width: none;
  }
}

@media (max-width: 767px) {
  .products-section {
    padding: 60px 0 80px;
  }

  .products-filter {
    gap: 8px;
    margin-bottom: 32px;
  }

  .products-filter__btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  .products-grid {
    gap: 16px;
    margin-bottom: 48px;
  }

  .products-grid > li {
    width: 100%;
    max-width: none;
  }

  .product-card__name {
    font-size: 18px;
  }

  .products-pagination__link {
    font-size: 16px;
    width: 40px;
    height: 40px;
  }

  .products-pagination__link--next {
    font-size: 14px;
  }
}
