/* Catalog filters - uniforme, platte filterstijl (sidebar) */

:root {
  --branded-filter-border: rgba(20, 20, 20, 0.14);
  --branded-filter-line: rgba(20, 20, 20, 0.1);
  --branded-filter-bg: #f3f1ed;
  --branded-filter-bg-active: #1c1c1c;
  --branded-filter-text-active: #f7f5f1;
}

/* -------------------------------------------------------------------------- */
/* Alle shop-filterwidgets: plat, geen kaarten                                */
/* WC classnames: widget_price_filter, widget_product_tag_cloud, enz.         */
/* -------------------------------------------------------------------------- */

.sidebar-woocommerce-shop .widget,
.widget-area .widget_branded_audience_filter,
.widget-area .widget_branded_attribute_chips,
.widget-area .widget_layered_nav,
.widget-area .widget_price_filter,
.widget-area .widget_product_tag_cloud,
.widget-area .widget_product_categories,
.allegro2-canvas-filter .widget,
.allegro2-dropdown-filter-wrap .widget,
.opal-canvas-filter .widget,
.sidebar .widget_branded_audience_filter,
.sidebar .widget_branded_attribute_chips,
.sidebar .widget_layered_nav,
.sidebar .widget_price_filter,
.sidebar .widget_product_tag_cloud,
.sidebar .widget_product_categories,
.sidebar .widget_branded_other_categories,
.widget_branded_audience_filter,
.widget_branded_attribute_chips,
.widget_branded_other_categories,
.widget_layered_nav,
.widget_price_filter,
.widget_product_tag_cloud,
.widget_product_categories {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--branded-filter-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 1rem !important;
  margin: 0 0 1rem !important;
}

.sidebar-woocommerce-shop .widget:last-child,
.sidebar .widget_product_categories:last-child,
.allegro2-canvas-filter .widget:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.sidebar-woocommerce-shop .widget .widget-title,
.sidebar-woocommerce-shop .widget .widgettitle,
.sidebar-woocommerce-shop .widget .gamma.widget-title,
.widget-area .widget .widget-title,
.widget-area .widget .gamma.widget-title,
.allegro2-canvas-filter .widget .widget-title,
.allegro2-canvas-filter .widget .gamma.widget-title,
.allegro2-dropdown-filter .widget .widget-title,
.sidebar .widget_branded_audience_filter .widget-title,
.sidebar .widget_branded_attribute_chips .widget-title,
.sidebar .widget_layered_nav .widget-title,
.sidebar .widget_price_filter .widget-title,
.sidebar .widget_product_tag_cloud .widget-title,
.sidebar .widget_product_categories .widget-title,
.widget_branded_audience_filter .widget-title,
.widget_branded_attribute_chips .widget-title,
.widget_layered_nav .widget-title,
.widget_price_filter .widget-title,
.widget_product_tag_cloud .widget-title,
.widget_product_categories .widget-title,
.widget_branded_other_categories .widget-title,
.widget_branded_audience_filter .gamma.widget-title,
.widget_branded_attribute_chips .gamma.widget-title,
.widget_branded_other_categories .gamma.widget-title,
.widget_layered_nav .gamma.widget-title,
.widget_price_filter .gamma.widget-title,
.widget_product_tag_cloud .gamma.widget-title,
.widget_product_categories .gamma.widget-title {
  display: block !important;
  font-family: var(--font-brand, "Proxima Nova", sans-serif) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
  color: inherit !important;
}

.sidebar-woocommerce-shop .widget .widget-title:before,
.allegro2-canvas-filter .widget .widget-title:before,
.widget_branded_audience_filter .widget-title:before,
.widget_branded_attribute_chips .widget-title:before,
.widget_layered_nav .widget-title:before,
.widget_price_filter .widget-title:before,
.widget_product_tag_cloud .widget-title:before,
.widget_product_categories .widget-title:before {
  content: none !important;
  display: none !important;
}

.sidebar .widget .widget-content,
.allegro2-canvas-filter .widget .widget-content,
.widget_price_filter .widget-content,
.widget_product_tag_cloud .widget-content,
.widget_product_categories .widget-content {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Doelgroep                                                                  */
/* -------------------------------------------------------------------------- */

.widget_branded_audience_filter .branded-audience-filter,
.branded-audience-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--branded-filter-border);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.branded-audience-filter li {
  margin: 0;
}

.branded-audience-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border: none;
  border-right: 1px solid var(--branded-filter-border);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.12s ease, color 0.12s ease;
}

.branded-audience-filter li:last-child a {
  border-right: none;
}

.branded-audience-filter a:hover {
  background: var(--branded-filter-bg);
}

