/**
 * Sidebar de filtros — catálogo Aprile Joyería
 */

.aprile-shop-sidebar {
	background: #ffffff;
	border: 1px solid rgba(4, 38, 71, 0.1);
	padding: 1.5rem 1.25rem;
	box-shadow: 0 8px 28px rgba(4, 38, 71, 0.06);
}

.aprile-shop-widget {
	margin: 0 0 1.75rem;
	padding: 0 0 1.75rem;
	border-bottom: 1px solid rgba(4, 38, 71, 0.1);
}

.aprile-shop-widget:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.aprile-shop-sidebar .widget-title {
	margin: 0 0 1rem;
	padding: 0 0 0.55rem;
	border-bottom: 2px solid #dec082;
	font-family: "League Spartan", "Adam", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
	color: #042647;
}

/* Categorías */
.aprile-shop-widget--categories .product-categories,
.aprile-shop-widget--categories ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aprile-shop-widget--categories li {
	margin: 0;
	border-bottom: 1px solid rgba(4, 38, 71, 0.06);
}

.aprile-shop-widget--categories li:last-child {
	border-bottom: 0;
}

.aprile-shop-widget--categories li > a,
.aprile-shop-widget--categories li > .aprile-cat-row > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.7rem 0.45rem;
	color: #042647;
	font-family: "League Spartan", "Adam", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aprile-shop-widget--categories li > a:hover,
.aprile-shop-widget--categories li > .aprile-cat-row > a:hover,
.aprile-shop-widget--categories li.current-cat > a,
.aprile-shop-widget--categories li.current-cat > .aprile-cat-row > a {
	background: rgba(222, 192, 130, 0.18);
	color: #042647;
}

.aprile-shop-widget--categories .count {
	flex-shrink: 0;
	min-width: 1.6rem;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	background: rgba(4, 38, 71, 0.07);
	color: rgba(4, 38, 71, 0.72);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
}

.aprile-shop-widget--categories li.current-cat .count {
	background: #042647;
	color: #ffffff;
}

.aprile-shop-widget--categories .children {
	margin: 0;
	padding: 0.15rem 0 0.35rem 0.85rem;
	border-left: 2px solid rgba(222, 192, 130, 0.55);
}

.aprile-shop-widget--categories .children li > a,
.aprile-shop-widget--categories .children li > .aprile-cat-row > a {
	font-size: 12px;
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

.aprile-shop-widget--categories .cat-parent > .aprile-cat-row {
	display: flex;
	align-items: stretch;
}

.aprile-shop-widget--categories .cat-parent > .aprile-cat-row > a {
	flex: 1;
}

.aprile-cat-toggle {
	flex-shrink: 0;
	width: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(4, 38, 71, 0.08);
	background: transparent;
	color: #042647;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.aprile-cat-toggle::before {
	content: "";
	display: block;
	width: 0.45rem;
	height: 0.45rem;
	margin: 0 auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.2s ease;
}

.aprile-cat-toggle[aria-expanded="true"]::before {
	transform: rotate(-135deg) translateY(1px);
}

.aprile-cat-toggle:hover {
	background: rgba(222, 192, 130, 0.18);
}

.aprile-shop-widget--categories .cat-parent.is-collapsed > ul.children {
	display: none;
}

/* Filtro de precio */
.aprile-shop-widget--price .price_slider_wrapper {
	padding-top: 0.35rem;
}

.aprile-shop-widget--price .price_slider {
	margin-bottom: 1rem;
}

.aprile-shop-widget--price .price_slider_amount {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.aprile-shop-widget--price .price_label {
	flex: 1 1 100%;
	margin: 0 0 0.25rem;
	color: rgba(4, 38, 71, 0.78);
	font-size: 12px;
}

.aprile-shop-widget--price .price_slider_amount .button {
	width: 100%;
	margin-top: 0.25rem;
}

/* Área principal de productos */
body.woocommerce-shop .site-main .woocommerce-result-count,
body.tax-product_cat .site-main .woocommerce-result-count {
	color: rgba(4, 38, 71, 0.72);
	font-size: 13px;
}

body.woocommerce-shop #secondary,
body.tax-product_cat #secondary {
	margin-top: 0;
}

@media (max-width: 768px) {
	.aprile-shop-sidebar {
		margin-bottom: 1.5rem;
		padding: 1.15rem 1rem;
	}
}
