/* public/assets/css/subcategory-collectibles.css
   Styles scoped ONLY to the Collectibles subcategory pages.
   IMPORTANT: Requires a wrapper on the page:
     <div class="tsc-subcategory collectibles-subcategory"> ...

   This file is designed to restore the boxed filter UI you approved:
   - Sharp edges (no border-radius)
   - White section headers + light-grey bodies
   - Button-like chips (not underlined links)
   - Scrollable Shop By Categories list
   - Results bar neutral grey
   - Item Type dropdown panel (All -> dropdown options)
   - Condition tier UI (New/Used only visible; sub-options appear when selected)
*/

/* ---------- Base scope ---------- */
.collectibles-subcategory {
  --tsc-border: #e2e2e2;
  --tsc-bg: #f2f2f2;
  --tsc-white: #ffffff;
  --tsc-text: #111111;
  --tsc-muted: #6c757d;
}

/* Prevent global link styling from bleeding into chips */
.collectibles-subcategory a {
  text-decoration: none;
}

/* ---------- Layout helpers ---------- */
.collectibles-subcategory .tsc-wrap { padding-left: 6px; padding-right: 12px; }
@media (min-width: 992px) {
  .collectibles-subcategory .tsc-wrap { padding-left: 6px; padding-right: 16px; }
}

/* Breadcrumb + title sizing (small crumb) */
.collectibles-subcategory .tsc-bc { display:flex; flex-direction:column; align-items:center; gap:6px; }
.collectibles-subcategory .tsc-bc .breadcrumb { justify-content:center; margin-bottom:0; font-size:12px; }
.collectibles-subcategory .tsc-sub-under-bc { font-size:32px; font-weight:700; line-height:1.1; margin:0; }

/* ---------- Sidebar cards ---------- */
.collectibles-subcategory .tsc-card {
  border: 1px solid var(--tsc-border);
  background: var(--tsc-bg);
}

.collectibles-subcategory .tsc-card,
.collectibles-subcategory .tsc-btn,
.collectibles-subcategory .tsc-input,
.collectibles-subcategory .tsc-select,
.collectibles-subcategory .tsc-chip {
  border-radius: 0 !important;
}

.collectibles-subcategory .tsc-card-h {
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tsc-border);
  font-weight: 600;
  font-size: 13px;
  background: var(--tsc-white);
  color: var(--tsc-text);
}

.collectibles-subcategory .tsc-card-b {
  padding: 12px;
  background: var(--tsc-bg);
  font-size: 13px;
  color: var(--tsc-text);
}

.collectibles-subcategory .tsc-muted { color: var(--tsc-muted); }

/* Scroll area in categories */
.collectibles-subcategory .tsc-scroll {
  max-height: 170px;
  overflow-y: auto;
  padding-right: 6px;
}
.collectibles-subcategory .tsc-scroll::-webkit-scrollbar { width: 8px; }
.collectibles-subcategory .tsc-scroll::-webkit-scrollbar-thumb { background:#d6d6d6; border-radius:8px; }

/* Chips / buttons */
.collectibles-subcategory .tsc-chip {
  display:flex; align-items:center; justify-content:flex-start;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--tsc-text);
  padding: 8px 10px;
  gap: 8px;
}
.collectibles-subcategory .tsc-chip:hover { background:#f7f7f7; }
.collectibles-subcategory .tsc-chip.active { border-color:#111; font-weight:600; }

/* Selected line chip (used by Item Type) */
.collectibles-subcategory .tsc-chipline {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border: 1px solid #ddd;
  background:#fff;
  padding: 8px 10px;
}
.collectibles-subcategory .tsc-chipline .tsc-x {
  display:inline-flex; align-items:center; justify-content:center;
  width: 26px; height: 26px;
  border: 1px solid #ddd;
  color: var(--tsc-text);
  font-weight: 700;
}
.collectibles-subcategory .tsc-chipline .tsc-x:hover { background:#f2f2f2; }

/* ---------- Results bar ---------- */
.collectibles-subcategory .tsc-resultsbar {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  margin: 16px 0 12px;
  background: var(--tsc-bg);
  border: 1px solid var(--tsc-border);
  padding: 10px 12px;
  box-sizing:border-box;
  font-size: 13px;
}
.collectibles-subcategory .tsc-resultsbar * { background-color: transparent; }
.collectibles-subcategory .tsc-resultsbar select {
  background:#fff;
  border-radius:0 !important;
}

/* ---------- Item Type dropdown ---------- */
.collectibles-subcategory .tsc-dd-wrap { position: relative; }
.collectibles-subcategory .tsc-dd-trigger { cursor: pointer; user-select:none; }

.collectibles-subcategory .tsc-dd-menu {
  display:none;
  position: relative;
  margin-top: 8px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px;
}
.collectibles-subcategory .tsc-dd-menu.open { display:block; }

/* ---------- Condition tier UI ---------- */
/* Primary toggles already chips. Sub-panels use same spacing. */
.collectibles-subcategory [data-cond-panel] .tsc-chip { justify-content:flex-start; }

/* ---------- Product grid cards ---------- */
.collectibles-subcategory .tsc-grid a.tsc-prod { color:inherit; display:block; }
.collectibles-subcategory .tsc-prod-card { border: 1px solid var(--tsc-border); background:#fff; }
.collectibles-subcategory .tsc-prod-img { width:100%; height:160px; object-fit:cover; border-bottom:1px solid #eee; }
.collectibles-subcategory .tsc-prod-body { padding: 10px 10px 12px; }
.collectibles-subcategory .tsc-prod-title { font-size: 14px; font-weight: 600; margin:0 0 6px; line-height: 1.2; }
.collectibles-subcategory .tsc-prod-price { font-weight: 700; }


/* ===============================
   Active filter "X" (stronger UI)
   - Larger
   - Red
   =============================== */

/* Item Type selected chip (link X) */
.collectibles-subcategory .tsc-chipline .tsc-x {
  width: 30px;
  height: 30px;
  font-size: 22px;
  font-weight: 800;
  color: #b30000;
  border-color: #f1b3b3;
  line-height: 1;
}
.collectibles-subcategory .tsc-chipline .tsc-x:hover {
  background: #fff0f0;
  color: #ff0000;
}

/* Condition selected "X" (the right-side × inside the main New/Used chips) */
.collectibles-subcategory .tsc-chip > span.ms-auto[aria-hidden="true"] {
  font-size: 20px;
  font-weight: 800;
  color: #b30000;
  line-height: 1;
}

