.page-title-custom {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 1.4;
	color: #262626;
	max-width: 1140px;
	/* margin: 0 auto;  */
	padding: 48px 24px 24px;
    text-align: left;
}

@media (max-width: 576px) {
	.page-title {
		font-size: 28px;
		padding: 32px 16px 16px;
	}
}

/* ---------- Sidebar (widgets nativos de WooCommerce) ---------- */
.list-group.d-none.d-md-block > li.widget,
.offcanvas-body .widget {
	list-style: none;
	margin-bottom: 24px;
}

.widget.woocommerce h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #262626;
	margin-bottom: 12px;
}

/* Buscador */
.widget_product_search .woocommerce-product-search {
	border: 1px solid #001d51;
	border-radius: 4px;
	overflow: hidden;
}

.widget_product_search .search-field {
	border: none;
	background: #fefefe;
	font-family: 'Manrope', sans-serif;
	color: #262626;
	box-shadow: none;
}

.widget_product_search .search-btn {
	background: #001d51 !important;
	border-color: #001d51 !important;
}

.widget_product_search .search-btn i {
	color: #fff;
}

/* Categorías de producto */
.product-categories {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 340px;
	overflow-y: auto;
}

.product-categories .cat-item {
	margin-bottom: 8px;
	font-family: 'Manrope', sans-serif;
}

.product-categories .cat-item a {
	position: relative;
	color: #be1019;
	font-weight: 500;
	text-decoration: none;
	padding-left: 16px;
}

.product-categories .cat-item a::before {
	content: "\2022";
	position: absolute;
	left: 0;
	color: #be1019;
}

.product-categories .cat-item a:hover {
	text-decoration: underline;
}

.product-categories .count {
	color: #262626;
	font-family: 'Manrope', sans-serif;
}

/* Filtro de precio */
.widget_price_filter .price_slider .ui-slider-range {
	background: #be1019 !important;
}

.widget_price_filter .price_slider .ui-slider-handle {
	background: #be1019 !important;
	border: none !important;
	border-radius: 50% !important;
	width: 15px !important;
	height: 15px !important;
	top: -6px !important;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background: #fdf6e3 !important;
	height: 4px !important;
	border: none !important;
}

.widget_price_filter .price_slider_amount {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
	font-family: 'Manrope', sans-serif;
	color: #262626;
}

/* Filtrar a la izquierda, el rango de precio a la derecha */
.widget_price_filter .price_slider_amount button.button {
	order: 1;
	background: transparent !important;
	border: 1px solid #be1019 !important;
	color: #be1019 !important;
	border-radius: 16px !important;
	padding: 8px 16px !important;
	height: 40px;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: none !important;
}

.widget_price_filter .price_slider_amount button.button::after {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f0b0"; /* fa-filter */
}

.widget_price_filter .price_label {
	order: 2;
	margin-left: auto;
}

/* ---------- Toolbar (contador + orden) ---------- */
.woocommerce-result-count {
	font-family: 'Manrope', sans-serif;
	color: #262626;
	margin: 0 0 8px;
}

.woocommerce-ordering select.orderby {
	border: 1px solid #ced4da;
	border-radius: 8px;
	padding: 8px 12px;
	font-family: 'Manrope', sans-serif;
	color: #343a40;
	min-width: 233px;
	height: 40px;
	background: #fefefe;
}

/* ---------- Grid de productos: 3 columnas fijas ----------
   Ignoramos la clase columns-4 que agrega WooCommerce y forzamos
   siempre 3 por fila, sin flex-grow para que no varíe según el
   espacio sobrante. */
ul.products {
	list-style: none !important;
	display: flex !important;
	flex-wrap: wrap;
	gap: 24px;
	padding-left: 0 !important;
	margin: 0 0 24px !important;
}

ul.products .eg-product-card {
	flex: 0 0 calc(33.333% - 16px) !important;
	max-width: calc(33.333% - 16px) !important;
}

