/* ==================================================
   TIENDA IMPRIMI2
================================================== */

.tienda-pagina {

    max-width: 1450px;

    min-height: 700px;

    margin: 0 auto;

    padding:
        80px
        5%
        130px;

}



/* ==================================================
   CABECERA
================================================== */

.tienda-cabecera {

    max-width: 950px;

    margin-bottom: 55px;

}


.tienda-etiqueta {

    margin-bottom: 16px;

    color: #ff006e;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

}


.tienda-cabecera h1 {

    margin-bottom: 25px;

    font-size:
        clamp(
            58px,
            8vw,
            105px
        );

    line-height: 0.86;

    letter-spacing: -5px;

}


.tienda-cabecera h1 span {

    color: #ff006e;

}


.tienda-introduccion {

    max-width: 650px;

    color: #666666;

    font-size: 18px;

    line-height: 1.6;

}



/* ==================================================
   FILTROS
================================================== */

.tienda-filtros {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 60px;

    padding-bottom: 25px;

    border-bottom:
        1px solid #dddddd;

}


.tienda-filtros button {

    min-height: 42px;

    padding:
        0
        19px;

    border:
        1px solid #cccccc;

    border-radius: 100px;

    background: transparent;

    color: #111111;

    cursor: pointer;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;

}


.tienda-filtros button:hover,
.tienda-filtros button.filtro-activo {

    border-color: #111111;

    background: #111111;

    color: #ffffff;

}



/* ==================================================
   ESTADOS
================================================== */

.tienda-cargando {

    padding:
        40px
        0;

    color: #777777;

    font-size: 13px;

}


.tienda-error {

    color: #ff006e;

    font-size: 13px;

}



/* ==================================================
   GRID
================================================== */

.tienda-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                240px,
                1fr
            )
        );

    gap:
        45px
        25px;

}



/* ==================================================
   TARJETA PRODUCTO
================================================== */

.tienda-producto {

    min-width: 0;

}


.tienda-producto-imagen {

    width: 100%;

    position: relative;

    overflow: hidden;

    aspect-ratio: 4 / 5;

    margin-bottom: 20px;

    background: #eeeeee;

}


.tienda-producto-imagen img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.4s ease;

}


.tienda-producto:hover
.tienda-producto-imagen img {

    transform:
        scale(1.035);

}



/* ==================================================
   SIN IMAGEN
================================================== */

.tienda-sin-imagen {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999999;

    font-size: 11px;

}



/* ==================================================
   ETIQUETA
================================================== */

.tienda-producto-etiqueta {

    position: absolute;

    top: 14px;

    left: 14px;

    z-index: 2;

    padding:
        7px
        10px;

    background: #ffd600;

    color: #111111;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.7px;

}



/* ==================================================
   INFORMACIÓN
================================================== */

.tienda-producto-info {

    padding:
        0
        2px;

}


.tienda-producto-categoria {

    margin-bottom: 8px;

    color: #888888;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.tienda-producto h2 {

    margin-bottom: 10px;

    font-size: 23px;

    font-weight: 500;

    line-height: 1.05;

}


.tienda-producto-descripcion {

    min-height: 42px;

    margin-bottom: 16px;

    color: #777777;

    font-size: 12px;

    line-height: 1.5;

}


.tienda-producto-precio {

    margin-bottom: 20px;

    color: #ff006e;

    font-size: 16px;

}



/* ==================================================
   ACCIONES
================================================== */

.tienda-producto-acciones {

    display: grid;

    grid-template-columns:
        1fr
        auto;

    gap: 8px;

}


.tienda-ver-producto,
.tienda-personalizar {

    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    font-size: 10px;

}


.tienda-ver-producto {

    background: #111111;

    color: #ffffff;

}


.tienda-personalizar {

    padding:
        0
        17px;

    border:
        1px solid #111111;

    color: #111111;

}



/* ==================================================
   VACÍO
================================================== */

.tienda-vacia {

    grid-column:
        1 / -1;

    padding:
        70px
        20px;

    text-align: center;

    border-top:
        1px solid #dddddd;

}


.tienda-vacia h2 {

    margin-bottom: 10px;

    font-size: 25px;

    font-weight: 500;

}


.tienda-vacia p {

    color: #777777;

    font-size: 13px;

}



/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 700px) {

    .tienda-pagina {

        padding:
            55px
            20px
            90px;

    }


    .tienda-cabecera {

        margin-bottom: 40px;

    }


    .tienda-cabecera h1 {

        font-size: 60px;

        letter-spacing: -3px;

    }


    .tienda-introduccion {

        font-size: 16px;

    }


    .tienda-filtros {

        margin-bottom: 45px;

    }


    .tienda-filtros button {

        flex-grow: 1;

    }


    .tienda-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap:
            35px
            15px;

    }

}



@media (max-width: 480px) {

    .tienda-grid {

        grid-template-columns:
            1fr;

    }


    .tienda-producto-descripcion {

        min-height: 0;

    }

}

/* ==================================================
   BUSCADOR DE LA TIENDA
================================================== */

.tienda-buscador {

    margin-bottom: 22px;

}


.tienda-buscador-campo {

    max-width: 520px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 14px;

    border: 1px solid #111111;

    background: #ffffff;

    transition:
        box-shadow .15s ease;

}


.tienda-buscador-campo:focus-within {

    box-shadow:
        0 0 0 3px
        rgba(255, 0, 110, 0.28);

}


.tienda-buscador-icono {

    flex: none;

    color: #777777;

    font-size: 16px;

    line-height: 1;

    transform: rotate(-45deg);

}


.tienda-buscador-campo input {

    width: 100%;

    min-height: 52px;

    border: none;

    outline: none;

    background: transparent;

    color: #111111;

    font-family: inherit;

    font-size: 15px;

    -webkit-appearance: none;

    appearance: none;

}


.tienda-buscador-campo
input::-webkit-search-cancel-button {

    -webkit-appearance: none;

    appearance: none;

}


.tienda-buscador-limpiar {

    width: 30px;

    height: 30px;

    flex: none;

    border: 1px solid #cccccc;

    background: #ffffff;

    color: #111111;

    cursor: pointer;

    font-family: inherit;

    font-size: 15px;

    line-height: 1;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;

}


.tienda-buscador-limpiar:hover {

    border-color: #ff006e;

    background: #ff006e;

    color: #ffffff;

}


.tienda-buscador-resumen {

    margin-top: 10px;

    color: #777777;

    font-size: 12px;

    letter-spacing: 0.03em;

}


.tienda-buscador-resumen[hidden] {

    display: none;

}


.tienda-vacia-boton {

    min-height: 44px;

    margin-top: 20px;

    padding: 0 22px;

    border: 1px solid #111111;

    background: transparent;

    color: #111111;

    cursor: pointer;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.1em;

    transition:
        background .15s ease,
        color .15s ease;

}


.tienda-vacia-boton:hover {

    background: #111111;

    color: #ffffff;

}


.tienda-vacia a {

    color: #ff006e;

}


@media (max-width: 700px) {

    .tienda-buscador-campo {

        max-width: none;

    }

}


/* ==================================================
   AVISO DE STOCK EN LA TARJETA

   Discreto a propósito: informa, no presiona.
================================================== */

.tienda-stock {

    width: fit-content;

    margin:
        -4px
        0
        12px;

    padding:
        4px
        9px;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.04em;

}


.tienda-stock-bajo {

    background:
        rgba(255, 214, 0, 0.22);

    color: #6f5c00;

}


.tienda-stock-agotado {

    background:
        rgba(17, 17, 17, 0.08);

    color: #666666;

}
