/* =============================================================
   Connixtech — All Products Catalog
   Theme: matches existing site (blue #1A56A0, white cards, Inter font)
   Layout: top horizontal filter bar + full-width product grid
   ============================================================= */

/* ---------------------------------------------------------------
   BASE
--------------------------------------------------------------- */
.cx-catalog-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F0F4F8;
  min-height: 100vh;
}

/* ---------------------------------------------------------------
   HERO
--------------------------------------------------------------- */
.cx-catalog-hero {
  background: linear-gradient(135deg, #091F3A, #0D3A6E);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}
.cx-catalog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.cx-catalog-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.cx-catalog-hero h1 {
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(1.4rem, 3vw, 1.9rem) !important;
  font-weight: 900 !important;
  color: #fff !important;
  margin: 0 0 4px !important;
}
.cx-catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.cx-catalog-breadcrumb a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.cx-catalog-breadcrumb a:hover { color: #F59E0B; }
.cx-catalog-hero-count {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   HORIZONTAL FILTER BAR
--------------------------------------------------------------- */
.cx-filter-bar-outer {
  background: #fff;
  border-bottom: 1px solid rgba(26,86,160,.10);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(26,86,160,.08);
}
.cx-filter-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  /* No overflow here — panels are absolutely positioned and must not be clipped */
  flex-wrap: nowrap;
}

/* ---- Search ---- */
.cx-filter-search {
  position: relative;
  flex-shrink: 0;
}
.cx-filter-search input {
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #0F172A;
  background: #F8FAFC;
  width: 220px;
  transition: border-color .2s, box-shadow .2s;
}
.cx-filter-search input:focus {
  border-color: #1A56A0;
  box-shadow: 0 0 0 3px rgba(26,86,160,.12);
  outline: none;
  background: #fff;
}
.cx-filter-search input::placeholder { color: #94A3B8; }
.cx-filter-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}
.cx-filter-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  padding: 2px;
  display: none;
  line-height: 1;
}
.cx-filter-search-clear:hover { color: #1A56A0; }
.cx-filter-search-clear.visible { display: block; }

/* ---- Divider ---- */
.cx-filter-divider {
  width: 1px;
  height: 28px;
  background: #E2E8F0;
  flex-shrink: 0;
}

/* ---- Dropdown trigger buttons ---- */
.cx-filter-dropdown {
  position: relative;
  flex-shrink: 0;
}
.cx-filter-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #F8FAFC;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s;
}
.cx-filter-btn:hover,
.cx-filter-btn[aria-expanded="true"] {
  border-color: #1A56A0;
  background: #EFF6FF;
  color: #1A56A0;
}
.cx-filter-btn[aria-expanded="true"] .cx-filter-btn-arrow {
  transform: rotate(180deg);
}
.cx-filter-btn-arrow {
  font-size: 10px;
  transition: transform .2s;
  color: #94A3B8;
}
.cx-filter-btn.cx-active {
  border-color: #1A56A0;
  background: #1A56A0;
  color: #fff;
}
.cx-filter-btn.cx-active .cx-filter-btn-arrow { color: rgba(255,255,255,.7); }

/* ---- Dropdown panel ---- */
.cx-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(26,86,160,.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  min-width: 240px;
  max-width: 340px;
  z-index: 300;
  display: none;
  overflow: hidden;
}
.cx-filter-panel.open { display: block; }
.cx-filter-panel-head {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #1A56A0;
  border-bottom: 1px solid #F1F5F9;
}

/* ---- Category dropdown — tree style ---- */
.cx-cat-panel {
  min-width: 280px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}
.cx-cat-panel::-webkit-scrollbar { width: 4px; }
.cx-cat-panel::-webkit-scrollbar-track { background: transparent; }
.cx-cat-panel::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

/* Category tree */
.cx-cat-tree-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.cx-cat-tree-list .cx-cat-tree-list {
  display: none;
  background: #F8FAFC;
  padding: 4px 0;
}
.cx-cat-tree-list .cx-cat-tree-list.open {
  display: block;
}

.cx-cat-item {
  margin: 0;
}

/* Shared styles for both toggle buttons and leaf links */
.cx-cat-toggle,
.cx-cat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.cx-cat-toggle:hover,
.cx-cat-link:hover {
  background: #EFF6FF;
  color: #1A56A0;
}
.cx-cat-item.cx-cat-active > .cx-cat-toggle,
.cx-cat-item.cx-cat-active > .cx-cat-link {
  color: #1A56A0;
  font-weight: 700;
  background: #EFF6FF;
}

.cx-cat-label { flex: 1; }
.cx-cat-count {
  font-size: 11px;
  color: #94A3B8;
  flex-shrink: 0;
}
.cx-cat-arrow {
  font-size: 9px;
  color: #CBD5E1;
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: auto;
}
.cx-cat-item.cx-cat-open > .cx-cat-toggle .cx-cat-arrow {
  transform: rotate(90deg);
}

/* Indent per level */
.cx-cat-level-1 .cx-cat-toggle,
.cx-cat-level-1 .cx-cat-link { padding-left: 28px; font-size: 12.5px; }
.cx-cat-level-2 .cx-cat-toggle,
.cx-cat-level-2 .cx-cat-link { padding-left: 40px; font-size: 12px; }
.cx-cat-level-3 .cx-cat-toggle,
.cx-cat-level-3 .cx-cat-link { padding-left: 52px; font-size: 12px; }
.cx-cat-level-4 .cx-cat-toggle,
.cx-cat-level-4 .cx-cat-link { padding-left: 64px; font-size: 11.5px; color: #64748B; }

/* ---- Brand dropdown ---- */
.cx-brand-list {
  padding: 8px 0;
}
.cx-brand-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .15s;
}
.cx-brand-item:hover { background: #EFF6FF; }
.cx-brand-item.cx-selected { background: #EFF6FF; }
.cx-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cx-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cx-brand-count { font-size: 11px; color: #94A3B8; }
.cx-brand-item.cx-selected .cx-brand-name { color: #1A56A0; }
.cx-brand-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #F1F5F9;
}
.cx-brand-action-btn {
  flex: 1;
  padding: 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #374151;
  transition: .15s;
}
.cx-brand-action-btn:hover { border-color: #1A56A0; color: #1A56A0; }

/* ---- Price range dropdown ---- */
.cx-price-panel { min-width: 260px; padding: 16px; }
.cx-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cx-price-inputs input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #0F172A;
  width: 0;
  transition: border-color .2s;
}
.cx-price-inputs input:focus {
  border-color: #1A56A0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,86,160,.1);
}
.cx-price-sep { color: #94A3B8; font-size: 12px; flex-shrink: 0; }
.cx-price-apply {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, #1A56A0, #0D3A6E);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: .2s;
}
.cx-price-apply:hover { box-shadow: 0 4px 14px rgba(26,86,160,.35); }

/* ---- Sort dropdown ---- */
.cx-sort-list { padding: 8px 0; }
.cx-sort-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background .15s;
}
.cx-sort-option:hover { background: #EFF6FF; color: #1A56A0; }
.cx-sort-option.cx-selected {
  background: #EFF6FF;
  color: #1A56A0;
  font-weight: 700;
}
.cx-sort-check { font-size: 12px; color: #1A56A0; width: 14px; }

/* ---- Stock filter (inside filter bar) ---- */
.cx-stock-panel { min-width: 200px; }
.cx-stock-list { padding: 8px 0; }
.cx-stock-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background .15s;
}
.cx-stock-option:hover { background: #EFF6FF; color: #1A56A0; }
.cx-stock-option.cx-selected { background: #EFF6FF; font-weight: 600; }
.cx-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cx-stock-dot.instock    { background: #10b981; }
.cx-stock-dot.outofstock { background: #ef4444; }
.cx-stock-dot.onbackorder{ background: #f59e0b; }

/* ---- Reset all ---- */
.cx-filter-reset {
  height: 38px;
  padding: 0 14px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #94A3B8;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}
.cx-filter-reset:hover { color: #ef4444; }

/* ---- Active filter pills (below bar) ---- */
.cx-active-filters {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cx-active-filters:empty { display: none; }
.cx-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  border: 1px solid rgba(26,86,160,.2);
  border-radius: 999px;
  padding: 4px 10px 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1A56A0;
}
.cx-active-pill-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  padding: 0;
  line-height: 1;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.cx-active-pill-remove:hover { color: #ef4444; }

/* ---------------------------------------------------------------
   MAIN CONTENT AREA
--------------------------------------------------------------- */
.cx-catalog-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

/* Results bar */
.cx-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.cx-results-count {
  font-size: 13px;
  color: #64748B;
}
.cx-results-count strong { color: #0F172A; }

/* ---------------------------------------------------------------
   PRODUCT GRID
--------------------------------------------------------------- */
.cx-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Loading skeleton overlay */
.cx-prod-grid.cx-loading {
  opacity: .5;
  pointer-events: none;
}
.cx-grid-spinner {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px;
  grid-column: 1 / -1;
}
.cx-prod-grid.cx-loading .cx-grid-spinner { display: flex; }

/* ---------------------------------------------------------------
   PRODUCT CARD
--------------------------------------------------------------- */
.cx-prod-card {
  background: #fff;
  border: 1px solid rgba(26,86,160,.10);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}
.cx-prod-card:hover {
  box-shadow: 0 8px 40px rgba(26,86,160,.18);
  transform: translateY(-4px);
}

/* Card image */
.cx-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: #F8FAFC;
  overflow: hidden;
}
.cx-card-img-wrap .cx-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.cx-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
}

/* Brand badge — top left */
.cx-card-brand-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.4;
}

/* Stock badge — top right */
.cx-card-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
}
.cx-stock-in  { background: rgba(16,185,129,.12); color: #059669; }
.cx-stock-out { background: rgba(239,68,68,.1);   color: #dc2626; }
.cx-stock-pre { background: rgba(245,158,11,.12); color: #d97706; }

/* Card body */
.cx-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cx-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #94A3B8;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cx-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
  line-height: 1.4;
  flex: 1;
  /* 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cx-card-title a { text-decoration: none; color: inherit; }
.cx-card-title a:hover { color: #1A56A0; }
.cx-card-sku {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: #94A3B8;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pricing */
.cx-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cx-card-rrp {
  font-size: 12px;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 400;
}
.cx-card-tier {
  font-size: 1.05rem;
  font-weight: 900;
  color: #1A56A0;
}
.cx-card-badge-tier {
  font-size: 10px;
  font-weight: 700;
  background: rgba(26,86,160,.1);
  color: #1A56A0;
  border-radius: 999px;
  padding: 2px 7px;
}
.cx-card-price-locked {
  font-size: 12px;
  color: #64748B;
  font-style: italic;
  margin-bottom: 12px;
}

/* Card actions */
.cx-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.cx-card-btn {
  flex: 1;
  padding: 9px 12px;
  background: linear-gradient(135deg, #1A56A0, #0D3A6E);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.cx-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,86,160,.35);
  color: #fff;
}
.cx-card-btn-cart {
  flex: 0 0 36px;
  width: 36px;
  padding: 9px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: .2s;
}
.cx-card-btn-cart:hover { border-color: #1A56A0; color: #1A56A0; }

/* ---------------------------------------------------------------
   CASCADING CATEGORY DROPDOWNS
--------------------------------------------------------------- */
.cx-cat-dropdowns-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Category options inside dropdown panel */
.cx-cat-options-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}
.cx-cat-options-list::-webkit-scrollbar { width: 4px; }
.cx-cat-options-list::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

.cx-cat-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: background .15s, color .15s;
}
.cx-cat-option:hover { background: #EFF6FF; color: #1A56A0; }
.cx-cat-option.cx-selected {
  background: #EFF6FF;
  color: #1A56A0;
  font-weight: 700;
}
.cx-cat-option .cx-cat-label { flex: 1; }
.cx-cat-option .cx-cat-count { font-size: 11px; color: #94A3B8; }
.cx-cat-option .cx-cat-has-sub { font-size: 14px; color: #94A3B8; margin-left: 4px; }
.cx-cat-option.cx-selected .cx-cat-has-sub { color: #1A56A0; }

/* Mobile cascading */
.cx-mobile-cat-dropdowns { display: flex; flex-direction: column; gap: 12px; }
.cx-drawer-cat-level { display: flex; flex-direction: column; gap: 6px; }
.cx-drawer-section-subtitle {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94A3B8;
  padding: 0 2px;
}
.cx-mobile-cat-list { display: flex; flex-direction: column; }
.cx-mobile-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: background .15s;
}
.cx-mobile-cat-item:hover { background: #EFF6FF; color: #1A56A0; }
.cx-mobile-cat-item.cx-selected {
  background: #EFF6FF;
  color: #1A56A0;
  font-weight: 700;
}
.cx-mobile-cat-item .cx-cat-count { font-size: 11px; color: #94A3B8; }

/* FAB badge */
.cx-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loading state */
.cx-prod-grid.cx-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* No products state */
.cx-no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}
.cx-no-products-icon { font-size: 48px; margin-bottom: 16px; }
.cx-no-products h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin-bottom: 8px !important;
}
.cx-no-products p { color: #64748B !important; font-size: 14px !important; }
.cx-no-products a { color: #1A56A0; font-weight: 600; }

/* ---------------------------------------------------------------
   LOAD MORE / PAGINATION
--------------------------------------------------------------- */
.cx-load-more-wrap {
  text-align: center;
  margin-top: 32px;
}
.cx-load-more-btn {
  padding: 12px 36px;
  background: #fff;
  border: 2px solid #1A56A0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #1A56A0;
  cursor: pointer;
  transition: .2s;
}
.cx-load-more-btn:hover {
  background: #1A56A0;
  color: #fff;
}
.cx-load-more-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.cx-pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.cx-pagination-wrap a,
.cx-pagination-wrap span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #E2E8F0;
  color: #374151;
  background: #fff;
  transition: .2s;
}
.cx-pagination-wrap .current,
.cx-pagination-wrap a:hover {
  background: #1A56A0;
  color: #fff;
  border-color: #1A56A0;
}

/* ---------------------------------------------------------------
   LOGIN NOTICE
--------------------------------------------------------------- */
.cx-login-notice {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #92400e;
}
.cx-login-notice a { color: #1A56A0; font-weight: 700; text-decoration: none; }
.cx-login-notice a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   MOBILE FILTER DRAWER (< 768px)
--------------------------------------------------------------- */
.cx-mobile-filter-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A56A0, #0D3A6E);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(26,86,160,.4);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: .2s;
}
.cx-mobile-filter-fab:hover { box-shadow: 0 6px 28px rgba(26,86,160,.5); transform: scale(1.05); }

.cx-mobile-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 500;
}
.cx-mobile-filter-overlay.open { display: block; }

.cx-mobile-filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 600;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s ease;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
.cx-mobile-filter-drawer.open { transform: translateY(0); }

.cx-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #F1F5F9;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.cx-drawer-head h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin: 0 !important;
}
.cx-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.cx-drawer-close:hover { color: #0F172A; }
.cx-drawer-body { padding: 16px 20px; }

.cx-drawer-section { margin-bottom: 20px; }
.cx-drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #1A56A0;
  margin-bottom: 10px;
}

/* Drawer category tree — same style, slightly larger touch targets */
.cx-drawer-body .cx-cat-toggle,
.cx-drawer-body .cx-cat-link {
  padding-top: 11px;
  padding-bottom: 11px;
}

.cx-drawer-footer {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid #F1F5F9;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.cx-drawer-apply {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #1A56A0, #0D3A6E);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.cx-drawer-reset {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #64748B;
  cursor: pointer;
}
.cx-drawer-reset:hover { border-color: #ef4444; color: #ef4444; }

/* Mobile search bar hidden by default — only shown inside mobile breakpoint */
.cx-mobile-search-bar { display: none; }

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 1280px) {
  .cx-prod-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .cx-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cx-filter-bar { padding: 0 16px; }
  .cx-catalog-main { padding: 20px 16px 40px; }
}

@media (max-width: 768px) {
  /* Hide desktop filter bar — show FAB + drawer instead */
  .cx-filter-bar-outer { display: none; }
  .cx-mobile-filter-fab { display: flex; }
  .cx-active-filters { padding: 8px 16px; }

  .cx-catalog-main { padding: 16px 12px 80px; }
  .cx-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .cx-card-body { padding: 10px; }
  .cx-card-title { font-size: 12px; }
  .cx-card-sku { font-size: 9px; }
  .cx-card-btn { font-size: 11px; padding: 8px 10px; }
  .cx-card-btn-cart { flex: 0 0 32px; width: 32px; padding: 8px; }

  .cx-catalog-hero { padding: 28px 16px; }

  /* Mobile search bar — shown on mobile only */
  .cx-mobile-search-bar {
    display: block;
    background: #fff;
    border-bottom: 1px solid #F1F5F9;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(26,86,160,.06);
  }
  .cx-mobile-search-bar .cx-filter-search { width: 100%; }
  .cx-mobile-search-bar .cx-filter-search input { width: 100%; }
}

@media (max-width: 480px) {
  .cx-prod-grid { grid-template-columns: 1fr; gap: 12px; }
  .cx-prod-card:hover { transform: none; }
}

/* ---------------------------------------------------------------
   FOCUS / ACCESSIBILITY
--------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid #1A56A0;
  outline-offset: 2px;
}
.cx-cat-toggle:focus-visible,
.cx-cat-link:focus-visible,
.cx-filter-btn:focus-visible {
  outline: 2px solid #1A56A0;
  outline-offset: 2px;
  border-radius: 6px;
}
