/* ==========================================
   PUSTAKMANDI
   style.css
========================================== */

@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;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{

    background:#f8fafc;

    color:#333;

    overflow-x:hidden;

}

/* ===========================
ROOT COLORS
=========================== */

:root{

    --primary:#2563eb;

    --secondary:#1e40af;

    --accent:#f59e0b;

    --dark:#0f172a;

    --light:#ffffff;

    --gray:#64748b;

    --bg:#f8fafc;

}

/* ===========================
GLOBAL
=========================== */

img{

    width:100%;

    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

section{

    padding:90px 8%;

}

.section-title{

    text-align:center;

    margin-bottom:60px;

}

.section-title h2{

    font-size:42px;

    color:var(--dark);

    margin-bottom:15px;

}

.section-title p{

    color:var(--gray);

    font-size:18px;

}

/* ===========================
TOP BAR
=========================== */

.top-bar{

    background:var(--dark);

    color:white;

    padding:12px 8%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:14px;

}

.top-right{

    display:flex;

    gap:25px;

}

.top-right a{

    color:white;

    transition:.3s;

}

.top-right a:hover{

    color:var(--accent);

}

/* ===========================
NAVBAR
=========================== */

header{

    position:sticky;

    top:0;

    z-index:999;

    background:white;

    box-shadow:0 4px 15px rgba(0,0,0,.08);

}

.navbar{

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    width:90%;

    margin:auto;

}

.logo{

    display:flex;

    align-items:center;

    gap:10px;
   

}

.logo i{

    color:var(--primary);

    font-size:30px;

}

.logo h2{

    color:var(--primary);

}
.plogo{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===========================
NAV LINKS
=========================== */

.nav-links{

    display:flex;

    gap:35px;

}

.nav-links a{

    color:#333;

    font-weight:500;

    transition:.3s;

}

.nav-links a:hover{

    color:var(--primary);

}

/* ===========================
SEARCH BOX
=========================== */

.search-box{

    display:flex;

    width:350px;

    overflow:hidden;

    border-radius:40px;

    border:1px solid #ddd;

}

.search-box input{

    flex:1;

    padding:12px 18px;

    border:none;

    outline:none;

}

.search-box button{

    width:55px;

    border:none;

    background:var(--primary);

    color:white;

    cursor:pointer;

}

/* ===========================
RIGHT ICONS
=========================== */

.icons{

    display:flex;

    align-items:center;

    gap:20px;

}

.icon{

    text-align:center;

    cursor:pointer;

    transition:.3s;

}

.icon:hover{

    color:var(--primary);

}

.icon i{

    font-size:22px;

}

.icon span{

    display:block;

    font-size:12px;

}

/* ===========================
LOGIN BUTTON
=========================== */

.login-btn{

    padding:12px 25px;

    background:var(--primary);

    color:white;

    border-radius:40px;

    transition:.3s;

}

.login-btn:hover{

    background:var(--secondary);

}

/* ===========================
HERO
=========================== */

/* .hero{

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:60px;

    min-height:85vh;

    background:linear-gradient(
        135deg,
        #eff6ff,
        #ffffff
    );

}

.hero-text h1{

    font-size:60px;

    line-height:1.2;

    margin:25px 0;

}

.hero-text h1 span{

    color:var(--primary);

}

.hero-text p{

    font-size:19px;

    color:var(--gray);

    margin-bottom:35px;

    line-height:1.8;

}

.tag{

    display:inline-block;

    background:#dbeafe;

    color:var(--primary);

    padding:10px 20px;

    border-radius:40px;

    font-weight:600;

} */
.hero{

    height:90vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    background:
    linear-gradient(rgba(0,0,0,.45),
    rgba(0,0,0,.45)),
    url("../images/hero.jpg");
    /* url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1600&q=80"); */

    background-size:cover;

    background-position:center;
}

.hero-content{

    color:white;

    width:70%;
}

.hero h1{

    font-size:55px;

    margin-bottom:20px;
}

.hero p{

    font-size:20px;

    margin-bottom:30px;
}

.btn{

    display:inline-block;

    text-decoration:none;

    background:#0066ff;

    color:white;

    padding:15px 35px;

    border-radius:50px;

    font-size:18px;

    transition:.3s;
}

.btn:hover{

    background:#004fd1;

    transform:translateY(-3px);
}
/* ===========================
BUTTONS
=========================== */

.hero-buttons{

    display:flex;

    gap:20px;

    margin-bottom:40px;

}

.primary-btn{

    background:var(--primary);

    color:white;

    padding:15px 35px;

    border-radius:40px;

    transition:.3s;

}

.primary-btn:hover{

    background:var(--secondary);

}

.secondary-btn{

    border:2px solid var(--primary);

    color:var(--primary);

    padding:15px 35px;

    border-radius:40px;

    transition:.3s;

}

.secondary-btn:hover{

    background:var(--primary);

    color:white;

}

/* ===========================
HERO STATS
=========================== */

.hero-stats{

    display:flex;

    gap:50px;

}

.hero-stats h3{

    color:var(--primary);

    font-size:34px;

}

.hero-stats p{

    margin-top:5px;

    color:var(--gray);

}

.hero-image img{

    border-radius:25px;

    box-shadow:0 20px 40px rgba(0,0,0,.15);

}
/* ==========================================
   CATEGORIES
========================================== */

.category-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:30px;

}

.category-card{

    background:#fff;

    border-radius:20px;

    padding:35px 25px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.35s;

    cursor:pointer;

}

.category-card:hover{

    transform:translateY(-12px);

    box-shadow:0 20px 40px rgba(37,99,235,.18);

}

.category-card i{

    font-size:48px;

    color:var(--primary);

    margin-bottom:20px;

}

.category-card h3{

    margin-bottom:10px;

    color:var(--dark);

}

.category-card p{

    color:var(--gray);

    font-size:14px;

}

/* ==========================================
   PRODUCTS
========================================== */

.product-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));

    gap:35px;

}

