*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial,sans-serif;
}

body{
background:#f5f5f5;
}

header{
background:#0d6efd;
color:white;
padding:20px;
text-align:center;
}

header h1{
margin-bottom:15px;
}

#searchBox{
width:90%;
max-width:500px;
padding:12px;
border:none;
border-radius:8px;
font-size:16px;
margin-bottom:15px;
}

.social-links{
display:flex;
justify-content:center;
gap:15px;
flex-wrap:wrap;
}

.social-links a{
text-decoration:none;
background:white;
color:#0d6efd;
padding:10px 20px;
border-radius:8px;
font-weight:bold;
transition:.3s;
}

.social-links a:hover{
background:#222;
color:white;
}

#products{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
gap:15px;
padding:15px;
}

.card{

background:#fff;

border-radius:18px;

overflow:hidden;

box-shadow:0 8px 25px rgba(0,0,0,.08);

transition:.3s;

}

.card:hover{

transform:translateY(-8px);

box-shadow:0 15px 35px rgba(0,0,0,.15);

}
.price{
font-size:22px;
font-weight:bold;
color:green;
margin-bottom:10px;
}

.desc{
margin-bottom:15px;
line-height:1.5;
}

.whatsapp-btn{

background:#0057d8;

padding:12px;

border-radius:8px;

text-align:center;

display:block;

color:#fff;

text-decoration:none;

font-weight:bold;

transition:.3s;

}
.whatsapp-btn:hover{

background:#003e9d;

}
display:block;
text-align:center;
background:#25D366;
color:white;
padding:12px;
border-radius:8px;
text-decoration:none;
font-weight:bold;
}

.whatsapp-btn:hover{
background:#128C7E;
}

#imageModal{
display:none;
position:fixed;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,.9);
justify-content:center;
align-items:center;
z-index:999;
}

#modalImage{
max-width:90%;
max-height:90%;
border-radius:10px;
}

#closeModal{
position:absolute;
right:25px;
top:20px;
font-size:40px;
color:white;
cursor:pointer;
}

.main-image-box img{

width:100%;

height:240px;

object-fit:cover;

transition:.4s;

cursor:pointer;

}

.card:hover .main-image-box img{

transform:scale(1.05);

}

.gallery{
display:flex;
justify-content:center;
gap:8px;
padding:10px;
}

.gallery img{
width:45px;
height:45px;
object-fit:cover;
cursor:pointer;
border:2px solid #ddd;
border-radius:5px;
}

.gallery img:hover{
border-color:#0d6efd;
}
 .footer-social{
display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;
margin-bottom:15px;
}

.footer-social a{
display:flex;
align-items:center;
gap:8px;
padding:12px 20px;
border-radius:10px;
text-decoration:none;
font-weight:bold;
color:white;
transition:.3s;
}

.footer-social a:hover{
transform:scale(1.08);
}

/* WhatsApp */
.footer-social a:nth-child(1){
background:#25D366;
}

/* Instagram */
.footer-social a:nth-child(2){
background:linear-gradient(45deg,#f58529,#feda77,#dd2a7b,#8134af,#515bd4);
}

/* YouTube */
.footer-social a:nth-child(3){
background:#FF0000;
}

.footer-social i{
font-size:22px;
}
footer{
background:#222;
color:white;
text-align:center;
padding:30px 20px;
margin-top:40px;
}
/* ===========================
   ADMIN PANEL DESIGN
=========================== */

.login-box{
max-width:600px;
width:95%;
margin:30px auto;
background:#fff;
padding:25px;
border-radius:15px;
box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.login-box h2{
text-align:center;
margin-bottom:20px;
color:#0d6efd;
}

.login-box input,
.login-box textarea{
width:100%;
padding:12px;
margin:10px 0;
border:1px solid #ccc;
border-radius:8px;
font-size:16px;
outline:none;
transition:.3s;
}

.login-box input:focus,
.login-box textarea:focus{
border-color:#0d6efd;
box-shadow:0 0 5px rgba(13,110,253,.3);
}

.login-box textarea{
height:120px;
resize:vertical;
}

#addBtn,
#logoutBtn{
width:100%;
padding:12px;
margin-top:10px;
border:none;
border-radius:8px;
font-size:16px;
font-weight:bold;
cursor:pointer;
transition:.3s;
}

#addBtn{
background:#0d6efd;
color:white;
}

