*{
    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:#2c1eec;
    font-size:30px;
}


.floating-whatsapp{
    position:fixed;
    right:20px;
    bottom:20px;
    background:#25D366;
    color:#fff;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 18px;
    border-radius:50px;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    z-index:9999;
    transition:.3s;
    animation:whatsappPulse 2s infinite;
}

.search-box{
    display:flex;
    align-items:center;
    gap:8px;
}

.search-box input{
    width:280px;
    padding:10px 15px;
    border:1px solid #ccc;
    border-radius:30px;
    outline:none;
    font-size:15px;
}

.search-box button{
    border:none;
    background:#007bff;
    color:#fff;
    width:42px;
    height:42px;
    border-radius:50%;
    cursor:pointer;
    transition:.3s;
}

.search-box button:hover{
    background:#0056b3;
}

.floating-whatsapp i{
    font-size:28px;
}

.floating-whatsapp span{
    font-size:15px;
    font-weight:600;
}

.floating-whatsapp:hover{
    transform:translateY(-3px);
    background:#1ebe5d;
}

@keyframes whatsappPulse{

    0%{
        box-shadow:0 0 0 0 rgba(37,211,102,.5);
    }

    70%{
        box-shadow:0 0 0 15px rgba(37,211,102,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }

}

@media(max-width:768px){

    .floating-whatsapp{
        right:15px;
        bottom:15px;
        padding:10px 14px;
    }

    .floating-whatsapp i{
        font-size:24px;
    }

    .floating-whatsapp span{
        display:none;
    }

}


.floating-shop{
    position:fixed;
    right:20px;
    bottom:90px; /* WhatsApp button ke upar */
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 18px;
    border-radius:50px;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    z-index:9998;
    transition:.3s;
    animation:shopPulse 2s infinite;
}

.floating-shop i{
    font-size:24px;
}

.floating-shop span{
    font-size:15px;
    font-weight:600;
}

.floating-shop:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
}

@keyframes shopPulse{

    0%{
        box-shadow:0 0 0 0 rgba(37,99,235,.5);
    }

    70%{
        box-shadow:0 0 0 15px rgba(37,99,235,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(37,99,235,0);
    }

}

@media(max-width:768px){

    .floating-shop{
        right:15px;
        bottom:80px;
        padding:10px 14px;
    }

    .floating-shop i{
        font-size:22px;
    }

    .floating-shop span{
        display:none;
    }

}

/* 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: #2c1eec;
    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(220px,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: #2c1eec;
    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: #2c1eec;
    color:#fff;
}

.cartBtn:hover{
    background: #2c1eec;
}

.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;
}

}

.image-gallery{
    padding: 10px;
}

.image-gallery .mainImage{
    width: 100%;
    height: 240px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.image-gallery .thumbs{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:8px;
}

.image-gallery .thumb{
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:6px;
    cursor:pointer;
}

.image-gallery .thumb:hover{
    border-color: #2c1eec;
    transform: scale(1.05);
}

.image-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    z-index:99999;
    justify-content:center;
    align-items:center;
}

.image-modal img{
    max-width:90%;
    max-height:90%;
    border-radius:10px;
}

.close-image{
    position:absolute;
    top:20px;
    right:30px;
    font-size:45px;
    color:#fff;
    cursor:pointer;
}

.mainImage{
    cursor:zoom-in;
    transition:.3s;
}

.mainImage:hover{
    transform:scale(1.05);
}