/* === Product List ページ固有スタイル ===
   すべてのルールは .product-list-page でスコープされています。
   共通スタイルは common.css を参照してください。
   ================================================= */


/* メインコンテンツ */
.product-list-page .main-content {
  min-height: calc(100vh - 200px);
  padding: 4.5rem 0 3rem 0;
}

/* ヘッダーのグローバル検索を表示する */
.product-list-page .header .search-form {
  display: flex !important;
}

.product-list-page .container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ページヘッダー */
.product-list-page .page-header {
  text-align: left;
  margin-bottom: 2rem;
  width: 1272px;
  max-width: 100%;
}

.product-list-page .page-header h1 {
  font-size: 2.5rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.product-list-page .page-header p {
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 400;
}

/* 検索セクション */
.product-list-page .search-section {
  margin-bottom: 2rem;
  width: 1272px;
  max-width: 100%;
}

.product-list-page .search-bar {
  width: 580px;
  max-width: 100%;
  height: 50px;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  background: white;
  border-radius: 16px;
  padding: 0 1.2rem;
  border: 2px solid #c1d9e5;
  box-shadow: none;
}

.product-list-page .search-icon {
  margin-right: 0.8rem;
  width: 18px;
  height: 18px;
  border: 2px solid #5f6368;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.product-list-page .search-icon::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 7px;
  background-color: #5f6368;
  bottom: -4px;
  right: -2px;
  transform: rotate(-45deg);
  border-radius: 1px;
}

.product-list-page .search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #1f2937;
}

.product-list-page .search-bar input::placeholder {
  color: #9ca3af;
}

/* カテゴリセクション */
.product-list-page .category-section {
  margin-bottom: 2rem;
  width: 1272px;
  max-width: 100%;
}

.product-list-page .category-section h3 {
  font-size: 0.8125rem;
  color: #5f6368;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.product-list-page .category-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-list-page .category-btn {
  padding: 0.8rem 1.8rem;
  border: 2px solid rgb(62, 79, 103);
  border-radius: 50px;
  background-color: #ffffff;
  color: rgb(62, 79, 103);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: background-color 0.18s ease, transform 0.12s ease, opacity 0.12s ease;
}

.product-list-page .category-btn:hover {
  background-color: #f6f7fb;
  border-color: rgb(52, 69, 93);
  opacity: 0.98;
}

.product-list-page .category-btn.active {
  background-color: rgb(62, 79, 103);
  color: #ffffff;
  border-color: rgb(62, 79, 103);
}

/* フィルターセクション */
.product-list-page .filter-section {
  background: white;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border: 2px solid #c1d9e5;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1);
  width: 1272px;
  max-width: 100%;
}

.product-list-page .filter-group {
  flex: 1;
  min-width: 200px;
}

.product-list-page .filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #5f6368;
  font-size: 0.875rem;
  font-weight: 400;
}

.product-list-page .filter-group select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 2px solid #c1d9e5;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #202124;
  background-color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: all 0.3s;
}

.product-list-page .filter-group select:hover {
  border-color: #d0e8f2;
}

.product-list-page .filter-group select:focus {
  border-color: #1a73e8;
  background-color: white;
}

/* 商品数表示 */
.product-list-page .product-count {
  margin-bottom: 1.5rem;
  color: #5f6368;
  font-size: 0.8125rem;
  width: 1272px;
  max-width: 100%;
}

.product-list-page .product-count span {
  font-weight: 600;
  color: #202124;
}

/* 商品グリッド、カード関連のスタイルは common.css に移動しました */

/* ────── レスポンシブ ────── */
@media (max-width: 768px) {
  .product-list-page .main-content {
    padding: 2.5rem 0 2rem;
  }

  .product-list-page .container {
    padding: 0 1rem;
  }

  .product-list-page .page-header,
  .product-list-page .search-section,
  .product-list-page .category-section,
  .product-list-page .filter-section,
  .product-list-page .product-count,
  .product-list-page .product-grid {
    width: 100%;
    max-width: 100%;
  }

  .product-list-page .search-bar {
    width: 100%;
    max-width: 100%;
  }

  .product-list-page .filter-section {
    gap: 1rem;
  }

  .product-list-page .filter-group {
    min-width: 0;
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .product-list-page .main-content {
    padding: 2rem 0 1.5rem;
  }

  .product-list-page .container {
    padding: 0 0.75rem;
  }

  .product-list-page .search-bar {
    max-width: 100%;
    padding: 0 0.9rem;
  }

  .product-list-page .page-header h1 {
    font-size: 1.8rem;
  }

  .product-list-page .filter-group {
    flex: 1 1 100%;
  }

  .product-list-page .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
  }
}




