/* =====================================
   ELECTROMART CSS PART 1
   RESET + NAVBAR + HERO
===================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

html{
scroll-behavior:smooth;
}

body{
background:#f5f7fb;
color:#1f2937;
overflow-x:hidden;
}

/* Scrollbar */

::-webkit-scrollbar{
width:10px;
}

::-webkit-scrollbar-track{
background:#eef2ff;
}

::-webkit-scrollbar-thumb{
background:#2563eb;
border-radius:20px;
}

/* ================= NAVBAR ================= */

header{
position:fixed;
top:0;
left:0;
width:100%;
z-index:1000;
background:rgba(255,255,255,.9);
backdrop-filter:blur(15px);
box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.navbar{
max-width:1400px;
margin:auto;
padding:18px 5%;
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-size:30px;
font-weight:800;
color:#2563eb;
text-decoration:none;
display:flex;
align-items:center;
gap:10px;
}

.logo i{
font-size:32px;
}

.nav-menu{
display:flex;
list-style:none;
gap:35px;
}

.nav-menu a{
text-decoration:none;
color:#374151;
font-weight:600;
transition:.3s;
position:relative;
}

.nav-menu a::after{
content:"";
position:absolute;
left:0;
bottom:-6px;
width:0%;
height:3px;
background:#2563eb;
transition:.3s;
}

.nav-menu a:hover{
color:#2563eb;
}

.nav-menu a:hover::after{
width:100%;
}

.nav-right{
display:flex;
align-items:center;
gap:18px;
}

.search-box{
position:relative;
}

.search-box input{
width:240px;
padding:12px 45px 12px 18px;
border:none;
border-radius:50px;
background:#eef3ff;
outline:none;
font-size:15px;
}

.search-box i{
position:absolute;
right:18px;
top:50%;
transform:translateY(-50%);
color:#2563eb;
}

.icon-btn{
width:48px;
height:48px;
background:#eef3ff;
border-radius:50%;
display:flex;
justify-content:center;
align-items:center;
cursor:pointer;
transition:.3s;
position:relative;
}

.icon-btn:hover{
background:#2563eb;
color:#fff;
transform:translateY(-3px);
}

.cart-icon span{
position:absolute;
top:-6px;
right:-6px;
width:22px;
height:22px;
border-radius:50%;
background:#ef4444;
color:#fff;
font-size:12px;
display:flex;
justify-content:center;
align-items:center;
font-weight:bold;
}

/* ================= HERO ================= */

.hero{
min-height:100vh;
display:grid;
grid-template-columns:1fr 1fr;
align-items:center;
gap:70px;
padding:140px 8% 80px;
background:
linear-gradient(135deg,#eef4ff,#ffffff);
}

.hero-content{
animation:fadeUp 1s ease;
}

.hero-tag{
display:inline-block;
padding:10px 20px;
background:#dbeafe;
color:#2563eb;
font-weight:700;
border-radius:40px;
margin-bottom:25px;
}

.hero-content h1{
font-size:68px;
line-height:1.1;
font-weight:800;
margin-bottom:25px;
color:#111827;
}

.hero-content p{
font-size:20px;
line-height:1.9;
color:#6b7280;
margin-bottom:40px;
max-width:620px;
}

.hero-buttons{
display:flex;
gap:20px;
flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
padding:18px 40px;
border-radius:50px;
font-weight:700;
text-decoration:none;
transition:.35s;
}

.btn-primary{
background:#2563eb;
color:#fff;
box-shadow:0 15px 35px rgba(37,99,235,.35);
}

.btn-primary:hover{
background:#1d4ed8;
transform:translateY(-5px);
}

.btn-secondary{
border:2px solid #2563eb;
color:#2563eb;
}

.btn-secondary:hover{
background:#2563eb;
color:#fff;
}

.hero-image{
display:flex;
justify-content:center;
}

.hero-image img{
width:100%;
max-width:620px;
border-radius:25px;
box-shadow:0 30px 70px rgba(0,0,0,.15);
transition:.5s;
}

.hero-image img:hover{
transform:scale(1.04);
}

/* ================= SECTION TITLE ================= */

.section-header{
text-align:center;
margin-bottom:60px;
}

.section-header h2{
font-size:48px;
font-weight:800;
color:#111827;
margin-bottom:15px;
}

.section-header p{
font-size:18px;
color:#6b7280;
}

/* ================= ANIMATION ================= */

@keyframes fadeUp{

from{
opacity:0;
transform:translateY(50px);
}

to{
opacity:1;
transform:translateY(0);
}

}

/* ================= RESPONSIVE ================= */

@media(max-width:991px){

.hero{
grid-template-columns:1fr;
text-align:center;
padding-top:140px;
}

.hero-content p{
margin:auto auto 35px;
}

.hero-buttons{
justify-content:center;
}

.nav-menu{
display:none;
}

.search-box input{
width:180px;
}

.hero-content h1{
font-size:48px;
}

}

@media(max-width:576px){

.search-box{
display:none;
}

.hero-content h1{
font-size:38px;
}

.hero-content p{
font-size:16px;
}

.btn-primary,
.btn-secondary{
width:100%;
text-align:center;
}

.hero-image img{
max-width:100%;
}

}
/* =====================================
   ELECTROMART CSS PART 2
   CATEGORIES + PRODUCTS
=====================================*/

/* ===== CATEGORIES ===== */

.categories{
padding:100px 8%;
background:#ffffff;
}

.category-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:30px;
margin-top:50px;
}

.category-card{
background:#fff;
padding:40px 20px;
border-radius:25px;
text-align:center;
cursor:pointer;
transition:.4s;
border:1px solid #e5e7eb;
box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.category-card:hover{
transform:translateY(-12px);
background:linear-gradient(135deg,#2563eb,#1e40af);
color:#fff;
box-shadow:0 25px 50px rgba(37,99,235,.35);
}

.category-card i{
font-size:55px;
margin-bottom:20px;
color:#2563eb;
transition:.3s;
}

.category-card:hover i{
color:#fff;
transform:scale(1.15);
}

.category-card h3{
font-size:22px;
margin-bottom:10px;
font-weight:700;
}

.category-card p{
font-size:15px;
color:#6b7280;
transition:.3s;
}

.category-card:hover p{
color:#fff;
}

/* ===== FEATURED PRODUCTS ===== */

.featured-products,
.products-section{
padding:100px 8%;
background:#f8fafc;
}

.product-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:35px;
margin-top:50px;
}

/* ===== PRODUCT CARD ===== */

.product-card{
background:#fff;
border-radius:22px;
overflow:hidden;
position:relative;
transition:.4s;
box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.product-card:hover{
transform:translateY(-10px);
box-shadow:0 30px 60px rgba(37,99,235,.20);
}

.product-card img{
width:100%;
height:260px;
object-fit:cover;
transition:.4s;
}

.product-card:hover img{
transform:scale(1.08);
}

.product-info{
padding:22px;
}

.product-info h3{
font-size:24px;
margin-bottom:8px;
font-weight:700;
color:#111827;
}

.product-info p{
color:#6b7280;
margin-bottom:18px;
}

.price-row{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
}

.price{
font-size:28px;
font-weight:800;
color:#16a34a;
}

.old-price{
font-size:16px;
text-decoration:line-through;
color:#9ca3af;
}

/* ===== BADGES ===== */

.product-badge{
position:absolute;
top:18px;
left:18px;
padding:8px 18px;
border-radius:30px;
background:#2563eb;
color:#fff;
font-size:13px;
font-weight:700;
z-index:5;
}

.product-badge.sale{
background:#ef4444;
}

.product-badge.hot{
background:#f59e0b;
}

/* ===== ADD TO CART ===== */

.add-cart{
width:100%;
padding:15px;
border:none;
border-radius:12px;
background:#2563eb;
color:#fff;
font-size:17px;
font-weight:700;
cursor:pointer;
transition:.3s;
display:flex;
justify-content:center;
align-items:center;
gap:10px;
}

.add-cart:hover{
background:#1d4ed8;
transform:scale(1.03);
}

.add-cart i{
font-size:18px;
}

/* ===== RESPONSIVE ===== */

@media(max-width:768px){

.category-grid,
.product-grid{

grid-template-columns:1fr;

}

.product-card img{

height:230px;

}

.product-info h3{

font-size:21px;

}

.price{

font-size:24px;

}

}
/* =====================================
   ELECTROMART CSS PART 3
   FLASH SALE + BRANDS + FEATURES
=====================================*/

/* ================= FLASH SALE ================= */

.flash-sale{
padding:100px 8%;
background:linear-gradient(135deg,#0f172a,#1e3a8a,#2563eb);
border-radius:30px;
margin:80px;
color:#fff;
overflow:hidden;
}

.flash-content{
display:grid;
grid-template-columns:1fr 1fr;
align-items:center;
gap:60px;
}

.flash-text h2{
font-size:32px;
margin-bottom:10px;
}

.flash-text h1{
font-size:70px;
font-weight:800;
margin:15px 0;
line-height:1.1;
}

.flash-text p{
font-size:18px;
line-height:1.8;
margin-bottom:35px;
color:#dbeafe;
}

.offer-tag{
display:inline-block;
padding:10px 22px;
background:rgba(255,255,255,.15);
backdrop-filter:blur(10px);
border-radius:30px;
font-weight:600;
margin-bottom:25px;
}

.flash-image{
display:flex;
justify-content:center;
}

.flash-image img{
width:100%;
max-width:500px;
border-radius:25px;
box-shadow:0 20px 50px rgba(0,0,0,.35);
transition:.4s;
}

.flash-image img:hover{
transform:scale(1.05);
}

/* ================= BRANDS ================= */

.brands{
padding:100px 8%;
background:#fff;
}

.brand-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:30px;
margin-top:50px;
}

.brand-card{
background:#f8fafc;
padding:40px 20px;
text-align:center;
border-radius:20px;
transition:.35s;
border:1px solid #e5e7eb;
cursor:pointer;
}

.brand-card:hover{
background:#2563eb;
color:#fff;
transform:translateY(-10px);
box-shadow:0 20px 45px rgba(37,99,235,.35);
}

.brand-card i{
font-size:55px;
margin-bottom:18px;
color:#2563eb;
transition:.3s;
}

.brand-card:hover i{
color:#fff;
transform:rotate(10deg) scale(1.15);
}

.brand-card h3{
font-size:22px;
}

/* ================= FEATURES ================= */

.features{
padding:100px 8%;
background:#f5f7fb;
}

.feature-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
margin-top:50px;
}

.feature-card{
background:#fff;
padding:40px 30px;
border-radius:20px;
text-align:center;
transition:.35s;
box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.feature-card:hover{
transform:translateY(-10px);
box-shadow:0 25px 50px rgba(37,99,235,.18);
}

.feature-card i{
font-size:55px;
color:#2563eb;
margin-bottom:20px;
}

.feature-card h3{
font-size:24px;
margin-bottom:15px;
font-weight:700;
}

.feature-card p{
font-size:16px;
line-height:1.8;
color:#6b7280;
}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

.flash-content{
grid-template-columns:1fr;
text-align:center;
}

.flash-sale{
margin:40px 20px;
}

.flash-text h1{
font-size:50px;
}

.flash-image{
margin-top:30px;
}

}
/* =====================================
   ELECTROMART CSS PART 4
   REVIEWS + NEWSLETTER + CART + FOOTER
=====================================*/

/* ================= REVIEWS ================= */

.reviews{
padding:100px 8%;
background:#ffffff;
}

.review-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:30px;
margin-top:50px;
}

.review-card{
background:#f8fafc;
padding:35px;
border-radius:22px;
text-align:center;
transition:.35s;
box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.review-card:hover{
transform:translateY(-10px);
box-shadow:0 20px 45px rgba(37,99,235,.18);
}

.review-card img{
width:90px;
height:90px;
border-radius:50%;
object-fit:cover;
margin-bottom:20px;
border:4px solid #2563eb;
}

.review-card h3{
font-size:24px;
margin-bottom:12px;
}

.review-card p{
color:#6b7280;
line-height:1.8;
}

/* ================= NEWSLETTER ================= */

.newsletter{
padding:90px 8%;
text-align:center;
background:linear-gradient(135deg,#2563eb,#1e40af);
color:#fff;
}

.newsletter h2{
font-size:42px;
margin-bottom:15px;
}

.newsletter p{
font-size:18px;
margin-bottom:35px;
color:#dbeafe;
}

.newsletter-box{
display:flex;
justify-content:center;
max-width:700px;
margin:auto;
gap:15px;
flex-wrap:wrap;
}

.newsletter-box input{
flex:1;
min-width:250px;
padding:18px;
border:none;
border-radius:50px;
font-size:16px;
outline:none;
}

.newsletter-box button{
padding:18px 35px;
border:none;
border-radius:50px;
background:#111827;
color:#fff;
font-weight:700;
cursor:pointer;
transition:.3s;
}

.newsletter-box button:hover{
background:#000;
}

/* ================= CART ================= */

.cart-section{
padding:100px 8%;
background:#f8fafc;
}

.cart-header{
margin-bottom:30px;
}

.cart-header h2{
font-size:38px;
font-weight:800;
}

.cart-item{
display:flex;
justify-content:space-between;
align-items:center;
background:#fff;
padding:20px;
border-radius:18px;
margin-bottom:20px;
box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.cart-footer{
margin-top:30px;
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:20px;
}

.cart-footer h3{
font-size:30px;
}

#checkoutBtn{
padding:16px 35px;
border:none;
background:#2563eb;
color:#fff;
border-radius:12px;
cursor:pointer;
font-size:17px;
font-weight:700;
transition:.3s;
}

#checkoutBtn:hover{
background:#1d4ed8;
}

/* ================= CHECKOUT ================= */

.checkout-popup{
position:fixed;
inset:0;
display:none;
justify-content:center;
align-items:center;
background:rgba(0,0,0,.6);
backdrop-filter:blur(8px);
z-index:9999;
}

.checkout-box{
background:#fff;
width:95%;
max-width:550px;
padding:35px;
border-radius:22px;
}

.checkout-box h2{
text-align:center;
margin-bottom:25px;
}

.checkout-form{
display:flex;
flex-direction:column;
gap:18px;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select{
padding:16px;
border:1px solid #d1d5db;
border-radius:12px;
font-size:16px;
outline:none;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus{
border-color:#2563eb;
}

.checkout-buttons{
display:flex;
gap:15px;
margin-top:10px;
}

.checkout-buttons button{
flex:1;
padding:15px;
border:none;
border-radius:12px;
font-size:16px;
font-weight:700;
cursor:pointer;
}

#placeOrder{
background:#2563eb;
color:#fff;
}

.checkout-buttons button:last-child{
background:#ef4444;
color:#fff;
}

/* ================= FOOTER ================= */

footer{
background:#111827;
color:#fff;
padding:80px 8% 25px;
}

.footer-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:40px;
}

.footer-column h2,
.footer-column h3{
margin-bottom:20px;
}

.footer-column p{
color:#cbd5e1;
line-height:1.8;
}

.footer-column a{
display:block;
color:#cbd5e1;
text-decoration:none;
margin:10px 0;
transition:.3s;
}

.footer-column a:hover{
color:#60a5fa;
padding-left:8px;
}

.social-icons{
display:flex;
gap:15px;
margin-top:20px;
}

.social-icons a{
width:45px;
height:45px;
background:#1f2937;
display:flex;
justify-content:center;
align-items:center;
border-radius:50%;
font-size:18px;
transition:.3s;
}

.social-icons a:hover{
background:#2563eb;
transform:translateY(-5px);
}

.footer-bottom{
margin-top:50px;
padding-top:25px;
border-top:1px solid rgba(255,255,255,.1);
text-align:center;
color:#9ca3af;
}

/* ================= RESPONSIVE ================= */

@media(max-width:768px){

.cart-item{
flex-direction:column;
text-align:center;
gap:20px;
}

.cart-footer{
flex-direction:column;
text-align:center;
}

.checkout-buttons{
flex-direction:column;
}

.newsletter-box{
flex-direction:column;
}

.newsletter-box button{
width:100%;
}

}