@media (max-width: 992px) {
	ul.products .eg-product-card {
		flex: 0 0 calc(50% - 12px) !important;
		max-width: calc(50% - 12px) !important;
	}
}

@media (max-width: 576px) {
	ul.products .eg-product-card {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
}

/* ---------- Cards (ya renderizadas por content-product.php) ---------- */
.eg-product-card {
	display: flex;
	flex-direction: column;
	background: #fefefe;
	border: 1px solid #e9ecef;
	border-radius: 16px;
	overflow: hidden;
}

.eg-product-card__image {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	padding: 4px;
}

.eg-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
}

.eg-product-card__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 24px;
	padding: 4px 8px;
	font-family: 'Manrope', sans-serif;
	color: #6c757d;
	font-size: 14px;
	box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.12);
}

.eg-product-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	background: #f8f9fa;
	border-top: 1px solid #e9ecef;
	padding: 8px;
	text-align: center;
}

.eg-product-card__title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #262626;
	margin: 0;
}

.eg-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.eg-product-card__desc {
	font-family: 'Manrope', sans-serif;
	color: #262626;
	margin: 0;
}

.eg-product-card__cta.eg-btn--outline {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #be1019;
	border-radius: 16px;
	color: #be1019;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	padding: 8px 16px;
	height: 40px;
	text-decoration: none;
	margin-top: auto;
}

.eg-product-card__cta.eg-btn--outline:hover {
	background: #be1019;
	color: #fefefe;
}

/* ---------- Paginación nativa de WooCommerce ---------- */
.woocommerce-pagination {
	margin-top: 24px;
}

.woocommerce-pagination .page-numbers {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.woocommerce-pagination .page-numbers li {
	list-style: none;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px !important;
	border: 1px solid #e9ecef;
	color: #262626 !important;
	text-decoration: none !important;
	font-family: 'Manrope', sans-serif;
	background: #fefefe;
}

.woocommerce-pagination .page-numbers li a:hover {
	border-color: #be1019;
	color: #be1019 !important;
}

.woocommerce-pagination .page-numbers li span.current {
	background: #be1019 !important;
	border-color: #be1019;
	color: #fff !important;
}

.woocommerce-pagination .page-numbers li span.dots {
	border: none;
	background: transparent;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #be1019 !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background-color: #be1019 !important;
}

.col-xl-9 h1.page-title, .col-lg-9 h1.page-title, .col-md-9 h1.page-title, .col-sm-12 h1.page-title, .col-12 h1.page-title {
    display: none;
}

/* ---------- Paginación nativa de WooCommerce ---------- */
nav.woocommerce-pagination {
	margin-top: 24px !important;
}
 
nav.woocommerce-pagination ul.page-numbers {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
 
nav.woocommerce-pagination ul.page-numbers li {
	list-style: none !important;
	margin: 0 !important;
}
 
nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
nav.woocommerce-pagination ul.page-numbers li span.page-numbers {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 36px !important;
	height: 36px !important;
	padding: 0 10px !important;
	margin: 0 !important;
	border-radius: 8px !important;
	border: 1px solid #e9ecef !important;
	color: #262626 !important;
	text-decoration: none !important;
	font-family: 'Manrope', sans-serif !important;
	font-weight: 400 !important;
	background: #fefefe !important;
	line-height: 1 !important;
}
 
nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
	border-color: #be1019 !important;
	color: #be1019 !important;
	background: #fefefe !important;
}
 
nav.woocommerce-pagination ul.page-numbers li span.page-numbers.current {
	background: #be1019 !important;
	border-color: #be1019 !important;
	color: #fff !important;
}
 
nav.woocommerce-pagination ul.page-numbers li span.page-numbers.dots {
	border: none !important;
	background: transparent !important;
}
 
nav.woocommerce-pagination ul.page-numbers li a.next.page-numbers,
nav.woocommerce-pagination ul.page-numbers li a.prev.page-numbers {
	background: #001d51 !important;
	border-color: #001d51 !important;
	color: #fff !important;
}
 
