*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f5f5;
}

/* Header */

header{
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    box-shadow:0 3px 10px rgba(0,0,0,.1);
    position:sticky;
    top:0;
    z-index:100;
}

header h2{
    color:#ff6600;
    font-size:30px;
}

/* header a{
    color:#333;
    font-size:28px;
    text-decoration:none;
} */

.cart-icon{
    position: relative;
    color:#222;
    font-size:28px;
    text-decoration:none;
    margin:0 15px;
}

#cartCount{
    position:absolute;
    top:-8px;
    right:-10px;
    background:#ff3b30;
    color:#fff;
    width:20px;
    height:20px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold;
}
/* Products */

.products{
    width:90%;
    margin:50px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
    gap:30px;
}

.card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.12);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,.18);
}

.card img{
    width:100%;
    height:240px;
    object-fit:cover;
}



.card h3{
    padding:15px;
    font-size:22px;
    color:#222;
}

.price{
    color:#ff6600;
    font-size:28px;
    font-weight:bold;
    padding:0 15px;
}

.buttons{
    display:flex;
    gap:10px;
    padding:20px 15px;
}

.buttons button{
    flex:1;
    padding:12px;
    border:none;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

.cartBtn{
    background:#ff6600;
    color:#fff;
}

.cartBtn:hover{
    background:#e85d00;
}

.buyBtn{
    background:#111;
    color:#fff;
}

.buyBtn:hover{
    background:#000;
}

/* Mobile */

@media(max-width:768px){

.products{
    width:95%;
}

.card img{
    height:200px;
}

header{
    padding:15px;
}

header h2{
    font-size:24px;
}

}