/* Theme Name: Hello Elementor Child 
 * Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash 
 * Template: hello-elementor 
 * Author: Elementor Team Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash 
 * Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators. 
 * Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready 
 * Version: 3.4.4.1757517725 Updated: 2025-09-10 15:22:05 /* ================================
 
FACETWP • SHOP FILTERS + FLYOUT
   ================================ */

/* Container */
.shop-filters.facetwp-filters {
  background:#fff;
  border:1px solid #e9e9ee;
  border-radius:8px;
  padding:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  margin:12px 0 24px;
}

/* Titels */
.filters-title {
  margin:8px 0 6px;
  font-size:14px;
  font-weight:600;
  color:#333;
}

/* Desktop layout */
@media (min-width: 993px) {
  .facetwp-flyout-open { display:none !important; }
  .shop-filters .flyout-header { display:none; }

  .shop-filters .flyout-panel {
    display:grid;
    grid-template-columns:260px 1fr;
    gap:16px;
  }

  .shop-filters .filters-left {
    border-right:1px solid #eee;
    padding-right:12px;
  }

  .shop-filters .filters-right {
    display:grid;
    grid-template-columns:1fr 1fr; /* blok 2 | blok 3 */
    gap:16px;
    padding-left:16px;
  }
}

/* Blokken (verticale stacking, compact) */
.shop-filters .shop-filters-block .shop-filters-row {
  display:flex;
  flex-direction:column;
  gap:4px;          /* velden dichter op elkaar */
  margin:0;
}
.shop-filters .single-shop-filter { width:100%; }

/* Inputs / selects */
.shop-filters .facetwp-facet { margin:0 !important; }
.shop-filters .facetwp-facet .fs-wrap { margin:0 !important; }

.shop-filters .facetwp-facet select,
.shop-filters .facetwp-facet input[type="text"] {
  width:100%;
  height:36px;
  line-height:36px;
  padding:0 10px;
  font-size:14px;
  border:1px solid #d8dbe4;
  border-radius:6px;
  background:#fff;
  transition:border-color .15s, box-shadow .15s;
}
.shop-filters .facetwp-facet select:focus,
.shop-filters .facetwp-facet input[type="text"]:focus {
  border-color:#c9d4ff;
  box-shadow:0 0 0 3px rgba(64,112,244,.15);
}

/* Productgroep (blok 1 – radio’s) */
.facetwp-facet-productgroep {
  display:flex;
  flex-direction:column;
  gap:4px;
}
.facetwp-facet-productgroep .facetwp-radio {
  display:inline-flex !important;
  align-items:center !important;
  padding:0px 0px 0px 20px;
  line-height:1.3;
}
.facetwp-facet-productgroep .facetwp-radio input[type="radio"] {
  margin:0 !important;
  flex-shrink:0 !important;
}
.facetwp-facet-productgroep .facetwp-radio label,
.facetwp-facet-productgroep .facetwp-radio .facetwp-label {
  margin:0 !important;
  padding:0 !important;
  cursor:pointer;
  white-space:nowrap;
}
.facetwp-facet-productgroep .facetwp-count {
  font-size:12px;
  color:#6b7280;
  margin-left:4px;
}
.facetwp-facet-productgroep .facetwp-radio.checked label {
  font-weight:600;
}

/* Acties (chips + reset) */
.shop-filters .shop-filters-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid #eee;
  padding-top:10px;
  gap:10px;
}
.facetwp-selections .facetwp-selection {
  background:#f2f4f7;
  border:1px solid #e3e7ef;
  border-radius:4px;
  padding:3px 7px;
  margin:2px;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* Woo topbar */
.shop-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:8px 0 16px;
}
.shop-topbar .woocommerce-result-count {
  margin:0;
  font-size:14px;
  color:#333;
}
.shop-topbar__sort .woocommerce-ordering { margin:0; }
.shop-topbar__sort .woocommerce-ordering select {
  height:36px;
  line-height:36px;
  padding:0 10px;
  font-size:14px;
  border:1px solid #d8dbe4;
  border-radius:6px;
  background:#fff;
}

/* Mobiel/tablet: flyout */
@media (max-width: 992px) {
  .facetwp-flyout-open {
    display:inline-flex;
    align-items:center;
    height:10px;
    padding:0 12px;
    border:1px solid #dfe3ea;
    border-radius:6px;
    background:#f7f8fa;
    margin:0 0 10px 0;
  }

  .shop-filters.facetwp-filters { display:none; }
  body.filters-open .shop-filters.facetwp-filters {
    display:block;
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(15,18,28,.35);
    padding:0;
  }

  .shop-filters .flyout-panel {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    max-height:85vh;
    overflow:auto;
    background:#fff;
    border-radius:12px 12px 0 0;
    padding:14px;
    box-shadow:0 -6px 20px rgba(0,0,0,.12);
    transform:translateY(100%);
    transition:transform .25s ease;
  }
  body.filters-open .shop-filters .flyout-panel { transform:translateY(0); }

  .shop-filters .flyout-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
  }
  .shop-filters .filters-close {
    height:36px;
    padding:0 12px;
    border-radius:6px;
    border:1px solid #dfe3ea;
    background:#f7f8fa;
  }

  .shop-filters .filters-left,
  .shop-filters .filters-right {
    display:block;
    padding:0;
    border:0;
  }
  .shop-filters .shop-filters-block .shop-filters-row { gap:6px; }
  .shop-topbar { flex-direction:column; align-items:flex-start; gap:8px; }
  .shop-topbar__sort,
  .shop-topbar__sort .woocommerce-ordering,
  .shop-topbar__sort .woocommerce-ordering select { width:100%; }
}

/* Loader */
.facetwp-loading .products,
.facetwp-loading .product-grid,
.facetwp-loading ul.products {
  opacity:.6;
  pointer-events:none;
  transition:opacity .2s;
}
/* Mobiel: kleinere afstand onder FacetWP-filters */
@media (max-width: 768px) {
  /* basis */
  .facetwp-facet {
    margin-bottom: 14px !important;
  }

  /* hogere specificiteit binnen jouw filtercontainer */
  .shop-filters.facetwp-filters .facetwp-facet {
    margin-bottom: 14px !important;
  }

  /* FacetWP dropdown wrapper (fSelect) zet soms extra marge */
  .facetwp-facet .fs-wrap,
  .facetwp-facet .fs-wrap + .facetwp-facet, /* edge cases */
  .facetwp-type-dropdown .fs-wrap {
    margin-bottom: 0 !important;
  }

  /* eventuele theme-marges per blok */
  .shop-filters .shop-filters-block .shop-filters-row {
    margin-bottom: 8px !important;
  }

  /* laatste element in het blok: geen extra ruimte */
  .shop-filters .shop-filters-block .shop-filters-row > .single-shop-filter:last-child .facetwp-facet {
    margin-bottom: 0 !important;
  }
}
/* Reset knop */
.facet-reset .facetwp-reset {
  display:inline-block;
  padding:8px 14px;
  background:#f5f5f7;
  border:1px solid #d8dbe4;
  border-radius:6px;
  font-size:14px;
  cursor:pointer;
  transition:all .2s ease;
}

.facet-reset .facetwp-reset:hover {
  background:#e9ebf1;
}
