/* Shop-only filter controls. No global token or shared component overrides. */
[data-shop-filters] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
}
[data-shop-filters] .shop-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
}
[data-shop-filters] .shop-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--ounin-line);
  border-radius: var(--radius-pill);
  background: var(--ounin-bone);
  color: var(--ounin-stone);
  font-family: var(--font-sans);
  font-size: var(--type-small);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--duration-normal), color var(--duration-normal), border-color var(--duration-normal);
}
[data-shop-filters] .shop-filter-button:hover {
  border-color: var(--ounin-stone);
  background: var(--ounin-cream);
  color: var(--ounin-ink);
}
[data-shop-filters] .shop-filter-button[aria-pressed="true"] {
  background: #E9DCCF;
  border-color: #C7A78A;
  color: #6F4E37;
}
[data-shop-filters] .shop-filter-button:focus-visible,
[data-shop-filter-empty] button:focus-visible {
  outline: 2px solid var(--ounin-sage-deep);
  outline-offset: 3px;
}
[data-shop-filters] [data-shop-filter-count] {
  display: none;
}
/* Keep result announcements available to screen readers, not in the visual toolbar. */
[data-shop-filters] .shop-filter-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[data-shop-filter-empty] {
  padding: var(--space-7) var(--space-5);
  border: 1px dashed var(--ounin-line);
  border-radius: var(--radius-sm);
  background: var(--ounin-bone);
  text-align: center;
}
[data-shop-filter-empty] h3 { margin-bottom: var(--space-3); }
[data-shop-filter-empty] p { margin: 0 auto var(--space-4); color: var(--ounin-stone); }
[data-shop-filter-empty] button {
  min-height: 44px;
  padding: 8px 16px;
  color: var(--ounin-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
/* Keep every category badge beside the capacity and allow multi-tag wrapping. */
[data-collection-products] .bestseller-card-sku {
  display: flex;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2);
}
[data-collection-products] .shop-product-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 24px;
  padding: 3px var(--space-2);
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ounin-stone);
  background: var(--ounin-cream);
  border: 1px solid var(--ounin-line);
  border-radius: var(--radius-sm);
}
/* Explicitly beat display rules without taking ownership of Shopify hidden. */
[data-collection-products] .shop-product-tag[hidden],
[data-shop-filters][hidden],
[data-shop-filter-empty][hidden],
[data-collection-products] > .bestseller-card[hidden],
[data-collection-products] > .bestseller-card[data-shop-filter-hidden="true"] {
  display: none !important;
}
@media (max-width: 767px) {
  [data-shop-filters] .shop-filter-button { padding-inline: 14px; }
}