.branded-audience-filter .current-cat a {
  background: var(--branded-filter-bg-active);
  color: var(--branded-filter-text-active);
  font-weight: 600;
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Maat                                                                       */
/* -------------------------------------------------------------------------- */

.widget_branded_attribute_chips .branded-size-chips,
.widget_branded_attribute_chips .widget-content .branded-size-chips,
.branded-size-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: none !important;
}

.widget_branded_attribute_chips .branded-size-chips li,
.branded-size-chips li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
}

.widget_branded_attribute_chips .branded-size-chips a,
.branded-size-chips a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  min-width: 2.75rem !important;
  min-height: 2.35rem !important;
  height: auto !important;
  padding: 0.4rem 0.65rem !important;
  border-radius: 2px !important;
  border: 1px solid var(--branded-filter-border) !important;
  background: #fff !important;
  color: inherit !important;
  text-decoration: none !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.branded-size-chips a:hover {
  border-color: rgba(20, 20, 20, 0.4);
  background: var(--branded-filter-bg);
}

.widget_branded_attribute_chips .branded-size-chips li.is-active a,
.branded-size-chips li.is-active a {
  background: var(--branded-filter-bg-active) !important;
  border-color: var(--branded-filter-bg-active) !important;
  color: var(--branded-filter-text-active) !important;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Kleur                                                                      */
/* -------------------------------------------------------------------------- */

.widget_layered_nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_layered_nav li {
  margin: 0;
}

.widget_layered_nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  border: 1px solid var(--branded-filter-border);
  background: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.2;
  color: inherit;
}

.widget_layered_nav a:hover {
  background: var(--branded-filter-bg);
}

.widget_layered_nav .chosen a {
  background: var(--branded-filter-bg-active);
  border-color: var(--branded-filter-bg-active);
  color: var(--branded-filter-text-active);
  font-weight: 600;
}

