/* CSS by Pedro Kineipe */

/* Responsivity */

/* Medium PC's */

@media only screen and (max-width: 1460px){
    
    /* Home-page */

    #landing-logo img{
        width: 67%;
    }
    #cards-container{
        padding: 80px 150px;
    }

    /* About */

    .linear-container{
        padding: 80px;
    }

    /* Catalog */

    .product{
        width: 18%;
    }
}

/* Small PC's */

@media only screen and (max-width: 1200px){
    
    /* Home-page */

    #landing-logo img{
        width: 70%;
    }
    #cards-container{
        padding: 80px 100px;
    }
    .page-footer{
        padding: 90px 100px;
    }

    /* About */

    .card-2{
        width: 48%;
    }
    .linear-container{
        padding: 80px 30px;
    }

    /* E-commerce */

    #categories-page{
        padding: 120px 60px;
        gap: 3.5%;
    }
    .catalog-box{
        width: 31%;
    }

    /* Catalog */

    .product{
        width: 23%;
    }
}

/* Tablets */

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

    /* Top-bar */

    #desktop-logo{
        display: none;
    }
    #mobile-logo{
        display: flex;
    }

    /* Home-page */

    #landing-logo img{
        width: 75%;
    }
    #cards-container{
        padding: 80px;
        gap: 25px;
    }
    .card{
        width: 44%;
    }
    .page-footer{
        padding: 90px 80px;
    }

    /* About */

    #about-us{
        flex-direction: column-reverse;
        justify-content: space-evenly;
    }
    #about-us-img{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: start;
    }
    #about-us-img img{
        width: 30%;
        height: auto;
    }
    #about-us-content{
        width: 83%;
        height: auto;
        padding: 7% 0;
    }
    .linear-container{
        flex-direction: column;
    }
    .container-text{
        margin: 45px 0;
    }
    .first-half{
        width: 100%;
    }
    .second-half{
        width: 100%;
    }
    .newspaper{
        width: 90%;
    }
    .carousel-2{
        width: var(--device-width);
    }
    .carousel-2-img{
        width: var(--device-width);
    }
    .carousel-2-img img{
        width: var(--device-width);
    }
    .card-2{
        width: 32%;
    }
    #coffee-logos{
        top: 18%;
    }
    #services-cards{
        gap: 52px 0;
    }

    /* Catalog */

    .product{
        width: 30%;
        height: 320px;
    }
}

/* Small-tablets */

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

    /* Home-page */

    .page-footer{
        padding: 90px 50px;
    }
    #cards-container{
        padding: 60px 50px;
    }
    .footer-content{
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
    }
    .footer-info{
        width: 100%;
    }

    /* About */

    .linear-container{
        padding: 80px;
    }
    .newspaper{
        margin-top: 75px;
        flex-direction: column;
        gap: 32px;
    }
    .newspaper p{
        width: 88%;
    }
    .card-2{
        width: 48%;
    }
    #coffee-logos{
        top: 0;
        left: 0;
        top: 12px;
        justify-content: center;
    }
    #coffee-logos img{
        width: 30%;
        height: auto;
    }

    /* E-commerce */
    
    #categories-page{
        padding: 120px 40px;
        gap: 4%;
    }
    .catalog-box{
        width: 48%;
    }
}

/* Mobile */

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

    /* General */

    *::-webkit-scrollbar{
        display: none;
    }

    /* Top-bar */

    #top-bar{
        display: grid;
        grid-template-rows: auto;
        grid-template-columns: 33% 34% 33%;
        grid-template-areas: 'search logotype burger-menu';
    }
    #search{
        display: none;
    }
    #logotype{
        justify-content: center;
    }
    .shown-search{
        width: 100%;
    }
    
    /* Side-bar */

    .sidebar-hidden{
        width: 100%;
        height: 0;
    }
    .sidebar-shown{
        width: 100%;
        height: 380px;
    }
    #mobile-search{
        display: flex;
    }

    /* Home-page */

    #landing-page{
        padding: 90px 40px;
        grid-template-rows: 79% 21%;
    }
    #landing-logo img{
        width: 100%;
    }
    #carousel-container{
        padding: 55px 32px;
    }
    #left-scroll{
        left: -32px;
    }
    #right-scroll{
        right: -32px;
    }
    .card{
        width: 100%;
    }

    /* About */

    .linear-container{
        padding: 70px 25px;
    }
    .carousel-2-img{
        height: 210px;
    }
    .carousel-2-img img{
        height: 210px;
    }

    /* E-commerce */
    
    #categories-page{
        padding: 120px 35px;
        gap: 3%;
    }
    .catalog-box{
        width: 100%;
    }

    /* Catalog */

    .product{
        width: 47.5%;
        height: 280px;
    }
}