@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html{
    scroll-behavior: smooth;
}

:root{
    --white-clr: #fff;
    --black-clr: #000;
    --light-black: #333;
    --primary-clr: #e6303d;
    --secondary-clr: #e9e7e7;
    --tag-clr: #7cc576;
}


/* Basic Styling */

li{
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    width: 100%;
    height: 100%;
    display: block;
    transition: transform .3s ease-in-out;
}

.flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wrap{
    flex-wrap: wrap;
}

.container{
    max-width: 80%;
    margin: auto;
}

.section{
    margin-top: 50px;
}

.secondary-bg{
    background-color: var(--secondary-clr);
    padding-block: 40px;
}

/* Navbar Styling */
header{
    background: var(--white-clr);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
}

.logo {
    color: var(--light-black);
    font-weight: bold;
}

.logo span{
    color: var(--primary-clr);
}

.link{
    color: var(--light-black);
    font-weight: 500;
}

.link:hover, .link-active{
    color: var(--primary-clr);
}

.navbar{
    padding-top: 18px;
    padding-bottom: 18px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 99;
    color: var(--white-clr);
}

.nav-list{
    gap: 35px;
    font-size: 15px;
}

.icons {
    gap: 20px;
    font-size: 15px;
}
.icons li{
    border-radius: 50px;
    padding: 8px;
}

.icons li:hover{
    background-color: var(--secondary-clr);
}

.hamburger{
    color: var(--light-black);
    font-size: 20px;
    display: none;
}

/* Section Styling */

.hero{
    height: 115vh;
    background-image: url(images/hero-image.jpg) ;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    margin-top: 65px;
}

.hero-content{
    justify-content: flex-end;
    align-items: flex-end;
    height: 80vh;
    text-align: left;
    padding: 20px;
}

.hero-content p{
    color: var(--light-black);
    font-size: 22px;
    font-weight: 500;
}


.hero-content span{
    color: var(--primary-clr);
}

.hero-content h1{
    font-size: 50px;
    color: var(--light-black);
    font-weight: 600;
}

button{
    background-color: var(--primary-clr);
    color: var(--white-clr);
    border: none;
    padding: 10px;
    padding-left: 30px;
    padding-right: 30px;
    margin-top: 30px;
    text-transform: uppercase;
}

button:hover{
    background-color: var(--light-black);
}

.category-content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.category:first-child{
    grid-row: 1/3;
}

.category:nth-child(4){
    grid-row: 1/3;
    grid-column: 3/3;
}

.category button{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -120%);
    color: var(--black-clr);
    background-color: var(--white-clr);
    font-weight: 500;
    z-index: 3;
}

.category button:hover{
    color: var(--white-clr);
    background-color: var(--primary-clr);
}

.category{
    position: relative;
    overflow: hidden;
}

.category::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: var(--white-clr);
    width: 0;
    height: 100%;
    opacity: .2;
    z-index: 2;
    transition: all .2s ease-in-out;
}

.category:hover::before{
    width: 100%;
}

.category:hover img{
    transform: scale(1.1);
}

h2{
    text-align: center;
    font-weight: 450;
}

.line{
    height: 5px;
    width: 70px;
    background-color: var(--primary-clr);
    border-radius: 5px;
    margin: auto;
}

.card-container{
    margin-top: 40px;
}

.card{
    text-align: center;
    padding-block: 50px ;
    border-right: 1px solid #f3f2f2;
    flex: 1;
    position: relative;
    transition: all .2s ease-in-out;
}

.card:hover{
     box-shadow: 0px 5px 19px 1px rgba(0, 0, 0, 0.25);
     z-index: 3;
}

.price{
    margin-top: 20px ;
}

.price del{
       color: #c5c5c5;
}

.amount{
    color: var(--primary-clr);
    font-weight: 700;
}

.addToCart{
    position: absolute;
    left: 0%;
    right: 0%;
    top: 92%;
    font-weight: 500;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease-in-out;
}

.card:hover .addToCart{
    opacity: 1;
    visibility: visible;
    transform: translate(0);
}


.sale::before{
    content: 'Sale';
    position: absolute;
    top: 5%;
    left: 5%;
    padding: 2px 15px;
    color: var(--white-clr);
    background-color: var(--primary-clr);
}

