/* ===================================================
   BRICK-ANEW CATEGORY PAGE CSS
   Matches Figma design exactly
   =================================================== */

/* ===== GUIDES / RESOURCES BLOCK (Option 2: white card, red top bar) ===== */
.cat-guides-lead { padding: 56px 0 22px; }
.cat-guides-lead-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
  padding-top: 12px;
  position: relative;
}
/* Small brand accent line above the heading, matching the site's section accents */
.cat-guides-lead-heading::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 3px;
  background: #b01733;
  border-radius: 2px;
}
.cat-guides-lead-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 14px;
  max-width: 820px;
}
.cat-guides-lead-body p:last-child { margin-bottom: 0; }

.cat-guides { padding: 22px 0 56px; }
.cat-guides-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 34px 38px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
/* Thin brand-red bar across the top of the card */
.cat-guides-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #b01733;
}
.cat-guides-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 4px 0 10px;
}
.cat-guides-intro { margin: 0 0 20px; }
.cat-guides-intro p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #5b5b5b;
  margin: 0 0 12px;
}
.cat-guides-intro p:last-child { margin-bottom: 0; }
.cat-guides-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #b01733;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}
.cat-guides-cta:hover { background: #8e1229; }

/* Right side: one divided list, not separate cards */
.cat-guides-links {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
}
.cat-guides-links li + li a { border-top: 1px solid #f0f0f0; }
.cat-guides-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  text-decoration: none;
  color: #222;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.cat-guides-links a:hover { background: #fdf3f5; color: #b01733; }
.cat-guides-links a > .fa-book-open { color: #b01733; font-size: 14px; flex-shrink: 0; }
.cat-guides-links a span { flex: 1; }
.cat-guides-chevron { color: #c8c8c8; font-size: 12px; transition: transform .15s, color .15s; }
.cat-guides-links a:hover .cat-guides-chevron { color: #b01733; transform: translateX(3px); }

@media (max-width: 768px) {
  .cat-guides-inner { grid-template-columns: 1fr; gap: 24px; padding: 26px 22px; }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 12px 0;
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6c6c6c;
}

.breadcrumbs a {
  color: #6c6c6c;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #b01733;
}

.bc-sep {
  color: #a6a6a6;
}

.bc-current {
  color: #030303;
  font-weight: 500;
}

/* ===== HERO SECTION ===== */
.cat-hero {
  background: #fff;
  padding: 48px 0 40px;
  border-bottom: 1px solid #ebebeb;
}

.cat-hero-content {
  max-width: 860px;
}

.cat-compat-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ecf9ee;
  border: 1px solid #b7e1bd;
  color: #155324;
  border-radius: 999px;
  padding: 8px 16px 8px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  font-family: 'Manrope', sans-serif;
}
.cat-compat-banner i { color: #2a9347; font-size: 14px; }
.cat-compat-banner strong { font-weight: 700; }

.cat-hero-title {
  font-family: 'Lato', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #030303;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.cat-hero-desc p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 1.6;
  margin: 0 0 1.25em 0;
}

.cat-hero-desc p:last-child {
  margin-bottom: 0;
}

/* ===== BANNER ===== */
.cat-banner {
  background: #fff;
  padding: 32px 0;
  border-bottom: 1px solid #ebebeb;
}

.cat-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cat-banner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #030303;
}

.banner-icon {
  flex-shrink: 0;
}

/* ===== PRODUCTS SECTION ===== */
.cat-products {
  background: #f1f1f1;
  padding: 40px 0 64px;
}

/* Segment Control */
.cat-segment-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.cat-segment {
  display: inline-flex;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.cat-seg-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6c6c6c;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-transform: capitalize;
}

.cat-seg-btn.active {
  background: #b01733;
  color: #fff;
  font-weight: 600;
}

.cat-seg-btn:hover:not(.active) {
  background: rgba(176,23,51,0.08);
  color: #b01733;
}

/* Layout: Filter + Cards */
.cat-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ===== SHOP FILTER-LAYOUT PREVIEW (showcase) ===== */
.shop-preview-switch {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff7f8; border: 1px solid #f0d6db; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 18px;
  font-size: 13px; font-family: 'Manrope', sans-serif;
}
.shop-preview-switch > span { color: #777; font-weight: 600; }
.shop-preview-switch a {
  padding: 6px 12px; border-radius: 8px; border: 1px solid #e0d0d3;
  color: #b01733; text-decoration: none; font-weight: 600;
}
.shop-preview-switch a.active { background: #b01733; color: #fff; border-color: #b01733; }

/* Variant: collapsible "Filters" pill above the grid (collapsed by default).
   NOTE: a desktop rule (.filter-body,.filter-footer{display:block!important})
   forces these visible, so the overrides below must use !important to win. */
.cat-layout--top { display: block; }
.cat-layout--top .cat-filter {
  width: 100%; margin-bottom: 22px;
  background: transparent; box-shadow: none; border-radius: 0; overflow: visible;
}
/* Collapsed state = a compact bordered pill button, not a big bar */
.cat-layout--top .filter-header {
  display: inline-flex; width: auto; gap: 10px;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1.5px solid #e0e0e0;
}
.cat-layout--top .cat-filter.filter-open .filter-header { border-color: #b01733; }
.cat-layout--top .filter-title { font-size: 14px; }
.cat-layout--top .filter-toggle-icon { transition: transform .2s; color: #888; }
.cat-layout--top .cat-filter.filter-open .filter-toggle-icon { transform: rotate(180deg); color: #b01733; }

/* Body + footer hidden until expanded; expand into one full-width card below */
.cat-layout--top .filter-body { display: none !important; }
.cat-layout--top .filter-footer { display: none !important; }
.cat-layout--top .cat-filter.filter-open .filter-body {
  display: flex !important; flex-direction: row; flex-wrap: wrap; align-items: flex-start;
  gap: 18px 24px;
  margin-top: 12px; padding: 20px 22px;
  background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.cat-layout--top .filter-group { flex: 0 1 180px; min-width: 150px; max-width: 240px; margin: 0; }
.cat-layout--top .filter-group--price { flex: 0 1 240px; max-width: 300px; }

/* Footer: one continuous card, buttons aligned, no divider line */
.cat-layout--top .cat-filter.filter-open .filter-footer {
  display: flex !important; gap: 12px; align-items: stretch;
  padding: 0 22px 20px; border-top: none;
  background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.cat-layout--top .filter-apply-btn { width: auto; flex: 0 0 auto; margin: 0; padding: 11px 36px; }
.cat-layout--top .filter-clear-btn { width: auto; flex: 0 0 auto; margin: 0; padding: 11px 26px; }
.cat-layout--top .cat-cards-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .cat-layout--top .cat-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cat-layout--top .cat-cards-grid { grid-template-columns: 1fr; } }

/* Cascading sub-category dropdown — hidden until a category is chosen */
.filter-group[hidden] { display: none !important; }
.filter-subcat-group .filter-label::before { content: '↳ '; color: #b01733; }

/* ===== FILTER SIDEBAR ===== */
.cat-filter {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.filter-header {
  background: #b01733;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.filter-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #030303;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select-wrap {
  position: relative;
}
/* The ::after caret below is the dropdown arrow; the inline <i> is redundant. */
.filter-select-wrap > i { display: none; }

.filter-select {
  width: 100%;
  padding: 9px 32px 9px 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #030303;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: #b01733;
}

.filter-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c6c6c;
  pointer-events: none;
  font-size: 12px;
}

/* Price Range */
.filter-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-min,
.price-max {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6c6c6c;
  white-space: nowrap;
}

.price-slider-wrap {
  flex: 1;
  position: relative;
}

.price-slider {
  width: 100%;
  accent-color: #b01733;
  cursor: pointer;
}

.price-thumb-label {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #b01733;
  margin-top: 4px;
}

/* Checkboxes */
.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #030303;
  cursor: pointer;
}

.filter-check input[type="checkbox"] {
  accent-color: #b01733;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-count {
  color: #a6a6a6;
  font-size: 12px;
}

/* Filter Footer */
.filter-footer {
  padding: 16px 20px;
  border-top: 1px solid #ebebeb;
}

.filter-apply-btn {
  width: 100%;
  padding: 12px;
  background: #b01733;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-apply-btn:hover {
  background: #8e1229;
}

/* ===== PRODUCT CARDS GRID ===== */
.cat-cards-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.cat-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.cat-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
}

.cat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s ease;
}

.cat-product-card:hover .cat-card-img-wrap img {
  transform: scale(1.06);
}

.cat-card-stars-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff8ea;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffc74f;
  z-index: 2;
}

.cat-sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #b01733;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.cat-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.cat-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #030303;
  margin: 0;
  line-height: 1.3;
  min-height: 42px;
}

.cat-card-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.cat-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.cat-card-price-label {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6b6b6b;
  flex: 1;
}

.cat-card-price {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a6b5a;
}

.cat-card-price-old {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #a5a5a5;
  text-decoration: line-through;
}

.cat-card-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #030303;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.cat-card-btn:hover {
  background: #2a2a2a;
  color: #fff;
}

.cat-card-free-ship {
  font-size: 12px;
  font-weight: 600;
  color: #1a6b5a;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: -2px;
}
.cat-card-free-ship.is-hidden {
  visibility: hidden;
}

.cat-product-card {
  cursor: pointer;
}

/* ===== BRANDS SECTION ===== */
.cat-brands {
  background: #fff;
  padding: 48px 0;
}
.cat-brands-title {
  font-family: 'Lato', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #030303;
  text-align: center;
  margin: 0 0 32px 0;
}
.cat-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.cat-brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.cat-brand-tile:hover {
  border-color: #b01733;
  box-shadow: 0 4px 16px rgba(176, 23, 51, 0.08);
  transform: translateY(-2px);
}
.cat-brand-logo {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.cat-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  height: auto;
  width: auto;
}
.cat-brand-name {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #030303;
  line-height: 1.3;
  margin-bottom: 4px;
}
.cat-brand-count {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #b01733;
}

/* ===== "WHY BUY" FEATURE GRID ===== */
.cat-features {
  background: #fbf4f5;
  padding: 64px 0;
}
.cat-features-title {
  font-family: 'Lato', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #030303;
  text-align: center;
  margin: 0 0 40px 0;
  line-height: 1.25;
}
.cat-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-feature {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cat-feature-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cat-feature-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cat-feature-title {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #030303;
  margin: 0 0 10px;
  line-height: 1.3;
}
.cat-feature-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .cat-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cat-features-grid { grid-template-columns: 1fr; }
}

/* ===== DESCRIPTION SECTION ===== */
.cat-description {
  background: #fff;
  padding: 64px 0;
}

.cat-description > .container {
  max-width: 880px;
}

.cat-desc-block {
  margin-bottom: 56px;
}
.cat-desc-block:last-child {
  margin-bottom: 0;
}

/* --- Headings --- */
.cat-desc-h2 {
  font-family: 'Lato', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #030303;
  margin: 0 0 20px 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.cat-desc-block h3 {
  font-family: 'Lato', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #030303;
  margin: 32px 0 12px;
  line-height: 1.3;
}
.cat-desc-block h4 {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #030303;
  margin: 24px 0 8px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --- Body text --- */
.cat-desc-block p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #4a4a4a;
  line-height: 1.75;
  margin: 0 0 16px 0;
}
.cat-desc-block p:last-child {
  margin-bottom: 0;
}
.cat-desc-block strong { color: #030303; font-weight: 600; }
.cat-desc-block em     { color: #030303; }

/* --- Links --- */
.cat-desc-block a {
  color: #b01733;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s;
}
.cat-desc-block a:hover { color: #8a1229; }

/* --- Lists --- */
.cat-desc-block ul,
.cat-desc-block ol {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.75;
  margin: 0 0 20px 0;
  padding-left: 1.5em;
}
.cat-desc-block ul li,
.cat-desc-block ol li { margin: 0 0 6px; }
.cat-desc-block ul { list-style: none; padding-left: 0; }
.cat-desc-block ul li {
  position: relative;
  padding-left: 1.4em;
}
.cat-desc-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b01733;
}

/* Two-column list for short items (brand names, sizes) */
.cat-desc-block ul.two-col {
  columns: 2;
  column-gap: 32px;
}

/* --- Images --- */
.cat-desc-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 20px auto;
}
/* Side-by-side when two imgs are direct siblings */
.cat-desc-block img + img {
  margin-top: 20px;
}
@media (min-width: 768px) {
  .cat-desc-block p + img + img {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
    margin: 16px 4px 0;
  }
}

/* (Inline-button treatment for standalone links removed 2026-07-14 per
   Richard: links inside category descriptions are ALWAYS plain text links.
   The rule could not distinguish a standalone CTA from a mid-sentence link
   and was rendering in-copy links as buttons.) */

/* --- Blockquote / callout --- */
.cat-desc-block blockquote,
.cat-desc-block .callout {
  margin: 24px 0;
  padding: 20px 24px;
  background: #fbf4f5;
  border-left: 4px solid #b01733;
  border-radius: 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #030303;
  line-height: 1.7;
}

/* --- Tables --- */
.cat-desc-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
}
.cat-desc-block th,
.cat-desc-block td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
}
.cat-desc-block th {
  background: #f7f7f7;
  font-weight: 700;
  color: #030303;
}

/* --- <hr /> --- */
.cat-desc-block hr {
  border: 0;
  border-top: 1px solid #e6e6e6;
  margin: 32px 0;
}

/* --- Float image + wrapped text (editor adds class="align-right") --- */
@media (min-width: 768px) {
  .cat-desc-block img.align-right,
  .cat-desc-block .wp-caption.align-right {
    float: right;
    max-width: 42%;
    margin: 0 0 20px 24px;
  }
  .cat-desc-block img.align-left,
  .cat-desc-block .wp-caption.align-left {
    float: left;
    max-width: 42%;
    margin: 0 24px 20px 0;
  }
}
.cat-desc-block::after {
  content: '';
  display: block;
  clear: both;
}

/* Steps */
.cat-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cat-step {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 3px solid #b01733;
}

.step-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #030303;
  margin: 0 0 8px 0 !important;
}

.step-body {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 1.6;
  margin: 0 !important;
}

/* ===== FAQ SECTION ===== */
.cat-faq {
  background: #f1f1f1;
  padding: 64px 0;
}

.faq-preheader {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto 16px;
  gap: 6px;
  background: rgba(176,23,51,0.08);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #b01733;
}

.faq-title {
  font-family: 'Lato', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #030303;
  margin: 0 0 32px 0;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
}

.faq-q-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.faq-num {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #b01733;
  flex-shrink: 0;
}

.faq-q-text {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #030303;
  line-height: 1.4;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid #f0f0f0;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 1.6;
  margin: 16px 0 0 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cat-layout {
    flex-direction: column;
  }

  .cat-filter {
    width: 100% !important;
  }

  /* Segment: centred */
  .cat-segment-wrap {
    overflow-x: visible;
    justify-content: center;
    padding-bottom: 4px;
  }
  .cat-segment {
    flex-shrink: 0;
  }

  /* Filter: collapsible on mobile */
  .filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }
  .filter-toggle-icon {
    font-size: 13px;
    color: #888;
    transition: transform 0.25s;
  }
  .cat-filter.filter-open .filter-toggle-icon {
    transform: rotate(180deg);
  }
  .filter-body,
  .filter-footer {
    display: none !important;
  }
  .cat-filter.filter-open .filter-body {
    display: flex !important;
  }
  .cat-filter.filter-open .filter-footer {
    display: block !important;
  }
  /* Hide the chevron icon on desktop */

  /* Mobile banner: rotate one item at a time */
  .cat-banner-inner {
    position: relative;
    height: 36px;
    justify-content: center;
  }
  .cat-banner-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    white-space: nowrap;
    justify-content: center;
  }
  .cat-banner-item.active {
    opacity: 1;
  }

  .cat-hero-title {
    font-size: 28px;
  }

  .faq-title {
    font-size: 28px;
  }
}

@media (min-width: 769px) {
  .filter-toggle-icon { display: none; }
  /* Keep the sidebar filter open on desktop. .filter-body must stay FLEX:
     forcing `block` here silently killed its `gap: 16px`, so every filter
     group sat flush against the next (measured: 0px between Price, Type,
     Brand, Colour, Material). The footer is block by design. */
  .filter-body { display: flex !important; }
  .filter-footer { display: block !important; }
}

@media (max-width: 768px) {
  .cat-cards-grid {
    grid-template-columns: 1fr !important;
  }
}



/* ===== OVERRIDES TO MATCH FIGMA EXACTLY ===== */

/* Hero - center aligned text */
.cat-hero {
  background: #fff;
  padding: 40px 0;
  border-bottom: none;
}

.cat-hero-content {
  max-width: 100%;
  text-align: center;
}

.cat-hero-title {
  font-family: 'Lato', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #030303;
  margin: 0 0 20px 0;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
}

.cat-hero-desc p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 1.6;
  margin: 0 0 1.25em 0;
  text-align: center;
  letter-spacing: 0.64px;
}

/* Banner - light pink bg with radius */
.cat-banner {
  background: #fff;
  padding: 24px 0;
  border-bottom: none;
}

.cat-banner-inner {
  background: #f8eef0;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cat-banner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #030303;
  letter-spacing: 0.64px;
}

/* Segment control - grey bg, dark active tab */
.cat-segment {
  display: inline-flex;
  background: #f2f2f2;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  box-shadow: none;
}

.cat-seg-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #a5a5a5;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-seg-btn.active {
  background: #ffffff;
  color: #030303;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.cat-seg-btn:hover:not(.active) {
  color: #030303;
}

