/* catalog-easy.css — B2B catalog overrides & missing-class definitions */

/* ─── Discovery hero ───────────────────────────────────────────────────── */
.catalog-discovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px 24px;
  margin: 20px auto 18px;
  padding: 26px;
  max-width: 1480px;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #fffaf0 100%);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .06);
}
.catalog-discovery-copy { align-self: center; }
.catalog-discovery-kicker {
  margin-bottom: 7px;
  color: #b66b00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.catalog-discovery h1 {
  margin: 0 0 7px;
  color: #111827;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
}
.catalog-discovery p { margin: 0; color: #667085; font-size: 15px; }
.catalog-discovery-actions { display: flex; }
.catalog-category-open {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-radius: 14px;
  background: #f5a623;
  color: #171717;
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, background .16s ease;
}
.catalog-category-open:hover { background: #ffb733; transform: translateY(-1px); }
.catalog-category-open-icon { font-size: 22px; }
.catalog-category-open strong,
.catalog-category-open small { display: block; }
.catalog-category-open strong { font-size: 15px; }
.catalog-category-open small { margin-top: 2px; font-size: 11px; opacity: .72; }
.catalog-category-open-arrow { margin-left: auto; font-size: 20px; }
.catalog-discovery .catalog-search-row { grid-column: 1 / -1; padding: 0; margin: 0; }
.catalog-discovery .catalog-search-wrap { max-width: none; }
.catalog-discovery .catalog-search-input {
  height: 58px;
  padding-left: 52px;
  border: 2px solid #d0d5dd;
  border-radius: 14px;
  background: #fff;
  font-size: 17px;
}
.catalog-discovery .catalog-search-input:focus {
  border-color: #f5a623;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, .16);
}
.catalog-discovery .catalog-search-icon { left: 18px; color: #667085; }
.catalog-search-examples {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -8px;
  color: #667085;
  font-size: 12px;
}
.catalog-search-examples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-weight: 700;
  text-decoration: none;
}
.catalog-search-examples a:hover { background: #fff0cc; color: #8a5200; }

/* ─── Sidebar width ────────────────────────────────────────────────────── */
@media (min-width: 961px) {
  .catalog-outer { grid-template-columns: 272px 1fr; }
  .catalog-filter-drawer {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .catalog-filter-drawer-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .catalog-context-copy { display: none; }
  .catalog-context-card { padding: 14px; }
  .catalog-block-category { margin-bottom: 0; }
  .cat-toolbar { border-radius: 14px; }
}

/* ─── Price inputs: side-by-side ───────────────────────────────────────── */
.price-inputs {
  display: flex;
  flex-direction: row;
  gap: 6px;
}
.price-inputs .price-in { flex: 1; min-width: 0; }

/* ─── Active filter chips (in #active-filters and .catalog-facet-selected) */
.catalog-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 3px 4px 3px 0;
  padding: 4px 8px 4px 10px;
  background: var(--amber-bg, #fff8e1);
  border: 1px solid var(--amber, #f59e0b);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #111);
  white-space: nowrap;
}
.catalog-chip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(245, 158, 11, .2);
  color: #8a5200;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: background .12s;
}
.catalog-chip a:hover { background: var(--amber, #f59e0b); color: #fff; }
.catalog-chip.sort { background: var(--ink-3, #f3f4f6); border-color: var(--line-2, #e2e4e8); }

.catalog-active-clear {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .12s;
}
.catalog-active-clear:hover { color: #c05510; text-decoration: underline; }

/* ─── Facet groups (property name + checkboxes) ────────────────────────── */
.catalog-facet-group {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, #eaedf1);
}
.catalog-facet-group:last-of-type { border-bottom: none; }

.catalog-facet-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2, #444);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

/* ─── Details/summary collapse for facet sections ──────────────────────── */
.catalog-facet-section {
  margin-bottom: 0;
  border-bottom: 1px solid var(--line, #eaedf1);
}
.catalog-facet-section:last-of-type { border-bottom: none; }

.catalog-facet-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #111);
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
}
.catalog-facet-section > summary::-webkit-details-marker { display: none; }
.catalog-facet-section > summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .18s;
}
.catalog-facet-section[open] > summary::after { content: '−'; }
.catalog-facet-section > summary:hover { color: var(--amber, #f59e0b); }

/* content inside open section */
.catalog-facet-section > *:not(summary) { padding-bottom: 4px; }

/* ─── Selected facets area inside the card ─────────────────────────────── */
.catalog-facet-selected {
  padding: 10px 0 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line, #eaedf1);
}

/* ─── Apply button in picker ───────────────────────────────────────────── */
.catalog-facet-apply {
  padding: 6px 14px;
  background: var(--amber, #f59e0b);
  color: #171717;
  border: none;
  border-radius: var(--r-sm, 6px);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s;
}
.catalog-facet-apply:hover:not(:disabled) { background: #e08c00; }
.catalog-facet-apply:disabled { opacity: .45; cursor: default; }

/* ─── Show brand/PN and brief specs on product cards ───────────────────── */
.catalog-card-meta { display: flex !important; }
.catalog-card-copy { display: block !important; }

/* ─── Mobile tweaks ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .catalog-discovery {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 12px 12px 14px;
    padding: 18px;
    border-radius: 16px;
  }
  .catalog-discovery-actions { grid-row: 3; }
  .catalog-discovery .catalog-search-row { grid-row: 2; }
  .catalog-search-examples { grid-row: 4; margin-top: -2px; }
  .catalog-discovery .catalog-search-input { height: 52px; font-size: 16px; }
  .catalog-discovery p { font-size: 13px; }
  .catalog-mobile-bar { gap: 8px; }
  .catalog-mobile-summary { min-width: 0; }
}

@media (max-width: 520px) {
  .catalog-discovery-kicker { display: none; }
  .catalog-discovery h1 { font-size: 25px; }
  .catalog-discovery-copy p { display: none; }
  .catalog-search-examples span { width: 100%; }
  .catalog-category-open { padding: 13px 14px; }
  .catalog-category-open small { display: none; }
  .catalog-mobile-bar { padding-inline: 10px; }
  .catalog-mobile-bar .btn { padding-inline: 10px; }
}
