/* ===================== Browse Page (custom-browse.css) ===================== */

/* ใช้ฟอนต์ Kanit ทั้งหมด */
.br-layout {
  font-family: 'Kanit', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* Toolbar */
.br-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 16px;
}
.br-toolbar__left,
.br-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.br-counter {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ui-primary, #c7255d);
}

/* Gear button */
.br-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ui-border, #ddd);
  border-radius: 10px;
  background: #fff;
  color: var(--ui-primary, #c7255d);
  transition: .2s;
}
.br-gear:hover {
  border-color: var(--ui-primary, #c7255d);
  background: var(--ui-soft, #fdecef);
  color: var(--ui-primary, #c7255d);
}

/* View toggle buttons */
.br-view-toggle {
  display: inline-flex;
  border: 1px solid var(--ui-border, #ddd);
  border-radius: 12px;
  overflow: hidden;
}
.br-btn {
  border: 0;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  border-right: 1px solid var(--ui-border, #ddd);
  transition: .2s;
}
.br-btn:last-child { border-right: 0; }
.br-btn.is-active,
.br-btn:hover {
  background: var(--ui-soft, #fdecef);
  color: var(--ui-primary, #c7255d);
}

/* Results container */
.br-results {
  width: 100%;
}

/* Filter panel */
.br-filter {
  background: #fff;
  border: 1px solid var(--ui-border, #eee);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.br-filter__header {
  border-bottom: 2px solid var(--ui-primary, #c7255d);
  margin-bottom: 12px;
  padding-bottom: 6px;
}
.br-filter__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ui-primary, #c7255d);
}

/* ซ่อน FILTER BY ที่ซ้ำมาจาก subview */
.br-refine > h1:first-child,
.br-refine > h2:first-child,
.br-refine > h3:first-child,
.br-refine > h4:first-child {
  display: none !important;
}

/* Sticky filter */
@media (min-width: 992px) {
  .br-sticky {
    position: sticky;
    top: calc(var(--nav-height, 64px) + 12px);
    max-height: calc(100vh - (var(--nav-height, 64px) + 24px));
    overflow: auto;
  }
  .br-sticky.is-fixed {
    position: fixed !important;
    top: calc(var(--nav-height, 64px) + 12px) !important;
    right: max(24px, (100vw - 1200px) / 2);
    width: var(--br-fixed-width, 320px);
    max-height: calc(100vh - (var(--nav-height, 64px) + 24px));
    overflow: auto;
    z-index: 1035;
  }
  .br-sticky-spacer { display: none; }
  .br-sticky.is-fixed + .br-sticky-spacer {
    display: block;
    width: 100%;
    height: var(--br-fixed-height, 500px);
  }
}

/* Facet headings และลิสต์ด้านใน */
.br-filter .facet h4,
.br-filter .facet h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 12px 0 6px;
  color: #333;

}
#bRefine H3 {
    margin-bottom: 8px;
    margin-top: 20px;
    text-transform: uppercase;
    padding: 0px;
  font-size: 1rem;
  font-weight: 700;

font-family: 'Kanit', sans-serif;
}
#bRefine a
 {
    color: #666666;
    font-size: 14px;
    line-height: 146%;
}


.br-filter .facet ul {
  padding-left: 0;
  list-style: none;
}
.br-filter .facet li {
  margin: 2px 0;
  font-size: 0.95rem;
}
.br-filter .facet a {
  color: #444;
  text-decoration: none;
  transition: .2s;
}
.br-filter .facet a:hover {
  color: var(--ui-primary, #c7255d);
  text-decoration: underline;
}
#bRefine H2
 {
    /* font-size: 18px; */
    /* text-transform: uppercase; */
    /* color: #666; */
    /* margin-top: 0px; */
    display: none;
}

.results .bCriteria strong, .sets .bCriteria strong
 {
    color: #000;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: normal;
}
