/* =====================================================
   Products catalogue (v2) — loads after style.css + products.css
   ===================================================== */
:root { --accent: #e4572e; }
.eyebrow-accent { color: var(--accent); }
.eyebrow-accent.eyebrow-line::after { background: var(--accent); opacity: 1; }

/* ---------- hero ---------- */
/* Banner artwork is 2000 x 640; the hero keeps that ratio so it fits any width. */
.cat-hero {
  position: relative;
  height: clamp(260px, calc(100vw * 640 / 2000), 400px);
  background: #fff url("../assets/img/products-banner.jpg") left center / cover no-repeat;
  color: #fff;
  display: flex; align-items: center;
}
.cat-hero-inner { max-width: none; padding-left: 8.6%; padding-right: 45%; }
.cat-hero .eyebrow { color: #fff; margin-bottom: clamp(10px, 1.2vw, 18px); }
.cat-hero .eyebrow-line::after { background: #fff; }
.cat-hero h1 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(30px, 3.5vw, 52px); line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: clamp(12px, 1.4vw, 22px);
}
.cat-hero-inner > p:last-child { font-size: clamp(14px, 1.1vw, 16.5px); line-height: 1.5; max-width: 32em; opacity: .95; }

/* ---------- browse by category ---------- */
.browse { padding: clamp(36px, 3.5vw, 52px) 0 40px; border-bottom: 1px solid var(--line); }
.browse .section-head { margin-bottom: 22px; }
.browse .eyebrow { margin-bottom: 8px; }
.browse-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.browse .link-arrow { font-size: 13px; font-weight: 500; }
.browse-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.browse-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.browse-card > div { aspect-ratio: 373 / 361; overflow: hidden; background: #fafaf8; }
.browse-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.browse-card > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px; font-size: 12px; font-weight: 600; border-top: 1px solid var(--line); }
.browse-card .icon-arrow, .card2 .icon-arrow { color: var(--accent); width: 16px; height: 16px; }
.browse-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.07); }
.browse-card:hover img { transform: scale(1.05); }
.browse-card.is-active { border-color: var(--accent); }

/* ---------- catalog layout ---------- */
.catalog2 { padding: 28px 0 64px; scroll-margin-top: 64px; }
.catalog2-grid { display: grid; grid-template-columns: 190px 1fr; gap: 0; align-items: start; }

.filters { position: sticky; top: 84px; padding-right: 20px; border-right: 1px solid var(--line); min-height: 400px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.filters-head .eyebrow { margin: 0; font-size: 10.5px; white-space: nowrap; }
.filters-head { flex-wrap: wrap; }
.filters-head .eyebrow-line::after { width: 24px; }
.filters-clear { white-space: nowrap; }
.catalog2 [hidden] { display: none !important; }
.filters-clear, .link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--accent); cursor: pointer; text-decoration: underline; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; padding: 13px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left;
}
.filter-group-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.filter-group.is-open .filter-group-head svg { transform: rotate(180deg); }
.filter-options { display: none; padding: 0 0 14px; }
.filter-group.is-open .filter-options { display: block; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid #cfcfcb; border-radius: 3px; flex: none; cursor: pointer; display: grid; place-content: center; }
.check input::after { content: ""; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--muted); }
.check:hover { color: var(--ink); }
.filters-apply { width: 100%; justify-content: center; margin-top: 18px; padding: 11px 14px; }

.results { padding-left: 24px; min-width: 0; }
.results-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.results-count { font-size: 13px; color: var(--ink-soft); margin-right: auto; }
.results .sort-box { font-size: 13px; }
.results .sort-box select { font-size: 13px; padding: 9px 38px 9px 12px; min-width: 140px; }
.filters-toggle { display: none; }

.grid2 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (min-width: 1600px) { .grid2 { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1320px) { .grid2 { grid-template-columns: repeat(4, 1fr); } }
.card2 { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.card2:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.card2-img { aspect-ratio: 5 / 4; overflow: hidden; background: #f5f5f5; padding: 6% 4% 3%; }
.card2-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.card2:hover .card2-img img { transform: scale(1.06); }
.card2-img .pcard-placeholder { border-radius: 4px; }
.card2-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.card2-body strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.card2-body small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.card2:hover .icon-arrow { transform: translateX(3px); }
.catalog-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.load-more-wrap { text-align: center; margin-top: 28px; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--bg-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .browse-grid { grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cat-hero {
    height: auto; padding: 52px 0;
    background:
      linear-gradient(90deg, rgba(229,52,11,.97) 0%, rgba(229,52,11,.9) 55%, rgba(229,52,11,.35) 100%),
      #e5340b url("../assets/img/products-banner.jpg") 78% center / cover no-repeat;
  }
  .cat-hero-inner { padding: 0 24px; }
  .browse .section-head { flex-direction: row; align-items: flex-end; }
  .catalog2-grid { grid-template-columns: 1fr; }
  .results { padding-left: 0; }
  .filters { display: none; position: static; border-right: 0; padding: 4px 0 8px; min-height: 0; margin-bottom: 12px; }
  .filters.open { display: block; }
  .filters-toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px;
    background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px;
  }
  .filters-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .filters-toggle span { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
  .results-bar { flex-wrap: wrap; }
  .results-count { order: 3; width: 100%; margin: 0; }
  .results .sort-box { margin-left: auto; }
  .grid2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  .browse-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* last of 5 cards spans both columns; the collage stays whole, centred */
  .browse-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .browse-card:last-child > span { border-top: 0; border-left: 1px solid var(--line); height: 100%; justify-content: flex-start; gap: 12px; padding: 0 14px; font-size: 13px; }
  .browse .section-head { flex-direction: column; align-items: flex-start; }
  .results .sort-box span, .results .sort-box { gap: 8px; }
}

/* Mockup: section labels are grey with an orange rule */
.browse .eyebrow, .filters .eyebrow { color: var(--muted); }
