/* =====================================================
   PASALAVENTA
   PÁGINA TODOS LOS PRODUCTOS
===================================================== */

.productos-page {
    background: #f5f5f5;
    min-height: calc(100vh - 150px);
    padding: 40px 0 70px;
}

.productos-page-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.productos-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.productos-page-heading h1 {
    margin: 0;

    font-size: 34px;
    font-weight: 800;

    color: #111;
}

.productos-page-heading p {
    margin: 8px 0 0;

    color: #666;
    font-size: 15px;
}

.productos-page-count {
    white-space: nowrap;

    padding: 10px 14px;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 9px;

    color: #555;

    font-size: 13px;
}


/* =====================================================
   LAYOUT
===================================================== */

.productos-page-layout {
    display: grid;

    grid-template-columns:
        230px minmax(0, 1fr);

    gap: 22px;

    align-items: start;
}


/* =====================================================
   FILTROS
===================================================== */

.productos-page-filtros {
    position: sticky;
    top: 20px;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 13px;

    padding: 18px;

    box-shadow:
        0 4px 15px rgba(0,0,0,.04);
}

.productos-page-filtros h3 {
    margin: 0 0 18px;

    color: #222;
    font-size: 16px;
}

.productos-page-filtro {
    margin-bottom: 15px;
}

.productos-page-filtro:last-child {
    margin-bottom: 0;
}

.productos-page-filtro label {
    display: block;

    margin-bottom: 6px;

    color: #444;

    font-size: 12px;
    font-weight: 700;
}

.productos-page-filtro select,
.productos-page-filtro input {
    width: 100%;

    min-height: 38px;

    padding: 8px 10px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 7px;

    outline: none;

    font-size: 13px;
}

.productos-page-filtro select:focus,
.productos-page-filtro input:focus {
    border-color: #d60000;
}


/* =====================================================
   BARRA
===================================================== */

.productos-page-toolbar {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 18px;
}

.productos-page-toolbar span {
    color: #777;
    font-size: 13px;
}

.productos-page-toolbar select {
    min-height: 38px;

    padding: 7px 10px;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: #fff;

    font-size: 13px;
}


/* =====================================================
   GRID
===================================================== */

.productos-page-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =====================================================
   CARD
===================================================== */

.productos-page-card {
    position: relative;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 13px;

    overflow: hidden;

    cursor: pointer;

    box-shadow:
        0 4px 14px rgba(0,0,0,.04);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.productos-page-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 24px rgba(0,0,0,.09);
}


/* =====================================================
   IMAGEN
===================================================== */

.productos-page-card-imagen {
    position: relative;

    height: 205px;

    background: #eee;

    overflow: hidden;
}

.productos-page-card-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .3s ease;
}

.productos-page-card:hover
.productos-page-card-imagen img {
    transform: scale(1.04);
}


/* =====================================================
   OFERTA
===================================================== */

.productos-page-oferta {
    position: absolute;

    top: 10px;
    left: 10px;

    z-index: 2;

    background: #d60000;
    color: #fff;

    border-radius: 6px;

    padding: 5px 8px;

    font-size: 11px;
    font-weight: 800;
}


/* =====================================================
   INFO
===================================================== */

.productos-page-card-info {
    padding: 14px;
}

.productos-page-card-categoria {
    color: #d60000;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
}

.productos-page-card-info h2 {
    margin: 5px 0 0;

    color: #222;

    font-size: 16px;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =====================================================
   PRECIO
===================================================== */

.productos-page-precio {
    margin-top: 11px;

    color: #111;

    font-size: 20px;
    font-weight: 800;
}

.productos-page-precio-anterior {
    display: block;

    color: #999;

    font-size: 12px;

    text-decoration: line-through;
}

.productos-page-precio-oferta {
    display: block;

    color: #d60000;

    font-size: 20px;
}


/* =====================================================
   CARGA / VACÍO
===================================================== */

.productos-page-loading,
.productos-page-vacio,
.productos-page-error {
    grid-column: 1 / -1;

    padding: 50px 20px;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 13px;

    text-align: center;
}

.productos-page-loading h2,
.productos-page-vacio h2,
.productos-page-error h2 {
    margin: 0 0 8px;
}

.productos-page-loading p,
.productos-page-vacio p,
.productos-page-error p {
    margin: 0;

    color: #777;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 950px) {

    .productos-page-layout {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .productos-page-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .productos-page {
        padding: 25px 0 50px;
    }

    .productos-page-container {
        width: min(100% - 24px, 600px);
    }

    .productos-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .productos-page-heading h1 {
        font-size: 28px;
    }

    .productos-page-layout {
        display: block;
    }

    .productos-page-filtros {
        position: static;

        margin-bottom: 18px;
    }

    .productos-page-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .productos-page-card-imagen {
        height: 165px;
    }

}

@media (max-width: 400px) {

    .productos-page-grid {
        grid-template-columns: 1fr;
    }

    .productos-page-card-imagen {
        height: 210px;
    }

}