/* ROOFER — catalog (archive product) industrial */

/* ---------- Breadcrumbs strip ---------- */
.cat-breadcrumbs {
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
}

.cat-breadcrumbs-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 32px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-wrap: wrap;
  color: var(--orange);
}

.cat-breadcrumbs .woocommerce-breadcrumb {
  margin: 0;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cat-breadcrumbs a {
  color: var(--ink);
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cat-breadcrumbs a:hover {
  opacity: 1;
  color: var(--orange);
}

.cat-breadcrumbs-sep {
  display: inline-block;
  margin: 0 8px;
  color: var(--ink);
  opacity: 0.4;
}

/* ---------- Category hero ---------- */
.cat-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.cat-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: var(--paper-2);
  z-index: 0;
}

.cat-hero-grid {
  position: relative;
  z-index: 1;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cat-hero--shop .cat-hero-grid {
  grid-template-columns: 1fr;
  padding: 40px 32px;
}

.cat-hero-h1 {
  margin: 16px 0 0;
  line-height: 0.95;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.cat-hero-h1-accent {
  color: var(--orange);
}

.cat-hero-h1-brand {
  display: inline-block;
  margin-top: 8px;
  color: var(--orange);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  letter-spacing: 0.01em;
}

.cat-hero-intro {
  margin-top: 24px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(14, 14, 14, 0.75);
}

.cat-hero-intro p {
  margin: 0 0 8px;
}

.cat-hero-intro b {
  color: var(--ink);
}

.cat-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cat-hero-chips .chip {
  padding: 8px 14px;
  font-size: 11px;
}

.cat-hero-chip-key {
  opacity: 0.55;
}

.cat-hero-chip-val {
  color: var(--ink);
  font-weight: 700;
  margin-left: 4px;
}

.cat-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-hero-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- Layout ---------- */
.cat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 48px 32px 64px;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.cat-sidebar {
  position: sticky;
  top: calc(var(--header-height, 80px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-sidebar-mobile-head {
  display: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 16px;
}

.cat-sidebar-close {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

.filter-widget {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}

.filter-widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.filter-widget-title svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.filter-widget:not(.open) .filter-widget-title {
  border-bottom-color: transparent;
}

.filter-widget:not(.open) .filter-widget-title svg {
  transform: rotate(-90deg);
}

.filter-widget-body {
  padding: 12px 14px;
}

/* Categories list */
.cat-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(14, 14, 14, 0.15);
  color: var(--ink);
}

.cat-filter-list li:last-child .cat-filter-link {
  border-bottom: 0;
}

.cat-filter-link:hover .cat-filter-name {
  color: var(--orange);
}

.cat-filter-link.is-active {
  color: var(--paper);
  background: var(--ink);
  margin: 0 -14px;
  padding: 8px 14px;
  border-bottom-color: transparent;
}

.cat-filter-link.is-active .cat-filter-count {
  color: var(--paper);
  opacity: 0.7;
}

.cat-filter-name {
  font-weight: 600;
}

.cat-filter-count {
  font-size: 10px;
  opacity: 0.55;
  letter-spacing: 0.1em;
}

/* Price filter */
.cat-price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-price-input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  font-size: 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.cat-price-input:focus {
  outline: none;
  border-color: var(--orange);
}

.cat-price-sep {
  font-family: var(--font-mono);
  opacity: 0.4;
}

.cat-price-apply {
  width: 100%;
  margin-top: 10px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  padding: 9px 12px;
  font-size: 11px;
  cursor: pointer;
}

.cat-price-apply:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.cat-price-apply:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Checkboxes */
.cat-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}

.cat-filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.cat-sidebar-extra {
  border-top: 1.5px dashed var(--ink);
  padding-top: 14px;
}

/* ---------- Main column ---------- */
.cat-main {
  min-width: 0;
}

.cat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.cat-toolbar-count {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.cat-toolbar-count-num {
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
}

.cat-toolbar-count-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.cat-toolbar-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-toolbar-sort-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.6;
  text-transform: uppercase;
}

.cat-sort-btn {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
}

.cat-sort-btn:hover {
  background: var(--paper-2);
}

.cat-sort-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}

.cat-mobile-filter {
  display: none;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Pagination */
.cat-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.cat-pagination .nav-links,
.cat-pagination .page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.cat-pagination .page-numbers.current {
  background: var(--ink);
  color: var(--paper);
}

.cat-pagination .page-numbers:hover:not(.current) {
  background: var(--paper-2);
}

.cat-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* Empty state */
.cat-empty {
  border: 1.5px dashed var(--ink);
  background: var(--paper);
  padding: 64px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cat-empty-num {
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.55;
}

.cat-empty-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
}

.cat-empty p {
  margin: 0;
  color: rgba(14, 14, 14, 0.7);
  font-size: 14px;
}

.cat-empty-cta {
  margin-top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cat-hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .cat-hero-bg { display: none; }
}

@media (max-width: 1024px) {
  .cat-layout { grid-template-columns: 220px 1fr; gap: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cat-layout { grid-template-columns: 1fr; padding: 32px 16px; }
  .cat-hero-grid { padding: 32px 16px; }
  .cat-mobile-filter { display: inline-flex; }
  .cat-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    z-index: 1100;
    background: var(--paper);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 8px 0 0 var(--ink);
    padding: 0 16px 16px;
    gap: 14px;
  }
  .cat-sidebar.open { transform: translateX(0); }
  .cat-sidebar-mobile-head { display: block; margin: 0 -16px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .cat-toolbar-count-num { font-size: 24px; }
  .cat-hero-h1 { font-size: 2.2rem; }
}
