/********* subcategs **********/

.category-sec{
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.categ-title{
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
}

.category-desc{
    max-width: 600px;
    margin: 1rem auto;
    text-align: center;
}

.subcategs-label{
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.subcateg-wrapper{
    margin-bottom: 1rem;
}

.subcategs-row{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.subcateg-wrapper{
    width: 255px;
    padding: 0.5rem;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

.subcateg-wrapper:hover{
    transform: translateY(-2%);
}

.subcateg-title{
    font-size: 1.7rem;
    line-height: 1.7rem;
    min-height: 65px;
    font-weight: bolder;
}

.subcateg-url{
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.subcateg-url:hover{
    color: #BBB;
}

.subcateg-image{
    min-height: 250px;
    border-radius: 8px;
}

@media(max-width: 960px){
    .categ-title{
        font-size: 2.6rem;
    }
    
    .subcategs-row{
        justify-content: center;
    }
    
    .subcateg-title{
        min-height: 0;
    }
    
    .subcateg-wrapper{
        margin-bottom: 1.5rem;
    }
}

/********* products **********/

.products-sec{
    padding: 5rem 0;
    background-image: url('../img/lindareggeli_hatter.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.products-text{
    margin-top: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 1.6rem;
    text-align: center;
    
    background-color: #FFF;
    border-radius: 2rem;
    padding: 2rem 1rem;
}

.product-wrapper{
    height: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    background-color: var(--primary-color);
    border-radius: 2.2rem;
    padding: 1rem;
}

.product-img-wrapper{
    overflow: hidden;
    position: relative;
    border-radius: 2rem;
}

.product-img{
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 250px;
    transform: scale(1);
    transition: all 0.2s;
}

.product-wrapper:hover .product-img{
    transform: scale(1.1);
}

.product-ribbon {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    
    padding: 4px 8px;
    
    position: absolute;
    left: 20px;
    top: 20px;
    
    border-radius: 25px;
    background-color: #07F;
    color: #FFF;
    
    letter-spacing: 1px;
}

.product-body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    
    background-color: var(--primary-color);
    text-align: center;
}



.product-title{
    font-size: 2rem;
    color: #FFF;
    text-decoration: none;
    font-weight: 900;
    
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.product-body-inner{
    background-color: #FFF;
    border-radius: 2rem;
    padding: 2rem 0;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.product-price{
    color: var(--primary-color);
    font-size: 1.6rem;
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.7px;
    text-decoration: none;
    font-weight: 600;
}

.product-price.text-decoration-line-through{
    color: var(--secondary-bg-color);
    font-weight: 500;
}

.price-sale-title{
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

.products-sec .btn-order{
    margin-top: 1rem;
}

@media(max-width: 960px){
    .products-sec .page-title{
        font-weight: 900;
    }
    
    .products-text{
        font-size: 1.4rem;
        font-weight: 600;
    }
    
    .products-sec{
        background-attachment: fixed;
    }
}
