/* ===========================
   GOOGLE FONT & RESET
=========================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

html{
scroll-behavior:smooth;
}

body{
background:#f5f7fb;
color:#222;
overflow-x:hidden;
}

/* ===========================
   NAVBAR
=========================== */

header{
position:fixed;
top:0;
left:0;
width:100%;
background:#ffffff;
box-shadow:0 5px 20px rgba(0,0,0,.08);
z-index:1000;
}

.navbar{
max-width:1400px;
margin:auto;
padding:18px 40px;
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-size:30px;
font-weight:800;
color:#2563eb;
display:flex;
align-items:center;
gap:10px;
}

.logo i{
font-size:28px;
}

.nav-links{
display:flex;
list-style:none;
gap:30px;
}

.nav-links a{
text-decoration:none;
font-size:17px;
font-weight:600;
color:#333;
transition:.3s;
}

.nav-links a:hover{
color:#2563eb;
}

.nav-icons{
display:flex;
align-items:center;
gap:20px;
}

.search-box{
position:relative;
}

.search-box input{
width:240px;
padding:12px 45px 12px 18px;
border:none;
outline:none;
border-radius:40px;
background:#eef2ff;
font-size:15px;
}

.search-box i{
position:absolute;
right:18px;
top:50%;
transform:translateY(-50%);
color:#555;
}

.cart-icon{
position:relative;
font-size:28px;
cursor:pointer;
color:#2563eb;
}

#cartCount{
position:absolute;
top:-8px;
right:-10px;
background:#ef4444;
color:#fff;
width:22px;
height:22px;
border-radius:50%;
display:flex;
justify-content:center;
align-items:center;
font-size:12px;
font-weight:bold;
}

/* ===========================
   HERO SECTION
=========================== */

.hero{
margin-top:90px;
padding:70px 8%;
display:grid;
grid-template-columns:1fr 1fr;
align-items:center;
gap:60px;
background:linear-gradient(135deg,#eef4ff,#ffffff);
}

.hero-left h4{
color:#2563eb;
font-size:20px;
margin-bottom:20px;
}

.hero-left h1{
font-size:65px;
line-height:1.1;
margin-bottom:25px;
font-weight:800;
}

.hero-left p{
font-size:20px;
color:#666;
line-height:1.8;
margin-bottom:40px;
}

.shop-btn{
display:inline-block;
padding:18px 45px;
background:#2563eb;
color:#fff;
text-decoration:none;
border-radius:50px;
font-weight:700;
transition:.35s;
}

.shop-btn:hover{
transform:translateY(-6px);
background:#1d4ed8;
}

.hero-right img{
width:100%;
border-radius:25px;
box-shadow:0 20px 40px rgba(0,0,0,.15);
}

/* ===========================
   CATEGORIES
=========================== */

.categories{
padding:90px 8%;
background:#fff;
}

.categories h2{
text-align:center;
font-size:42px;
margin-bottom:50px;
}

.category-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:30px;
}

.category{
background:#fff;
border-radius:20px;
padding:35px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,.08);
transition:.35s;
cursor:pointer;
}

.category:hover{
transform:translateY(-10px);
background:#2563eb;
color:#fff;
}

.category i{
font-size:45px;
margin-bottom:20px;
}

.category h3{
font-size:22px;
}

/* ===========================
   PRODUCT TITLE
=========================== */

.section-title{
text-align:center;
font-size:44px;
margin:80px 0 50px;
font-weight:800;
}
/* ===================================
   PRODUCTS SECTION
=================================== */

#products{
padding:80px 8%;
background:#f8fafc;
}

.product-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:35px;
}

/* ===================================
   PRODUCT CARD
=================================== */

.product-card{

background:#fff;

border-radius:20px;

overflow:hidden;

position:relative;

box-shadow:0 15px 35px rgba(0,0,0,.08);

transition:.35s;

}

.product-card:hover{

transform:translateY(-12px);

box-shadow:0 25px 45px rgba(0,0,0,.18);

}

/* ===================================
   PRODUCT IMAGE
=================================== */

.product-card img{

width:100%;

height:300px;

object-fit:cover;

transition:.4s;

}

.product-card:hover img{

transform:scale(1.08);

}

/* ===================================
   BADGES
=================================== */

.badge{

position:absolute;

top:18px;

left:18px;

padding:8px 18px;

border-radius:30px;

font-size:13px;

font-weight:bold;

color:#fff;

z-index:10;

}

.sale{

background:#ef4444;

}

.new{

background:#2563eb;

}

.hot{

background:#f59e0b;

}

/* ===================================
   PRODUCT TITLE
=================================== */

.product-card h3{

padding:20px 20px 10px;

font-size:24px;

font-weight:700;

}

.product-card p{

padding:0 20px;

font-size:15px;

color:#6b7280;

}

/* ===================================
   STAR RATING
=================================== */

.rating{

padding:12px 20px;

color:#fbbf24;

font-size:18px;

letter-spacing:2px;

}

/* ===================================
   PRICE
=================================== */

.price{

padding:0 20px 20px;

display:flex;

align-items:center;

gap:15px;

}