.product-card{

    position:relative;

    overflow:hidden;

    background:white;

    border-radius:20px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    transition:.35s;

}

.product-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 45px rgba(0,0,0,.15);

}

.product-card img{

    height:250px;

    object-fit:cover;

    transition:.5s;

}

.product-card:hover img{

    transform:scale(1.08);

}

/* SALE BADGE */

.sale{

    position:absolute;

    top:15px;

    left:15px;

    background:#ef4444;

    color:white;

    padding:7px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

    z-index:5;

}

/* WISHLIST BUTTON */

.wishlist-btn{

    position:absolute;

    top:15px;

    right:15px;

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:white;

    cursor:pointer;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

    transition:.3s;

    z-index:5;

}

.wishlist-btn:hover{

    background:#ef4444;

    color:white;

}

/* PRODUCT CONTENT */

.product-info{

    padding:22px;

}

.product-info h3{

    font-size:20px;

    margin-bottom:12px;

    color:var(--dark);

}

/* RATING */

.rating{

    color:#f59e0b;

    margin-bottom:15px;

    font-size:15px;

}

.rating span{

    color:var(--gray);

    margin-left:8px;

}

/* PRICE */

.price{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:20px;

}

.new-price{

    color:var(--primary);

    font-size:24px;

    font-weight:700;

}

.old-price{

    color:#94a3b8;

    text-decoration:line-through;

}

/* CART BUTTON */

.cart-btn{

    width:100%;

    border:none;

    padding:14px;

    border-radius:12px;

    background:var(--primary);

    color:white;

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}

.cart-btn:hover{

    background:var(--secondary);

    transform:translateY(-2px);

}

/* PRODUCT ANIMATION */

.product-card{

    animation:fadeUp .8s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/* ==========================================
   WHY CHOOSE US
========================================== */

.features{
    background:#ffffff;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:30px;
}

.feature-card{
    background:#fff;
    padding:40px 30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.35s;
}

.feature-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(37,99,235,.18);
}

.feature-card i{
    font-size:55px;
    color:var(--primary);
    margin-bottom:20px;
}

.feature-card h3{
    margin-bottom:15px;
    color:var(--dark);
}

.feature-card p{
    color:var(--gray);
    line-height:1.8;
}

/* ==========================================
   SELLERS
========================================== */

.seller-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.seller-card{
    background:white;
    text-align:center;
    border-radius:20px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
}

.seller-card:hover{
    transform:translateY(-8px);
}

.seller-card img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    margin:auto;
    margin-bottom:20px;
    border:5px solid #dbeafe;
}

.seller-card h3{
    margin-bottom:8px;
}

.seller-card p{
    color:var(--gray);
    margin-bottom:10px;
}

.seller-card span{
    color:var(--accent);
    font-weight:600;
}

/* ==========================================
   TESTIMONIALS
========================================== */

.testimonials{
    background:#eff6ff;
}

.testimonial-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.testimonial-card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
}

.testimonial-card:hover{
    transform:translateY(-10px);
}

.testimonial-card i{
    font-size:32px;
    color:var(--primary);
    margin-bottom:20px;
}

.testimonial-card p{
    line-height:1.8;
    color:var(--gray);
    margin-bottom:20px;
}

.testimonial-card h4{
    color:#f59e0b;
    margin-bottom:10px;
}

