/* ===========================
   GOOGLE FONT
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f8fafc;
    color:#1e293b;
    overflow-x:hidden;
}


/* ===========================
   ROOT VARIABLES
=========================== */

:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;

    --secondary:#0f172a;

    --accent:#f59e0b;

    --white:#ffffff;

    --light:#f8fafc;

    --gray:#64748b;

    --border:#e2e8f0;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --radius:15px;

}


/* ===========================
   COMMON
=========================== */

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

button{
    cursor:pointer;
    border:none;
    transition:.3s;
}

section{
    padding:90px 8%;
}

.title{
    text-align:center;
    margin-bottom:60px;
}

.title h2{

    font-size:42px;

    color:var(--secondary);

    margin-bottom:10px;

}

.title p{

    color:var(--gray);

    font-size:17px;

}


/* ===========================
   HEADER
=========================== */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    background:var(--white);

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 8%;

    box-shadow:var(--shadow);

    z-index:1000;

}


/* Logo */

.logo a{

    font-size:30px;

    font-weight:700;

    color:var(--secondary);

}

.logo span{

    color:var(--primary);

}


/* ===========================
   NAVBAR
=========================== */

nav ul{

    display:flex;

    gap:35px;

}

nav ul li a{

    font-weight:500;

    color:var(--secondary);

    transition:.3s;

    position:relative;

}

nav ul li a:hover{

    color:var(--primary);

}

nav ul li a::after{

    content:"";

    position:absolute;

    width:0;

    height:2px;

    left:0;

    bottom:-6px;

    background:var(--primary);

    transition:.3s;

}

nav ul li a:hover::after{

    width:100%;

}


/* ===========================
   HEADER ICONS
=========================== */

.header-icons{

    display:flex;

    align-items:center;

    gap:20px;

}


/* Search */

.search-box{

    position:relative;

}

.search-box input{

    width:220px;

    padding:11px 40px 11px 18px;

    border:1px solid var(--border);

    border-radius:40px;

    outline:none;

    transition:.3s;

}

.search-box input:focus{

    border-color:var(--primary);

}

.search-box i{

    position:absolute;

    right:15px;

    top:50%;

    transform:translateY(-50%);

    color:var(--gray);

}


/* Cart */

.cart{

    position:relative;

    cursor:pointer;

}

.cart i{

    font-size:24px;

    color:var(--secondary);

}

.cart span{

    position:absolute;

    top:-8px;

    right:-10px;

    width:20px;

    height:20px;

    background:red;

    color:#fff;

    font-size:12px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

}

/* ===========================
   HERO SECTION
=========================== */

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    padding:140px 8% 80px;
    background:linear-gradient(135deg,#f8fafc,#eef5ff);
}

.hero-content{
    flex:1;
}

.hero-content h1{
    font-size:60px;
    font-weight:800;
    line-height:1.2;
    color:var(--secondary);
    margin-bottom:25px;
}

.hero-content p{
    font-size:18px;
    color:var(--gray);
    line-height:1.8;
    max-width:550px;
    margin-bottom:35px;
}

/* Hero Buttons */

.hero-btn{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.shop-btn,
.learn-btn{
    padding:15px 35px;
    border-radius:50px;
    font-size:16px;
    font-weight:600;
    transition:.3s;
}

.shop-btn{
    background:var(--primary);
    color:#fff;
    box-shadow:0 10px 25px rgba(37,99,235,.25);
}

.shop-btn:hover{
    background:var(--primary-dark);
    transform:translateY(-4px);
}

.learn-btn{
    background:#fff;
    color:var(--secondary);
    border:2px solid var(--border);
}

.learn-btn:hover{
    background:var(--secondary);
    color:#fff;
    border-color:var(--secondary);
    transform:translateY(-4px);
}

/* Hero Image */

.hero-image{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-image img{
    width:100%;
    max-width:550px;
    animation:float 4s ease-in-out infinite;
    filter:drop-shadow(0 20px 30px rgba(0,0,0,.15));
}

/* Floating Animation */

@keyframes float{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0px);
    }

}

/* Hero Badge (Optional) */

