/* ==========================================================================
   MENE.NG — SINGLE CATEGORY & ALL LISTINGS BROWSE PAGE
   Theme: Executive Clean Navy, Slate & Royal Blue (No gradients, no oversized UI)
   ========================================================================== */

.category-browse-page {
  background: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── CATEGORY HERO BANNER ────────────────────────────────────── */
.cat-hero-banner {
  background: #0b1329;
  color: #ffffff;
  padding: 32px 0 28px;
  border-bottom: 1px solid #1e293b;
}

.cat-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.cat-breadcrumb a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.cat-breadcrumb a:hover {
  text-decoration: underline;
}

.cat-hero-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-count-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 3px 10px;
  border-radius: 20px;
}

.cat-hero-desc {
  font-size: 13.5px;
  color: #94a3b8;
  margin-top: 6px;
  max-width: 600px;
  line-height: 1.5;
}

/* ── QUICK CATEGORY PILL SELECTOR SCROLLER ───────────────────── */
.cat-pills-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  position: relative;
  z-index: 10;
  margin-bottom: 0;
}

.cat-pills-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cat-pills-scroller::-webkit-scrollbar {
  display: none;
}

.cat-filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.15s ease;
}

.cat-filter-pill-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cat-filter-pill-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ── MAIN CONTENT GRID (SIDEBAR + PRODUCT GRID) ──────────────── */
.cat-browse-main {
  flex: 1;
  padding: 24px 0 60px;
}

.cat-browse-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ── FILTER SIDEBAR (DESKTOP) ────────────────────────────────── */
.cat-filter-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  position: sticky;
  top: 136px;
}

.cat-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cat-filter-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-filter-reset {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
}

.cat-filter-group {
  margin-bottom: 18px;
}

.cat-filter-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 8px;
}

.cat-filter-select,
.cat-filter-input {
  width: 100%;
  height: 38px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}

.cat-filter-select:focus,
.cat-filter-input:focus {
  border-color: #2563eb;
}

.cat-price-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cat-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
  margin-bottom: 6px;
}

.btn-apply-filters {
  width: 100%;
  padding: 10px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-apply-filters:hover {
  background: #1d4ed8;
}

/* ── TOOLBAR (SEARCH + SORT + COUNT) ─────────────────────────── */
.cat-browse-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.cat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-sort-select {
  height: 36px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
}

/* ── PRODUCT CARDS GRID ──────────────────────────────────────── */
.cat-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-products-grid.cat-products-grid--jobs,
.cat-products-grid.cat-products-grid--services {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cat-products-grid .item-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.cat-empty-state {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 48px 20px;
  text-align: center;
}

.cat-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.cat-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.cat-empty-sub {
  font-size: 13px;
  color: #64748b;
  max-width: 400px;
  margin: 0 auto 18px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .cat-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-products-grid.cat-products-grid--jobs,
  .cat-products-grid.cat-products-grid--services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .cat-browse-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cat-filter-sidebar {
    display: none;
  }

  .cat-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cat-products-grid.cat-products-grid--jobs,
  .cat-products-grid.cat-products-grid--services {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cat-pills-bar {
    position: relative;
    top: auto;
    padding: 10px 0;
  }

  .cat-hero-banner {
    padding: 20px 0 16px;
  }

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

@media (max-width: 480px) {
  .cat-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .cat-products-grid.cat-products-grid--jobs,
  .cat-products-grid.cat-products-grid--services {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
