:root{
    --primary-color:#E3AA75;
    --secondary-color:#915A2D;
    --tertiary-color:#FFDFBF;
}
::selection{
    background-color: var(--secondary-color);
}
body{
    color: var(--secondary-color);
    background-color: var(--primary-color);
}
.logo{
    height: 7.8rem;
}
.navbar{
    background-color: var(--tertiary-color);
    font-size: 1.25rem;
}
.navbar-button{
    font-size: 1.5rem;
    color: var(--secondary-color);
}
.nav-text{
    padding: 5px;
    border: 1px solid transparent;
    transition: all .3s;
}
.nav-link:hover .nav-text{border: 1px solid var(--secondary-color);}

.nav-link,.dropdown-item{color: var(--secondary-color) !important;}
.dropdown-item:hover{background-color: var(--tertiary-color);}
.dropdown-menu{background-color: var(--primary-color);}
main{
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: calc(100% - 6.25rem);
    height: calc(100vh - 11rem);
    background: radial-gradient(var(--primary-color),var(--secondary-color));
    margin: 0 auto;
    padding: 0 20px;
}
.main-title{
    color: white;
    font-size: 3.75rem;
    margin-bottom: 50px;
}
.btn{
    background-color: var(--primary-color);
    color: white;
    font-size: 1.25rem;
}
.btn:hover{
    background-color: var(--tertiary-color);
}
section{margin: 3rem 0;}
.section-title{
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}
hr{
    width: 18.75rem;
    margin: 0 auto 10px;
    border-width: 3px;
}
.sub-section{
    display: flex;
    padding: 10px;
    gap: 10px;
}
.trending-item{
    flex-basis: 25%;
    padding: 10px;
    background-color: rgba(256, 256, 256, .2);
}
.cookie{transform: scale(.8);}
.trending-img{width: 100%;}
.trending-text{
    color: whitesmoke;
}
.trending-title{
    font-size: 1.25rem;
}
.title-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.icon-btn{
    text-decoration: none;
    font-size: 1.25rem;
    color: white;
    background-color: var(--secondary-color);
    padding: 0 12px;
    opacity: 0;
    transition: all .2s;
}
.trending-item:hover .icon-btn{opacity: 1;}
.quotation{
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-basis: 50%;
    height: 18.75rem;
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    
}
.quote-container{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 5px;
}
.quotation-icon{font-size: 1.875rem;}
.author{margin: auto 0;font-weight: 700;}
.quote{font-style: italic;margin: 20px 0;}
.offer{
    height: 18.75rem;
    flex-basis: 25%;
    position: relative;
    background-color: rgba(0, 0, 0, .3);
    color: white;
    padding: 10px;
    transition: all .3s;
}
.offer:hover{transform: scale(1.1);}
.offer::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    filter: blur(2px);
}
.offer1::after{
    background: url(assets/cookies.jpeg) center;
    background-size: cover;
    
}
.offer2::after{
    background: url(assets/drinks.webp) center;
    background-size: cover;
}
.features{justify-content: center;}
.feature{text-align: center;}
.feature-icon{font-size: 1.875rem;transition: all .5s;}
.feature:hover .feature-icon{transform: translate(0,-10px); color: var(--tertiary-color);}
.feature:nth-of-type(2){
    border-left: 1px solid var(--secondary-color);
    border-right: 1px solid var(--secondary-color);
    padding: 0 10px ;
}
#featured-products{margin-bottom: 0;}
.products{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    margin-top:30px;
    padding: 0px 30px;
    gap: 20px;
}
.category{text-align: center;}
.categorie{
    text-decoration: none;
    color: white;
}
.categorie:nth-of-type(2){margin: 0 25px;}
.card{
    position: relative;
    aspect-ratio: 33/20;
    background-color: rgba(256, 256, 256, .1);
    perspective: 1000px;
    overflow: hidden;
}
.inner-card{
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 1s;
    transform-style:preserve-3d;
}
.card:hover .inner-card{
  transform: rotateY( 180deg ) ;
  transition: all 0.5s;
}
.product-image,.product-price{
    position: absolute;
    height: 100%;
    width: 100%;
    backface-visibility: hidden;
}
.product-price{
    position: absolute;
    height: 100%;
    background-color: var(--primary-color);
    transform: rotateY( 180deg );
    color: white;
}
.product-price span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.stars,.product-name{text-align: center;}
.filled-star{color: gold;}
.empty-star{color: white;}
@media (max-width:990px){
    :root{font-size: 10px;}
    .salma{width: 40%;}
}
@media (max-width:450px){
 .sub-section{flex-direction: column;align-items: center;}
 .trending-item{max-width:300px;}
 .sec-sub-section{
    flex-direction:row;
    flex-wrap: wrap;
    justify-content: center;
}
.quotation{flex-basis: 100%;}
.offer{flex-basis: 48%;}
 .features{flex-direction: row;}
 .product-price span{top:2px;left:2px;font-size: 50%;}
}
@media (hover: none) {
    .icon-btn{opacity: 1;}
    .nav-link:hover .nav-text{border: none;}
    .dropdown-item:hover{background-color: var(--primary-color);}
    .offer:hover{transform: scale(1);}
    .feature:hover .feature-icon{transform: translate(0,0); color: var(--secondary-color);}
    .product-price{
        top:70%;
        left: 80%;
        transform: rotateY(0);
        background-color: rgba(0, 0, 0, .1);
        backdrop-filter: blur(5px);
    }
    .product-price span{
        top:0.625rem;
        left: .5rem;
        transform: rotate(-45deg);
    }
    .card:hover .inner-card{transform: none;}
}
