@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:#eee;
    --tag-clr:#7cc576;
}


/*--------basic styling----------*/

li{
    list-style: none;
}
a{
    text-decoration: none;
}
img{
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease-in-out;
}
a:hover{
    color: var(--primary-clr);
}

.flex{
    align-items: center;
    display: flex;
}

.container{
    max-width: 80%;
    margin: auto;   
}

.section{
    padding-top: 4rem;
}

.wrap{
    flex-wrap: wrap;
}

.secondary-bg{
    background: var(--secondary-clr);
    padding-block: 2.2rem;
}

/*-------navbar styling----------*/
header{
    background: var(--white-clr);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 
    0px 5px 14.25px .75px rgba(36, 11, 12, .05 );
}
.logo{
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-black);
}


.link{
    font-size: .95rem;
    color: var(--light-black);
    text-transform: uppercase;
    font-weight: 500;
}
.icon{
    font-size: .9rem;
    color: var(--light-black);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}
.icon:hover,
.icon-active{
    background: var(--secondary-clr);
}


span,
.link-active,
.link:hover
.icon:hover,
.icon-active{
    color:var(--primary-clr);
}

.navbar{
    height: 12vh;
    justify-content: space-between;
}
.navlist{
    gap: 2.5rem;
}
.nav-icons{
    gap: .9rem;
}
.hamburger{
    font-size: 1.8rem;
    color: var(--primary-clr);
    display: none;
}

