/*
==========================================
Chunk'd Dessert Co
Main Stylesheet
Version 1.0
==========================================
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;
    background:#F8FCFF;
    color:#4E342E;
    line-height:1.6;
}

/* ==========================
HEADER
========================== */

header{

    position:fixed;
    top:0;
    left:0;
    width:100%;

    background:white;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 8%;

    box-shadow:0 3px 20px rgba(0,0,0,.08);

    z-index:999;

}

.logo img{

    height:85px;

}

nav ul{

    display:flex;
    list-style:none;
    gap:40px;

}

nav a{

    text-decoration:none;
    color:#4E342E;

    font-weight:600;

    transition:.3s;

}

nav a:hover{

    color:#66B8F7;

}

.header-icons{

    display:flex;
    gap:25px;

    font-size:22px;

    align-items:center;

}

.cart{

    position:relative;

    cursor:pointer;

}

.cart span{

    position:absolute;

    top:-8px;
    right:-12px;

    background:#ff6f91;

    color:white;

    border-radius:50%;

    width:22px;
    height:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:12px;

}

/* ==========================
HERO
========================== */

.hero{

    margin-top:120px;

    min-height:90vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    background:linear-gradient(
    135deg,
    #DFF3FF,
    #FFF9EC);

    position:relative;

    overflow:hidden;

}

.hero-content{

    max-width:700px;

    z-index:10;

}

.hero h1{

    font-family:'Fredoka',sans-serif;

    font-size:68px;

    color:#4E342E;

    margin-bottom:25px;

}

.hero p{

    font-size:22px;

    margin-bottom:40px;

}

.button{

    display:inline-block;

    background:#66B8F7;

    color:white;

    padding:18px 45px;

    border-radius:40px;

    text-decoration:none;

    font-weight:bold;

    transition:.3s;

}

.button:hover{

    background:#ff6f91;

    transform:translateY(-4px);

}

/* ==========================
FLOATING COOKIES
========================== */

.floating{

    position:absolute;

    font-size:55px;

    animation:float 8s ease-in-out infinite;

}

.cookie1{

    left:8%;
    top:18%;

}

.cookie2{

    right:10%;
    top:25%;

    animation-delay:2s;

}

.cookie3{

    left:15%;
    bottom:15%;

    animation-delay:4s;

}

.cookie4{

    right:20%;
    bottom:12%;

    animation-delay:6s;

}

@keyframes float{

0%{

transform:translateY(0px) rotate(0deg);

}

50%{

transform:translateY(-25px) rotate(15deg);

}

100%{

transform:translateY(0px) rotate(0deg);

}

}

/* ==========================
FEATURED PRODUCTS
========================== */

.featured{

    padding:100px 8%;

}

.featured h2{

    text-align:center;

    font-size:48px;

    font-family:'Fredoka';

    margin-bottom:60px;

}

.products{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:35px;

}

.product{

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 8px 30px rgba(0,0,0,.08);

    transition:.3s;

}

.product:hover{

    transform:translateY(-10px);

}

.product img{

    width:100%;

    height:280px;

    object-fit:cover;

}

.product h3{

    padding-top:20px;

    text-align:center;

}

.product p{

    text-align:center;

    color:#ff6f91;

    font-weight:bold;

    margin:12px;

    font-size:22px;

}

.product button{

    width:80%;

    margin:20px auto 30px;

    display:block;

    border:none;

    background:#66B8F7;

    color:white;

    padding:14px;

    border-radius:30px;

    cursor:pointer;

    font-weight:bold;

    transition:.3s;

}

.product button:hover{

    background:#ff6f91;

}

/* ==========================
ABOUT
========================== */

.about{

    background:#FFF8EA;

    padding:100px 8%;

    text-align:center;

}

.about h2{

    font-family:'Fredoka';

    font-size:46px;

    margin-bottom:25px;

}

.about p{

    max-width:900px;

    margin:auto;

    margin-bottom:40px;

}

/* ==========================
REVIEWS
========================== */

.reviews{

    padding:100px 8%;

    background:white;

}

.review-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

.review{

    background:#F5FAFF;

    padding:35px;

    border-radius:15px;

    text-align:center;

    box-shadow:0 5px 20px rgba(0,0,0,.05);

}

/* ==========================
NEWSLETTER
========================== */

.newsletter{

    background:#66B8F7;

    color:white;

    text-align:center;

    padding:90px 8%;

}

.newsletter h2{

    font-size:44px;

    margin-bottom:15px;

    font-family:'Fredoka';

}

.newsletter form{

    margin-top:35px;

}

.newsletter input{

    width:350px;

    max-width:90%;

    padding:16px;

    border:none;

    border-radius:30px;

    margin-right:10px;

}

.newsletter button{

    padding:16px 35px;

    border:none;

    border-radius:30px;

    background:#ff6f91;

    color:white;

    font-weight:bold;

    cursor:pointer;

}

/* ==========================
FOOTER
========================== */

footer{

    background:#3D2A22;

    color:white;

    text-align:center;

    padding:60px 20px;

}

.social{

    margin:20px 0;

}

.social i{

    font-size:30px;

    margin:0 15px;

    transition:.3s;

    cursor:pointer;

}

.social i:hover{

    color:#66B8F7;

}

/* ==========================
RESPONSIVE
========================== */

@media(max-width:900px){

header{

flex-direction:column;

padding:20px;

}

nav ul{

flex-direction:column;

gap:15px;

margin:20px 0;

}

.hero h1{

font-size:42px;

}

.hero p{

font-size:18px;

}

.products{

grid-template-columns:1fr;

}

.review-grid{

grid-template-columns:1fr;

}

}