﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#fff;
    color:#222;
    line-height:1.6;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

img{
    width:100%;
    display:block;
}

button{
    cursor:pointer;
    border:none;
}

.back-btn{
    position:fixed;
    top:18px;
    left:18px;
    z-index:999;
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:8px;
    background:#fff;
    color:#222;
    font-size:14px;
    font-weight:500;
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.back-btn:hover{
    transform:translateY(-1px);
    background:#f5f5f5;
    box-shadow:0 12px 30px rgba(0,0,0,0.16);
}

.back-btn i{
    font-size:16px;
}

@media (max-width: 768px) {
    .back-btn{
        top:14px;
        left:14px;
        padding:10px 14px;
        font-size:13px;
    }
}

/* ======================
        TOP BAR
====================== */

.top-bar{

    background:#000;
    color:#fff;
    text-align:center;
    padding:10px;
    font-size:14px;
    letter-spacing:1px;

}


/* ======================
        NAVBAR
====================== */


.navbar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:25px 8%;

    background:#fff;

    border-bottom:1px solid #eee;

    position:sticky;
    top:0;

    z-index:1000;

}



.logo h2{

    font-size:28px;
    letter-spacing:4px;
    font-weight:600;

}



.nav-links{

    display:flex;
    gap:40px;

}



.nav-links li a{

    font-size:15px;
    letter-spacing:1px;

    color:#222;

    position:relative;

    transition:.3s;

}



.nav-links li a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-5px;

    width:0%;

    height:1px;

    background:#b88a44;

    transition:.3s;

}



.nav-links li a:hover::after{

    width:100%;

}



.icons{

    display:flex;

    align-items:center;

    gap:22px;

    font-size:18px;

}



.icons i{

    cursor:pointer;

    transition:.3s;

}



.icons i:hover{

    color:#b88a44;

}



.cart{

    position:relative;

}



.cart span{

    position:absolute;

    top:-8px;

    right:-10px;

    width:18px;

    height:18px;

    background:#b88a44;

    color:white;

    font-size:11px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

}


/* ======================
       HAMBURGER
====================== */


.menu-btn{

    display:none;

    font-size:25px;

    cursor:pointer;

}



@media(max-width:768px){


    .menu-btn{

        display:block;

    }


    .nav-links{

        position:absolute;

        top:80px;

        left:0;

        width:100%;

        background:white;

        flex-direction:column;

        padding:25px;

        display:none;

        border-top:1px solid #eee;

    }


    .nav-links.active{

        display:flex;

    }

}


/* ======================
          HERO
====================== */


.hero{

    height:90vh;

    background:url("images/hero.jpg") center/cover no-repeat;

    display:flex;

    align-items:center;

    padding-left:8%;

}



.hero-content{

    max-width:500px;

}



.hero h1{

    font-size:60px;

    margin-bottom:20px;

}



.hero p{

    font-size:18px;

    margin-bottom:35px;

    color:#555;

}



.btn{

    display:inline-block;

    background:#000;

    color:white;

    padding:15px 35px;

    border-radius:5px;

    transition:.3s;

}



.btn:hover{

    background:#b88a44;

}

/* ======================
       CATEGORIES
====================== */


.categories{

    padding:80px 8%;

}



.categories h2{

    text-align:center;

    margin-bottom:50px;

    font-size:35px;

}



.category-container{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}



.category-card{

    overflow:hidden;

    border-radius:10px;

    cursor:pointer;

}



.category-card img{

    height:450px;

    object-fit:cover;

    transition:.4s;

}



.category-card:hover img{

    transform:scale(1.08);

}



.category-card h3{

    text-align:center;

    padding:20px;

    font-size:22px;

}


/* ======================
       PRODUCTS
====================== */


.products{

    padding:80px 8%;

    background:#fafafa;

}



.products h2{

    text-align:center;

    margin-bottom:50px;

    font-size:35px;

}



.product-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}



.product-card{

    background:white;

    border-radius:10px;

    overflow:hidden;

    transition:.3s;

    box-shadow:0 3px 12px rgba(0,0,0,.08);

    position:relative;

}



.product-card:hover{

    transform:translateY(-8px);

    box-shadow:0 10px 20px rgba(0,0,0,.15);

}



.product-card img{

    height:350px;

    object-fit:cover;

}



.product-card h3{

    padding:15px 20px 5px;

    font-size:20px;

}



.product-card p{

    padding:0 20px;

    color:#777;

    font-size:18px;

}



.product-card button{

    margin:20px;

    width:calc(100% - 40px);

    padding:12px;

    background:#000;

    color:#fff;

    border-radius:5px;

    transition:.3s;

}



.product-card button:hover{

    background:#b88a44;

}


/* ======================
       WISHLIST
====================== */


.wishlist-btn{

    position:absolute;

    top:15px;

    right:15px;

    font-size:18px;

    color:white;

    background:rgba(0,0,0,.4);

    padding:8px;

    border-radius:50%;

    cursor:pointer;

    transition:.3s;

}



.wishlist-btn:hover{

    transform:scale(1.1);

}


