﻿.products-preview{
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    min-height: 100vh;
    width: 100%;
    background-color: rgba(0,0,0,.8);
    display: none;
    align-items: center;
    justify-content: center;
}
.preview{
    display:none;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    background: #fff;
    position: relative;
    margin:0rem;
    width:40rem;
}
.preview.active{
    display: inline-block;
    z-index: 1000;
}
.preview img {
    height: 30rem;
    width:80%;
}
.preview .fa-times {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
    color: #444;
    font-size: 2.5rem;
    transition: 0.3s;
}
.product i {
    cursor: pointer;
}
.product i:hover{
    color: #c00000;
}
.fa-times:hover {
    transform: rotate(90deg);
    color: #c00000;
}
.preview h3 {
    color: #444;
    padding: .5rem 0;
    font-size: 2.5rem;
}
.preview p {
    line-height: 1.5;
    padding: 1rem 0;
    font-size: 1.6rem;
    color: #777;
}
.preview .price-ejem {
    padding: 1rem 0;
    font-size: 2.5rem;
    color: #000;
    font-weight: 600;
}
.preview .buttons-preview {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem; 
}
.preview .buttons-preview button {
    flex: 1 1 16rem;
    padding: 1rem;
    font-size: 1.8rem;
    color: #444;
    border: .1rem solid #444;
    text-decoration: none;
}
.preview .buttons-preview .cart-preview {
    padding: 8px 0px;
    color: #fff;
    border: 0;
    font-size: 17px;
    cursor: pointer;
    border-radius: 5px;
    background-image: linear-gradient(#c00000, #b23c27);
    width: 145px;
}
.preview .buttons-preview .cart-preview:hover {
    box-shadow: 0 0 5px #f73c22, 0 0 300px #c24f23, 0 0 40px #ff7b48;
}
.preview .buttons-preview .buy-preview {
    width: 145px;
    background-image: linear-gradient(#c00000,#b41010);
    transition: .5s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    padding: 8px 0px;
    color: #fff;
    border: 0;
    font-size: 17px;
    cursor: pointer;
    border-radius: 50px;
}
.preview .buttons-preview .buy-preview:hover {
    transition: .5s ease-in-out;
    box-shadow: 0 0 2px #b41010, 0 0 300px #c00000, 0 0 10px #b41010;
}
.container-cantidad-prueba{
   /* background-color: red;*/
    display: flex;
    justify-content: center;
    border-top: 1px solid #ddd;
}
.container-accountant {
    width: 50%;
    padding: 10px;
}
.container-accountant label{
    font-size: 18px;
}
.btn-increment,
.btn-decrement {
    width: 30px;
    height: 30px;
    font-weight: bold;
    transition: .5s ease-in-out;
}
.btn-increment:hover,
.btn-decrement:hover {
    color: #c00000;
    transition: .5s ease-in-out;
}
.container-accountant input {
    width: 50px;
    height: 40px;
    font-weight: bold;
    text-align: center;
}
.more-details-product {
    width: 50%;
    margin-left: 40px;
    align-content: center;
}
.more-details-product a{
    text-decoration: none;
    color: black;
    font-weight: 600;
    cursor: pointer;
    transition: .5s ease-in-out;
}
.more-details-product a:hover{
    color: #c00000;
    transition: .5s ease-in-out;
}
@media(max-width:768px) {
    .products-preview .preview img {
        height: 25rem;
    }
}
@media(max-width:412px){
    .preview {
        height: 614px;
    }
    .btn-increment,
    .btn-decrement {
        width: 22px;
        height: 22px;
        font-weight: bold;
        transition: .5s ease-in-out;
    }
    .container-accountant input {
        width: 40px;
        height: 40px;
        font-weight: bold;
        text-align: center;
    }
}