:root{
    --gris-oscuro: rgb(51, 51, 51);
    --gris-claro: rgb(241, 241, 241);
    --azul-claro: rgb(13, 160, 193);
    --azul: rgb(20, 89, 124);
    --rojo: rgb(114, 26, 26);
}

form#forma-busqueda span#busqueda-icon{
    background-color: var(--gris-claro);
}

form#forma-busqueda{
    border: solid 1px var(--gris-claro);
    background-color: var(--gris-oscuro);
    /* width: 88vw; */
}

table#tabla-productos{
    display: block;
    width: 90vw;
    margin: 10px auto;
}

.box table#tabla-productos tbody{
    display: flex;
    align-items: center;
    align-content: center;
}

table#tabla-productos thead tr td,
table#tabla-productos tfoot tr td{
    border: solid 1px var(--gris-oscuro);
}

span.indicador-pagina{
    color: blue;
}

table#tabla-productos tbody tr td{
    width: 30vw;
    vertical-align: top;
}

table#tabla-productos tbody tr td figure.ficha-producto{
    display: flex;
    flex-direction: column;
    margin-top: 0px;
}

table#tabla-productos tbody tr td figure.ficha-producto:hover{
    cursor: pointer;
    border: solid 1px skyblue;
}

table#tabla-productos tbody tr td figure.ficha-producto div.img_content{
    width: 28vw;
    height: 28vw;
    display: block;
    margin: auto;
}

table#tabla-productos tbody tr td figure.ficha-producto div.img_content img.imagen-producto{
    max-width: 100%;
    max-height: 100%;
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto{
    width: 28vw;
    text-align: center;
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p{
    color: dimgray;
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p.existencia-producto{
    color: var(--rojo);
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p.nombre-producto{
    font: bolder 1.5em sans-serif;
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p.precio-producto{
    font: bold 1.2em sans-serif;
    color: var(--azul);
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p.promocion-producto{
    font-weight: bold;
}

span.indicador-pagina{
    cursor: pointer;
}

button.eliminar_producto{
    padding: 2px 4px;
    border: 1px solid red;
    background-color: #770a0a;
    border-radius: 2px;
    color: var(--gris-claro);
}

label.sublabel{
    font: 1em sans-serif;
    color: black;
}

@media(max-width:500px){
    table#tabla-productos tbody tr td{
        width: 100vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    table#tabla-productos thead,
    table#tabla-productos tbody,
    table#tabla-productos tfoot{
        display: block;
        width: 80vw;
        margin: auto;
    }

    table#tabla-productos thead tr,
    table#tabla-productos thead tr td,
    table#tabla-productos tbody tr,
    table#tabla-productos tbody tr td,
    table#tabla-productos tfoot tr,
    table#tabla-productos tfoot tr td{
        display: block;
        width: 100%;
    }

    table#tabla-productos thead tr td, table#tabla-productos tbody tr{
        display: flex;
        flex-direction: column;
    }

    table#tabla-productos tbody tr td figure.ficha-producto div.img_content{
        width: 80vw;
        height: 80vw;
        /* display: block;
        margin: 1vw 5vw; */
    }
    
    table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto{
        width: 80vw;
        margin: 0px;
        /* display: block;
        margin: 1vw 5vw; */
    }

    table#tabla-productos tbody tr td figure.ficha-producto div.img_content img.imagen-producto{
        margin: auto;
    }

    main h1{
        display: block;
        margin: 30px auto 10px auto;
    }
}