/* ============================= */
/* 3. MENÚ LATERAL FILTROS */
/* ============================= */

/* Layout barra lateral + productos */
.ct-container[data-sidebar="left"] {
    max-width: 1540px !important;
	display: flex !important;
	gap: 0px !important;
	align-items: flex-start;
	margin-top: 0px;
}

.ct-container[data-sidebar="left"] > aside.custom-sidebar {
	flex: 0 0 280px !important; /* Ancho fijo en el flexbox */
	margin-top: 0 !important;
	width: 280px !important;
	min-width: 280px !important;
	max-width: 280px !important;
}

.ct-container[data-sidebar="left"] > section {
	flex: 1 1 auto;
	min-width: 0;
}

.custom-sidebar {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 8px rgba(0,0,0,0.08);
	border: 1px solid rgba(0,0,0,0.1);
	padding: 0;
	min-width: 280px; /* Ancho mínimo fijo */
	max-width: 280px; /* Ancho máximo fijo */
	font-family: inherit;
	overflow: hidden;
	height: auto; /* Altura automática para desktop */
	box-sizing: border-box;
}

.custom-sidebar > * {
	box-sizing: border-box;
}

/* Forzar ancho consistente en todos los elementos internos */
.custom-sidebar ul,
.custom-sidebar li,
.custom-sidebar a,
.custom-sidebar .price-filter-form,
.custom-sidebar .rating-list {
	box-sizing: border-box;
}

/* Indicador de carga para secciones de filtros */
.has-submenu.loading > a .text::after {
	content: '...';
	animation: loadingDots 1.5s infinite;
}

.has-submenu.loading > a .arrow {
	display: none;
}

.has-submenu.loading {
	opacity: 0.7;
	pointer-events: none;
}


.custom-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-sidebar li {
	border-bottom: 1px solid rgba(0,0,0,0.05);
	position: relative;
}

.custom-sidebar > ul > li:last-child,
.custom-sidebar > ul > li:last-child > a {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	overflow: hidden;
}

.custom-sidebar a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	text-decoration: none;
	color: #2c3338;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
}

.custom-sidebar .label-with-arrow {
	display: flex;
	align-items: center;
	gap: 6px;
}

.custom-sidebar .arrow {
	font-size: 12px;
	line-height: 1;
	display: inline-block;
	transform: rotate(0deg);
	transition: transform 0.2s ease;
}

.menu-checkbox {  
	width: 18px;
	height: 18px;
	cursor: pointer;
	flex-shrink: 0;
	margin: 0 6px 0 0;
	position: relative;
	border: 2px solid var(--theme-palette-color-4);
	border-radius: 3px;
	background-color: white;
	transition: all 0.2s ease;
	/* Ocultar checkbox nativo */
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.menu-checkbox:checked {
	background-color: var(--theme-palette-color-8);
	border-color: var(--theme-palette-color-4);
	background-color: #2271b1; /* Azul Woocommerce por defecto */
}

.menu-checkbox:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 3px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.menu-checkbox:hover {
	border-color: var(--theme-palette-color-4);
}

.custom-sidebar .count {
	font-size: 13px;
	font-weight: 600;
	color: var(--theme-palette-color-8);
	background: var(--theme-palette-color-4);
	padding: 2px 6px;
	border-radius: 10px;
	transition: background 0.2s ease, color 0.2s ease;
	flex-shrink: 0;    
}

.custom-sidebar a:hover {
	background-color: var(--theme-palette-color-4);
	color: var(--theme-palette-color-8);
}

.custom-sidebar a:hover .count {
	background-color: #fff;
	color: #2c3338;
}


/* Submenús */
.custom-sidebar .submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	background-color: #fafafa;
	margin-left: 0;
}

.custom-sidebar .submenu .submenu {
	margin-left: 20px;
	border-left: 2px solid #f0f0f0;  /* ← ESTA ES LA LÍNEA VERTICAL */
}

.custom-sidebar .submenu .submenu .submenu {
	margin-left: 20px;
}

.custom-sidebar .submenu .submenu .submenu .submenu {
	margin-left: 30px;
}

/* Efecto visual para niveles anidados */
.custom-sidebar li[style*="margin-left"] {
    border-left: 2px solid transparent;  /* Línea transparente por defecto */
    transition: border-color 0.3s ease;
}

.custom-sidebar li[style*="margin-left"]:hover {
    border-left-color: var(--theme-palette-color-4);  /* Color al hacer hover */
}

.custom-sidebar li.open > .submenu {
	max-height: 500px;
	transition: max-height 0.3s ease-in;
}

.custom-sidebar .submenu a {
	font-size: 13px;
	padding-left: 26px;
}


/* Estilos para el menú de Precios */
.custom-sidebar .price-filter-form {
	padding: 12px 16px;
}

.custom-sidebar .price-filter-form .price-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.custom-sidebar .price-filter-form .price-label {
	font-size: 13px;
	font-weight: 600;
	color: #2c3338;
	display: flex;
	align-items: center;
	gap: 4px;
}

.custom-sidebar .price-filter-form .price-value {
	color: var(--theme-palette-color-8);
	background: var(--theme-palette-color-4);
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}

.custom-sidebar .price-slider-container {
	position: relative;
	height: 10px;
	margin: 20px 10px;
	display: flex;
	align-items: center;
}

.custom-sidebar .slider-track {
	position: absolute;
	width: 100%;
	height: 5px;
	/*background: var(--theme-palette-color-4);*/
	background: #e0e0e0; /* ← SOLO CAMBIA ESTO: Gris para parte NO seleccionada */
	border-radius: 5px;
	z-index: 1;
	overflow: hidden; /* Esto contiene el pseudo-elemento */
}

.custom-sidebar .slider-track::before {
	content: '';
	position: absolute;
	height: 5px;
	left: var(--min-position);
	right: calc(100% - var(--max-position));
	/*background: #e0e0e0;*/
	background: var(--theme-palette-color-4); /* Esto se mantiene igual (parte seleccionada) */
	border-radius: 5px;
	z-index: 2;
}

.custom-sidebar .price-range {
	position: absolute;
	width: 100%;
	height: 0;
	margin: 0;
	-webkit-appearance: none;
	pointer-events: none;
	z-index: 3;
}

.custom-sidebar .price-range::-webkit-slider-thumb {
	pointer-events: all;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	background: var(--theme-palette-color-8);
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid var(--theme-palette-color-4);
	position: relative;
	z-index: 4;
	margin-top: -5px;
}

