/* ===== Brand Filter (letters + links) ===== */
.estico-brand-filter {
  margin-bottom: 20px;
}

.estico-brand-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.estico-brand-letters a {
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  padding: 4px 8px;           /* bigger tap target */
  border-radius: 4px;
}

.estico-brand-letters a:hover,
.estico-brand-letters a:focus,
.estico-brand-letters a:focus-visible {
  text-decoration: underline;
  outline: none;
  background: #f2f6fb;
}

/* Optional: style the "All Brands" link a bit */
.estico-all-brands-link {
  margin-left: 8px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f5f5;
}
.estico-all-brands-link:hover,
.estico-all-brands-link:focus-visible {
  background: #e9eef6;
}

/* ===== Accordion ===== */
.estico-accordion-header {
  margin: 0;
  cursor: pointer;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #eee;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.estico-accordion-header span {
  font-size: 14px;
}

.estico-accordion-content {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.estico-accordion-content .brand-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.estico-accordion-content .brand-item:hover,
.estico-accordion-content .brand-item:focus,
.estico-accordion-content .brand-item:focus-visible {
  background: #f0f0f0;
  outline: none;
}

.estico-accordion-content img {
  max-width: 120px;          /* allow a bit wider logos */
  max-height: 60px;          /* keep a steady row height */
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 6px;
}

/* ===== In-Stock Toggle ===== */
.estico-stock-filter {
  margin-bottom: 15px;
  text-align: right;
}

.estico-stock-filter label {
  font-size: 14px;
  cursor: pointer;
}

/* ===== Category Labels (with counts) ===== */
.estico-category-labels {
  margin: 10px 0 20px;
  text-align: center;
}

.estico-category-labels .category-label {
  display: inline-block;
  background: #f2f2f2;
  border-radius: 15px;
  padding: 5px 12px;
  margin: 4px;
  font-size: 13px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease-in-out;
  line-height: 1;
}

.estico-category-labels .category-label:hover,
.estico-category-labels .category-label:focus,
.estico-category-labels .category-label:focus-visible {
  background: #0073aa;
  color: #fff;
  outline: none;
}

.estico-category-labels .category-label.active {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 0 1px #00679a inset;
}

/* ===== Reset Filters ===== */
.estico-reset-filters {
  margin: 15px 0;
  text-align: center;
}
.estico-reset-filters .reset-filters-link {
  display: inline-block;
  background: #eaeaea;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.estico-reset-filters .reset-filters-link:hover,
.estico-reset-filters .reset-filters-link:focus-visible {
  background: #0073aa;
  color: #fff;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 480px) {
  .estico-accordion-content img {
    max-width: 90px;
    max-height: 48px;
  }
  .estico-stock-filter {
    text-align: left;
  }
}
/* Highlight active brand */
.estico-accordion-content .brand-item.active,
.estico-accordion-content .brand-item.active:hover {
  background: #0073aa;
  color: #fff;
}
.estico-accordion-content .brand-item.active span {
  font-weight: bold;
  color: #fff;
}

/* Highlight active category */
.estico-category-labels .category-label.active {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
}