.new::before{
    content: 'New';
    position: absolute;
    top: 5%;
    left: 5%;
    padding: 2px 15px;
    color: var(--white-clr);
    background-color: var(--tag-clr);
}

.saleContainer{
    padding-block: 5rem;
    text-align: center;
    background-image: url(images/sale-image.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.saleContainer h3{
    font-weight: 200;
    font-size: 1.3rem;
}

.saleContainer h1{
    color: var(--light-black);
    font-weight: 500;
    font-size: 2.3rem;
}

.underline{
    height: 1px;
    width: 170px;
    background-color: #979393;
    margin: auto;
}

.saleContainer h4{
    font-weight: 300;
    margin-top: 10px;
}

.box{
    text-align: center;
}

.box i{
     font-size: 20px;
     color: var(--primary-clr);
}

.box h3{
    font-weight: 500;
    font-size: 0.9rem;
}

.box h4{
    font-weight: 300;
    font-size: 0.7rem;
}

.news{
    margin-top: 40px;
    gap: 20px;
}

.blog{
    position: relative;
}

.newsContent{
    padding: 0 15px;
    text-align: center;
    position: absolute;
    top: 25%;
    left: 0;
    visibility: hidden;
    transition: all .3s ease-in-out;
}

.newsContent p{
    margin-top: 12px;
    margin-bottom: 22px;
    color: var(--white-clr);
    font-size: 15px;
}

.newsContent h2{
    color: var(--white-clr);
    font-weight: 500;
}

.newsContent h2:hover{
    color: var(--primary-clr);
    cursor: pointer;
}

.newsContent a{
    color: var(--primary-clr);
    font-weight: 800;
    font-size: 13px;
}

.blog::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #000;
    opacity: 0.9;
    transition: all .3s ease-in-out;
    visibility: hidden;
}

.blog:hover::before{
    width: 100%;
    visibility: visible;
}

.blog:hover .newsContent{
    visibility: visible;
}

.signUp h2{
    font-size: 20px;
}

.search input{
    padding: 10px;
    width: 500px;
    outline: none;
    border: none;
}

.signUp{
    align-items: center;
  
}

.signUp button{
    margin: 0;
}

.aboutUs{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 80px;
}

.aboutUs ul li a{
    color: var(--light-black);
    font-size: 12px;
    font-weight: 600;
}

.aboutUs ul li{
    margin-top: 8px;
}

.four h1{
    font-size: 25px;
}
.four ul li a{
    font-size: 11px;
    color: var(--light-black);
}

.four ul li{
    margin-top: 0;
}

.copyright{
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--light-black);
    font-size: 10px;
}

@media screen and (max-width: 991px) {
    .container {
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--black-clr);
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform .3s ease-in-out;
    }
    
    .navlist-active{
         transform: translateY(20%);
    }
    .nav-list .link:hover{
        color: var(--primary-clr);
    }
    .nav-list li a{
        color: var(--secondary-clr);
    }
    .icons{
        color: var(--primary-clr);
    }
    
    .hamburger {
        display: block;
    }

    .nav-items .icons {
        display: none;
    }

    .category-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .category:nth-child(4){
        grid-column: 2/3;
        grid-row: 2/3;
    }
    
    .card-container {
        justify-content: center;
        gap: 20px;
    }

    .card {
        padding-block: 20px;
    }

    .saleContainer {
        padding-block: 3rem;
    }

    .saleContainer h1 {
        font-size: 2rem;
    }

    .news {
        flex-direction: column;
    }

    .signUp {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .search {
        flex-direction: column;
    }
    
    .search input {
        width: 100%;
        margin-bottom: 10px;
    }

    .aboutUs {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .aboutUs > div:nth-child(2),
    .aboutUs > div:nth-child(3) {
        margin-top: 0;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        background-position: left;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }

    .category-content {
        grid-template-columns: 1fr;
    }

    .category:first-child,
    .category:nth-child(4) {
        grid-row: auto;
        grid-column: auto;
    }

    .card {
        flex-basis: 45%;
    }

    .secondary-bg .flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .aboutUs {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .aboutUs > div {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .card {
        flex-basis: 100%;
    }

    .aboutUs {
        text-align: left;
    }
}