.widget_layered_nav .count {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Sector                                                                     */
/* -------------------------------------------------------------------------- */

.widget_product_tag_cloud .tagcloud {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.3rem;
  line-height: 1.2;
}

.widget_product_tag_cloud .tagcloud a {
  display: inline-flex !important;
  align-items: center;
  padding: 0.4rem 0.7rem !important;
  border-radius: 2px !important;
  background: #fff !important;
  border: 1px solid var(--branded-filter-border) !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: inherit !important;
}

.widget_product_tag_cloud .tagcloud a:hover {
  background: var(--branded-filter-bg) !important;
  border-color: rgba(20, 20, 20, 0.4) !important;
}

/* -------------------------------------------------------------------------- */
/* Prijs                                                                      */
/* -------------------------------------------------------------------------- */

.widget_price_filter form {
  margin: 0;
}

.widget_price_filter .price_slider_wrapper {
  margin: 0;
  padding: 0.15rem 0 0;
}

.woocommerce .widget_price_filter .price_slider,
.widget_price_filter .ui-slider,
.woocommerce .widget_price_filter .ui-slider {
  background: var(--branded-filter-bg) !important;
  border: 1px solid var(--branded-filter-border) !important;
  border-radius: 2px !important;
  height: 6px !important;
  margin: 0.85rem 0.4rem 1rem !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider-range,
.widget_price_filter .ui-slider-range {
  background: var(--branded-filter-bg-active) !important;
  border-radius: 1px !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle,
.woocommerce .widget_price_filter .ui-slider-handle,
.widget_price_filter .ui-slider-handle {
  background: #fff !important;
  border: 2px solid var(--branded-filter-bg-active) !important;
  border-radius: 2px !important;
  width: 14px !important;
  height: 14px !important;
  top: -5px !important;
  box-shadow: none !important;
  cursor: pointer;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:hover,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:focus,
.widget_price_filter .ui-slider-handle:hover {
  background: var(--branded-filter-bg-active) !important;
}

.widget_price_filter .price_slider_amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.3;
}

.widget_price_filter .price_slider_amount .price_label {
  order: 1;
  flex: 1 1 auto;
  font-size: 0.9rem !important;
  color: inherit;
}

.widget_price_filter .price_slider_amount .button,
.woocommerce .widget_price_filter .price_slider_amount .button {
  order: 2;
  margin: 0 !important;
  padding: 0.45rem 0.85rem !important;
  min-height: 0 !important;
  border-radius: 2px !important;
  border: 1px solid var(--branded-filter-bg-active) !important;
  background: var(--branded-filter-bg-active) !important;
  color: var(--branded-filter-text-active) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.widget_price_filter .price_slider_amount .button:hover,
.woocommerce .widget_price_filter .price_slider_amount .button:hover {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

/* -------------------------------------------------------------------------- */
/* Andere categorieën - lijst met kleine foto                                 */
/* -------------------------------------------------------------------------- */

.widget_branded_other_categories {
  border-bottom: none !important;
}

.widget_branded_other_categories .widget-title,
.widget_branded_other_categories .gamma.widget-title {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.branded-other-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.branded-other-cats li {
  margin: 0;
  border-top: 1px solid var(--branded-filter-line);
}

.branded-other-cats li:first-child {
  border-top: none;
}

.branded-other-cats a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.25;
  transition: color 0.12s ease;
}

.branded-other-cats a:hover {
  color: var(--branded-filter-bg-active);
}

.branded-other-cats a:hover .branded-other-cats__name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.branded-other-cats img,
.branded-other-cats__ph {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--branded-filter-bg);
  border: 1px solid var(--branded-filter-border);
}

.branded-other-cats__name {
  flex: 1 1 auto;
  min-width: 0;
}

/* -------------------------------------------------------------------------- */
/* Paginatie / infinite scroll                                                */
/* -------------------------------------------------------------------------- */

body.post-type-archive-product .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.tax-product_tag .woocommerce-pagination,
body.woocommerce-shop .woocommerce-pagination {
  margin: 2rem 0 4.5rem !important;
  padding-bottom: 0.5rem;
}

.branded-infinite-hidden-pag {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.branded-infinite {
  margin: 1.25rem 0 4.5rem;
  min-height: 2rem;
  text-align: center;
}

.branded-infinite.is-done {
  margin-bottom: 4.5rem;
}

.branded-infinite__status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(20, 20, 20, 0.65);
}

.branded-infinite__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  border: 1px solid var(--branded-filter-bg-active);
  background: var(--branded-filter-bg-active);
  color: var(--branded-filter-text-active);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.branded-infinite__button:hover {
  background: #000;
  border-color: #000;
}

/* -------------------------------------------------------------------------- */
/* Skeleton placeholders (infinite scroll / ajax only; no first-paint hide)   */
/* -------------------------------------------------------------------------- */

@keyframes branded-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.branded-skeleton {
  display: block !important;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #e8e8e8 0%,
    #f5f5f5 45%,
    #e8e8e8 90%
  ) !important;
  background-size: 200% 100% !important;
  animation: branded-skeleton-shimmer 1.15s ease-in-out infinite;
}

.branded-skeleton--image {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  min-height: 10rem;
  margin: 0 0 0.75rem !important;
}

.branded-skeleton--title {
  width: 78% !important;
  height: 0.95rem !important;
  margin: 0 0 0.55rem !important;
}

.branded-skeleton--price {
  width: 38% !important;
  height: 0.85rem !important;
}

.branded-skeleton--dot {
  width: 0.7rem !important;
  height: 0.7rem !important;
  border-radius: 50% !important;
  flex: 0 0 auto;
}

.branded-skeleton-card {
  list-style: none !important;
  margin: 0 !important;
  pointer-events: none;
}

.branded-skeleton-card__inner {
  display: block !important;
  padding: 0;
}

.branded-skeleton-card__meta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.branded-skeleton-card__dots {
  display: inline-flex !important;
  gap: 0.28rem;
  align-items: center;
}

/* First-paint overlay off: SSR products stay visible (avoids empty-box flash) */
ul.products.branded-skeleton-grid {
  display: none !important;
}

body.branded-catalog-awaiting ul.products.branded-skeleton-grid {
  display: none !important;
}

body.branded-catalog-awaiting ul.products:not(.branded-skeleton-grid) {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
}

/* Infinite-scroll appended skeleton cards */
ul.products > li.branded-skeleton-card {
  display: block !important;
}

/* Ajax search dropdown skeletons */
.branded-ajax-search-skeleton__row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
}

.branded-ajax-search-skeleton__img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.branded-ajax-search-skeleton__content {
  flex: 1 1 auto;
  min-width: 0;
}

.branded-ajax-search-skeleton__title {
  width: 70%;
  height: 0.75rem;
  margin-bottom: 0.35rem;
}

.branded-ajax-search-skeleton__price {
  width: 30%;
  height: 0.65rem;
}

/* Stable product image box while photos decode (shop/search cards) */
ul.products li.product .product-block img,
ul.products li.product a img {
  background: #f0f0f0;
}

@media (prefers-reduced-motion: reduce) {
  .branded-skeleton {
    animation: none;
    background: #e8e8e8 !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Filter list truncate (Lees meer)                                           */
/* -------------------------------------------------------------------------- */

.branded-filter-truncated:not(.is-expanded) .branded-filter-item--overflow {
  display: none !important;
}

.branded-filter-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.branded-filter-more:hover,
.branded-filter-more:focus-visible {
  background: #000;
  outline: none;
}

.branded-filter-truncated.is-expanded .branded-filter-more {
  background: #333;
}