#addBtn:hover{
background:#0b5ed7;
}

#logoutBtn{
background:#dc3545;
color:white;
}

#logoutBtn:hover{
background:#bb2d3b;
}

#msg{
margin-top:15px;
text-align:center;
font-weight:bold;
color:green;
}

/* Product List */

#productList{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:20px;
padding:20px;
}

#productList .card{
background:#fff;
border-radius:12px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,.15);
transition:.3s;
}

#productList .card:hover{
transform:translateY(-5px);
}

#productList .card img{
width:100%;
height:220px;
object-fit:cover;
}

#productList .card-content{
padding:10px;
}

#productList .card-content h3{
margin-bottom:10px;
}

#productList .card-content p{
margin-bottom:8px;
}

#productList button{
width:100%;
padding:10px;
border:none;
border-radius:8px;
font-size:15px;
cursor:pointer;
margin-top:5px;
}

#productList button:first-of-type{
background:#198754;
color:white;
}

#productList button:last-of-type{
background:#dc3545;
color:white;
}

#productList button:hover{
opacity:.9;
}

/* Mobile */

@media(max-width:768px){

.login-box{
width:95%;
padding:20px;
}

#searchProduct{
width:95%;
}

#productList{
grid-template-columns:1fr;
}

}
.social-icons{
    position:fixed;
    right:20px;
    bottom:20px;
    display:flex;
    flex-direction:column;
    gap:15px;
    z-index:99999;
}

.social-icons a{
    width:55px;
    height:55px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    transition:.3s;
    box-shadow:0 4px 12px rgba(0,0,0,.3);
}

.social-icons a i{
    font-size:28px;
    color:#fff;
}

.social-icons a:hover{
    transform:scale(1.12);
}

.whatsapp{
    background:#25D366;
}

.instagram{
    background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af);
}

.youtube{
    background:#FF0000;
}
#loader{
    width:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:60px 20px;
}

.spinner{
    width:55px;
    height:55px;
    border:5px solid #ddd;
    border-top:5px solid #0d6efd;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

#loader p{
    margin-top:15px;
    font-size:18px;
    font-weight:bold;
    color:#555;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}
/* ===========================
   RESPONSIVE PRODUCT GRID
=========================== */

@media (max-width:768px){

#products{
grid-template-columns:repeat(2,1fr);
gap:12px;
padding:12px;
}

.main-image-box img{
height:140px;
}

.gallery img{
width:35px;
height:35px;
}

.card-content{
padding:8px;
}

.card-content h3{
font-size:15px;
}

.price{
font-size:16px;
}

.desc{
font-size:12px;
line-height:1.4;
}

.whatsapp-btn{
padding:8px;
font-size:13px;
}

}
/* TOP BAR */

.top-bar{

background:#002b7f;

color:#fff;

padding:10px 40px;

display:flex;

justify-content:space-between;

align-items:center;

font-size:14px;

}

.top-right{

display:flex;

gap:25px;

}

.top-right a{

color:#fff;

text-decoration:none;

}

/* ================= HEADER ================= */

.main-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:15px 30px;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.logo h2{
    font-size:42px;
    color:#003b8f;
    font-weight:800;
    white-space:nowrap;
}

.search-box{
    flex:1;
    display:flex;
    max-width:520px;
}

.search-box input{
    flex:1;
    height:50px;
    border:2px solid #ddd;
    border-right:none;
    border-radius:15px 0 0 15px;
    padding:0 18px;
    font-size:16px;
}

.search-btn{
    width:60px;
    height:50px;
    border:none;
    background:#0057d8;
    color:#fff;
    border-radius:0 15px 15px 0;
    cursor:pointer;
}

.search-btn i{
    font-size:20px;
}

nav{
    display:flex;
    align-items:center;
    gap:28px;
}

nav a{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-decoration:none;
    color:#222;
    font-size:13px;
}

nav a i{
    font-size:24px;
    margin-bottom:6px;
}
/* ===========================
   HERO SECTION
=========================== */

