.wc-filter-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
    font-family: "Poppins", sans-serif;
}

/* Hamburguesa móvil */
.wc-filter-toggle {
    display: none;
    background: #4F0E09;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 16px;
}

/* Sidebar */
.wc-filter-sidebar {
    width: 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h5 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.filter-group label {
    display: block;
    margin: 4px 0;
    font-size: 13px;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-range input[type="range"] {
    width: 100%;
}

/* Productos */
.wc-products-container {
    flex: 1;
    min-width: 0;
}

.wc-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
}

/* ✅ Contenedor de producto con tamaño fijo en PC */
@media (min-width: 769px) {
    .wc-product-item {
        width: 200px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        padding: 12px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }
}

/* En tablet y móvil: ancho completo */
@media (max-width: 768px) {
    .wc-product-item {
        width: 100%;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        padding: 12px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }
}

/* ✅ Imagen cuadrada */
@media (min-width: 769px) {
    .wc-product-image {
        width: 180px;
        height: 180px;
        overflow: hidden;
        border-radius: 4px;
        margin: 0 auto 12px auto;
        position: relative;
    }

    .wc-product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

@media (max-width: 768px) {
    .wc-product-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 4px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wc-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/* Título */
.wc-product-item h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wc-product-price {
    font-weight: 600;
    margin: 8px 0;
    flex-shrink: 0;
}

.wc-add-to-cart {
    display: block;
    background: #4F0E09;
    color: white;
    text-decoration: none;
    padding: 6px;
    border-radius: 20px;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Responsive */

/* ✅ Móvil: sidebar oculto por defecto */
@media (max-width: 768px) {
    .wc-filter-wrapper {
        flex-direction: column;
    }

    .wc-filter-toggle {
        display: block;
    }

    .wc-filter-sidebar {
        display: none; /* ✅ Oculto por defecto */
        width: 100%;
    }

    .wc-filter-sidebar.active {
        display: block;
    }

    .wc-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ✅ Tablet: 4 productos por fila */
@media (min-width: 769px) and (max-width: 1024px) {
    .wc-products-grid {
        grid-template-columns: repeat(4, 1fr); /* ✅ 4 por fila */
    }

    /* Ajustar tamaño del producto en tablet */
    .wc-product-item {
        width: 220px;
    }

    .wc-product-image {
        width: 160px;
        height: 160px;
    }
}