*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#f5f7fa;
    color:#222;
}

/* Navbar */
.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 30px;
    background:#111827;
    color:white;
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar input{
    width:40%;
    padding:10px;
    border:none;
    border-radius:8px;
}

.nav-buttons button{
    margin-left:10px;
}

/* Hero */
.hero{
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    color:white;
    padding:80px 30px;
    text-align:center;
}

.hero h1{
    font-size:48px;
    margin-bottom:15px;
}

.hero p{
    font-size:18px;
    margin-bottom:20px;
}

.hero button{
    background:white;
    color:#111827;
    font-weight:bold;
}

/* Buttons */
button{
    border:none;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
    background:#2563eb;
    color:white;
    transition:0.3s;
}

button:hover{
    transform:scale(1.05);
}

/* Categories */
.categories{
    display:flex;
    gap:10px;
    justify-content:center;
    padding:20px;
    flex-wrap:wrap;
}

/* Layout */
.container{
    padding:30px;
}

.products{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-bottom:30px;
}

.card{
    background:white;
    border-radius:15px;
    padding:15px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    text-align:center;
    transition:0.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card img{
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:10px;
}

.card h3{
    margin:10px 0;
}

.card p{
    margin:5px 0;
}

.cart-item,.wish-item{
    background:white;
    padding:12px;
    border-radius:10px;
    margin:10px 0;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
}

/* Checkout */
.checkout-box{
    margin-top:30px;
    background:white;
    padding:20px;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.checkout-box input,
.checkout-box select{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:1px solid #ccc;
    border-radius:8px;
}

/* Popup */
.popup{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
}

.popup-content{
    background:white;
    width:90%;
    max-width:500px;
    margin:80px auto;
    padding:25px;
    border-radius:15px;
}

.popup-content span{
    float:right;
    cursor:pointer;
    font-size:20px;
}

/* Footer */
footer{
    background:#111827;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
}

/* Dark Mode */
.dark{
    background:#111827;
    color:white;
}

.dark .card,
.dark .cart-item,
.dark .wish-item,
.dark .checkout-box,
.dark .popup-content{
    background:#1f2937;
    color:white;
}

.dark input,
.dark select{
    background:#374151;
    color:white;
    border:none;
}

/* Responsive */
@media(max-width:768px){

.navbar{
    flex-direction:column;
    gap:10px;
}

.navbar input{
    width:100%;
}

.hero h1{
    font-size:34px;
}
}