/*------------section styling------------*/
.hero{
    height: 115vh;
    background-image: url(images/hero-image.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: 5rem;
}

.hero-content{
    height: 100%;
    justify-content: flex-end;
}
h3{
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 3.7rem;
    color: var(--light-black);
}
h1{
    font-size: 4rem;
    line-height: 4rem;
    font-weight: 600;
    color: var(--black-clr);
}
h4{
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 3.5rem;
    margin-bottom: 1.5rem;
}

button{
    font-weight: 600;
    font-size: .9rem;
    padding: .8rem 2.2rem;
    text-transform: uppercase;
    color: var(--white-clr);
    background-color: var(--primary-clr);
    border: none;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

button:hover{
    background:var(--tag-clr);
}

.category-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: 1.7rem;
}

.category:nth-child(1),
.category:nth-child(3){
    grid-row: 1/3;
}
.category:nth-child(2){
    grid-row: 1/2;
}
.category{
    position: relative;
    overflow: hidden;
}

.category button{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 500;
    background: var(--white-clr);
    color: var(--black-clr);
    z-index: 3;
}
.category button:hover{
    background: var(--primary-clr);
    color: var(--secondary-clr);
}

.category:hover img{
    transform: scale(1.1);
}

.category::before{
    content: '';
    position: absolute;
    background: var(--white-clr);
    width: 0;
    height: 100%;
    opacity: .2;
    z-index: 2;
    transition: all .4s ease-in-out;
}

.category:hover::before{
    width: 100%;
}

h2{
    font-size: 3rem;
    line-height: 4rem;
    color: var(--light-black);
    font-weight: 500;
    text-align: center;
}

.line{
    background: var(--primary-clr);
    width: 130px;
    height: 2.5px;
    margin: auto;
}

.card-container{
    text-align: center;
    margin-top: 3rem;
    justify-content: center;
}

.card{
    border-right: 2px solid #efefef;
    flex: 1;
    padding-block: 3.1rem;
    margin-bottom: 2rem;
    transition: all .3s ease-in-out;
    position: relative;
}

.card:hover{
    box-shadow: 
    0px 5px 19px 1px rgba(36, 11, 12, .15 );
    z-index: 3;
}

.card-content{
    padding: 0 3rem;
}

.title{
    font-size: 1rem;
    color: var(--light-black);
    line-height: 1.7rem;
    font-weight: 500;
}
.price{
    margin-top: 1rem;
    margin-bottom: .5rem;
}
del{
    color: #c5c5c5;
}
.amount{
    font-size: 1.1rem;
    font-weight: 600;
}
.add-to-cart{
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease-in-out;
}
.card:hover .add-to-cart{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;

}
.Sale::before,
.New::before{
    
    position: absolute;
    top: 20px;
    left: 20px;
    padding: .2rem 1.3rem;
    color: var(--white-clr);
    font-weight: 300;
}
.New::before{
    content: 'New';
    background: var(--tag-clr);
}
.Sale::before{
    content: 'Sale';
    background: var(--primary-clr);
}

.sale-container{
    padding-block: 5rem;
    text-align: center;
    background-image: url(images/sale-image.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.sale-container h3{
    font-weight: 200;
    font-size: 1.8rem;
    line-height: 1.6rem;
    text-transform: uppercase;
}
.sale-container h1{
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 5rem;
}
.sale-container .line{
    width: 15%;
    background: #c5c5c5;
}
.sale-container h4{
    font-size: 1.4rem;
    color: #6e6e6e;
    line-height: 3.5rem;
}
.container h3{
    text-align: center;
    font-weight: 600;
    font-size: 2rem;
}
.box{
    flex: 1;
    text-align: center;
    margin-block: 1rem;
    flex-basis: 200px;
}
.box .fa-solid{
    color: var(--primary-clr);
    font-size: 20px;
}
h5 a{
    font-size: 1.1rem;
    color: var(--light-black);
    font-weight: 500;
    line-height: 2rem;
}
.des{
    color: #6e6e6e;
    font-size: .5rem;
    font-weight: 400;
}

.blog-container{
    margin-top: 3rem;
    gap: 2rem;
}
.blog-box{
    flex: 1;
    position: relative;
    flex-basis: 300px;
}
.blog-box::before{
    content: '';
    position: absolute;
    background: rgba(0,0,0,.8);
    top: 0;
    left: 0;
    width: 0;
    z-index: 3;
    height: 100%;
    transition: all .4s ease-in-out;
}
.blog-box:hover::before{
    width: 100%;

}
.blog-content{
    text-align: center;
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding-inline: 2rem;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transition: all .4 ease-in-out;
}
.heading{
    font-size: 1.7rem;
    line-height: 4rem;
    font-weight: 500;
}
.blog-content *{
    color: var(--secondary-clr);
}
.blog-link{
    font-size: 1rem;
    font-weight: 600;
    line-height: 4rem;
    color: var(--primary-clr);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-transform: uppercase;
}
.blog-box:hover .blog-content{
    visibility: visible;
    opacity: 1;
    left: 50%;
}
form{
    gap: 3rem;
}
form h3{
    font-size: 1.4rem;
}
.input-container{
    flex: 1;
    align-items: stretch;
}
#email{
    border: none;
    flex: 1;
    font-size: 1rem;
    padding-left: 1.1rem;
}
#email:focus{
    outline: none;
}
.social-icons{
    gap: 1.2rem;
    justify-content: flex-end;
}
.media{
    font-size: 1.2rem;
    color: var(--light-black);
}

.feedback-section {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

.feedback-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.feedback-section p {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

.feedback-form .form-group {
  margin-bottom: 20px;
}

.feedback-form label {
  display: block;
  margin-bottom: 5px;
  color: #444;
  font-weight: bold;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

.feedback-form button {
  background-color:var(--primary-clr);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.feedback-form button:hover {
  background-color: var(--tag-clr);
}


        /* footer here */
.footer-list{
    flex: 1;
    padding-block: 1rem;
    flex-basis: 200px;
}
.footer-link{
    font-size: .9rem;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 2.3rem;
    color: var(--light-black);
}
.footer-logo{
    margin-bottom: 1rem;
}
.detail{
    font-size: .95rem;
    line-height: 1.75rem;
    color: #6e6e6e;
}














@media screen and (max-width: 768px){
    .navlist{
        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 .4s ease-in-out;
    }
    .navlist-active{
        transform: translateY(20%);
    }
    .navlist .link{
        color: var(--secondary-clr);
        font-weight: 400;
    }
    .nav-icons a,
    .link:hover,
    .navlist .link-active{
        color:var(--primary-clr) ;
    }

    .hamburger{
        display: block;
    }
    .container{
        max-width: 100%;
    }

    .hero{
        height: 60vh;
    }

    h3{
        font-size: 1.3rem;
        line-height: 1.3rem;
    }

    h1{
        font-size: 2.2rem;
        line-height: 4rem;
    }

    h4{
        font-size: 1.1rem;
        line-height: 2rem;
    }

    .category-container{
        grid-template-columns: 1fr;
    }

    .category:nth-child(1),
    .category:nth-child(2),
    .category:nth-child(3){
        grid-row:auto;
    }
}
/* Fix horizontal scroll on small screens */
html, body {
    max-width: 100%;
    
}

