

.category-page {
   display: flex;
   flex-wrap: wrap;
   justify-content: flex-start;
   margin-top: 20px;
   align-items: flex-end;
   gap: 14px;
}

.category-page p {font-size:110%; margin-bottom:20px;}

.category-page p.shop-by {width:100%;text-align:center;background: #fc9590;border-radius:15px;padding:5px;color: #fff;margin: 0px;}

.category-page h1.header {width:100%;text-align:center;font-size:240%;margin-bottom: 5px;}


.category-page h2 {
    font-size: 2rem;
    margin-bottom: 0px;
    font-family: jojoba;
    font-weight: normal;
}


.category-page h2 a {font-family:inherit;color: #78bab9;}

.category-page div {
    width: 24%;
    text-align: center;
    border-radius: 15px;
    position: relative;
    margin-bottom: 22px;
}


.category-page div.brand-logo {
    width: 19%;
    text-align: center;
    border-radius: 15px;
    position: relative;
    margin-bottom: 28px;
}


.category-page div.age-category {
    width: 19%;
    text-align: center;
    border-radius: 0px;
    position: relative;
    margin-bottom: 22px;
}



.category-page div.four {
    width: 22%;

}


.category-page div img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-page div.brand-logo img {
    border: 1px solid #e1c6c6;
    margin-bottom:15px
}

.category-page div:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.category-page div.age-category:hover img {
    transform: scale(1.05);
    box-shadow: none;
}

.category-page div span {display:block;position: absolute;bottom: 10px;padding: 10px;width: 76%;margin: 0px 12%;background: #fff;opacity: 0.95;border-radius: 20px;font-weight: bold;font-size: 125%;line-height: 100%;}


.category-page div.age-category span {display:block;position: initial;bottom: 0px;padding: 0px;opacity: 0.95;font-weight: bold;font-size: 125%;line-height: 100%;}


.category-page div.brand-logo span {display:block;position: initial;bottom: 0px;padding: 0px;opacity: 0.95;font-weight: bold;font-size: 125%;line-height: 100%;background: none;}

.category-page section {background: #f4f1ee;border-radius: 15px;padding: 30px;margin-top: 10px;box-sizing: border-box;}
        


@media only screen and (max-width:768px) and (min-width:480px) {
.category-page div {
    width: 23%;
    margin-bottom: 28px;
}



}



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

.category-page {
        justify-content: space-between;
        gap: unset;
}


.category-page p.shop-by {margin-bottom:15px;}

  .category-page div {
    width: 48%;
    margin-bottom: 15px;
  }

.category-page div.brand-logo {width: 48%;}
    

     .category-page div.age-category {
    width: 48%;
    margin-bottom: 15px;
  }

  .category-page div span {
    width: 70%;
    margin: 0px 15%;
    font-size: 130%;
    bottom: 10px;
    padding: 8px;
  }


    


.category-page h2 {font-size: 15px;line-height: 1;margin-bottom: 5px;}

.category-page p {font-size:120%; margin-bottom:20px;}
    
}
