@font-face {
    font-family: "zurichExtended";
    src: url("../../fonts/zurichExtended/zurichExtended-ultraBlack.ttf") format("truetype");
}

/* ---------------------------------- */
/* ESTILOS DE ESCRITORIO (POR DEFECTO) */
/* ---------------------------------- */

.titulo {
    font-family: "zurichExtended", sans-serif;
    font-size: 10px;
    color: #222;
    text-align: center;
    letter-spacing: 9px;
    margin-top: 160px;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.filtros {
    position: fixed;
    top: 220px;
    left: 3%;
    width: 15%;
    max-width: 300px;
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
    height: calc(45vh - 40px);
    transition: all 0.3s ease;
}

.filtros:hover {
    transform: translateY(-5px);
}

.filtros h2 {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 0;
}

.filtros h2 i {
    font-size: 18px;
    color: #5171ff;
    margin-right: 8px;
}

.tipo-busqueda {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tipo-busqueda label {
    font-size: 10px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.tipo-busqueda input[type="radio"] {
    margin-right: 8px;
    accent-color: #5171ff;
}

.buscador,
.categorias {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buscador label,
.categorias label {
    font-size: 10px;
    color: #555;
    font-weight: 500;
}

.buscador input,
.categorias select {
    padding: 12px;
    font-size: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    color: #333;
    box-sizing: border-box;
}

.buscador input:focus,
.categorias select:focus {
    outline: none;
    border-color: #5171ff;
    box-shadow: 0 0 8px #5171ff;
}

.buscador input::placeholder {
    color: #aaa;
    font-style: italic;
}

.categorias select {
    background-image: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/svgs/solid/caret-down.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 13px;
    appearance: none;
}

.tipo-busqueda label:hover {
    color: #5171ff;
}

.buscador input,
.categorias select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.productos {
    margin-left: 20%;
    padding: 20px;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    box-sizing: border-box;
    margin-top: 15px;
}

.producto {
    width: 215px;
    height: 355px;
    background: #f5f5f5;
    padding: 0px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.producto:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px #5171ffe1;
    border: 1px solid #5171ff;
}

.producto img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    transition: all 0.3s;
}

.producto:hover img {
    height: 200px;
}

.producto .info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    transition: all 0.3s;
    text-align: center;
}

.producto h3 {
    font-size: 12px;
    font-weight: 600;
    color: #4d4d4d;
    text-transform: uppercase;
    margin: 10px 0;
}

.producto .precio {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: -5px;
    font-family: "zurichExtended", sans-serif;
    color: #5171ff;
}

.producto .boton-container {
    width: 100%;
    margin-bottom: 5%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s ease-in-out;
}

.producto button {
    width: 70%;
    height: 40px;
    background-color: #181818;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 10px;
    font-family: "zurichExtended", sans-serif;
    letter-spacing: 3px;
}

.producto:hover .boton-container {
    opacity: 1;
    transform: translateY(0);
}

.producto:hover .card-btn {
    background-color: #d7d8da;
    color: rgb(35, 35, 35);
}

.producto .card-btn:active {
    transform: translateY(2px);
}

.info-btn {
    margin-left: 10px;
    font-size: 20px;
    color: #5171ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: transform 0.2s, color 0.2s;
}

.info-btn:hover {
    color: #5171ff;
    transform: scale(1.2);
}

.talla-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.talla-selector label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
    margin-left: 11px;
}

.select-talla {
    width: 110px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 10px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select-talla:focus {
    border-color: #5171ff;
    box-shadow: 0 0 4px #5171ff;
    outline: none;
}


/* ---------------------------------- */
/* MEDIA QUERY PARA MÓVILES */
/* ---------------------------------- */
@media screen and (max-width: 991.98px) {
    html, body {
    width: 100%;
    margin: 0;
    padding: 0;
        
    }

body.pagina-con-sidebar-reducida .hamburger-sidebar {
    width: 100%; /* o el ancho que prefieras */
    max-width: 90%;
  }
  
  body.pagina-con-sidebar-reducida .shopping-cart-sidebar {
    width: 100%; /* o el ancho que necesites */
    max-width:90%;
  }
    
    .titulo {
        font-size: 14px;
        letter-spacing: 10px;
        margin-top: 140px;
        padding-bottom: 20px;
        margin-left: 10px;
    }

    .filtros {
        position: static;
        width: 90%;
        margin: 10px auto; /* 👈 Aquí está el cambio */
        height: auto;
        box-shadow: none;
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 30px;
    }
    
    .productos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Puedes bajar este valor, o dejarlo en 0 para que estén pegados */
    margin-left: 0;
    padding: 0px;
    margin-top: 5%;
}

    .producto {
        width: 190px;
        /* Más pequeñas para caber bien */
        height: 320px;
        margin: 0 auto;
    }

    .producto img {
        height: 75%;
    }

    .producto:hover img {
        height: 160px;
    }

    .producto button {
        height: 34px;
        font-size: 13px;
    }

    .producto h3 {
        font-size: 11px;
    }

    .producto .precio {
        font-size: 11px;
    }
}