.filtros-productos {
    font-family: 'Montserrat', sans-serif;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 15px;
    margin-top: 100px;
}

.migas-pan {
    margin-bottom: 25px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.migas-pan a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.migas-pan a:hover {
    color: #333;
}

.migas-pan a.active {
    color: #333;
    font-weight: 600;
}

.migas-pan .separador {
    margin: 0 8px;
    font-size: 10px;
    color: #999;
}

.filtros-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.filtros-opciones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filtro-btn:hover {
    background: #eee;
}

.filtro-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.filtros-acciones {
    display: flex;
    gap: 10px;
}

.accion-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accion-btn:hover {
    background: #f5f5f5;
}

.accion-btn.destacado {
    background: #333;
    color: #fff;
    border-color: #333;
}

.categorias-productos {
    margin-top: 30px;
}

.productos-grid-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.productos-columna-izquierda {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: flex-start;
}

.producto-destacado-columna {
    width: 49%;
    min-width: 300px;
}

.producto-destacado {
    display: block;
    height: 100%;
    /* border-radius: 12px; */
    overflow: hidden;
    /* border: 1px solid #eeeeeebb; */
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.producto-destacado:hover {
    transform: translateY(-6px);
    /* border: 1px solid #969595; */
}

.destacado-imagen {
    height: 75%;
    background-size: 100%;
    filter: brightness(95%);
    border-radius: 2%;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.destacado-info {
    height: 18%;
    padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.destacado-info h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.destacado-info .flecha {
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
}

.producto-regular {
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    transition: all 0.3s ease;
    background: white;
    /* border: 1px solid #eeeeeebb; */
}

.producto-regular:hover {
    transform: translateY(-3px);
    /* border: 1px solid #969595; */
}

.regular-imagen {
    height: 250px;
    background-size: 100%;
    filter: brightness(95%);
    border-radius: 2%;
    background-position: center;
    background-repeat: no-repeat;
}

.regular-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.regular-info h3 {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.regular-info .flecha {
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.productos-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 992px) {
    .productos-grid-container {
        flex-direction: column-reverse;
    }

    .producto-destacado-columna {
        width: 100%;
    }

    .productos-columna-izquierda {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {

    .productos-columna-izquierda,
    .productos-grid-simple {
        grid-template-columns: repeat(2, 1fr);
    }

    .producto-destacado-columna {
        width: 100%;
    }

    .destacado-imagen {
        height: 180px;
    }

    .regular-imagen {
        height: 100px;
    }
}

@media (max-width: 480px) {

    .destacado-imagen {
        height: 250px;
    }

    .destacado-imagen {
        background-size: cover;
    }

    .regular-imagen {
        height: 150px;
        background-size: cover;
    }

    .migas-pan {
        font-size: 12px;
    }

    .productos-grid-container,
    .productos-columna-izquierda,
    .productos-grid-simple {
        gap: 15px;
    }

    .destacado-info h3 {
        font-size: 16px;
    }

    .regular-info h3 {
        font-size: 11px;
    }
}

.loading {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 1.2em;
    color: #666;
    flex-direction: column;
    gap: 15px;
}

.categoria-item {
    transition: all 0.3s ease;
}

.categoria-item:hover {
    transform: translateY(-6px);
}

.loading,
.error,
.no-products {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

.loading i,
.error i,
.no-products i {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.error i {
    color: #F44336;
}


.contador-resultados {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.categoria-item {
    transition: all 0.3s ease;
}

.filtros-panel {
    position: fixed;
    top: 74px;
    right: -400px;
    width: 380px;
    height: calc(100vh - 74px);
    background-color: #ffffff;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #f1f1f1;
    border-top: 1px solid #f1f1f1;
}

.filtros-panel.abierto {
    right: 0;
}

.filtros-panel-contenido {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.filtros-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filtros-panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.5px;
}

.cerrar-filtros {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.cerrar-filtros:hover {
    color: #000;
}

.filtros-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.filtro-grupo {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.grupo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.grupo-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    font-weight: 600;
}

.grupo-toggle {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
    color: #666;
}

.filtro-grupo.cerrado .grupo-toggle {
    transform: rotate(-90deg);
}

.grupo-contenido {
    padding: 10px 0 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.filtro-grupo.cerrado .grupo-contenido {
    padding: 0;
    height: 0 !important;
}

.opciones-colores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.opcion-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.color-circulo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    transition: all 0.2s ease;
}

.opcion-color:hover .color-circulo {
    transform: scale(1.1);
    box-shadow: 0 0 0 1px #999;
}

.opcion-color.seleccionado .color-circulo {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

.color-texto {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.3;
}

.opciones-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opcion-btn {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.opcion-btn:hover {
    border-color: #999;
}

.opcion-btn.seleccionado {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.opciones-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opcion-item {
    display: flex;
    align-items: center;
}

.opcion-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.opcion-item input[type="checkbox"]:checked {
    background-color: #333;
    border-color: #333;
}

.opcion-item input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
}

.opcion-item label {
    cursor: pointer;
    font-size: 0.85rem;
    color: #555;
}

.filtros-panel-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    background-color: #ffffff;
}

.btn-primario,
.btn-secundario {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-primario {
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
}

.btn-primario:hover {
    background-color: #222;
}

.btn-secundario {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secundario:hover {
    border-color: #999;
}

.filtros-overlay {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    height: calc(100vh - 74px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.contador-resultados {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
    display: none;
}



.opcion-color-multiple {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.color-circulo-multiple {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.color-circulo-multiple::before,
.color-circulo-multiple::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
}

.color-circulo-multiple::before {
    left: 0;
}

.color-circulo-multiple::after {
    right: 0;
}

.opcion-color-multiple:hover .color-circulo-multiple {
    transform: scale(1.1);
    box-shadow: 0 0 0 1px #999;
}

.opcion-color-multiple.seleccionado .color-circulo-multiple {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

.filtro-grupo {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.grupo-contenido {
    padding: 10px 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.opcion-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: #999;
}

.opcion-color.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.opcion-color.disabled .color-texto {
    color: #999;
}

@media (max-width: 768px) {
    .filtros-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .filtros-acciones {
        margin-top: 15px;
        width: 100%;
    }

    .accion-btn {
        flex: 1;
        justify-content: center;
    }

    /* 
    .categoria-imagen {
        height: 150px;
    } */

    .filtros-panel {
        width: 300px;
    }

    .opciones-colores {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .migas-pan a span {
        display: none;
    }

    .migas-pan a i {
        margin-right: 0;
    }

    .filtro-btn span,
    .accion-btn span {
        display: none;
    }

    .filtro-btn,
    .accion-btn {
        gap: 5px;
        padding: 7px 11px;
        font-size: 12px;
    }

    /* .categorias-productos {
        grid-template-columns: repeat(auto-fill, minmax(140px, 2fr)) !important;
    } */
}