.anagh-filter-demo {
  margin: 36px 0;
  padding: 28px;
  background: #19151f;
  border: 1px solid #403347;
}
.filter-demo-head,
.filter-demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.filter-demo-head > span {
  color: #c1b2ee;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.anagh-filter-demo button {
  font: inherit;
  color: #e8e0f3;
  cursor: pointer;
  border: 1px solid #574560;
  background: transparent;
  padding: 12px 15px;
  font-size: 12px;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.anagh-filter-demo button:hover,
.anagh-filter-demo button:focus-visible {
  border-color: #c1b2ee;
  outline: 1px solid #c1b2ee;
  outline-offset: 3px;
}
.filter-demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 20px;
}
.filter-demo-controls button {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-demo-controls button[aria-pressed='true'] {
  color: #19151f;
  background: #c1b2ee;
  border-color: #c1b2ee;
}
.filter-demo-controls svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.filter-demo-line {
  height: 2px;
  background: #392d43;
  overflow: hidden;
  margin-bottom: 24px;
}
.filter-demo-line span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ec039f, #a212da, #3b4ef4);
  transform-origin: left;
}
.filter-demo-products {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.filter-demo-product {
  position: relative;
  padding: 16px 10px;
  background: #282030;
  border: 1px solid #78638b;
  transition:
    opacity 0.6s,
    transform 0.6s,
    background 0.6s,
    border-color 0.6s;
}
.filter-demo-product.is-muted {
  opacity: 0.2;
  transform: scale(0.92);
  border-color: transparent;
}
.filter-demo-product svg {
  display: block;
  width: 100%;
  stroke: #c1b2ee;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.product-vessel {
  fill: #42324e;
}
.product-shadow {
  fill: #110e16;
  stroke: none;
}
.filter-demo-tick {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  color: #c1b2ee;
  transition: opacity 0.3s;
}
.is-muted .filter-demo-tick {
  opacity: 0;
}
.product-placeholder {
  display: block;
  height: 3px;
  width: 62%;
  margin: 12px auto 0;
  background: #9a82ac;
  border-radius: 5px;
}
.product-placeholder.short {
  width: 32%;
  margin-top: 8px;
  opacity: 0.5;
}
.filter-demo-foot {
  margin-top: 24px;
  color: #c1b2ee;
  font-size: 13px;
}
.filter-demo-foot small {
  color: #a29aa9;
  font-size: 11px;
}
@media (max-width: 700px) {
  .anagh-filter-demo {
    padding: 20px 16px;
  }
  .filter-demo-head,
  .filter-demo-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .filter-demo-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .filter-demo-controls {
    gap: 8px;
  }
  .anagh-filter-demo button {
    font-size: 11px;
    padding: 10px;
  }
  .filter-demo-product {
    padding: 10px 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .anagh-filter-demo * {
    transition: none !important;
  }
}