.hero-badge{
    display:inline-block;
    padding:8px 18px;
    background:#dbeafe;
    color:var(--primary);
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    margin-bottom:20px;
}

/* Hero Stats */

.hero-stats{
    display:flex;
    gap:40px;
    margin-top:50px;
    flex-wrap:wrap;
}

.hero-stats .stat h3{
    font-size:30px;
    color:var(--primary);
}

.hero-stats .stat p{
    font-size:15px;
    color:var(--gray);
    margin-top:5px;
}

/* Hero Background Shapes */

.hero::before{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    background:rgba(37,99,235,.08);
    border-radius:50%;
    top:120px;
    right:-120px;
    z-index:-1;
}

.hero::after{
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    background:rgba(245,158,11,.08);
    border-radius:50%;
    left:-80px;
    bottom:40px;
    z-index:-1;
}

/* ===========================
   CATEGORIES SECTION
=========================== */

.categories{
    background:#fff;
}

.category-wrapper{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:25px;
}

.category-card{
    background:#fff;
    padding:35px 20px;
    border-radius:18px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.35s ease;
    border:1px solid transparent;
}

.category-card:hover{
    transform:translateY(-10px);
    border-color:var(--primary);
}

.category-card i{
    font-size:48px;
    color:var(--primary);
    margin-bottom:20px;
}

.category-card h3{
    font-size:20px;
    font-weight:600;
    color:var(--secondary);
}


/* ===========================
   PRODUCTS
=========================== */

