/* Contenedor principal */
.novo-filters-wrapper {
	margin-bottom: 30px;
	padding-bottom: 20px;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.novo-filters-form {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
}

/* Grupos de filtros */
.novo-filter-group {
	position: relative;
	width: 100%; /* Ocupar todo el ancho disponible para uniformidad */
	margin-bottom: 0;
}

.novo-filter-title {
	font-size: 15px; /* Un poco más pequeño y elegante */
	margin-bottom: 0;
	padding-bottom: 12px;
	font-weight: 600;
	color: #2f2f31; /* Gris claro por defecto */
	border-bottom: 1px solid #2f2f31; /* Línea gris clara por defecto */
	/* display: flex; */
	/* justify-content: space-between; */
	/* align-items: center; */
	width: 100%;
	/* cursor: pointer; */
	transition: all 0.3s ease;
}

.novo-filter-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	/* max-height: 0; */
	/* overflow: hidden; */
	/* transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); */
	/* opacity: 0; */
	/* Always visible */
	margin-top: 15px !important;
	margin-bottom: 25px !important;
}

/*
.novo-filter-title:hover,
.novo-filter-group.active .novo-filter-title {
	color: #000;
	border-bottom-color: #000;
}

.novo-filter-title::after {
	content: '+';
	font-size: 18px;
	font-weight: 400;
	margin-left: 10px;
	transition: transform 0.3s ease;
}

.novo-filter-group.active .novo-filter-title::after {
	content: '-';
	transform: rotate(0deg);
}

.novo-filter-group.active .novo-filter-list {
	max-height: 500px;
	opacity: 1;
	margin-top: 15px !important;
	margin-bottom: 25px !important;
}
*/

.novo-filter-item {
	margin-bottom: 8px;
	display: block;
}

/* === Custom Styles for Colors and Formats === */

/* --- COLORS (Grid of Swatches) --- */
.novo-group-color .novo-filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px !important;
}

.novo-group-color .novo-filter-item {
	width: 40px;
	height: 40px;
	margin: 0;
}

.novo-group-color .novo-filter-item label {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 1px solid #ddd;
	display: block;
	position: relative;
	cursor: pointer;
}

/* Hide default checkbox but keep it clickable via label */
.novo-group-color input[type='checkbox'] {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	margin: 0;
	z-index: 5;
}

.novo-color-swatch {
	display: block;
	width: 100%;
	height: 100%;
	background-color: #f0f0f0; /* Default */
}

/* Selected Color State */
.novo-group-color input:checked ~ .novo-color-swatch {
	box-shadow:
		inset 0 0 0 2px #fff,
		inset 0 0 0 4px #2f2f31;
}

/* --- FORMATS (2-Column Text Grid) --- */
.novo-group-format .novo-filter-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
	row-gap: 15px;
	margin-top: 20px !important;
}

.novo-group-format .novo-filter-item {
	margin: 0;
}

.novo-group-format .novo-filter-item label {
	font-size: 15px;
	color: #666;
	cursor: pointer;
	display: block;
}

.novo-group-format input[type='checkbox'] {
	display: none;
}

.novo-group-format input:checked + .novo-term-name {
	color: #000;
	font-weight: 600;
}

/* Separation between groups */
.novo-filter-group {
	border-bottom: 1px solid #e1e1e1;
	padding-bottom: 0;
	margin-bottom: 0;
}

.novo-filter-group:last-child {
	border-bottom: none;
}