.testimonial-card span{
    font-weight:600;
}

/* ==========================================
   NEWSLETTER
========================================== */

.newsletter{
    background:linear-gradient(135deg,#2563eb,#1e40af);
    color:white;
    text-align:center;
    border-radius:25px;
    margin:80px auto;
    width:90%;
}

.newsletter h2{
    font-size:40px;
    margin-bottom:20px;
}

.newsletter p{
    margin-bottom:35px;
    font-size:18px;
}

.newsletter-box{
    max-width:650px;
    margin:auto;
    display:flex;
    overflow:hidden;
    border-radius:50px;
    background:white;
}

.newsletter-box input{
    flex:1;
    border:none;
    outline:none;
    padding:18px;
    font-size:16px;
}

.newsletter-box button{
    border:none;
    background:var(--accent);
    color:white;
    padding:0 35px;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
}

.newsletter-box button:hover{
    background:#d97706;
}

/* ==========================================
   FOOTER
========================================== */

footer{
    background:var(--dark);
    color:white;
    padding-top:70px;
}
#contaxt{
    color:white;
    font-size:16px;
    margin-top:20px;
}
.footer-container{
    width:90%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:40px;
}

.footer-col h2,
.footer-col h3{
    margin-bottom:20px;
}

.footer-col p{
    color:#cbd5e1;
    line-height:1.8;
}

.footer-col ul li{
    margin-bottom:12px;
}

.footer-col ul li a{
    color:#cbd5e1;
    transition:.3s;
}

.footer-col ul li a:hover{
    color:white;
    padding-left:5px;
}

.social-icons{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.social-icons i{
    width:45px;
    height:45px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#1e293b;
    cursor:pointer;
    transition:.3s;
}

.social-icons i:hover{
    background:var(--primary);
    transform:translateY(-5px);
}

.copyright{
    text-align:center;
    padding:25px;
    margin-top:50px;
    border-top:1px solid rgba(255,255,255,.15);
    color:#cbd5e1;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

.navbar{
    flex-wrap:wrap;
    height:auto;
    padding:20px 0;
}

.nav-links{
    order:3;
    width:100%;
    justify-content:center;
    margin-top:20px;
    flex-wrap:wrap;
}

.search-box{
    width:100%;
    margin-top:20px;
}

.hero{
    grid-template-columns:1fr;
    text-align:center;
}

.hero-buttons{
    justify-content:center;
}

.hero-stats{
    justify-content:center;
}

.hero-image{
    margin-top:40px;
}

.newsletter-box{
    flex-direction:column;
    border-radius:15px;
}

.newsletter-box button{
    padding:18px;
}

.top-bar{
    flex-direction:column;
    gap:10px;
}

}

@media(max-width:768px){

.hero h1,
.hero-text h1{
    font-size:40px;
}

.section-title h2{
    font-size:32px;
}

.hero-stats{
    flex-direction:column;
    gap:20px;
}

.icons{
    gap:12px;
}

.login-btn{
    padding:10px 18px;
}

}
/* ==========================================
DARK MODE
========================================== */

.dark-mode{

    background:#0f172a;

    color:white;

}

.dark-mode section{

    background:#0f172a;

}

.dark-mode .product-card,
.dark-mode .category-card,
.dark-mode .feature-card,
.dark-mode .seller-card,
.dark-mode .testimonial-card{

    background:#1e293b;

    color:white;

}

.dark-mode .section-title h2{

    color:white;

}

.dark-mode .section-title p{

    color:#cbd5e1;

}

/* Floating Buttons */

.dark-mode-btn,
.scroll-top{

    position:fixed;

    right:20px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:20px;

    box-shadow:0 10px 20px rgba(0,0,0,.2);

    z-index:999;

}

.dark-mode-btn{

    bottom:90px;

}

.scroll-top{

    bottom:25px;

    display:none;

}

/* Homepage scroll animation */

.home-page .category-card,
.home-page .product-card,
.home-page .feature-card,
.home-page .seller-card,
.home-page .testimonial-card {
    opacity: 0;
    transform: translateY(40px);
    transition: .6s;
}

.home-page .category-card.active,
.home-page .product-card.active,
.home-page .feature-card.active,
.home-page .seller-card.active,
.home-page .testimonial-card.active {
    opacity: 1;
    transform: translateY(0);
}
/* Mobile Menu */

.menu-toggle{

    display:none;

    font-size:28px;

    cursor:pointer;

}

@media(max-width:768px){

.menu-toggle{

    display:block;

}

.nav-links{

    display:none;

    flex-direction:column;

    width:100%;

    background:white;

    padding:20px;

}

.nav-links.show{

    display:flex;

}

}