/* ══════════════════════════════════════════
   Formlabs Category — /product-category/formlabs/
   ══════════════════════════════════════════ */

/* ── CATEGORY HERO ── */
.cat-hero { background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%); color: #fff; padding: 64px 0; }
.cat-hero .breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 20px; flex-wrap: wrap; }
.cat-hero .breadcrumbs a { color: rgba(255,255,255,0.8); }
.cat-hero .breadcrumbs a:hover { color: #fff; }
.cat-hero .breadcrumbs .sep { opacity: 0.5; }
.cat-hero .breadcrumbs .here { color: #fff; }
.cat-hero-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.cat-hero .logo-box { width: 120px; height: 120px; background: #fff; border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.cat-hero h1 { color: #fff; margin: 0 0 8px; }
.cat-hero .desc { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0; }
.cat-hero .meta { display: flex; gap: 32px; font-size: 14px; color: rgba(255,255,255,0.7); }
.cat-hero .meta .v { color: #fff; font-weight: 700; font-size: 24px; display: block; margin-bottom: 4px; }

/* ── SUBCATEGORIES ── */
.subcats { padding: 48px 0 16px; }
.subcats-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.subcat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 20px; text-align: center; transition: all .2s; box-shadow: var(--shadow-card); }
.subcat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: var(--tech-blue); }
.subcat-card .img { aspect-ratio: 1/1; background: var(--light-bg); border-radius: var(--radius-btn);
  overflow: hidden; margin-bottom: 12px; }
.subcat-card .img img { width: 100%; height: 100%; object-fit: cover; }
.subcat-card .nm { font-weight: 600; font-size: 15px; }
.subcat-card .ct { font-size: 12px; color: var(--secondary); margin-top: 4px; }

/* ── CATALOG LAYOUT ── */
.catalog { padding: 32px 0 80px; }
.catalog-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }

/* ── FILTERS ── */
.filters { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 24px; position: sticky; top: 24px; }
.filters h3 { font-size: 18px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.filter-group .label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.filter-group label.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; }
.filter-group label.opt:hover { color: var(--tech-blue); }
.filter-group label.opt .ct { margin-left: auto; color: var(--secondary); font-size: 12px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-btn); font: inherit; font-size: 13px; }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { flex: 1; font-size: 13px; padding: 10px; }
.filter-clear { background: transparent; color: var(--secondary); border: 1px solid var(--border); }
.filter-clear:hover { color: var(--primary); border-color: var(--primary); }

/* ── LISTING ── */
.listing-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.listing-head .count { color: var(--secondary); font-size: 14px; }
.listing-head .count b { color: var(--primary); }
.listing-head .sort { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--secondary); }
.listing-head .sort select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  font: inherit; font-size: 14px; background: #fff; color: var(--primary); cursor: pointer; }

/* ── PRODUCT CARDS ── */
.products { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.product-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; transition: all .2s; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.product-card .img { aspect-ratio: 1/1; background: var(--light-bg); position: relative; overflow: hidden; }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .img img { transform: scale(1.04); }
.product-card .badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.product-card .badge.new { background: var(--cta); color: var(--primary); }
.product-card .badge.sale { background: #ef4444; color: #fff; }
.product-card .badge.best { background: var(--tech-blue); color: #fff; }
.product-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .tag { font-size: 12px; font-weight: 600; color: var(--tech-blue); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 6px; }
.product-card h3 { font-size: 18px; margin-bottom: 6px; line-height: 1.3; }
.product-card .desc { font-size: 13px; color: var(--secondary); flex: 1; margin-bottom: 14px; }
.product-card .price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.product-card .price { font-size: 22px; font-weight: 700; }
.product-card .price small { font-size: 12px; color: var(--secondary); font-weight: 400; margin-left: 4px; }
.product-card .price-old { color: var(--secondary); text-decoration: line-through; font-size: 14px; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-size: 14px; font-weight: 500; transition: all .15s; }
.pagination a:hover { border-color: var(--tech-blue); color: var(--tech-blue); }
.pagination .current { background: var(--tech-blue); color: #fff; border-color: var(--tech-blue); }

/* ── SEO BLOCK ── */
.seo-block { margin-top: 80px; padding: 48px; background: var(--light-bg); border-radius: var(--radius-card); }
.seo-block h2 { font-size: 24px; margin-bottom: 12px; }
.seo-block p { color: var(--secondary); font-size: 15px; }

/* ── WooCommerce overrides for Formlabs category ── */
.woocommerce ul.products li.product {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all .2s;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .products { grid-template-columns: repeat(2,1fr); }
  .subcats-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .cat-hero { padding: 40px 0; }
  .cat-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .subcats-grid { grid-template-columns: repeat(2,1fr); }
  .products { grid-template-columns: 1fr; }
  .seo-block { padding: 24px; }
}