.old-price{

text-decoration:line-through;

color:#9ca3af;

font-size:17px;

}

.new-price{

font-size:28px;

font-weight:800;

color:#16a34a;

}

/* ===================================
   ADD TO CART BUTTON
=================================== */

.add-cart{

width:calc(100% - 40px);

margin:0 20px 20px;

padding:16px;

border:none;

border-radius:12px;

background:#2563eb;

color:white;

font-size:17px;

font-weight:700;

cursor:pointer;

transition:.3s;

}

.add-cart:hover{

background:#1d4ed8;

transform:scale(1.03);

}

/* ===================================
   MOBILE
=================================== */

@media(max-width:768px){

.product-grid{

grid-template-columns:1fr;

}

.product-card img{

height:250px;

}

.section-title{

font-size:34px;

}

}
/* ===================================
   SHOPPING CART
=================================== */

.cart-section{

max-width:1100px;

margin:80px auto;

padding:40px;

background:#ffffff;

border-radius:20px;

box-shadow:0 20px 40px rgba(0,0,0,.08);

}

.cart-section h2{

font-size:36px;

margin-bottom:30px;

text-align:center;

}

#cartItems{

display:flex;

flex-direction:column;

gap:15px;

min-height:80px;

}

.cart-item{

display:flex;

justify-content:space-between;

align-items:center;

padding:18px 20px;

background:#f8fafc;

border-radius:12px;

border:1px solid #e5e7eb;

}

.cart-total{

margin-top:30px;

padding-top:20px;

border-top:2px solid #ddd;

display:flex;

justify-content:space-between;

align-items:center;

}

.cart-total h3{

font-size:30px;

color:#16a34a;

}

#checkoutBtn{

margin-top:25px;

width:100%;

padding:18px;

border:none;

background:#16a34a;

color:#fff;

font-size:20px;

font-weight:bold;

border-radius:12px;

cursor:pointer;

transition:.3s;

}

#checkoutBtn:hover{

background:#15803d;

}

/* ===================================
   CHECKOUT POPUP
=================================== */

.checkout-popup{

display:none;

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:rgba(0,0,0,.65);

justify-content:center;

align-items:center;

z-index:99999;

}

.checkout-box{

width:500px;

background:#fff;

padding:35px;

border-radius:20px;

box-shadow:0 25px 60px rgba(0,0,0,.25);

animation:popup .3s ease;

}

@keyframes popup{

from{

transform:scale(.8);

opacity:0;

}

to{

transform:scale(1);

opacity:1;

}

}

.checkout-box h2{

text-align:center;

margin-bottom:25px;

font-size:34px;

}

.checkout-box input,

.checkout-box select{

width:100%;

padding:16px;

margin-bottom:18px;

border:1px solid #ddd;

border-radius:10px;

font-size:16px;

outline:none;

transition:.3s;

}

.checkout-box input:focus,

.checkout-box select:focus{

border-color:#2563eb;

}

#placeOrder{

width:100%;

padding:18px;

background:#2563eb;

color:#fff;

border:none;

border-radius:12px;

font-size:18px;

font-weight:bold;

cursor:pointer;

transition:.3s;

}

#placeOrder:hover{

background:#1d4ed8;

}

/* ===================================
   REVIEWS
=================================== */

.reviews{

padding:90px 8%;

background:#fff;

}

.review-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

gap:30px;

margin-top:50px;

}

.review-card{

background:#f8fafc;

padding:30px;

border-radius:20px;

text-align:center;

box-shadow:0 10px 25px rgba(0,0,0,.08);

transition:.3s;

}

.review-card:hover{

transform:translateY(-8px);

}

.review-card img{

width:90px;

height:90px;

border-radius:50%;

margin-bottom:20px;

object-fit:cover;

}

.review-card h3{

margin-bottom:12px;

}

/* ===================================
   NEWSLETTER
=================================== */

.newsletter{

padding:90px 8%;

background:#2563eb;

text-align:center;

color:white;

}

.newsletter h2{

font-size:42px;

margin-bottom:20px;

}

.newsletter p{

margin-bottom:35px;

font-size:18px;

}

.newsletter-box{

display:flex;

justify-content:center;

gap:15px;

flex-wrap:wrap;

}

.newsletter-box input{

width:380px;

padding:18px;

border:none;

border-radius:50px;

font-size:16px;

}

.newsletter-box button{

padding:18px 35px;

border:none;

background:#16a34a;

color:#fff;

border-radius:50px;

font-size:16px;

cursor:pointer;

font-weight:bold;

}

/* ===================================
   FOOTER
=================================== */

footer{

background:#111827;

color:white;

padding:70px 8% 25px;

}

.footer-container{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

gap:40px;

}

.footer-box h2,

.footer-box h3{

margin-bottom:20px;

}

.footer-box p{

line-height:1.8;

color:#cbd5e1;

}

.footer-box a{

display:block;

text-decoration:none;

color:#cbd5e1;

margin:10px 0;

transition:.3s;

}