.custom-sidebar .price-range::-moz-range-thumb {
	pointer-events: all;
	width: 16px;
	height: 16px;
	background: var(--theme-palette-color-8);
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid var(--theme-palette-color-4);
	position: relative;
	z-index: 4;
}

.custom-sidebar .price-filter-form .price-apply-btn {
	display: block;
	background-color: var(--theme-palette-color-8) !important;
	color: var(--theme-palette-color-4) !important;
	border: none;
	padding: 0px 0px;
	text-align: center;
	margin: 0px auto;
	border: 2px solid var(--theme-palette-color-4) !important;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.2s ease;
	width: 40%;
}

.custom-sidebar .price-filter-form .price-apply-btn:hover {
	background-color: var(--theme-palette-color-4) !important;
	color: var(--theme-palette-color-8) !important;
}

/* FILTRO DE VALORACIÓN (ESTRELLAS) */
.rating-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rating-list li {
	padding: 0;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rating-list li:last-child {
	border-bottom: none;
}

.rating-list a {
	padding: 8px 16px !important;
}

.rating-list label {
	display: flex;
	align-items: center;
	cursor: pointer;
	width: 100%;
}

.stars {
	display: flex;
	margin-right: 8px;
}

.star {
	color: #ddd;
	font-size: 16px;
	margin-right: 2px;
}

.star.full {
	color: #ffb100;
}

.count {
	font-size: 13px;
	font-weight: 600;
	color: var(--theme-palette-color-8);
	background: var(--theme-palette-color-4);
	padding: 2px 6px;
	border-radius: 10px;
	transition: background 0.2s ease, color 0.2s ease;
	margin-left: auto;
}

.rating-list input[type="checkbox"]:checked ~ .count {
	background: var(--theme-palette-color-8);
	color: var(--theme-palette-color-4);
}

.rating-list input[type="checkbox"]:checked + .stars {
	position: relative;
}

.rating-list input[type="checkbox"]:checked + .stars::after {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	border: 2px solid var(--theme-palette-color-8);
	border-radius: 4px;
	background: rgba(34, 113, 177, 0.05);
}

/* Estilos para el botón de filtro en móvil */
.mobile-filter-bar {
	display: none;
	background-color: transparent;
	border-bottom: none;
	position: sticky;
	top: 100px;
	z-index: 99;
	text-align: center;
	padding: 2px 0;
}

.filter-toggle-btn {
	max-width: 100px;
	width: 40%;
	padding: 4px 4px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	background-color: #fff;
	border: 1px solid #e0e0e0;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 0 auto;
}

.filter-toggle-btn:hover {
	background-color: #f0f0f0;
}

.icon-filter:before {
	content: "▼";
	font-size: 12px;
}
.no-products {
	text-align: center;
	padding: 40px 20px;
	font-size: 18px;
	color: #666;
	grid-column: 1 / -1;
}
/* Superposición del fondo */
.body-filter-open:after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
}

/* El contenedor del botón de cerrar está oculto en la versión de escritorio por defecto */
.sidebar-header {
	display: none;
}

/* Scroll personalizado para el sidebar */
.custom-sidebar::-webkit-scrollbar {
	width: 4px;
}

.custom-sidebar::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.custom-sidebar::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 2px;
}

.custom-sidebar::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* Prevenir comportamientos no deseados en iOS */
@supports (-webkit-touch-callout: none) {
.custom-sidebar {
	padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
	}

/* Asegurar que los inputs no causen zoom */
	input, select, textarea {
	font-size: 16px;
	}
}

/* Mejorar la apariencia de los elementos táctiles */
button, a {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

/* Asegurar que los elementos sean lo suficientemente grandes para tocar */
.menu-checkbox {
	min-width: 24px;
	min-height: 24px;
}

.price-range::-webkit-slider-thumb {
	min-width: 24px;
	min-height: 24px;
}

/* Estilo del botón de cerrar */
/* Botón cerrar visible y posicionado */
.close-sidebar {
	display: flex !important;
	width: 25px !important;
	height: 25px !important;
	font-size: 12px !important;
	background: #2271b1 !important;
	color: white !important;
	border: none !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	top: auto !important;
	right: auto !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
}

/* Transiciones suaves para el menú */
.has-submenu .submenu {
	transition: max-height 0.3s ease-in-out;
}

.has-submenu .arrow {
	transition: transform 0.3s ease;
}

/* ============================= */
/* 4. CATEGORÍAS */
/* ============================= */

/*
* Esta regla de Grid ha sido reforzada para asegurar que
* las tarjetas de categoría se muestren en columnas.
*/
.categorias-tienda{
    margin: 0 0 10px 0 !important;
}
.categorias-tienda,
.woocommerce ul.products.product-subcategories {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
	gap: 15px !important;
	justify-items: left !important; /* Centra los elementos */
    margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	max-width: 1200px !important;
}

.categoria-producto-style,
.woocommerce ul.products.product-subcategories li.product-category {
	width: 100%;
	max-width: 210px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	padding: 15px;
	text-align: center;
	transition: transform 0.2s ease;
	height: auto;
	display: flex; /* Añadido Flexbox para control interno */
	flex-direction: column; /* Organiza los elementos verticalmente */
	align-items: center; /* Centra el contenido horizontalmente */
	justify-content: flex-start; /* Alinea los elementos arriba */
}

.categoria-producto-style a,
.woocommerce ul.products.product-subcategories li.product-category a {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.categoria-producto-style img,
.woocommerce ul.products.product-subcategories li.product-category img {
	border-radius: 5px;
	margin: 0;
	width: 100%;
	height: 150px; /* Altura fija para uniformidad */
	object-fit: contain; /* Ajusta la imagen sin recortarla ni distorsionarla */
	flex-shrink: 0;
}

.categoria-producto-style .woocommerce-loop-product__title,
.woocommerce ul.products.product-subcategories li.product-category h2 {
	color: #2c3338;
	display: block;
	font-size: 1.1em;
	font-weight: 600;
	margin-top: 10px;
	min-height: 40px;
	text-align: center;
}

.categoria-producto-style .count,
.woocommerce ul.products.product-subcategories li.product-category .count {
	color: #007bff !important; /* Color azul forzado */
	font-size: 0.9em !important;
	font-weight: bold !important; /* Texto en negrita forzado */
	margin-top: -5px !important;
}

/* HOVER COMPARTIDO */

.woocommerce ul.products li.product:hover,
.categoria-producto-style:hover,
.woocommerce ul.products.product-subcategories li.product-category:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0,0,0,0.12);
	border-color: #d1d5db;
}