/* Filter sidebar - white, no red header */
.cat-filter {
  width: 291px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
}

.filter-header {
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.filter-title {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #030303;
  letter-spacing: 0.8px;
}

.filter-body {
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Product grid - 3 columns desktop, responsive via media queries */
.cat-cards-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.cat-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.cat-card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f5f5f5;
  overflow: hidden;
}

.cat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.cat-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.cat-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #030303;
  margin: 0;
  line-height: 1.3;
}

.cat-card-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cat-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

/* Products section background */
.cat-products {
  background: #f1f1f1;
  padding: 40px 0 64px;
}

/* Radio button styling to match Figma */
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #030303;
  cursor: pointer;
  padding: 4px 0;
}

.filter-check input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d0d0d0;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.filter-check input[type="radio"]:checked {
  border-color: #b01733;
  background: #b01733;
  box-shadow: inset 0 0 0 3px #fff;
}

.filter-check input[type="radio"]:hover {
  border-color: #b01733;
}


/* Radio button styling to match Figma */
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #030303;
  cursor: pointer;
  padding: 4px 0;
}
.filter-check input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d0d0d0;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.filter-check input[type=radio]:checked {
  border-color: #b01733;
  background: #b01733;
  box-shadow: inset 0 0 0 3px #fff;
}
.filter-check input[type=radio]:hover {
  border-color: #b01733;
}