.hero{

display:flex;

align-items:center;

justify-content:space-between;

padding:60px;

background:#fff;

margin:25px;

border-radius:20px;

box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.hero-text{

max-width:500px;

}

.tag{

color:#0057d8;

font-weight:bold;

font-size:18px;

}

.hero-text h1{

font-size:52px;

margin:20px 0;

color:#111;

}

.hero-text p{

font-size:18px;

line-height:1.8;

color:#555;

margin-bottom:35px;

}

.shop-btn{

display:inline-block;

background:#0057d8;

color:#fff;

padding:15px 35px;

border-radius:10px;

text-decoration:none;

font-weight:bold;

transition:.3s;

}

.shop-btn:hover{

background:#003f9f;

}

.hero-image img{

width:520px;

max-width:100%;

}

@media(max-width:900px){

.hero{

flex-direction:column;

text-align:center;

padding:30px;

}

.hero-image{

margin-top:30px;

}

.hero-text h1{

font-size:36px;

}

.hero-image img{

width:100%;

}

}
/* ===========================
   FEATURES
=========================== */

.features{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:20px;

padding:25px;

margin:0 25px 30px;

}

.feature-box{

background:#fff;

padding:25px;

border-radius:15px;

display:flex;

align-items:center;

gap:18px;

box-shadow:0 5px 15px rgba(0,0,0,.08);

transition:.3s;

}

.feature-box:hover{

transform:translateY(-5px);

}

.feature-box i{

font-size:38px;

color:#0057d8;

}

.feature-box h3{

font-size:18px;

margin-bottom:6px;

}

.feature-box p{

font-size:14px;

color:#666;

}

@media(max-width:900px){

.features{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:600px){

.features{

grid-template-columns:1fr;

}

}
/* ===========================
   TOP CATEGORIES
=========================== */

.categories-section{

margin:30px 25px;

}

.section-title{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:20px;

}

.section-title h2{

font-size:34px;

}

.section-title a{

text-decoration:none;

color:#0057d8;

font-weight:bold;

}

.categories{

display:grid;

grid-template-columns:repeat(5,1fr);

gap:20px;

}

.category-card{

background:#fff;

border-radius:15px;

overflow:hidden;

box-shadow:0 5px 15px rgba(0,0,0,.08);

cursor:pointer;

transition:.3s;

text-align:center;

}

.category-card:hover{

transform:translateY(-8px);

}

.category-card img{

width:100%;

height:180px;

object-fit:cover;

}

.category-card h3{

margin-top:15px;

font-size:22px;

}

.category-card p{

margin:10px 0 20px;

color:#666;

}

@media(max-width:1000px){

.categories{

grid-template-columns:repeat(3,1fr);

}

}

@media(max-width:700px){

.categories{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:450px){

.categories{

grid-template-columns:1fr;

}

}
.sale-badge{

position:absolute;

left:15px;

top:15px;

background:#ff3b30;

color:#fff;

padding:6px 12px;

border-radius:20px;

font-size:12px;

font-weight:bold;

z-index:10;

}

.card{

position:relative;

overflow:hidden;

transition:.3s;

}

.card:hover{

transform:translateY(-8px);

box-shadow:0 10px 30px rgba(0,0,0,.15);

}

.wishlist{

position:absolute;

right:15px;

top:15px;

width:40px;

height:40px;

background:#fff;

border-radius:50%;

display:flex;

justify-content:center;

align-items:center;

box-shadow:0 4px 12px rgba(0,0,0,.2);

cursor:pointer;

}

.wishlist i{

color:#ff3b30;

font-size:20px;

}

.price{

font-size:22px;

font-weight:bold;

color:#0057d8;

}
/* HERO SLIDER */

.hero-slider{

position:relative;

width:95%;

margin:25px auto;

overflow:hidden;

border-radius:18px;

box-shadow:0 5px 20px rgba(0,0,0,.12);

}

.slides{

position:relative;

height:420px;

}

.slide{

position:absolute;

width:100%;

height:100%;

opacity:0;

transition:opacity .7s;

}

.slide.active{

opacity:1;

}

.slide img{

width:100%;

height:100%;

object-fit:cover;

}

.prev,
.next{

position:absolute;

top:50%;

transform:translateY(-50%);

width:45px;

height:45px;

border:none;

border-radius:50%;

background:rgba(255,255,255,.9);

cursor:pointer;

font-size:22px;

}

.prev{

left:20px;

}

.next{

right:20px;

}

.dots{

position:absolute;

bottom:15px;

width:100%;

text-align:center;

}

.dot{

display:inline-block;

width:12px;

height:12px;

margin:0 5px;

border-radius:50%;

background:#ddd;

cursor:pointer;

}

.dot.active{

background:#0057d8;

}

@media(max-width:768px){

.slides{

height:220px;

}

}
/* ===========================
SHOP CATEGORY
=========================== */

.shop-category{

padding:60px 5%;

background:#f7f8fc;

}

.section-heading{

text-align:center;

margin-bottom:35px;

}

.section-heading h2{

font-size:38px;

margin-bottom:10px;

}

.section-heading p{

color:#666;

font-size:17px;

}

.category-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:25px;

}

.category-item{

position:relative;

height:260px;

border-radius:18px;

overflow:hidden;

cursor:pointer;

transition:.4s;

box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.category-item img{

width:100%;

height:100%;

object-fit:cover;

transition:.5s;

}

.category-item:hover img{

transform:scale(1.12);

}

.overlay{

position:absolute;

left:0;

bottom:0;

width:100%;

padding:25px;

background:linear-gradient(transparent,rgba(0,0,0,.8));

color:#fff;

}

.overlay h3{

font-size:26px;

}

.category-item:hover{

transform:translateY(-8px);

}

@media(max-width:900px){

.category-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:600px){

.category-grid{

grid-template-columns:1fr;

}

}
/* ===========================
   TRENDING PRODUCTS
=========================== */

.product-heading{

display:flex;

justify-content:space-between;

align-items:center;

padding:20px 5%;

margin-top:20px;

}

.product-heading h2{

font-size:36px;

font-weight:700;

color:#222;

}

.product-heading p{

margin-top:6px;

color:#777;

font-size:16px;

}

.view-all-btn{

background:#0057d8;

color:#fff;

padding:12px 24px;

border-radius:8px;

text-decoration:none;

font-weight:600;

transition:.3s;

}

.view-all-btn:hover{

background:#003f9f;

}

@media(max-width:768px){

.product-heading{

flex-direction:column;

align-items:flex-start;

gap:15px;

}

.product-heading h2{

font-size:28px;

}

}
/* PRODUCT CARD */

.product-top{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:12px;

}

.discount{

background:#ff4d4d;

color:#fff;

padding:5px 10px;

border-radius:20px;

font-size:12px;

font-weight:bold;

}

.rating{

background:#16a34a;

color:#fff;

padding:5px 10px;

border-radius:20px;

font-size:13px;

font-weight:bold;

}

.price-box{

display:flex;

align-items:center;

gap:12px;

margin:12px 0;

}

.new-price{

font-size:24px;

font-weight:700;

color:#0057d8;

}

.old-price{

text-decoration:line-through;

color:#888;

font-size:16px;

}

.buy-btn{

display:flex;

justify-content:center;

align-items:center;

gap:8px;

background:#0057d8;

color:#fff;

text-decoration:none;

padding:12px;

border-radius:10px;

font-weight:bold;

transition:.3s;

}

.buy-btn:hover{

background:#003d99;

transform:translateY(-2px);

}

.buy-btn i{

font-size:18px;

}

.card{

transition:.3s;

}

.card:hover{

transform:translateY(-8px);

box-shadow:0 12px 30px rgba(0,0,0,.18);

}
@media (max-width:768px){

.main-header{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    padding:10px;
    gap:10px;
}
.logo{
    display:flex;
    align-items:center;
    gap:6px;
    width:auto;
}
.logo img{
    width:28px;
    height:28px;
}
.logo h2{
    font-size:18px;
}

.search-box{
    order:3;
    width:100%;
    max-width:100%;
    display:flex;
    margin-top:8px;
}

.search-box input{
    flex:1;
    height:42px;
    font-size:14px;
    padding:0 12px;
}

.search-btn{
    width:48px;
    height:44px;
}

.search-btn{
    width:50px;
    height:42px;
}
nav{
    display:flex;
    gap:14px;
    align-items:center;
}

nav a i{
    font-size:18px;
}

nav a span{
    font-size:11px;
}

}
.logo{
    display:flex;
    align-items:center;
    gap:8px;
}

.logo img{
    width:36px;
    height:36px;
    object-fit:contain;
}