/* Overlay de fondo */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar del filtro */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    height: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 1000;
}

.filter-sidebar.active {
    left: 0;
}

/* Botón de cierre */
.close-filter {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    float: right;
}

/* Botón para abrir el filtro */
.open-filter {
    display: block;
    margin: 10px 0;
    cursor: pointer;
    background-color: #000;
    color: #fff;
}
.open-filter:hover{
    background-color: #fff;
    color: #000;
}

/* Contenedor de productos - Usando CSS Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 4 columnas para escritorio */
    gap: 20px;  /* Espacio entre columnas y filas */
    margin-top: 20px;
}

/* Estilos para pantallas más pequeñas (tablets) */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columnas para tablets */
    }
}

/* Estilos para pantallas aún más pequeñas (móviles) */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;  /* 1 columna para móviles */
    }
}

/* Estilos para los elementos individuales de los productos */
.product-item {
	list-style: none;
    background-color: #fff;  /* Fondo blanco */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);  /* Efecto de elevación al pasar el ratón */
}

.labelpop{
    margin: 5px 0px 5px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8D1E1F;
}

.inpprecio{
    width: 140px;
}

.selfiltro{
    width: 100%;
    border: 2px solid;
}

.titfiltro{
	width: 100%;
	margin: 0px;
	background-color: #ffffff;
	padding-bottom: 10px;
	border-bottom: 1px #ccc solid;
}

.btnfiltro{
    width: 100%;
    margin: 10px 0px 0px 0px;
    background-color: #000;
    color: #fff;
    cursor: pointer;
}

.btnfiltro:hover{
    background-color: #fff;
    color: #000;
}

/* Estilo del título del producto */
.woocommerce-loop-product__title {
    text-transform: uppercase; /* Convertir a mayúsculas */
    font-size: 16px; /* Tamaño de fuente */
    font-weight: 600; /* Semi bold */
    text-align: center; /* Centrar texto */
}

/* Estilo del precio */
.woocommerce-Price-amount {
	display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px; /* Tamaño de fuente */
    font-weight: bold; /* Texto en negrita */
}