/* Brand logo styles in filter */
.brand-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-logo.heat-glo {
  font-family: Arial, sans-serif;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.brand-logo.heatilator {
  font-family: Arial, sans-serif;
  color: #333;
  font-style: italic;
  font-weight: 600;
}

/* ============================================================
   CATEGORY ADDITIONS (not in v2 HTML)
   ============================================================ */

/* Font Awesome banner icons (replace inline SVGs) */
.banner-icon-fa {
  font-size: 26px;
  color: #b01733;
  flex-shrink: 0;
}

/* Subcategory tiles (when category has children) */
.cat-subcategories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 40px 0 40px;
}
.cat-subcat-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
}
.cat-subcat-tile:hover {
  border-color: #b01733;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.cat-subcat-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
}
.cat-subcat-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}
.cat-subcat-body {
  flex: 1;
  min-width: 0;
}
.cat-subcat-name {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.cat-subcat-count {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #888;
}
.cat-subcat-arrow {
  color: #b01733;
  font-size: 12px;
  padding-left: 6px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.cat-subcat-tile:hover .cat-subcat-arrow {
  transform: translateX(3px);
}

/* Clear filter button */
.filter-clear-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  transition: all 0.15s;
  box-sizing: border-box;
}
.filter-clear-btn:hover {
  border-color: #b01733;
  color: #b01733;
}

/* No results state */
.cat-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: #fafafa;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
}
.cat-no-results i {
  font-size: 40px;
  color: #ccc;
  margin-bottom: 16px;
  display: block;
}
.cat-no-results h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
.cat-no-results p {
  color: #666;
  margin: 0;
}
.cat-no-results a {
  color: #b01733;
  font-weight: 600;
}