.novo-filter-title {
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Checkboxes personalizados estilo 'Living Ceramics' (texto limpio) */
.novo-filter-item label {
	cursor: pointer;
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #666;
	transition: color 0.3s ease;
	width: 100%;
}

.novo-filter-item input[type='checkbox'] {
	display: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 14px;
	min-width: 14px;
	height: 14px;
	min-height: 14px;
	border: 1px solid #d1d1d1;
	border-radius: 0;
	margin-right: 10px;
	position: relative;
	cursor: pointer;
	background-color: #fff;
	transition: all 0.2s;
	outline: none;
}

.novo-filter-item input[type='checkbox']:checked {
	background-color: #000;
	border-color: #000;
}

.novo-filter-item input[type='checkbox']:checked + .novo-term-name {
	color: #000;
	font-weight: 500;
}

.novo-filter-item:hover label {
	color: #000;
}

.novo-term-count {
	font-size: 11px;
	color: #999;
	margin-left: 4px;
}

/* Botón de reset */
.novo-filter-actions {
	margin-top: 30px;
	width: 100%;
	padding-top: 0;
}

.novo-btn-reset,
[type='button'],
[type='submit'],
button {
	background: none !important; /* Fondo negro sólido */
	border: none !important;
	border-bottom: 1px solid #2f2f31 !important;
	color: #2f2f31 !important; /* Texto blanco */
	padding: 0 20px;
	font-size: 0.7rem !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100% !important;
	display: block;
	text-align: center;
}

.novo-btn-reset:hover {
	background: #fff !important; /* Invertir al hover */
	color: #2f2f31 !important;
	border-color: #2f2f31 !important;
}

/* Layout Horizontal (Top Bar) */
.novo-layout-horizontal .novo-filters-form {
	flex-direction: row;
}

/* Layout Vertical (Sidebar) */
.novo-layout-vertical .novo-filters-form {
	flex-direction: column;
	gap: 20px;
}

.novo-layout-vertical .novo-filter-actions {
	margin-left: 0;
	padding-top: 10px;
}

/* Mobile Toggle Button (Default Hidden) */
.novo-mobile-toggle {
	display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
	.novo-filters-form {
		flex-direction: column;
		display: none; /* Hide by default on mobile */
		margin-top: 20px;
	}

	.novo-filters-form.active {
		display: flex;
	}

	.novo-filter-actions {
		margin-left: 0;
	}

	.novo-mobile-toggle {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
		width: 100% !important;
		background: #fff !important;
		border: 1px solid #000 !important; /* Box style like image */
		padding: 15px 20px;
		font-size: 14px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 2px;
		color: #000 !important;
		cursor: pointer;
		transition: all 0.3s ease;
		margin-bottom: 10px;
	}

	.novo-mobile-toggle:hover {
		background: #000 !important;
		color: #fff !important;
	}

	.novo-mobile-toggle .novo-toggle-icon {
		font-size: 20px;
		font-weight: 300;
		line-height: 1;
	}
}

/* Loader Overlay para productos */
.novo-loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.7);
	z-index: 10;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 100px;
}

/* Forzar layout de 3 columnas para productos */
ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 2em !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 2em !important;
}

ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

/* Responsive: 2 columnas en tablets */
@media (max-width: 1024px) {
	ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Responsive: 1 columna en móviles */
@media (max-width: 768px) {
	ul.products {
		grid-template-columns: repeat(1, 1fr) !important;
	}
}

/* No Results Found Styling */
.novo-no-results-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 60px 20px;
	border: 1px dashed #ddd;
	background-color: #fafafa;
	border-radius: 4px;
	margin: 20px 0;
	box-sizing: border-box;
}

.novo-no-results-content {
	text-align: center;
	color: #666;
}

.novo-no-results-content i {
	font-size: 40px;
	color: #ccc;
	margin-bottom: 20px;
	display: block;
}

.novo-no-results-content h3 {
	font-size: 20px;
	margin: 0 0 10px;
	color: #333;
}

.novo-no-results-content p {
	font-size: 15px;
	margin: 0;
	color: #777;
}

/* Ensure container takes full width when no products */
ul.products:has(.novo-no-results-wrapper),
.elementor-widget-woocommerce-products ul.products:has(.novo-no-results-wrapper) {
	display: block !important;
	grid-template-columns: 1fr !important;
}