.footer-box a:hover{

color:#fff;

padding-left:8px;

}

.social-icons{

display:flex;

gap:15px;

margin-top:20px;

}

.social-icons a{

width:45px;

height:45px;

background:#2563eb;

display:flex;

justify-content:center;

align-items:center;

border-radius:50%;

color:white;

font-size:18px;

}

.copyright{

margin-top:50px;

padding-top:20px;

border-top:1px solid rgba(255,255,255,.2);

text-align:center;

color:#94a3b8;

}

/* ===================================
   RESPONSIVE
=================================== */

@media(max-width:768px){

.checkout-box{

width:92%;

}

.newsletter-box input{

width:100%;

}

.cart-item{

flex-direction:column;

gap:15px;

align-items:flex-start;

}

.cart-total{

flex-direction:column;

gap:15px;

}

}
/* =========================
   PREMIUM ANIMATIONS
========================= */

@keyframes fadeUp{
0%{
opacity:0;
transform:translateY(40px);
}
100%{
opacity:1;
transform:translateY(0);
}
}

.hero,
.categories,
#products,
.cart-section,
.reviews,
.newsletter,
footer{
animation:fadeUp .8s ease;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
width:10px;
}

::-webkit-scrollbar-track{
background:#edf2f7;
}

::-webkit-scrollbar-thumb{
background:#2563eb;
border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
background:#1d4ed8;
}

/* =========================
   SELECTION
========================= */

::selection{
background:#2563eb;
color:white;
}

/* =========================
   BUTTON RIPPLE EFFECT
========================= */

button{
position:relative;
overflow:hidden;
}

button::after{
content:"";
position:absolute;
width:0;
height:0;
background:rgba(255,255,255,.35);
border-radius:50%;
left:50%;
top:50%;
transform:translate(-50%,-50%);
transition:.5s;
}

button:active::after{
width:300px;
height:300px;
}

/* =========================
   IMAGE SHADOW
========================= */

.product-card img{
box-shadow:0 8px 18px rgba(0,0,0,.12);
}

/* =========================
   INPUT EFFECT
========================= */

input,
select{

transition:.3s;

}

input:hover,
select:hover{

border-color:#2563eb;

}

/* =========================
   GLOW EFFECT
========================= */

.shop-btn:hover,
.add-cart:hover,
#checkoutBtn:hover,
#placeOrder:hover{

box-shadow:0 10px 30px rgba(37,99,235,.4);

}

/* =========================
   GLASS EFFECT
========================= */

.navbar{

backdrop-filter:blur(10px);

background:rgba(255,255,255,.95);

}

/* =========================
   CARD BORDER
========================= */

.product-card{

border:1px solid rgba(0,0,0,.05);

}

/* =========================
   ICON HOVER
========================= */

.social-icons a{

transition:.3s;

}

.social-icons a:hover{

transform:translateY(-6px) scale(1.08);

background:#16a34a;

}

/* =========================
   CATEGORY HOVER
========================= */

.category{

transition:.35s;

}

.category:hover{

box-shadow:0 20px 40px rgba(37,99,235,.25);

}

/* =========================
   HERO IMAGE
========================= */

.hero-right img{

transition:.4s;

}

.hero-right img:hover{

transform:scale(1.03);

}

/* =========================
   PRICE COLORS
========================= */

.old-price{

font-weight:600;

}

.new-price{

text-shadow:0 5px 15px rgba(22,163,74,.25);

}

/* =========================
   CART BUTTONS
========================= */

.cart-item button{

margin-left:5px;

padding:8px 12px;

border:none;

border-radius:8px;

cursor:pointer;

background:#2563eb;

color:#fff;

transition:.3s;

}

.cart-item button:hover{

background:#1d4ed8;

}

/* =========================
   LOADING EFFECT
========================= */

.product-card{

opacity:0;

animation:showCard .8s forwards;

}

.product-card:nth-child(1){animation-delay:.1s;}
.product-card:nth-child(2){animation-delay:.2s;}
.product-card:nth-child(3){animation-delay:.3s;}
.product-card:nth-child(4){animation-delay:.4s;}
.product-card:nth-child(5){animation-delay:.5s;}
.product-card:nth-child(6){animation-delay:.6s;}
.product-card:nth-child(7){animation-delay:.7s;}
.product-card:nth-child(8){animation-delay:.8s;}
.product-card:nth-child(9){animation-delay:.9s;}
.product-card:nth-child(10){animation-delay:1s;}
.product-card:nth-child(11){animation-delay:1.1s;}
.product-card:nth-child(12){animation-delay:1.2s;}

@keyframes showCard{

from{

opacity:0;

transform:translateY(50px);

}

to{

opacity:1;

transform:translateY(0);

}

}

/* =========================
   DARK MODE SUPPORT
========================= */

@media(prefers-color-scheme:dark){

body{

background:#0f172a;

color:white;

}

.product-card,
.category,
.cart-section,
.review-card{

background:#1e293b;

color:white;

}

.navbar{

background:#111827;

}

.search-box input{

background:#334155;

color:white;

}

footer{

background:#020617;

}

}