/* ============================= */
/* 5. PRODUCTOS */
/* ============================= */

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Optimizado para ajustar el tamaño */
	gap: 15px;
	justify-items: left !important;
	margin: 20px auto;
	margin-bottom: 5px;
	padding: 0;
	list-style: none;
	max-width: 1200px;
}

/* ============================= */
/* RESPONSIVIDAD */
/* ============================= */

/* Eliminar bordes y líneas de las tarjetas */
.categoria-producto-style,
.woocommerce ul.products li.product {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Eliminar cualquier línea interior en tarjetas */
.woocommerce-loop-product__title,
.woocommerce-loop-product__title a,
.woocommerce ul.products li.product .price,
.ct-woo-card-actions {
    border: none !important;
    box-shadow: none !important;
}

/* AJUSTES ADICIONALES DE ESPACIADO */

.woocommerce ul.products li.product,
.categoria-producto-style {
    padding: 12px !important;
    margin: 0 !important;
}

/* Eliminar cualquier espacio extra alrededor de los grids */
.woocommerce ul.products,
.categorias-tienda {
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que las imágenes no tengan bordes */
.woocommerce ul.products li.product a img,
.categoria-producto-style img {
    border: none !important;
    outline: none !important;
}

/* MEJORA VISUAL GENERAL */
.woocommerce ul.products li.product,
.categoria-producto-style {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product:hover,
.categoria-producto-style:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12) !important;
}

.ct-container[data-sidebar="left"] > section,
.tienda-contenido {
    /*padding-bottom: 0px !important; /* Ajusta este valor (por ejemplo, 50px) para controlar la cantidad de espacio */
    position: relative;
    min-height: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 10px 10px 10px !important;
}

div.ct-container:nth-child(2) > section:nth-child(1) {
    /*padding-bottom: 0px !important; /* Ajusta este valor (por ejemplo, 50px) para controlar la cantidad de espacio */
    position: relative;
    min-height: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 10px 10px 10px !important;
}

.search-box-container {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.search-box {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
    background: transparent;
    height: 100%;
}

.search-btn {
    background: #2271b1;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1px;
    border-radius: 0 25px 25px 0;
}

.search-btn:hover {
    background: #135e96;
    transform: none;
}

.search-btn:active {
    background: #0c4a7a;
}

.search-input:focus,
.search-btn:focus {
    outline: none;
}

.search-results-info {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    min-height: 18px;
}

.search-results-info .highlight {
    color: #2271b1;
    font-weight: 600;
}

@media (max-width: 796px) {

    .ct-container[data-sidebar="left"] > section,
    .tienda-contenido {
        padding: 10px 5px 0 10px !important;
    }

	.woocommerce div.product {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.woocommerce div.product .summary {
		margin-top: 15px;
		margin-bottom: 15px;
	}

	.woocommerce-products-header {
		margin-bottom: 0 !important;
	}

	.woocommerce-shop .page-content,
	.woocommerce.archive .page-content {
		padding-bottom: 20px !important;
	}

	.site-footer {
		margin-top: 20px !important;
	}

	.ct-titulo-barra {
		padding-left: 5px;
		margin: 10px auto;
	}

	.ct-titulo-barra .title-text {
		font-size: 1.25rem;
	}

	.mobile-filter-bar {
		display: block;
	}

	body.admin-bar .mobile-filter-bar {
		top: 100px;
	}

	body.body-filter-open {
		overflow: hidden;
	}

	.custom-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 85%;
		height: auto; /* Altura según contenido */
		max-height: 90vh; /* Límite máximo pero no siempre 100% */
		z-index: 9999996;
		transform: translateX(-100%);
		transition: transform 0.3s ease-out;
		overflow-y: auto; /* Scroll solo cuando sea necesario */
		-webkit-overflow-scrolling: touch;
		border-radius: 0;
		border: none;
        padding: 0 20px 0 15px !important;
	}

	body.body-filter-open .custom-sidebar {
		transform: translateX(0);
	}

	body.body-filter-open:after {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 10002;
		transition: opacity 0.3s ease-in-out;
	}

	body.body-filter-open .site-header,
	body.body-filter-open .site-content > div:not(.custom-sidebar),
	body.body-filter-open .site-footer {
		pointer-events: none;
	}

	.sidebar-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding:10px 10px 5px 10px !important;
        border-bottom: 1px solid #eee !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 0px !important;
    }

	/* Logo visible */
    .sidebar-logo {
        width: 30px !important;
        height: 30px !important;
        flex-shrink: 0 !important;
        display: block !important;
    }
    
    .sidebar-logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        display: block !important;
    }

	.sidebar-menu {
		padding-top: 0;
		padding-bottom: 20px;
	}

	.sidebar-menu > li {
		padding-left: 0;
		margin-left: 0;
	}

	.sidebar-menu .submenu {
		padding-left: 0;
		margin: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease-in-out;
	}

	.custom-sidebar li.open > .submenu {
		max-height: 500px;
	}

	.sidebar-menu li a {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	/* Botón cerrar visible y posicionado */
    .close-sidebar {
        display: flex !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 12px !important;
        background: #2271b1 !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

	/* Prevenir que los inputs causen zoom en iOS */
	input[type="range"],
	input[type="checkbox"] {
		font-size: 16px;
	}

	.custom-sidebar > ul {
		min-height: calc(100vh - 60px);
		overflow-y: auto;
	}

	/* Prevenir que los inputs causen zoom en iOS */
	input[type="range"],
	input[type="checkbox"] {
		font-size: 16px;
	}
	
	.ct-container[data-sidebar="left"],
    .tienda-contenido,
    .woocommerce ul.products,
    .categorias-tienda {
        margin: 0 !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        width: 100% !important;
    }
    
    /* Ajuste específico para el contenedor principal */
    .ct-container[data-sidebar="left"] {
        padding: 0 5px !important;
    }
	
	/* FUERZA QUE EL CONTENEDOR DEL BOTÓN Y EL SELECTOR SEA FLEX EN FILA */
    .woocommerce ul.products li.product .ct-woo-card-actions {
        display: flex !important;
        flex-direction: row !important; /* Asegura que los elementos se mantengan en una fila */
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Estilos del selector de cantidad */
    .woocommerce ul.products li.product .ct-woo-card-actions .quantity {
        flex-grow: 1 !important;
        max-width: 90px !important;
    }

    /* Estilos del botón de "Añadir al carrito" */
    .woocommerce ul.products li.product .ct-woo-card-actions .add_to_cart_button.button {
        padding: 8px 12px !important;
        white-space: nowrap !important;
    }

    /* Asegurar que el ícono sea visible y del tamaño adecuado */
    .woocommerce ul.products li.product .ct-woo-card-actions .add_to_cart_button.button .cart-icon {
        font-size: 18px !important;
        margin-left: 0 !important;
    }
	
	/* Flex-wrap para evitar que los elementos se amontonen */
    .woocommerce ul.products li.product.product_cat-recargas .ct-woo-card-actions {
        flex-wrap: wrap; /* Permite que los elementos pasen a la siguiente línea */
        justify-content: space-between !important; /* Distribuye el espacio entre los elementos */
        align-items: flex-start !important; /* Alinea los elementos en la parte superior */
        gap: 10px !important; /* Aumenta el espacio entre los elementos */
    }

    /* Asegura que el título no se desborde y mantenga el tamaño de fuente */
    .woocommerce ul.products li.product.product_cat-recargas .woocommerce-loop-product__title {
        font-size: 1em !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        flex: 1 1 100%; /* Ocupa todo el ancho disponible */
        margin-bottom: 5px !important; /* Espacio debajo del título */
    }

    /* Ajuste para el precio, asegurando que no se corte */
    .woocommerce ul.products li.product.product_cat-recargas .price {
        flex: 1 1 50%; /* Ocupa la mitad del ancho para coexistir */
        font-size: 1.2em !important; /* Haz que el precio sea más visible */
        text-align: left;
    }
    
    /* Asegura que las estrellas y las acciones de cantidad estén bien espaciadas */
    .woocommerce ul.products li.product.product_cat-recargas .star-rating {
        flex: 1 1 50%; /* Ocupa la mitad del ancho para coexistir */
        text-align: right; /* Alinea las estrellas a la derecha */
        margin-bottom: 0 !important;
    }
    
    /* Ajuste para el botón de cantidad, asegurando que ocupe el ancho correctamente */
    .woocommerce ul.products li.product.product_cat-recargas .quantity {
        flex: 1 1 auto !important; /* Ocupa el espacio restante */
        max-width: 100% !important; /* Asegura que no se desborde */
    }
    
    /* Ajuste para el botón de añadir al carrito */
    .woocommerce ul.products li.product.product_cat-recargas .button.add_to_cart_button {
        flex: 1 1 100% !important; /* El botón de añadir al carrito ocupa su propia línea */
        margin-top: 10px !important; /* Espacio sobre el botón */
    }
}

@media (max-width: 768px) {
    .search-box-container {
        padding: 12px;
    }
    
    .search-input {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .search-btn {
        padding: 0 16px;
    }
    
    .search-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
	.woocommerce-before-main-content {
		padding-bottom: 10px !important;
	}

	.woocommerce-products-header {
		margin-bottom: 5px !important;
	}

	.woocommerce-shop .page-content,
	.woocommerce.archive .page-content {
		padding-bottom: 10px !important;
	}

    .ct-container[data-sidebar="left"] > section,
    .tienda-contenido {
        padding: 5px 0px 0 0px !important;
    }

	.woocommerce-products {
		margin-bottom: 10px !important;
	}

	.site-footer {
		margin-top: 10px !important;
	}

	.woocommerce-after-shop-loop {
		margin-top: 15px;
		padding-bottom: 15px;
	}

	.custom-sidebar {
		width: 90%;
	}

	.sidebar-menu li a {
		padding: 12px 15px;
	}

	.price-filter-form {
		padding: 10px;
	}

	.price-slider-container {
		margin: 15px 5px;
	}

	/* Asegurar que los sliders sean fáciles de tocar */
	.price-range::-webkit-slider-thumb {
		width: 20px;
		height: 20px;
	}

	.price-range::-moz-range-thumb {
		width: 20px;
		height: 20px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 14px;
	}

	.woocommerce ul.products li.product .price {
		font-size: 15px;
	}

	.woocommerce ul.products li.product .ct-woo-card-actions {
		flex-direction: column;
	}

	.woocommerce ul.products li.product .quantity {
		width: 100%;
	}

	.tooltip-text {
        width: 85vw;
        max-width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
        top: 100%;
        margin-top: 12px;
    }
    
    .tooltip-text::after {
        top: -6px;
        left: 50%;
        margin-left: -6px;
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent #1d2327 transparent;
    }
    
    .help-tooltip:hover .tooltip-text {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Casos especiales para bordes */
    .select-with-help:last-child .help-tooltip:hover .tooltip-text {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(0);
    }
    
    .select-with-help:first-child .help-tooltip:hover .tooltip-text {
        left: 0;
        right: auto;
        transform: translateX(0) translateY(0);
    }
    
    /* Ajuste para tooltips muy largos */
    .checkbox-container .tooltip-text {
        white-space: normal;
    }
	
	.woocommerce ul.products li.product .ct-woo-card-actions {
        display: flex;
        align-items: center;
        flex-wrap: nowrap; /* Evita que los elementos se salten de línea */
        gap: 5px; /* Pequeño espacio entre el selector y el botón */
        width: 100%;
        justify-content: left; /* Centra los elementos */
    }
    
    /* Selector de cantidad compacto */
    .woocommerce ul.products li.product .quantity {
        width: 70px !important;
        min-width: 70px !important;
        flex-shrink: 0 !important;
    }
	
	/* Contenedor del precio: Mantiene todos los elementos en una fila, sin importar el espacio. */
    .woocommerce ul.products li.product .price {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: left !important;
    }

    /* Reduce el tamaño de la fuente para que quepa en una sola línea. */
    .woocommerce ul.products li.product .price .amount,
    .woocommerce ul.products li.product .price del .amount,
    .woocommerce ul.products li.product .price ins .amount {
        font-size: 0.8em !important; /* Puedes ajustar este valor si lo necesitas. */
        line-height: 1.2 !important; /* Asegura que la altura de la línea no cause saltos. */
        white-space: nowrap !important; /* Refuerza para evitar saltos. */
    }

    /* Asegura que el símbolo de la moneda y otros textos sean pequeños y se mantengan en línea. */
    .woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
        font-size: 0.8em !important;
        white-space: nowrap !important;
    }

    /* Opcional: Elimina el texto 'USD' si está presente para ahorrar espacio */
    .woocommerce ul.products li.product .price .woocommerce-price-suffix {
        display: none !important;
    }
}

/* ============================= */
/* ANIMACIONES */
/* ============================= */

@keyframes loadingDots {
	0%, 20% { content: '.'; }
	40% { content: '..'; }
	60%, 100% { content: '...'; }
}

@keyframes pulseGreen {
	0% { 
	transform: scale(1);
	box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
	}
	50% { 
		transform: scale(0.95);
		box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
	}
	100% { 
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
	}
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* En tu happyshop.css */
.params-activos {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #2271b1;
}

.params-activos h4 {
    margin: 0 0 10px 0;
    color: #2271b1;
    font-size: 16px;
}

.params-activos ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.params-activos li {
    margin-bottom: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.params-activos li:last-child {
    border-bottom: none;
}

.eliminar-filtro {
    background: #dc3545;
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.custom-sidebar .price-filter-form .price-apply-btn:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.custom-sidebar .price-filter-form .price-apply-btn:disabled:hover {
    background-color: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
}

.arrow.down::before {
    content: "▼";
}

.arrow.right::before {
    content: "▶";
}

/* Opcional: eliminar el textContent actual si existe */
.arrow {
    content: "" !important;
}
/* Estilos para el botón aplicar de precios */
.custom-sidebar .price-filter-form .price-apply-btn:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.custom-sidebar .price-filter-form .price-apply-btn:disabled:hover {
    background-color: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
}

.custom-sidebar .price-filter-form .price-apply-btn:not(:disabled) {
    background-color: var(--theme-palette-color-8) !important;
    color: var(--theme-palette-color-4) !important;
    border: 2px solid var(--theme-palette-color-4) !important;
    cursor: pointer !important;
}

.custom-sidebar .price-filter-form .price-apply-btn:not(:disabled):hover {
    background-color: var(--theme-palette-color-4) !important;
    color: var(--theme-palette-color-8) !important;
}
/* Estilos para checkbox de rating deshabilitados */
.rating-list li[style*="opacity: 0.5"] {
    background-color: #f9f9f9 !important;
}

.rating-list li[style*="opacity: 0.5"] a {
    cursor: not-allowed !important;
}

.rating-list li[style*="opacity: 0.5"] label {
    cursor: not-allowed !important;
}

.rating-list li[style*="opacity: 0.5"] .stars {
    opacity: 0.7;
}

.rating-list li[style*="opacity: 0.5"] .count {
    background-color: #cccccc !important;
    color: #888888 !important;
}

/* Estilo para checkbox deshabilitados */
.rating-list input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.rating-list input[type="checkbox"]:disabled + .stars {
    opacity: 0.7;
}

.rating-list input[type="checkbox"]:disabled ~ .count {
    background-color: #cccccc !important;
    color: #888888 !important;
}

/* Ocultar contenido inicial hasta que se procesen los filtros de URL */
body.loading-url-filters .tienda-contenido {
    opacity: 0;
    visibility: hidden;
}

body.loading-url-filters .tienda-contenido::after {
    content: "Cargando filtros...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #666;
}

/* Mejoras para el loader */
.url-filters-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-size: 16px;
    font-weight: 500;
    color: #2271b1;
    border: 1px solid #c3c4c7;
}

/* Indicador visual de que PHP ya procesó los filtros */
.php-filtered-products {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ocultar contenido inicial durante la carga */
.body-loading-url-filters .tienda-contenido {
    opacity: 0.3;
}

/* ============================= */
/* CORRECCIÓN CONTADOR CATEGORÍAS */
/* ============================= */

/* Estilos específicos para el contador en categorías */
.categoria-producto-style .price,
.woocommerce ul.products.product-subcategories li.product-category .price {
    /* Resetear estilos heredados */
    font-weight: bold !important;
    
}

/* Asegurar que en móviles se vea bien */
@media (max-width: 480px) {
    .categoria-producto-style .price,
    .woocommerce ul.products.product-subcategories li.product-category .price {
        font-size: 0.8em !important;
        margin-top: 0 !important;
    }
}

/* ============================= */
/* woo listing top */
/* ============================= */

.woo-listing-top{
	padding-top: 10px !important;
	min-height: 43px;
}

.woocommerce-result-count{
	margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    font-weight: bold !important;
    text-transform: lowercase !important;
    font-variant: normal !important;
}
    
.woocommerce-result-count:first-letter {
    text-transform: uppercase !important;
}

/* Mantener la solución de contenido */
.woocommerce-result-count {
    content: attr(data-text) !important;
}

@media (max-width: 848px) {
    .woocommerce-result-count{
		padding-left: 0 !important;
	}

	.orderby {
		display: none !important;
	}

	.ct-sort-icon {
		display: none !important;
	}
}

@media (max-width: 480px) {
    .woocommerce-result-count{
		padding-left: 0 !important;
	}

	.orderby {
		display: none !important;
	}

	.ct-sort-icon {
		display: none !important;
	}
}

/* ============================= */
/* SKELETONS PARA TIENDA - MÁRGENES EXACTOS */
/* ============================= */

/* Ocultar sidebar real durante carga */
.tienda-contenido.loading ~ .custom-sidebar {
    opacity: 0.3;
    pointer-events: none;
}

/* Contenedor de skeletons - Mismos márgenes que .products */
.tienda-skeleton-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    margin: 0 0 0 0 !important; /* EXACTAMENTE igual que .products: margin: 20px auto; */
    padding: 0 !important;
    list-style: none !important;
    gap: 15px !important;
    justify-items: stretch !important; /* Hace que las tarjetas ocupen todo el espacio disponible */
}

/* Esqueleto individual para tienda */
.tienda-product-skeleton {
    width: 100% !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    padding: 15px !important;
    height: auto !important;
	max-height: 346px !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Elementos del skeleton con animación */
.tienda-skeleton-image {
    width: 100% !important;
    height: 180px !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 5px !important;
    animation: tienda-skeleton-loading 1.5s infinite;
    margin: 0 0 10px 0 !important;
}

.tienda-skeleton-title {
    height: 20px !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px !important;
    margin: 5px 0 !important;
    animation: tienda-skeleton-loading 1.5s infinite;
}

.tienda-skeleton-title:first-of-type {
    margin: 5px 0 5px 0 !important;
    height: 16px !important;
    width: 90% !important;
}

.tienda-skeleton-title.short {
    width: 60% !important;
    height: 14px !important;
    margin: 0 0 10px 0 !important;
}

.tienda-skeleton-price {
    height: 24px !important;
    width: 40% !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px !important;
    margin: 5px 0 10px 0 !important;
    animation: tienda-skeleton-loading 1.5s infinite;
}

.tienda-skeleton-rating {
    height: 16px !important;
    width: 70% !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px !important;
    margin: 0 0 15px 0 !important;
    animation: tienda-skeleton-loading 1.5s infinite;
}

.tienda-skeleton-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    width: 100% !important;
}

.tienda-skeleton-quantity {
    width: 80px !important;
    height: 38px !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 6px !important;
    animation: tienda-skeleton-loading 1.5s infinite;
    flex-shrink: 0 !important;
}

.tienda-skeleton-button {
    flex-grow: 1 !important;
    height: 38px !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 6px !important;
    animation: tienda-skeleton-loading 1.5s infinite;
}

@keyframes tienda-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Transición suave - Ocultar productos reales pero mantener el espacio del woo-listing-top */
.tienda-contenido.loading .products {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Mantener el woo-listing-top visible pero con opacidad reducida */
.tienda-contenido.loading .woo-listing-top {
    opacity: 0;
    height: 0;
	overflow: hidden
}

/* Ocultar skeletons cuando se muestre el contenido real */
.tienda-contenido:not(.loading) .tienda-skeleton-container {
    display: none;
}

/* ============================= */
/* ANIMACIONES - SIN MODIFICAR DISEÑO */
/* ============================= */

/* Contenedor principal con transición */
.rtcl-listings.rtcl-list-view,
ul.categorias-tienda,
.woocommerce ul.products {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    position: relative;
}

.rtcl-listings.rtcl-list-view.hidden,
ul.categorias-tienda.hidden,
.woocommerce ul.products.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loader elegante */
.loading-servicios,
.loading-tienda {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Efecto de fade out/in */
.rtcl-listings,
ul.categorias-tienda,
.woocommerce ul.products {
    transition: opacity 0.3s ease-in-out;
}

/* ANIMACIONES PARA ELEMENTOS REALES */
.rtcl-widget-listing-item,
li.categoria-producto-style:not(.skeleton-loader),
.woocommerce ul.products li.product {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Animación escalonada */
.rtcl-widget-listing-item:nth-child(1),
li.categoria-producto-style:not(.skeleton-loader):nth-child(1),
.woocommerce ul.products li.product:nth-child(1) { animation-delay: 0.1s; }

.rtcl-widget-listing-item:nth-child(2),
li.categoria-producto-style:not(.skeleton-loader):nth-child(2),
.woocommerce ul.products li.product:nth-child(2) { animation-delay: 0.2s; }

.rtcl-widget-listing-item:nth-child(3),
li.categoria-producto-style:not(.skeleton-loader):nth-child(3),
.woocommerce ul.products li.product:nth-child(3) { animation-delay: 0.3s; }

.rtcl-widget-listing-item:nth-child(4),
li.categoria-producto-style:not(.skeleton-loader):nth-child(4),
.woocommerce ul.products li.product:nth-child(4) { animation-delay: 0.4s; }

.rtcl-widget-listing-item:nth-child(5),
li.categoria-producto-style:not(.skeleton-loader):nth-child(5),
.woocommerce ul.products li.product:nth-child(5) { animation-delay: 0.5s; }

.rtcl-widget-listing-item:nth-child(6),
li.categoria-producto-style:not(.skeleton-loader):nth-child(6),
.woocommerce ul.products li.product:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 0.7; }
    100% { opacity: 0.9; }
}

@keyframes subtle-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================= */
/* BOTÓN LIMPIAR FILTROS EN SIDEBAR */
/* ============================= */

.custom-sidebar .clear-filters-btn {
    display: block;
    background-color: #0073aa !important;
    color: white !important;
    font-weight: 600;
    text-align: center;
    padding: 0px 0;
    margin: 10px auto;
    border: 2px solid #0073aa !important;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none !important;
    width: 60%;
}

.custom-sidebar .clear-filters-btn:hover {
    background-color: #005a87 !important;
    border-color: #005a87 !important;
    color: white !important;
}

.custom-sidebar .clear-filters-btn:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-sidebar .clear-filters-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    stroke: white;
}

.custom-sidebar .clear-filters-btn:disabled svg {
    stroke: #666;
}

.clear-filters-btn:not(:disabled):hover {
    opacity: 0.9;
}

/* ============================= */
/* ESTILOS PARA ESTRUCTURA DE PRODUCTOS SIMILAR A SERVICIOS */
/* ============================= */

/* Contenedor principal similar a servicios */
.rtcl-listings-sc-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.rtcl-listings-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.rtcl-listings.rtcl-ajax-listings.rtcl-list-view.rtcl-style-1-view {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* Contenedor de resultados vacíos */
.rtcl-listings .no-resultados-container {
    margin: 25px 15px;
    padding: 50px 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    text-align: center;
    max-width: calc(100% - 40px);
    width: calc(100% - 40px);
    box-sizing: border-box;
}

/* Asegurar que los estilos se apliquen específicamente */
.tienda-contenido .rtcl-listings .no-resultados-container {
    margin: 25px 15px !important;
    padding: 50px 35px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    text-align: center !important;
    max-width: calc(100% - 40px) !important;
    width: calc(100% - 40px) !important;
    box-sizing: border-box !important;
}

/* Responsive */
@media (max-width: 768px) {
    .tienda-contenido .rtcl-listings .no-resultados-container {
        margin: 20px 12px !important;
        padding: 40px 25px !important;
        max-width: calc(100% - 30px) !important;
        width: calc(100% - 30px) !important;
    }
    
}

@media (max-width: 480px) {
    .tienda-contenido .rtcl-listings .no-resultados-container {
        margin: 15px 10px !important;
        padding: 30px 20px !important;
        max-width: calc(100% - 25px) !important;
        width: calc(100% - 25px) !important;
    }
}

.no-resultados-icono {
    margin-bottom: 25px;
}

.no-resultados-icono svg {
    color: #ddd;
    stroke: #e0e0e0;
}

.no-resultados-titulo {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ESTILOS ESPECÍFICOS PARA EL PÁRRAFO DEL MENSAJE */
.no-resultados-mensaje {
    font-size: 16px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 0 auto 30px auto !important; /* Centrado con margin auto */
    max-width: 500px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.no-resultados-acciones {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.no-resultados-boton {
    padding: 12px 24px;
    border: 2px solid #0073aa;
    background: #0073aa;
    color: white !important;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
}

.no-resultados-icono,
.no-resultados-titulo,
.no-resultados-mensaje,
.no-resultados-acciones {
    text-align: center;
    width: 100%;
}

.no-resultados-boton:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
    color: white !important;
}

@media (max-width: 768px) {    
    .no-resultados-titulo {
        font-size: 20px;
    }
    
    .no-resultados-acciones {
        flex-direction: column;
        align-items: center;
    }
    
    .no-resultados-boton {
        width: 100%;
        justify-content: center;
    }
}

/* ============================= */
/* PAGINACIÓN */
/* ============================= */

.woo-listing-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 2px !important;
    margin-bottom: 5px !important;
    padding: 0 0 0 0 !important;
    min-height: 43px;
}

.contador-productos {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px;
    color: #666;
    font-weight: bold !important;
}

.paginacion-superior {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.paginacion-superior .woocommerce-pagination,
.paginacion-productos .woocommerce-pagination {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 5px !important;
}

.paginacion-top {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.paginacion-top > ul:nth-child(1){
    border: none !important;
}

.paginacion-top ul.page-numbers,
.paginacion-bottom ul.page-numbers {
    display: flex;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    align-items: center;
    height: 100%;
}

.paginacion-top .page-numbers,
.paginacion-bottom .page-numbers {
    padding: 6px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    font-size: 13px;
    line-height: 1;
    background: #fff;
    color: #333 !important;
    transition: all 0.2s ease;
}

.paginacion-top .page-numbers:hover,
.paginacion-bottom .page-numbers:hover {
    background-color: #f8f9fa;
    border-color: #0073aa;
    color: #333 !important;
}

.paginacion-top .page-numbers.current,
.paginacion-bottom .page-numbers.current {
    background-color: #0073aa !important;
    color: white !important;
    border-color: #0073aa !important;
}

.paginacion-top .page-numbers.current:hover,
.paginacion-bottom .page-numbers.current:hover {
    background-color: #005a87 !important;
    color: white !important;
    border-color: #005a87 !important;
}

.paginacion-top .page-numbers.disabled,
.paginacion-bottom .page-numbers.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #999 !important;
}

.paginacion-productos{
    margin-top: 10px !important;
    padding: 0 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.paginacion-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
}

.paginacion-bottom > ul:nth-child(1){
    border: none !important;
}

@media (max-width: 780px) {
    .woo-listing-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0 !important;
        min-height: auto !important;
        margin-bottom: 5px !important;
    }
    
    .paginacion-superior {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

	.paginacion-top {
		display: none !important;
	}
    
    .contador-productos {
        text-align: center;
        width: 100%;
    }
    
    .paginacion-top ul.page-numbers,
    .paginacion-bottom ul.page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .paginacion-top .page-numbers,
    .paginacion-bottom .page-numbers {
        padding: 5px 8px !important;
        min-width: 32px;
        height: 30px;
        font-size: 12px;
    }
}

/* ============================= */
/* CORRECCIÓN DE ESPACIADO EN GRIDS */
/* ============================= */

/* Ajustar grid de categorías */
.categorias-tienda,
.woocommerce ul.products.product-subcategories {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 0 0 0 !important; /* Eliminar padding */
    width: 100% !important;
    justify-items: stretch !important; /* Hace que las tarjetas ocupen todo el espacio disponible */
}

/* Ajustar grid de productos */
.woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin: 20px 0 5px 0 !important; /* Eliminar márgenes laterales */
    padding: 0 !important;
    width: 100% !important;
    justify-items: stretch !important;
}

/* Hacer que las tarjetas ocupen todo el espacio de la celda del grid */
.categoria-producto-style,
.woocommerce ul.products.product-subcategories li.product-category,
.woocommerce ul.products li.product, 
.woocommerce .products .product {
    width: 100% !important;
    max-width: none !important; /* Eliminar limitación máxima */
    margin: 0 !important;
}

/* Asegurar que las imágenes mantengan su relación de aspecto */
.categoria-producto-style img,
.woocommerce ul.products.product-subcategories li.product-category img,
.woocommerce ul.products li.product a img {
    object-fit: contain !important;
}

/* Ajustar el contenedor principal para que ocupe todo el ancho */
.ct-container[data-sidebar="left"] > section {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* ============================= */
/* PAGINACIÓN SIN AJAX */
/* ============================= */

.woo-listing-top-normal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 5px !important;
    padding: 0 0 0 0 !important;
    min-height: 43px;
}

.contador-productos-normal {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px;
    color: #666;
    font-weight: bold !important;
}

.paginacion-superior-normal {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.paginacion-superior-normal .woocommerce-pagination,
.paginacion-productos-normal .woocommerce-pagination {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding-bottom: 5px !important;
}

.paginacion-top-normal {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.paginacion-top-normal > ul:nth-child(1){
    border: none !important;
}

.paginacion-top-normal ul.page-numbers,
.paginacion-bottom-normal ul.page-numbers {
    display: flex;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    align-items: center;
    height: 100%;
}

.paginacion-top-normal .page-numbers,
.paginacion-bottom-normal .page-numbers {
    padding: 6px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    font-size: 13px;
    line-height: 1;
    background: #fff;
    color: #333 !important;
    transition: all 0.2s ease;
}

.paginacion-top-normal .page-numbers:hover,
.paginacion-bottom-normal .page-numbers:hover {
    background-color: #f8f9fa;
    border-color: #0073aa;
    color: #333 !important;
}

.paginacion-top-normal .page-numbers.current,
.paginacion-bottom-normal .page-numbers.current {
    background-color: #0073aa !important;
    color: white !important;
    border-color: #0073aa !important;
}

.paginacion-top-normal .page-numbers.current:hover,
.paginacion-bottom-normal .page-numbers.current:hover {
    background-color: #005a87 !important;
    color: white !important;
    border-color: #005a87 !important;
}

.paginacion-top-normal .page-numbers.disabled,
.paginacion-bottom-normal .page-numbers.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
    color: #999 !important;
}

.paginacion-productos-normal {
    margin-top: 10px !important;
    padding: 0 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.paginacion-bottom-normal {
    display: flex;
    justify-content: center;
    width: 100%;
}

.paginacion-bottom-normal > ul:nth-child(1){
    border: none !important;
}

@media (max-width: 780px) {
    .woo-listing-top-normal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0 !important;
        min-height: auto !important;
        margin-bottom: 5px !important;
    }
    
    .paginacion-superior-normal {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

	.paginacion-top-normal {
		display: none !important;
	}
    
    .contador-productos-normal {
        text-align: center;
        width: 100%;
    }
    
    .paginacion-top-normal ul.page-numbers,
    .paginacion-bottom-normal ul.page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .paginacion-top-normal .page-numbers,
    .paginacion-bottom-normal .page-numbers {
        padding: 5px 8px !important;
        min-width: 32px;
        height: 30px;
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .mobile-filter-bar {
        display: none;
        background-color: transparent;
        border-bottom: none;
        position: sticky;
        top: 0px;
        z-index: 99;
        text-align: center;
        padding: 2px 0;
    }

    .mobile-filter-bar {
        display: block;
    }

    body.admin-bar .mobile-filter-bar {
        top: 140px;
    }

    #menu-filtros{
        z-index: 100003;
    }
}

.single_add_to_cart_button{
    max-width: 200px !important;
}

/* ============================= */
/* MODIFICACIONES PARA 2 COLUMNAS EN MÓVILES > 360px */
/* ============================= */

@media (max-width: 360px) {
    .woocommerce ul.products li.product .ct-woo-card-actions .add_to_cart_button.button {
        font-size: 0;
        width: 50px;
        padding: 8px;
        justify-content: center;
    }
}

/* Para pantallas entre 361px y 480px - MOSTRAR 2 COLUMNAS */
@media (min-width: 301px) and (max-width: 480px) {
    .woocommerce ul.products,
    .categorias-tienda {
        grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
        gap: 10px !important;
        max-width: none !important;
        left: 0 !important;
        transform: none !important;
        margin: 15px 0 5px 0 !important;
    }

    .woocommerce ul.products li.product,
    li.categoria-producto-style {
        max-width: none !important;
        position: relative !important;
        display: block !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Ajustar el tamaño de las imágenes para 2 columnas */
    .categoria-producto-style img,
    .woocommerce ul.products.product-subcategories li.product-category img,
    .woocommerce ul.products li.product a img {
        height: 120px !important;
        object-fit: contain !important;
    }

    /* Ajustar el padding de las tarjetas */
    .woocommerce ul.products li.product,
    .categoria-producto-style {
        padding: 8px !important;
    }

    /* Ajustar fuentes para mejor legibilidad */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .categoria-producto-style .woocommerce-loop-product__title {
        font-size: 13px !important;
        min-height: 35px !important;
        margin-top: 5px !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 14px !important;
    }
}

/* Para pantallas de 360px o menos - MANTENER 1 COLUMNA */
@media (max-width: 300px) {
    .woocommerce ul.products,
    .categorias-tienda {
        grid-template-columns: 1fr !important;
        max-width: 280px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: grid !important;
        margin: 0 !important;
    }

    li.categoria-producto-style {
        max-width: 280px !important;
        position: relative;
        display: grid !important;
        grid-template-columns: 1fr !important;
        margin: 0 !important;
    }

    /* Restaurar tamaño original de imágenes para 1 columna */
    .categoria-producto-style img,
    .woocommerce ul.products.product-subcategories li.product-category img {
        height: 150px !important;
    }
}

/* ============================= */
/* AJUSTES ADICIONALES PARA CONSISTENCIA */
/* ============================= */

/* Asegurar que los skeletons también respeten el nuevo grid */
@media (min-width: 301px) and (max-width: 480px) {
    .tienda-skeleton-container {
        grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }

    .tienda-product-skeleton {
        padding: 8px !important;
        max-height: 300px !important;
    }

    .tienda-skeleton-image {
        height: 120px !important;
    }
}

@media (max-width: 300px) {
    .tienda-skeleton-container {
        grid-template-columns: 1fr !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
}

/* ============================= */
/* CORRECCIÓN ALINEACIÓN BOTONES EN MÓVILES (361px - 480px) */
/* ============================= */

@media (min-width: 301px) and (max-width: 480px) {
    .woocommerce ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        min-height: 280px !important;
    }

    .categoria-producto-style {
        display: flex !important;
        flex-direction: column !important;
        min-height: 200px !important;
    }
    
    .woocommerce ul.products li.product .ct-woo-card-actions,
    .categoria-producto-style .ct-woo-card-actions {
        margin-top: auto !important;
        padding-top: 10px !important;
    }
}

@media (max-width: 300px) {
    .woocommerce ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        min-height: 280px !important;
    }

    .categoria-producto-style {
        display: flex !important;
        flex-direction: column !important;
        min-height: 180px !important;
    }
    
    .woocommerce ul.products li.product .ct-woo-card-actions,
    .categoria-producto-style .ct-woo-card-actions {
        margin-top: auto !important;
        padding-top: 10px !important;
    }
}

/*Pequeña correccion contenedor producto individual*/

@media (max-width: 480px) {
    .product-entry-wrapper{
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================= */
/* BORDES ESTÉTICOS PARA MENÚ MÓVIL */
/* ============================= */

@media (max-width: 796px) {
    .ct-container[data-sidebar="left"] > aside.custom-sidebar {
        border-right: 2px solid #2271b1 !important;
        border-bottom: 2px solid #2271b1 !important;
        border-bottom-right-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
    
    /* Efecto sutil de sombra para complementar los bordes */
    .ct-container[data-sidebar="left"] > aside.custom-sidebar {
        box-shadow: 2px 0 15px rgba(34, 113, 177, 0.2) !important;
    }
}

/* ============================= */
/* BARRA DE SCROLL ELEGANTE CON DEGRADADO */
/* ============================= */

@media (max-width: 796px) {
    .ct-container[data-sidebar="left"] > aside.custom-sidebar {
        scrollbar-width: thin;
        scrollbar-color: #2271b1 #f8f9fa;
    }
    
    .ct-container[data-sidebar="left"] > aside.custom-sidebar::-webkit-scrollbar {
        width: 10px;
    }
    
    .ct-container[data-sidebar="left"] > aside.custom-sidebar::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 10px;
        margin: 10px 0;
        box-shadow: inset 0 0 5px rgba(34, 113, 177, 0.1);
    }
    
    .ct-container[data-sidebar="left"] > aside.custom-sidebar::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #2271b1, #135e96);
        border-radius: 10px;
        border: 2px solid #f8f9fa;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .ct-container[data-sidebar="left"] > aside.custom-sidebar::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #135e96, #0c4a7a);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
}