/*
 * Makerique Boutique theme for OpenCart 4
 * Copyright (c) 2026 Heliopsy. All Rights Reserved.
 * https://makerique.com
 * SPDX-License-Identifier: LicenseRef-Proprietary
 * Proprietary and confidential. Unauthorized copying, distribution, or
 * modification of this file, by any means, is strictly prohibited.
 */

/* Makerique Boutique — faceted filter sidebar (offcanvas on category/search).
   Auto-loaded + cache-busted; styled off theme tokens. */

.mr-facet-open {
  margin-bottom: 1rem;
}

.mr-facets {
  width: 320px;
  max-width: 90vw;
  background: var(--mr-surface, #fff);
  color: var(--mr-text, #333);
  display: flex;
  flex-direction: column;
}
.mr-facets .offcanvas-header { border-bottom: 1px solid var(--mr-border, #eee); }
.mr-facets .offcanvas-title { font-family: var(--mr-font-heading, inherit); color: var(--mr-heading, inherit); }
.mr-facets-body { flex: 1 1 auto; overflow-y: auto; padding: var(--mr-space, 1rem); }
.mr-facets-loading { text-align: center; color: var(--mr-muted, #999); padding: 2rem 0; font-size: 1.5rem; }

.mr-facet-group { margin-bottom: 1.25rem; }
.mr-facet-group h6 {
  font-family: var(--mr-font-heading, inherit);
  color: var(--mr-heading, inherit);
  margin-bottom: .5rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--mr-border, #eee);
}

.mr-facet-price { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.mr-facet-price input { max-width: 6.5rem; }
.mr-facet-price span { color: var(--mr-muted, #999); }

.mr-facet-opt {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem 0;
  cursor: pointer;
  line-height: 1.3;
}
.mr-facet-opt input { flex: 0 0 auto; }
.mr-facet-c {
  margin-left: auto;
  color: var(--mr-muted, #999);
  font-size: .8rem;
  background: var(--mr-surface-2, #f4ece3);
  border-radius: var(--mr-radius-pill, 999px);
  padding: 0 .5rem;
}

.mr-facets-foot {
  border-top: 1px solid var(--mr-border, #eee);
  padding: var(--mr-space, 1rem);
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--mr-surface, #fff);
}
.mr-facets-foot .btn-primary { flex: 1 1 auto; }

#product-list { transition: opacity .15s ease; }
