/* V32: 用途別は「トップと同じカード表示」＋横タブ */
.category-page-v32{
  padding-top:18px;
  padding-bottom:36px;
}
.category-head-v32{
  margin:0 0 12px;
}
.category-head-v32 h1{
  margin:0 0 7px;
}
.category-head-v32 p{
  margin:0;
  color:var(--sub);
}
.category-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0 18px;
}
.category-tab{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font-weight:800;
  text-align:center;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(16,45,59,.04);
}
.category-tab:hover{
  background:#f5fbfc;
}
.category-tab.active{
  background:#0e7f8f;
  border-color:#0e7f8f;
  color:#fff;
}
.category-products-v32{
  margin-top:0;
}

/* V29トップと同じく商品画像は切り抜かず全体表示 */
.category-page-v32 .product-grid .product-card .product-image{
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:1 / 1 !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
}
.category-page-v32 .product-grid .product-card .product-image img,
.category-page-v32 .product-grid .product-card img.card-product-photo{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  transform:none !important;
  padding:10px !important;
  box-sizing:border-box !important;
  background:#fff !important;
}

@media(max-width:760px){
  .category-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}