/* ============================================================================
 * Product Category Archive ¡· Scoped & Header-Safe
 * ========================================================================== */

.yg-tax-cat{
  background: var(--yg-bg);
  color: var(--yg-text);
}

.yg-tax-cat__container{
  max-width:1200px;
  margin-inline:auto;
  padding:16px;
}

/* Header */
.yg-tax-cat__head{
  text-align:center;
  margin-bottom:14px;
}
.yg-tax-cat .yg-title{
  font-weight:900;
  font-size:clamp(20px,3.2vw,28px);
}
.yg-tax-cat .yg-divider{
  width:64px;
  height:4px;
  border-radius:6px;
  margin:10px auto 14px;
  background:linear-gradient(90deg,var(--yg-key),var(--yg-primary));
}

/* Intro */
.yg-tax-cat .yg-term-intro{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.yg-tax-cat .yg-term-thumb{
  width:60px;
  height:60px;
  border-radius:12px;
  overflow:hidden;
  border:2px solid var(--yg-key);
}
.yg-tax-cat .yg-term-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.yg-tax-cat .yg-term-desc{
  font-size:.95rem;
}

/* Grid */
.yg-tax-cat .yg-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(2,1fr);
}
@media (min-width:768px){
  .yg-tax-cat .yg-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width:1200px){
  .yg-tax-cat .yg-grid{ grid-template-columns:repeat(4,1fr); }
}

/* Product card */
.yg-tax-cat .product-card{
  background:#fff;
  border:2px solid var(--yg-key);
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  box-shadow:0 6px 14px rgba(0,0,0,.06);
  transition:transform .15s, box-shadow .25s;
}
.yg-tax-cat .product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(255,179,0,.30);
}
.yg-tax-cat .thumb{
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.yg-tax-cat .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.yg-tax-cat .product-title{
  padding:10px 12px;
  font-weight:800;
  text-align:center;
  font-size:.97rem;
}
.yg-tax-cat .yg-line-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Accent */
.yg-tax-cat .yg-accent-bar{
  height:4px;
  width:0;
  background:linear-gradient(90deg,var(--yg-key),var(--yg-primary));
  transition:width .3s;
}
.yg-tax-cat .product-card:hover .yg-accent-bar{ width:100%; }

/* Pagination */
.yg-tax-cat .pag{
  margin:16px 0;
}
.yg-tax-cat .pag a,
.yg-tax-cat .pag span{
  display:inline-block;
  padding:8px 12px;
  margin:0 3px;
  border-radius:12px;
  font-weight:800;
}
.yg-tax-cat .pag a:hover{
  background:#FFE08A;
  border:2px solid var(--yg-primary);
}
.yg-tax-cat .pag .current{
  background:var(--yg-primary);
  color:#111;
}
