/**
 * WooCommerce Filter Sidebar - Beautiful Styling
 */

/* =========================
   FILTER SIDEBAR CONTAINER
========================= */
.filter-sidebar {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 30px 25px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	position: sticky;
	top: 100px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #ddd #f5f5f5;
}

.filter-sidebar::-webkit-scrollbar {
	width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
	background: #f5f5f5;
	border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
	background: #bbb;
}

.filter-sidebar h3 {
	font-size: 20px;
	font-weight: 700;
	color: #111;
	margin: 0 0 25px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #e5e5e5;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* =========================
   FILTER GROUP STYLING
========================= */
.filter-sidebar .filter-group {
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid #f0f0f0;
}

.filter-sidebar .filter-group:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.filter-sidebar .widget {
	margin-bottom: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}

.filter-sidebar .widget-title {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin: 0 0 18px 0;
	padding: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.filter-sidebar .widget-title i {
	color: #e11b22;
	font-size: 14px;
	margin-right: 8px;
	flex-shrink: 0;
}

/* Ensure Font Awesome icons display correctly */
.filter-sidebar .widget-title i,
.filter-sidebar .widget-title .fa-solid,
.filter-sidebar .widget-title .fa {
	font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
	font-style: normal;
	font-weight: 900;
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
}

/* Specific icon styling for each widget type - fallback if icons don't load */
.filter-sidebar .widget-categories i.fa-tags::before,
.filter-sidebar .widget-categories i[class*="fa-tags"]::before {
	content: "\f02c";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
}

.filter-sidebar .widget-price i.fa-tag::before,
.filter-sidebar .widget-price i[class*="fa-tag"]::before {
	content: "\f02b";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
}

.filter-sidebar .widget-search i.fa-magnifying-glass::before,
.filter-sidebar .widget-search i[class*="fa-magnifying-glass"]::before {
	content: "\f002";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
}

/* =========================
   PRODUCT CATEGORIES
========================= */
.filter-sidebar .product-categories,
.filter-sidebar .widget_product_categories {
	list-style: none;
	padding: 0;
	margin: 0;
}

.filter-sidebar .product-categories li,
.filter-sidebar .widget_product_categories li {
	margin: 0 0 10px 0;
	padding: 0;
	list-style: none;
}

.filter-sidebar .product-categories li a,
.filter-sidebar .widget_product_categories li a {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	color: #555;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
	position: relative;
}

.filter-sidebar .product-categories li a:hover,
.filter-sidebar .widget_product_categories li a:hover {
	background: #f8f8f8;
	color: #e11b22;
	padding-left: 18px;
}

.filter-sidebar .product-categories li.current-cat > a,
.filter-sidebar .widget_product_categories li.current-cat > a {
	background: #e11b22;
	color: #fff;
	font-weight: 600;
}

.filter-sidebar .product-categories li .count,
.filter-sidebar .widget_product_categories li .count {
	margin-left: auto;
	font-size: 12px;
	color: #999;
	background: #f0f0f0;
	padding: 3px 8px;
	border-radius: 12px;
	font-weight: 500;
}

.filter-sidebar .product-categories li.current-cat .count,
.filter-sidebar .widget_product_categories li.current-cat .count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.filter-sidebar .product-categories li.children,
.filter-sidebar .widget_product_categories li.children {
	margin-left: 20px;
}

/* =========================
   PRICE FILTER - SLIDER
========================= */
.filter-sidebar .price_slider_wrapper {
	padding: 0;
	margin: 20px 0;
}

.filter-sidebar .price_slider {
	width: 100%;
	height: 6px;
	background: #e5e5e5;
	border-radius: 10px;
	position: relative;
	margin: 20px 0;
	border: none;
}

.filter-sidebar .price_slider .ui-slider-range {
	background: linear-gradient(90deg, #e11b22, #ff4757);
	height: 100%;
	border-radius: 10px;
	position: absolute;
	top: 0;
}

.filter-sidebar .price_slider .ui-slider-handle {
	width: 22px;
	height: 22px;
	background: #fff;
	border: 3px solid #e11b22;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	cursor: grab;
	box-shadow: 0 2px 8px rgba(225, 27, 34, 0.3);
	transition: all 0.3s ease;
	outline: none;
	margin-left: -11px;
}

.filter-sidebar .price_slider .ui-slider-handle:hover {
	transform: translateY(-50%) scale(1.25);
	box-shadow: 0 4px 12px rgba(225, 27, 34, 0.5);
	border-width: 4px;
}

.filter-sidebar .price_slider .ui-slider-handle:active {
	cursor: grabbing;
	transform: translateY(-50%) scale(1.15);
	box-shadow: 0 6px 16px rgba(225, 27, 34, 0.6);
}

.filter-sidebar .price_slider .ui-state-focus {
	outline: none;
}

.filter-sidebar .price_slider_amount {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	gap: 15px;
}

.filter-sidebar .price_slider_amount .price_label {
	font-size: 14px;
	color: #555;
	font-weight: 500;
	flex: 1;
}

.filter-sidebar .price_slider_amount .price_label span {
	color: #e11b22;
	font-weight: 700;
	font-size: 16px;
}

.filter-sidebar .price_slider_amount button {
	padding: 10px 20px;
	background: #e11b22;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.filter-sidebar .price_slider_amount button:hover {
	background: #c5001d;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(225, 27, 34, 0.4);
}

/* =========================
   PRODUCT SEARCH
========================= */
.filter-sidebar .woocommerce-product-search {
	display: flex;
	gap: 8px;
}

.filter-sidebar .woocommerce-product-search input[type="search"] {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.3s ease;
	background: #fff;
}

.filter-sidebar .woocommerce-product-search input[type="search"]:focus {
	outline: none;
	border-color: #e11b22;
	box-shadow: 0 0 0 3px rgba(225, 27, 34, 0.1);
}

.filter-sidebar .woocommerce-product-search button {
	padding: 12px 20px;
	background: #e11b22;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.filter-sidebar .woocommerce-product-search button:hover {
	background: #c5001d;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(225, 27, 34, 0.4);
}

/* =========================
   LAYERED NAV (ATTRIBUTES)
========================= */
.filter-sidebar .woocommerce-widget-layered-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.filter-sidebar .woocommerce-widget-layered-nav-list li {
	margin: 0 0 10px 0;
	padding: 0;
}

.filter-sidebar .woocommerce-widget-layered-nav-list li a {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	color: #555;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
}

.filter-sidebar .woocommerce-widget-layered-nav-list li a:hover {
	background: #f8f8f8;
	color: #e11b22;
	padding-left: 18px;
}

.filter-sidebar .woocommerce-widget-layered-nav-list li.chosen a {
	background: #e11b22;
	color: #fff;
	font-weight: 600;
}

.filter-sidebar .woocommerce-widget-layered-nav-list .count {
	margin-left: auto;
	font-size: 12px;
	color: #999;
	background: #f0f0f0;
	padding: 3px 8px;
	border-radius: 12px;
	font-weight: 500;
}

.filter-sidebar .woocommerce-widget-layered-nav-list li.chosen .count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* =========================
   CHECKBOXES AND RADIOS
========================= */
.filter-sidebar input[type="checkbox"],
.filter-sidebar input[type="radio"] {
	width: 18px;
	height: 18px;
	margin-right: 10px;
	cursor: pointer;
	accent-color: #e11b22;
	flex-shrink: 0;
}

/* =========================
   CLEAR FILTERS BUTTON
========================= */
.filter-sidebar .clear-filters-btn {
	width: 100%;
	padding: 14px;
	background: #111;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 20px;
}

.filter-sidebar .clear-filters-btn:hover {
	background: #e11b22;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(225, 27, 34, 0.4);
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 992px) {
	.filter-sidebar {
		position: static;
		max-height: none;
		margin-bottom: 30px;
	}
	
	.shop-filter-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.filter-sidebar {
		padding: 20px 15px;
	}
	
	.filter-sidebar h3 {
		font-size: 18px;
	}
	
	.filter-sidebar .widget-title {
		font-size: 14px;
	}
}
