*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#fff7fa;
}

/* ================= NAVBAR ================= */

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:#ffffff;
    box-shadow:0 3px 12px rgba(0,0,0,0.1);
    position:sticky;
    top:0;
}

.logo{
    font-size:28px;
    font-weight:bold;
    color:#ff2e63;
}

.search{
    display:flex;
    width:40%;
}

.search input{
    width:100%;
    padding:12px;
    border:2px solid #ffb6c1;
    border-radius:25px 0 0 25px;
    outline:none;
    font-size:15px;
}

.search button{
    padding:12px 20px;
    border:none;
    background:#ff2e63;
    color:white;
    border-radius:0 25px 25px 0;
    cursor:pointer;
}

.search button:hover{
    background:#ff4f81;
}

.icons i{
    font-size:24px;
    margin-left:22px;
    color:#ff2e63;
    cursor:pointer;
    transition:.3s;
}

.icons i:hover{
    color:#ff6f91;
    transform:scale(1.2);
}

/* ================= HERO ================= */

.hero{
    height:420px;
    background:linear-gradient(rgba(255,255,255,.4),rgba(255,255,255,.4)),
    url("https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?w=1200") center/cover;
    display:flex;
    align-items:center;
    padding-left:8%;
}

.hero-text{
    max-width:500px;
}

.hero h1{
    font-size:55px;
    color:#ff2e63;
}

.hero p{
    margin:20px 0;
    font-size:18px;
    color:#444;
    line-height:1.6;
}

.hero button{
    padding:14px 35px;
    border:none;
    border-radius:30px;
    background:#ff2e63;
    color:white;
    font-size:17px;
    cursor:pointer;
    transition:.3s;
}

.hero button:hover{
    background:#ff4f81;
    transform:translateY(-3px);
}

/* ================= TITLE ================= */

.title{
    text-align:center;
    color:#ff2e63;
    margin:50px 0 30px;
    font-size:34px;
}

/* ================= CATEGORIES ================= */

.categories{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    width:90%;
    margin:auto;
}

.card{
    background:white;
    border-radius:18px;
    overflow:hidden;
    text-align:center;
    box-shadow:0 8px 18px rgba(0,0,0,.1);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card h3{
    padding:18px;
    color:#ff2e63;
}

/* ================= PRODUCTS ================= */

.products{
    width:90%;
    margin:40px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:30px;
}

.product{
    background:white;
    border-radius:20px;
    padding:20px;
    text-align:center;
    box-shadow:0 8px 18px rgba(0,0,0,.1);
    transition:.3s;
}

.product:hover{
    transform:translateY(-10px);
}

.product img{
    width:100%;
    height:240px;
    object-fit:cover;
    border-radius:15px;
}

.product h3{
    margin-top:15px;
    color:#444;
}

.product p{
    margin:10px 0;
    color:#ff2e63;
    font-weight:bold;
    font-size:20px;
}

.product button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:25px;
    background:#ff2e63;
    color:white;
    cursor:pointer;
    transition:.3s;
}

.product button:hover{
    background:#ff4f81;
}

/* ================= FOOTER ================= */

footer{
    margin-top:60px;
    background:#ff2e63;
    color:white;
    text-align:center;
    padding:40px;
}

footer h2{
    margin-bottom:10px;
}

footer p{
    margin:8px 0;
}

/* ================= RESPONSIVE ================= */

@media(max-width:768px){

nav{
    flex-direction:column;
    gap:15px;
}

.search{
    width:100%;
}

.hero{
    height:350px;
    text-align:center;
    justify-content:center;
    padding:20px;
}

.hero h1{
    font-size:38px;
}

.hero p{
    font-size:16px;
}

}