/* ======================
       NEWSLETTER
====================== */


.newsletter{

    padding:80px 8%;

    text-align:center;

}



.newsletter h2{

    font-size:35px;

    margin-bottom:15px;

}



.newsletter p{

    color:#666;

    margin-bottom:30px;

}



.newsletter form{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

}



.newsletter input{

    width:350px;

    padding:15px;

    border:1px solid #ddd;

    outline:none;

    border-radius:5px;

}



.newsletter button{

    padding:15px 35px;

    background:#000;

    color:white;

    border-radius:5px;

    transition:.3s;

}



.newsletter button:hover{

    background:#b88a44;

}

/* ======================
          FOOTER
====================== */


footer{

    background:#111;

    color:white;

    padding:60px 8% 20px;

}



.footer-container{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

    margin-bottom:40px;

}



.footer-container h3{

    margin-bottom:20px;

}



.footer-container a{

    display:block;

    margin-bottom:10px;

    color:#ddd;

    transition:.3s;

}



.footer-container a:hover{

    color:white;

    padding-left:5px;

}



.footer-container i{

    font-size:24px;

    margin-right:15px;

    cursor:pointer;

}



footer hr{

    border:none;

    border-top:1px solid #333;

    margin-bottom:20px;

}



.copyright{

    text-align:center;

    color:#aaa;

    font-size:14px;

}


/* ======================
        SEARCH
====================== */


.search-box{

    position:relative;

    display:none;

    justify-content:center;

    padding:20px;

    background:white;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}



.search-box.active{

    display:flex;

}



.search-box input{

    width:450px;

    max-width:90%;

    padding:15px;

    border:1px solid #ddd;

    outline:none;

}



.search-result{

    position:absolute;

    top:45px;

    left:0;

    width:300px;

    background:white;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

    border-radius:10px;

    overflow:hidden;

    z-index:999;

}



.search-item{

    display:flex;

    gap:15px;

    padding:12px;

    cursor:pointer;
    
    align-items:center;
}



.search-item:hover{

    background:#f5f5f5;

}



.search-item img{

    width:50px;

    height:50px;

    object-fit:cover;

    border-radius:8px;

}


/* ==========================
   FEATURED PRODUCTS
========================== */


#featured-products{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:30px;

    max-width:1200px;

    margin:40px auto;

    padding:0 20px;

}




#featured-products .product-card{

    background:white;

    border-radius:15px;

    overflow:hidden;

    padding:20px;

    text-align:center;

    box-shadow:
    0 8px 25px rgba(0,0,0,.08);

    transition:.3s;

    cursor:pointer;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:flex-start;

}




#featured-products .product-card:hover{

    transform:translateY(-8px);

}




#featured-products .product-card img{

    width:100%;

    height:280px;

    object-fit:cover;

    border-radius:12px;

}




#featured-products .product-card h3{

    margin-top:15px;

    font-size:18px;

    color:#222;

}




#featured-products .product-card p{

    font-size:17px;

    font-weight:600;

    color: #777;;

    margin:12px 0;

}




#featured-products .add-cart-btn{


    width:100%;

    padding:12px;


    border:none;


    background:#111;


    color:white;


    border-radius:8px;


    cursor:pointer;


    font-size:15px;


    transition:.3s;


}



#featured-products .add-cart-btn:hover{
    background:#b88a44;

}



.add-cart-btn.added {

    background:#27ae60 !important;

    color:white;

}

.about-image{
    width: 50px;
    /* height: 50px; */

}

/* Responsive */


@media(max-width:1000px){


    #featured-products{

        grid-template-columns:
        repeat(2,1fr);

    }


}



@media(max-width:600px){


    #featured-products{

        grid-template-columns:
        repeat(1,1fr);

    }


}

/* ======================
        RESPONSIVE
====================== */


@media(max-width:900px){


    .category-container{

        grid-template-columns:repeat(2,1fr);

    }


    .product-grid{

        grid-template-columns:repeat(2,1fr);

    }


    .footer-container{

        grid-template-columns:1fr;

        text-align:center;

    }


    .hero h1{

        font-size:45px;

    }


}



@media(max-width:900px){


    .navbar{

        flex-direction:row;

    }


    .nav-links{

        position:absolute;

        top:80px;

        left:0;

        width:100%;

        background:white;

        flex-direction:column;

        padding:25px;

        display:none;

        border-top:1px solid #eee;

    }



    .nav-links.active{

        display:flex;

    }



    .menu-btn{

        display:block;

    }



    .hero{

        justify-content:center;

        text-align:center;

        padding:20px;

    }



    .hero h1{

        font-size:36px;

    }



    .hero p{

        font-size:16px;

    }



    .category-container{

        grid-template-columns:1fr;

    }



    .product-grid{

        grid-template-columns:1fr;

    }



    .newsletter input{

        width:100%;

    }



    .newsletter form{

        flex-direction:column;

        align-items:center;

    }


}



@media(max-width:500px){


    .icons{

        gap:12px;

    }


    .logo h2{

        font-size:22px;

    }


}