/* Pagination */
.cat-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 40px;
}
.cat-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
}
.cat-pagination .page-numbers:hover:not(.current) {
  border-color: #b01733;
  color: #b01733;
}
.cat-pagination .page-numbers.current {
  background: #b01733;
  border-color: #b01733;
  color: #fff;
}
.cat-pagination .page-numbers.dots {
  border: none;
  color: #aaa;
}
.cat-pagination .page-numbers i { font-size: 10px; }

/* Make segment tabs behave like anchor links visually */
.cat-segment a.cat-seg-btn {
  text-decoration: none;
}

/* Live price slider value update */
.price-thumb-label {
  min-width: 60px;
  text-align: center;
}

/* Make product card images link-friendly */
.cat-card-img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}
.cat-card-title a {
  color: inherit;
  text-decoration: none;
}
.cat-card-title a:hover {
  color: #b01733;
}

/* Responsive: filter collapses on mobile */
@media (max-width: 900px) {
  .cat-subcategories {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* A little more air under the Sort dropdown before the Price block; the
   sidebar's 16px group gap read as cramped there. The top-bar layout lays the
   groups out in a row, so it keeps its own spacing. */
.filter-body > .filter-group:first-child { margin-bottom: 10px; }
.cat-layout--top .filter-body > .filter-group:first-child { margin-bottom: 0; }
