.lucide { width: 1em; height: 1em; flex-shrink: 0; stroke-width: 1.6; vertical-align: -0.12em; }

/* ── Layout ── */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 60px;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* ── Sidebar ── */
.catalog-sidebar {
  padding: 28px 0;
  padding-right: 28px;
  border-right: 1px solid var(--border);
  align-self: start;
}

/* search */
.search-wrap {
  position: relative;
  margin-bottom: 28px;
}
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  pointer-events: none;
  width: 14px; height: 14px;
}
.sidebar-search {
  width: 100%;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px 9px 34px;
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.sidebar-search::placeholder { color: var(--ink-mute); }
.sidebar-search:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,120,150,0.08);
}

/* filter group */
.filter-group { margin-bottom: 4px; }

.filter-group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 10px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background .12s, color .12s;
}
.filter-group-head:hover { background: var(--off); color: var(--ink); }
.filter-group-head-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.filter-group-head-arrow {
  margin-left: auto;
  width: 16px; height: 16px;
  color: var(--ink-mute);
  transition: transform .22s ease, color .12s;
  flex-shrink: 0;
}
.filter-group-head:hover .filter-group-head-arrow { color: var(--ink-dim); }
.filter-group.open .filter-group-head-arrow { transform: rotate(180deg); }
.filter-group.open .filter-group-head { color: var(--ink); }

.filter-body {
  display: none;
  padding-bottom: 6px;
}
.filter-group.open .filter-body { display: block; }

/* filter option */
.fopt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border-radius: 8px;
  margin: 1px -8px;
  cursor: pointer;
  transition: background .12s;
  user-select: none;
}
.fopt:hover { background: var(--off); }
.fopt.active { background: var(--accent-l); }

.fopt input[type="checkbox"],
.fopt input[type="radio"] { display: none; }

.fopt-box {
  width: 15px; height: 15px;
  border: 1.5px solid var(--border-d);
  border-radius: 4px;
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s;
  position: relative;
}
.fopt.radio .fopt-box { border-radius: 50%; }
.fopt.active .fopt-box {
  background: var(--accent);
  border-color: var(--accent);
}
.fopt.active:not(.radio) .fopt-box::after {
  content: '';
  position: absolute;
  left: 3px; top: 0px;
  width: 5px; height: 9px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.fopt.active.radio .fopt-box::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}

.fopt-label {
  font-size: 13px;
  color: var(--ink-dim);
  flex: 1;
  line-height: 1;
  transition: color .12s;
}
.fopt.active .fopt-label { color: var(--ink); font-weight: 500; }
.fopt:hover .fopt-label { color: var(--ink); }

.fopt-count {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-mute);
  background: var(--off2);
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: all .12s;
}
.fopt.active .fopt-count {
  background: rgba(26,120,150,0.14);
  color: var(--accent-d);
}

/* divider */
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0 4px;
}

/* sidebar footer */
.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-reset {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-mute);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.btn-reset:hover { color: var(--accent); }
.sidebar-count {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

/* ── Active chips ── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 12px 32px;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-d);
  background: var(--accent-l);
  border: 1px solid rgba(26,120,150,0.2);
  padding: 3px 8px 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
}
.active-chip:hover { background: rgba(26,120,150,0.2); }
.active-chip svg { width: 12px; height: 12px; stroke-width: 2.2; }

/* ── Catalog main ── */
.catalog-main { min-width: 0; }

.catalog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 32px 0 0 32px;
  margin-bottom: 2px;
}
.catalog-header h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.03em;
  color: var(--ink);
}
#resultsCount {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Grid ── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0 40px 32px;
}

.prod-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: border-color .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.prod-card:hover { border-color: var(--accent); }

.prod-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 16px;
}
.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.prod-card:hover .prod-card-img img {
  transform: scale(1.08);
}
.prod-img-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 3px 8px;
  border-radius: 5px;
}

.prod-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prod-card-brand {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}
.prod-card-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--ink-mute);
  transition: color .15s;
}
.prod-card:hover .prod-card-link { color: var(--accent); }
.prod-card-link .lucide { width: 13px; height: 13px; transition: transform .15s; }
.prod-card:hover .prod-card-link .lucide { transform: translateX(3px); }

#noResults {
  padding: 80px 32px;
  text-align: center;
}
#noResults p {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
#noResults small {
  font-size: 13px;
  color: var(--ink-mute);
  opacity: .6;
}

/* ── Mobile filters toggle (hidden on desktop) ── */
.sidebar-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.sidebar-toggle-left { display: flex; align-items: center; gap: 10px; }
.sidebar-toggle svg { width: 17px; height: 17px; color: var(--accent); }
.sidebar-toggle-arrow { transition: transform .22s ease; }
.catalog-sidebar.open .sidebar-toggle-arrow { transform: rotate(180deg); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; padding: 0 40px; }
  .catalog-sidebar {
    border-right: none;
    padding: 18px 0 0;
  }
  .sidebar-toggle { display: flex; }
  .sidebar-inner {
    display: none;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
  }
  .catalog-sidebar.open .sidebar-inner { display: block; }
  .catalog-header { padding-left: 0; padding-top: 24px; }
  .catalog-grid { padding-left: 0; }
  .active-filters { padding-left: 0; }
}
@media (max-width: 600px) {
  .catalog-layout { padding: 0 18px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 430px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
