html {
    scroll-behavior: smooth;
}

* {
    padding: 0;
    margin: 0;
}

button {
    cursor: pointer;
}

/* --------------------------------------promo----------------------------------------- */

#promo {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    background-color: #f4f3e9;
    color: black;
}

#marq {
    padding-top: .4rem;
    font-size: 25px;
    font-weight: bold;
}

.navcorner {
    display: flex;
    justify-content: center;
    align-items: center;

}

.promo-contact {
    font-family: var(--primaryFont);
    font-weight: bold;
    font-size: 20px;

}



/*-------------------------------------- About US ----------------------------------------- */

#home{
    background-image: url(" /static/images/bg-img.webp ") ;
    background-repeat: no-repeat;
    height: 40rem;
    width: 100%;
    background-size: 100% 100%;
    
}
#tagline{
    color: green;
    font-size: 4rem;
    font-weight: 100;
    font-family: 'Libre Baskerville', serif;
    text-align: center;
    position: relative;
    top: 31%;
    
}


#aboutus{
    margin: 50px 0;
    height: 40rem;
    width: 100%;
    background-color: #f4f3e9;
    background-image: url("/static/images/about-bg.png");
    background-size: 100% 100%;

}

#aboutcontent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    max-width: 100%;
    max-height: 100%;
}

#abouthead {
    flex-basis: 150%;
    max-width: 100%;
    margin-bottom: auto;
}

#abouthead h2 {
    padding-bottom: 25px;
    font-family: 'Cormorant', serif;
    text-align: center;
    font-size: 4rem;
    font-style: normal;
    
}

#abthed {
    padding: 0rem 1rem;
}

#abouthead p{
    padding: 0 10px;
    font-size: x-large;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

     
}

#aboutimagebox {
    flex-basis: 100%;
    max-width: 100%;
}

#homeimgage {
    width: 100%;
    height: auto;

}



/*-------------------------------------- Products ----------------------------------------- */

#products{
    background: #f4f3e9;
}
#products h2{
    font-family: 'Cormorant', serif;
    text-align: center;
    font-size: 4rem;
    font-style: normal;
    padding-top: 4rem;
}
#productsDiv {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 8rem;
    margin: 0rem 1rem;
}

.productscontainer{
    padding: 15px 10px;
    width: 14rem;
    margin: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 4px 4px 4px 0px #9DC08B;
}

.productscontainer:hover {
    background-color:#9dc08b;
    color: #EDF1D6;
} 
.productscontainer:hover .prd-price {
    color: white;
}


.productscontainer img{
    height: 12rem;
    width: 12rem;
    padding-bottom: 2rem;
}
.productscontainer h5 {
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    font-size: 30px;
}
.productscontainer p{
    text-align: center;
    font-size: 25px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}


.price-buy{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.prd-price{
    font-family: 'Libre Baskerville', serif;
    font-size: medium;
    font-weight: bold;
    color: green;
    margin: 5px;


}

.price-buy:hover{
    color: #40513B;
}

.addProd{
    font-family: 'Libre Baskerville', serif;
    font-size: medium;
    color: green;
    box-shadow: 2px 2px green;
    margin: 5px;

}

/* ---------------------------------------------RESPONSIVE-------------------------------------------------------- */


/*------------------ PROMO --------------- */


@media only screen and  (max-width: 840px) { 
    #promo {
        height: 30px;
    }

    #marq marquee {
        font-size: 14px;
        padding-bottom: 2rem;
        
    }
    .navcorner{
        display: none;
    }

}


/*------------------ HOME --------------- */


@media only screen and  (max-width: 830px) {
    #home{
        background-image: url(" /static/images/bg-img.jpg ") ;
        height: 350px;
        width: 100%;
        background-size: 100% 100%;
    
    }

    #tagline{
        font-size: 3rem;
        top: 30%;
    }


}

@media only screen and (max-width: 480px) {
    #home{
        background-image: url(" /static/images/bg-img.jpg ") ;
        height: 15rem;
        width: 100%;
        background-size: 100% 100%;
    }
    
    
    #tagline{
        font-size: 1.5rem;
        
    }

}

/*------------------ ABOUT --------------- */
@media only screen and  (max-width: 1000px) {
    #aboutus{
        margin-top: auto;
        height: auto;
        width: 100%;
        background-color: #f4f3e9;
        background-image: url("/static/images/about-bg.png");
        background-size: 100% 100%;

    }
    #abouthead{
        max-width: 60%;
    }

    #abouthead h2 {
        text-align: center;
        font-size: 35px;
        font-style: normal;
        
    }
    #abouthead p {
        font-size: 1rem;
        padding: 0rem 10px;
    }
    
    #aboutcontent {
        display: flex;
        justify-content: center;
        padding: 10px 10px;
        
    }
    
    #aboutimagebox {
        flex-basis: 50%;
        max-width: 50%;
    }



}

@media only screen  and (max-width: 480px) {
    

    #aboutus{
        width: 100%;
        background-color: #f4f3e9;
        background-image: url("/static/images/about-bg.png");
        background-size: 100% 100%;

    }
    
    #aboutcontent{
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        padding: 10px 10px;
        
    }

    #abouthead h2 {
        text-align: center;
        font-size: 30px;
        font-style: normal;
        
    }

    #abouthead {
        flex-basis: 90%;
        max-width: 100%;
    }

    #abouthead p {
        font-size: 1rem;
        text-align: left;
        padding: 0rem 0rem;
    }
    
    
    #aboutimagebox {
        flex-basis: 80%;
        max-width: 80%;
    }
       
}

@media only screen  and (max-width: 230px) {
    #aboutus{
        height: auto;
    }
}

/*------------------------------------- PRODUCTS --------------------------------------- */

@media only screen and  (max-width: 840px) {
    #products h2{
        font-size: 40px;
        padding-top: 4rem;
        
    
    }
    
    #productsDiv {
        padding: 1rem 0rem;
        margin: 0rem 0rem;
    }

    .productscontainer{
        padding: 10px 10px;
        width: 11rem;
        margin: 1rem;
    }

    .productscontainer img{
        height: 8rem;
        width: 7rem;
        padding-bottom: 1rem;
    }

    .productscontainer h5 {
        font-size: 20px;
    }
    .productscontainer p{
        font-size: 15px;
    }

    .addProd, .prd-price{
        font-size: small;

    }

    .productprice > a {
        border-radius: 10%;
        box-shadow: 2px 2px green;

    }


}

@media only screen  and (max-width: 480px) {
    #productsDiv {
        padding: 0rem 1rem;
        margin: 0rem 1rem;
    }

    #products h2{
        font-size: 30px;
           
    }    


}
@media only screen  and (max-width: 230px) {
    #products h2{
        padding-top: 0rem;
    }
}

/* ***** For Unavailable Products ***** */

.productscontainer.unavailable {
    position: relative; 
    opacity: 0.6; 
    filter: grayscale(10%); 
    pointer-events: none;
}

.productscontainer.unavailable::before {
    content: "Unavailable";
    position: absolute;
    top: 25%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background-color: rgba(255, 0, 0, 0.7);
    color: white; 
    padding: 6px 12px; 
    border-radius: 4px; 
    font-size: 13px;
    z-index: 1; 
}
