*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#fff5f8;
    color:#333;
}

/* Header */

.catalog-header{
    background:linear-gradient(135deg,#ff4fa3,#ff8bc2);
    color:white;
    text-align:center;
    padding:35px 20px;
}

.catalog-header h1{
    font-size:2.2rem;
    margin-bottom:10px;
}

.catalog-header p{
    margin-bottom:20px;
}

.search-box{
    width:90%;
    max-width:500px;
    margin:auto;
    position:relative;
}

.search-box input{
    width:100%;
    padding:14px 50px 14px 18px;
    border:none;
    border-radius:30px;
    font-size:16px;
    outline:none;
}

.search-box i{
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    color:#ff4fa3;
}

/* Categories */

.categories{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    padding:25px;
}

.categories button{
    padding:10px 20px;
    border:none;
    border-radius:25px;
    background:#fff;
    color:#ff4fa3;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
    box-shadow:0 3px 10px rgba(0,0,0,.1);
}

.categories button:hover,
.categories .active{
    background:#ff4fa3;
    color:white;
}

/* Products */

.products{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    padding:30px;
}

.product{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}

.product:hover{
    transform:translateY(-8px);
}

.product img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.product h3{
    padding:15px 15px 5px;
    color:#ff4fa3;
}

.price{
    padding:0 15px;
    font-size:20px;
    color:#222;
    font-weight:bold;
}

.cart-btn{
    width:90%;
    margin:18px auto;
    display:block;
    border:none;
    padding:12px;
    border-radius:30px;
    background:#ff4fa3;
    color:white;
    font-size:15px;
    cursor:pointer;
    transition:.3s;
}

.cart-btn:hover{
    background:#ff2d8c;
}

/* Footer */

footer{
    background:#ff4fa3;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
}

/* Responsive */

@media(max-width:768px){

.catalog-header h1{
    font-size:1.8rem;
}

.products{
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    padding:20px;
}

.product img{
    height:200px;
}

}