.products{
    background:#f8fafc;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}


/* Product Card */

.product{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.35s ease;
    position:relative;
}

.product:hover{
    transform:translateY(-12px);
}


/* Product Image */

.product img{
    width:100%;
    height:260px;
    object-fit:cover;
}


/* Product Content */

.product h3{
    padding:18px 20px 5px;
    font-size:22px;
    color:var(--secondary);
}

.product h4{
    padding:0 20px;
    font-size:24px;
    color:var(--primary);
    font-weight:700;
}


/* Product Button */

.product button{

    width:calc(100% - 40px);

    margin:20px;

    padding:14px;

    border:none;

    border-radius:10px;

    background:var(--primary);

    color:#fff;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}

.product button:hover{

    background:var(--primary-dark);

}


/* Product Badge */

.product::before{

    content:"NEW";

    position:absolute;

    top:15px;

    left:15px;

    background:#ef4444;

    color:#fff;

    padding:6px 12px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

}


/* Wishlist Icon */

.product::after{

    content:"♥";

    position:absolute;

    top:15px;

    right:15px;

    width:38px;

    height:38px;

    background:#fff;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:18px;

    color:#ef4444;

    box-shadow:0 5px 15px rgba(0,0,0,.1);

}


/* Rating */

.rating{

    display:flex;

    gap:4px;

    color:#f59e0b;

    padding:10px 20px 0;

    font-size:14px;

}


/* Product Description */

.product p{

    padding:10px 20px;

    color:var(--gray);

    font-size:14px;

    line-height:1.6;

}


/* Discount Price */

.old-price{

    text-decoration:line-through;

    color:#94a3b8;

    font-size:15px;

    margin-left:8px;

}


/* Sale Label */

.sale{

    color:#22c55e;

    font-size:14px;

    font-weight:600;

}


/* Hover Glow */

.product:hover{

    box-shadow:0 20px 40px rgba(37,99,235,.15);

}

/* ===================================
   FLASH SALE SECTION
=================================== */

.flash-sale{
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
}

.flash-sale .title h2,
.flash-sale .title p{
    color:#fff;
}

.offer-wrapper{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.offer-card{
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    border-radius:20px;
    padding:40px 30px;
    text-align:center;
    transition:.35s;
    border:1px solid rgba(255,255,255,.2);
}

.offer-card:hover{
    transform:translateY(-10px);
}

.offer-card h3{
    font-size:36px;
    margin-bottom:15px;
}

.offer-card p{
    margin-bottom:25px;
    opacity:.9;
}

.offer-card button{
    background:#fff;
    color:var(--primary);
    padding:12px 30px;
    border-radius:50px;
    font-weight:600;
}

.offer-card button:hover{
    background:var(--accent);
    color:#fff;
}


/* ===================================
   WHY CHOOSE US
=================================== */

.why-us{
    background:#fff;
}

.why-wrapper{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:30px;
}

.why-card{
    background:#fff;
    text-align:center;
    padding:40px 25px;
    border-radius:20px;
    box-shadow:var(--shadow);
    transition:.3s;
}

.why-card:hover{
    transform:translateY(-10px);
}

.why-card i{
    width:80px;
    height:80px;
    background:var(--primary);
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:32px;
    margin:0 auto 20px;
}

.why-card h3{
    margin-bottom:15px;
    color:var(--secondary);
}

.why-card p{
    color:var(--gray);
    line-height:1.7;
}


/* ===================================
   CUSTOMER REVIEWS
=================================== */

.reviews{
    background:#f8fafc;
}

.review-wrapper{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.review-card{
    background:#fff;
    padding:35px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.35s;
}

.review-card:hover{
    transform:translateY(-10px);
}

.review-card img{
    width:90px;
    height:90px;
    border-radius:50%;
    margin:0 auto 20px;
    object-fit:cover;
}

.review-card h3{
    margin-bottom:10px;
    color:var(--secondary);
}

.stars{
    color:#fbbf24;
    font-size:18px;
    margin-bottom:15px;
}

.review-card p{
    color:var(--gray);
    line-height:1.8;
}


/* ===================================
   NEWSLETTER
=================================== */

.newsletter{
    background:linear-gradient(135deg,#0f172a,#1e293b);
    color:#fff;
    text-align:center;
}

.newsletter h2{
    font-size:42px;
    margin-bottom:15px;
}

.newsletter p{
    color:#cbd5e1;
    margin-bottom:30px;
}

.newsletter form{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.newsletter input{
    width:420px;
    max-width:100%;
    padding:15px 20px;
    border:none;
    border-radius:50px;
    outline:none;
    font-size:16px;
}

.newsletter button{
    padding:15px 35px;
    border:none;
    border-radius:50px;
    background:var(--primary);
    color:#fff;
    font-weight:600;
}

.newsletter button:hover{
    background:var(--accent);
}


/* ===================================
   FOOTER
=================================== */

footer{
    background:#020617;
    color:#fff;
    padding:80px 8% 30px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:40px;
    margin-bottom:40px;
}

.footer-box h3{
    margin-bottom:20px;
}

.footer-box p{
    color:#cbd5e1;
    line-height:1.8;
}

.footer-box a{
    display:block;
    color:#cbd5e1;
    margin-bottom:10px;
    transition:.3s;
}

.footer-box a:hover{
    color:var(--primary);
    padding-left:8px;
}

.social-icons{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.social-icons i{
    width:45px;
    height:45px;
    background:#1e293b;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:.3s;
}

.social-icons i:hover{
    background:var(--primary);
}

footer hr{
    border:none;
    border-top:1px solid #334155;
    margin:30px 0;
}

.copyright{
    text-align:center;
    color:#94a3b8;
}


/* ===================================
   BACK TO TOP BUTTON
=================================== */

#topBtn{
    position:fixed;
    right:25px;
    bottom:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:var(--primary);
    color:#fff;
    font-size:20px;
    cursor:pointer;
    display:none;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    z-index:999;
}

#topBtn:hover{
    background:var(--primary-dark);
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */

/* Large Devices */
@media (max-width:1200px){

    .hero{
        gap:40px;
    }

    .hero-content h1{
        font-size:48px;
    }

}


/* Tablet */
@media (max-width:992px){

    header{
        padding:15px 5%;
        flex-wrap:wrap;
        gap:15px;
    }

    section{
        padding:70px 5%;
    }

    nav{
        width:100%;
        order:3;
    }

    nav ul{
        justify-content:center;
        flex-wrap:wrap;
        gap:20px;
    }

    .header-icons{
        margin-left:auto;
    }

    .hero{
        flex-direction:column;
        text-align:center;
        padding-top:140px;
    }

    .hero-content p{
        max-width:100%;
    }

    .hero-btn{
        justify-content:center;
    }

    .hero-image img{
        max-width:450px;
    }

    .hero-stats{
        justify-content:center;
    }

}


/* Mobile */
@media (max-width:768px){

    .logo a{
        font-size:24px;
    }

    nav ul{
        gap:15px;
    }

    nav ul li a{
        font-size:15px;
    }

    .search-box input{
        width:170px;
    }

    .hero-content h1{
        font-size:36px;
    }

    .hero-content p{
        font-size:16px;
    }

    .title h2{
        font-size:30px;
    }

    .newsletter h2{
        font-size:30px;
    }

    .newsletter form{
        flex-direction:column;
        align-items:center;
    }

    .newsletter input{
        width:100%;
    }

    .newsletter button{
        width:100%;
        max-width:220px;
    }

}


/* Small Mobile */
@media (max-width:480px){

    header{
        padding:12px 20px;
    }

    section{
        padding:60px 20px;
    }

    .search-box{
        display:none;
    }

    .hero{
        padding-top:120px;
    }

    .hero-content h1{
        font-size:30px;
    }

    .hero-btn{
        flex-direction:column;
    }

    .shop-btn,
    .learn-btn{
        width:100%;
    }

    .product-grid,
    .category-wrapper,
    .offer-wrapper,
    .why-wrapper,
    .review-wrapper,
    .footer-container{
        grid-template-columns:1fr;
    }

}


/* ===================================
   SCROLLBAR
=================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f1f5f9;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--primary-dark);
}


/* ===================================
   SELECTION
=================================== */

::selection{
    background:var(--primary);
    color:#fff;
}


/* ===================================
   SMOOTH ANIMATIONS
=================================== */

.product,
.category-card,
.offer-card,
.review-card,
.why-card{
    transition:all .35s ease;
}

.product:hover,
.category-card:hover,
.offer-card:hover,
.review-card:hover,
.why-card:hover{
    transform:translateY(-10px);
}


/* ===================================
   BUTTON EFFECT
=================================== */

button{
    transition:.3s ease;
}

button:active{
    transform:scale(.97);
}


/* ===================================
   IMAGE HOVER
=================================== */

.product{
    overflow:hidden;
}

.product img{
    transition:transform .4s ease;
}

.product:hover img{
    transform:scale(1.08);
}


/* ===================================
   FADE ANIMATION
=================================== */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.hero,
.categories,
.products,
.flash-sale,
.why-us,
.reviews,
.newsletter,
footer{

    animation:fadeUp .8s ease;

}


/* ===================================
   SHADOW EFFECT
=================================== */

.product:hover,
.offer-card:hover,
.review-card:hover,
.why-card:hover,
.category-card:hover{

    box-shadow:0 20px 40px rgba(0,0,0,.15);

}


/* Better Image */
img{

display:block;

max-width:100%;

height:auto;

}


/* Smooth Hover */
*{

transition:.3s ease;

}


/* Better Selection */
::selection{

background:#2563eb;

color:white;

}


/* Hide Scrollbar */
body{

-ms-overflow-style:none;

scrollbar-width:none;

}

body::-webkit-scrollbar{

display:none;

}


/* Better Scroll */
html{

scroll-behavior:smooth;

}


/* Prevent Image Drag */
img{

user-select:none;

pointer-events:none;

}


/* Prevent Text Selection */
h1,h2,h3,button{

user-select:none;

}


/* Better Focus */
input:focus{

outline:none;

border:2px solid #2563eb;

}


/* Better Buttons */
button{

cursor:pointer;

font-weight:600;

}


/* Loading Animation */
#loader{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:white;
display:flex;
justify-content:center;
align-items:center;
z-index:99999;
}

.spinner{
width:60px;
height:60px;
border:6px solid #ddd;
border-top:6px solid #2563eb;
border-radius:50%;
animation:spin 1s linear infinite;
}

@keyframes spin{

100%{

transform:rotate(360deg);

}

}


/* Button Ripple Effect */
button{

position:relative;

overflow:hidden;

}

button::after{

content:"";

position:absolute;

background:rgba(255,255,255,.3);

width:0;

height:0;

border-radius:50%;

left:50%;

top:50%;

transform:translate(-50%,-50%);

transition:.5s;

}

button:active::after{

width:300px;

height:300px;

}


/* ===================================
   END OF CSS
=================================== */