/* Brands navigator + department filter sidebars */
body.ictech-catalog {
  --ictech-nav-bg: #eef3fb;
  --ictech-nav-line: #d7e3f4;
  --ictech-nav-ink: #0B1F3A;
}
body.ictech-catalog .hero-section { display: none !important; }

body.ictech-catalog aside#sidebar {
  display: block !important;
}
body.ictech-catalog .ct-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ictech-brands-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ictech-catalog-search {
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}
.ictech-catalog-search form {
  display: flex;
  align-items: center;
  width: 100%;
  background: #f8fafc;
}
.ictech-catalog-search input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 12px 12px 16px;
  font: inherit;
  font-size: 14px;
  min-width: 0;
  outline: none;
  box-shadow: none !important;
}
.ictech-catalog-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.ictech-catalog-search__clear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 4px 0 0;
  border-radius: 999px;
  color: #64748b;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}
.ictech-catalog-search__clear:hover {
  background: #e8eef6;
  color: #0B1F3A;
}
.ictech-catalog-search button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: var(--ictech-btn-bg, var(--ictech-primary, #2937E9));
  color: #fff;
  width: 46px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.ictech-catalog-search button svg {
  width: 18px;
  height: 18px;
  display: block;
}
.ictech-catalog-search button:hover {
  background: var(--ictech-btn-bg-hover, #1f2bd0);
}

.ictech-brands-nav__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--ictech-nav-line);
  border-radius: 999px;
  padding: 0 12px;
}
.ictech-brands-nav__search-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex: 0 0 auto;
}
.ictech-brands-nav__search-icon svg { display: block; width: 18px; height: 18px; }
.ictech-brands-nav__search-clear {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.ictech-brands-nav__search-clear:hover { color: #0B1F3A; }
.ictech-brands-nav__search-clear[hidden] { display: none; }
.ictech-brands-nav__search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: none !important;
}
.ictech-brands-nav__search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.ictech-brands-nav__list + .ictech-brands-nav__empty,
.ictech-brands-nav__search + .ictech-brands-nav__list {
  margin-top: 10px;
}

.ictech-brands-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ictech-brands-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8eef6;
  text-decoration: none;
  color: var(--ictech-nav-ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}
.ictech-brands-nav__item:hover {
  border-color: #c9d7ea;
}
.ictech-brands-nav__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ictech-brands-nav__icon svg { width: 22px; height: 22px; }
.ictech-brands-nav__item[data-tone="repair"] .ictech-brands-nav__icon { color: #e11d48; }
.ictech-brands-nav__item[data-tone="protection"] .ictech-brands-nav__icon { color: #65a30d; }
.ictech-brands-nav__item[data-tone="accessories"] .ictech-brands-nav__icon { color: #0284c7; }
.ictech-brands-nav__item[data-tone="all"] .ictech-brands-nav__icon { color: #0B1F3A; }
.ictech-brands-nav__label {
  flex: 1;
  font-weight: 700;
  font-size: 14.5px;
}
.ictech-brands-nav__count {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.ictech-brands-nav__empty {
  margin: 0;
  padding: 8px;
  font-size: 13px;
  color: #64748b;
}

.ictech-brands-nav__item.is-current {
  border-color: var(--ictech-primary, #2937E9);
  box-shadow: 0 0 0 1px var(--ictech-primary, #2937E9);
}

body.ictech-catalog .widget_price_filter,
body.ictech-catalog .wp-block-woocommerce-filter-wrapper,
body.ictech-catalog .wc-block-product-filter-price {
  display: none !important;
}

.ictech-filter-card {
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}
.ictech-filter-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  border: 0;
  background: #1e293b;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
}
.ictech-filter-card__head:hover { filter: brightness(1.08); }
.ictech-filter-card__head--static {
  cursor: default;
}
.ictech-filter-card__head--static:hover { filter: none; }
.ictech-brands-nav[data-tone="protection"] .ictech-filter-card__head {
  background: #3f6212;
}
.ictech-brands-nav[data-tone="accessories"] .ictech-filter-card__head {
  background: #0e7490;
}
.ictech-filter-card__chev {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  transition: transform .15s ease;
}
.ictech-filter-card__chev svg { width: 16px; height: 16px; display: block; }
.ictech-filter-card__head[aria-expanded="false"] .ictech-filter-card__chev {
  transform: rotate(-90deg);
}
.ictech-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}
.ictech-filter-pills__more {
  display: none;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--ictech-primary, #2937E9);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.ictech-filter-card.is-collapsed .ictech-filter-pills {
  flex-wrap: nowrap;
  cursor: pointer;
}
.ictech-filter-card.is-collapsed .ictech-filter-pill {
  min-width: 0;
}
.ictech-filter-card.is-collapsed .ictech-filter-pills:hover {
  background: #f1f5f9;
}
.ictech-filter-card.is-collapsed .ictech-filter-pills__more {
  display: inline-flex;
  align-items: center;
}
.ictech-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.ictech-filter-pill:hover {
  background: #e0e7ff;
  color: #1e293b;
}
.ictech-filter-pill span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ictech-filter-pill__x {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #64748b;
}
.ictech-filter-pill:hover .ictech-filter-pill__x {
  background: #c7d2fe;
  color: #1e293b;
}
.ictech-filter-card__body { padding: 12px 12px 14px; }

.ictech-filter-group { margin-bottom: 12px; }
.ictech-filter-group:last-child { margin-bottom: 0; }
.ictech-filter-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ictech-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ictech-nav-ink);
  font-size: 13.5px;
}
.ictech-check:hover { background: #f8fafc; }
.ictech-check__box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  flex: 0 0 auto;
  background: #fff;
}
.ictech-check.is-on .ictech-check__box {
  background: var(--ictech-primary, #2937E9);
  border-color: var(--ictech-primary, #2937E9);
  box-shadow: inset 0 0 0 2px #fff;
}
.ictech-check__label { flex: 1; }
.ictech-check__count {
  margin-left: auto;
  min-width: 28px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 2px 7px;
}

.ictech-show-more {
  display: inline-flex;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--ictech-primary, #2937E9);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

@media (max-width: 999px) {
  body.ictech-catalog [data-sidebar] {
    display: flex;
    flex-direction: column;
  }
}

.ictech-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.ictech-active-filters .ictech-filter-pill {
  gap: 6px;
  padding: 7px 8px 7px 14px;
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fda4af;
  font-size: 13px;
}
.ictech-active-filters .ictech-filter-pill:hover {
  background: #ffe4e6;
  color: #9f1239;
  border-color: #fb7185;
}
.ictech-active-filters .ictech-filter-pill__x {
  width: 18px;
  height: 18px;
  font-size: 16px;
  color: #e11d48;
}
.ictech-active-filters .ictech-filter-pill:hover .ictech-filter-pill__x {
  background: #fecdd3;
  color: #9f1239;
}
.ictech-active-filters__clear {
  margin-left: 4px;
  color: #9f1239;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ictech-active-filters__clear:hover {
  color: #881337;
}
