/* Classic Filter Products by Attribute — shop sidebar design */

.shop-sidebar
  .widget.widget-side.is-open
  > .woocommerce-widget-layered-nav-list,
.shop-sidebar .widget.widget-side.is-open > ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}

.shop-sidebar .woocommerce-widget-layered-nav-list__item,
.shop-sidebar .widget.widget-side > ul > li {
  margin: 0;
  padding: 0;
  border: 0;
}

.shop-sidebar .shop-layered-nav-link,
.shop-sidebar .woocommerce-widget-layered-nav-list__item > a,
.shop-sidebar .widget.widget-side > ul > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  background: #eae8e963;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  font-size: 14px;
  line-height: 1.4;
}

.shop-sidebar .shop-layered-nav-link:hover,
.shop-sidebar .woocommerce-widget-layered-nav-list__item > a:hover,
.shop-sidebar .widget.widget-side > ul > li > a:hover {
  background: #efefef;
  color: var(--color1);
}

.shop-sidebar .woocommerce-widget-layered-nav-list__item--chosen > a,
.shop-sidebar .woocommerce-widget-layered-nav-list__item.chosen > a {
  background: #f0e6e8;
  color: var(--color1);
  /* font-variation-settings: "wght" 600; */
}

.shop-sidebar .layered-nav-name {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-sidebar .websima-layered-nav-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  order: -1;
}

/* .woocommerce-widget-layered-nav-list__item--chosen.chosen a::before {
  content: "\e928";
  background-color: var(--color1);
  color: #fff;
  font-size: 1rem;
}

.woocommerce-widget-layered-nav-list a:before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--color3);
  transition: 0.3s;
  flex: none;
  font-family: icomoon;
} */

.shop-sidebar
  .woocommerce-widget-layered-nav-list__item--chosen
  .websima-layered-nav-swatch,
.shop-sidebar
  .woocommerce-widget-layered-nav-list__item.chosen
  .websima-layered-nav-swatch {
  outline: 2px solid var(--color1);
  outline-offset: 2px;
}

.shop-sidebar .shop-layered-nav-link .count,
.shop-sidebar .woocommerce-widget-layered-nav-list__item .count,
.shop-sidebar .widget.widget-side .count {
  margin-inline-start: auto;
  font-family: var(--en_font);
  font-size: 14px;
  font-variation-settings: "wght" 500;
}

/* Fallback when sidebar wrapper missing */
.woocommerce-widget-layered-nav-list:has(.websima-layered-nav-swatch) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-widget-layered-nav-list__item:has(.websima-layered-nav-swatch) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.websima-layered-nav-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
