/* Wrapper */
.pd-filter-wrapper { position: relative; width: 100%; }

/* Toolbar */
.pd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.pd-open-filter { cursor: pointer; padding: 12px 20px; border: 1px solid #ddd; background: #fff; font-size: 14px; font-weight: 600; transition: all .3s ease; }
.pd-open-filter:hover { background: #f5f5f5; }
#pd-sort { min-width: 220px; padding: 12px; border: 1px solid #ddd; outline: none; }

/* Result Info */
.pd-result-info { margin-bottom: 20px; }
#pd-result-count { font-size: 14px; font-weight: 600; margin-bottom: 10px; }

/* Active Filters */
#pd-active-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-filter-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 30px; background: #f5f5f5; font-size: 13px; }
.pd-remove-filter { border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }

/* Overlay */
.pd-filter-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 9998; }
.pd-filter-overlay.active { opacity: 1; visibility: visible; }

/* Sidebar */
.pd-filter-sidebar { position: fixed; top: 0; left: 0; width: 380px; max-width: 90vw; height: 100vh; background: #fff; z-index: 9999; transform: translateX(-100%); transition: transform .35s ease; overflow-y: auto; box-shadow: 5px 0 30px rgba(0,0,0,.15); }
.pd-filter-sidebar.active { transform: translateX(0); }
.pd-filter-inner { padding: 30px; }
.pd-close-filter { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }

/* Filter Groups  */
.pd-filter-group { margin-bottom: 30px; }
.pd-filter-group h4 { margin: 0 0 15px; font-size: 16px; font-weight: 700; }
.pd-filter-group label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; font-size: 14px; }
.pd-filter-group input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
#pd-search { width: 100%; height: 46px; padding: 0 15px; border: 1px solid #ddd; outline: none; }

/* Price */
#pd-price-slider { margin: 20px 10px; }
.pd-price-values { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-top: 15px; }

/* jQuery UI Slider */
.ui-slider { position: relative; height: 4px; background: #ddd; border: 0; }
.ui-slider-range { position: absolute; height: 100%; background: #000; }
.ui-slider-handle { position: absolute; width: 18px; height: 18px; background: #fff; border: 2px solid #000; border-radius: 50%; cursor: pointer; top: -7px; margin-left: -9px; outline: none; }

/* Buttons  */
.pd-filter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
#pd-clear-filters, #pd-apply-filters, #pd-load-more { cursor: pointer; border: 0; padding: 12px 20px; font-weight: 600; transition: all .3s ease; }
#pd-clear-filters { background: #eee; color: #000; }
#pd-apply-filters { background: #000; color: #fff; }
#pd-load-more { background: #000; color: #fff; }

/* Products */
.pd-products-grid { min-height: 150px; }
.pd-load-more-wrap { text-align: center; margin-top: 40px; }

/* Loader */
.pd-loader { display: none; text-align: center; padding: 40px 20px; font-size: 16px; font-weight: 600; }

/* No Products */
.no-products-found { text-align: center; padding: 50px 20px; font-size: 18px; }

/* Scrollbar */
.pd-filter-sidebar::-webkit-scrollbar { width: 8px; }
.pd-filter-sidebar::-webkit-scrollbar-thumb { background: #ccc; }

/* Mobile */
@media (max-width: 767px) {
	.pd-toolbar { flex-direction: column; align-items: stretch; }
	#pd-sort { width: 100%; min-width: auto; }
	.pd-filter-sidebar { width: 100%; max-width: 100%; }
	.pd-filter-inner { padding: 20px; }
	.pd-filter-actions { flex-direction: column; }
	#pd-clear-filters, #pd-apply-filters { width: 100%; }
}