.top-nav-title{
    margin: auto;
}

nav .logo {
    height: 200px;
}

.headers > *{
    text-align: center;
}

.headers h3{
    font-size: 2rem;
}

body{
    background-color: white;
}


.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, 380px);
    align-items: center;
    justify-content: space-evenly;
    align-content: center;
    gap: 20px;
    row-gap: 50px;
    margin: 50px 0;
}
.product {
    cursor: pointer;
    position: relative;
    /* display: flex; */
    /* border: 1px solid; */
    /* flex-grow: 1; */
    /* width: 30%; */
    /* margin: 100px 0; */
    min-width: 200px;
    gap: 20px;
    max-width: 800px;
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.4rem;
    box-shadow: 0 7px 14px 0 #1d517fc2, 0 3px 6px 0 #59b1ffc2;
    border: 5px solid #ffffff;
}
.product.selected::after{
    content: '';
    width: 50px;
    height: 50px;
    right: -25px;
    top: -25px;
    position: absolute;
    background-image: url(../img/check.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.product.selected {
    border: 5px solid var(--color1);
}
.product > img{
    width: 100%;
    height: 212px;
    object-fit: cover;
}
/* 

.product > div{
    width: 55%;
} */

.details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 500;
    height: 158px;
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

p.subtitle {
}

p.title {
    font-size: 1.5rem;
    font-weight: 600;
}

.pdf:active,.pdf:focus {
    color: white;
}

.pdf {
    padding: 0.5rem 1rem;
    background: var(--color2);
    border-radius: 6px;
    color: white;
}

.pdf:hover {
    background: var(--color1);
    color: white;
}

span.price {
    font-weight: 600;
}

.next{
   text-align: right;
   margin-bottom: 2rem;
}


@media only screen and (max-width: 600px){
    .products {
        grid-template-columns: repeat(auto-fill, 90%);
    }
    .details {
        font-size: 1.5rem;
    }
    p.title {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 342px){

    .details {
        height: 200px;
    }
    .info {
        height: 70px;
        flex-wrap: wrap; 
        flex-direction: column-reverse;
    }
}
