@import url('https://fonts.googleapis.com/css2?family=Fira+Sans: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&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;
}
li{
    list-style: none;
}
a{
    text-decoration: none;
}
a:hover{
    color:var(--primary-clr);
}
img{
    max-width: 100%;
    display: block;
    height: 100%;
}
.flex{
    display: flex;
    align-items: center;
}
.container{
    max-width: 80%;
    margin: auto;
    
}
.section{
    padding: 4rem;
}
.wrap{
    flex-wrap: wrap;
}
.secondary-bg{
    background: var(--secondary-clr);
    padding-block: 2.2rem;

}
.logo{
   font-size: 1.5rem;
   font-weight: bold;
   color:var(--light-black);
   
}
span{
    color: var(--primary-clr);
}
.link{
    font-size: .95rem;
    color: var(--light-black);
    text-transform: uppercase;
    font-weight: 500;
}
.link-active{
    color: var(--primary-clr);
}
.link:hover{
    color: var(--primary-clr);
}
.icon{
    font-size: .9rem;
    color:var(--light-black);
    width:40px;
    height:40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;

}
.icon:hover{
    background-color: var(--secondary-clr);
}
.link-active1{
    color: var(--primary-clr);
    background-color: var(--secondary-clr);
}
.navbar{
    height: 12vh;
    justify-content: space-between;
  
}
header{
    position: fixed;
    width: 100%;
    top:0;
    left:0;
    right:0;
    background-color: var(--white-clr);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}
.navlist{
    gap:2.5rem;
}
.nav-icons{
    gap:.8rem;
}
.hamburger{
    display: none;
    font-size: 1.7rem;
    cursor: pointer;
    color:var(--primary-clr);
}
.hero{
    height: 115vh;
    background: url('images/hero-image.jpg') no-repeat center/cover;
    background-position: center;
    margin-top: 5.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(--light-black)
}
h4{
    font-size: 1rem;
    color: var(--light-black);
    font-weight: 400;
    line-height: 3.4rem;
    margin-bottom: 1.5rem;
}
button{
    font-weight: 600;
    font-size: .9rem;
    padding: .8rem 2.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    border:none;
    color:var(--white-clr);
    background-color: var(--primary-clr);
    transition: background-color 0.3s ease;
}
button:hover{
    background-color: var(--light-black);
}
.category-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: 2rem;
}
.category:nth-child(1){
    grid-row: 1/3;
}
.category:nth-child(4){
   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: 300;
    color:var(--black-clr);
    background-color: var(--white-clr);
    z-index: 3;
}
.category button:hover{
    background-color: var(--primary-clr);
    color:var(--white-clr);
}
.category:hover img{
    transform: scale(1.1);
    transition: all 0.5s ease-in-out;
}
.category::before{
    content: '';
    position: absolute;
    background: var(--white-clr);
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
}
.category:hover::before{
    width: 100%;
    opacity: 0.2;
}
h2{
    font-size: 2rem;
    color: var(--light-black);
    line-height: 4rem;
    font-weight: 600;
    text-align: center;
}
.line{
    background-color: var(--primary-clr);
    width: 60px;
    height: 2.5px;
    margin: auto;
}

.card-container{
    
    justify-content: center;
    margin-top: 3rem;
    text-align: center;

}
.card{
    margin-left: 2rem;
    flex:1;
    border-right: 1px solid var(--secondary-clr);
    padding-block: 3.1rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease-in;
    border-radius: 12px;
    position: relative;
}
.card:hover{
    box-shadow: 0px 5px 19px 1px rgba(36,11,12,.15);
    z-index: 3;
    border-radius: 12px;
}
.card-content div{
    padding: 0.5rem;
}
.title{
    font-size: 1rem;
    color: var(--light-black);
    line-height: 2.7rem;
    font-weight: 500;
}
del{
    color: #c5c5c5
}
.amount{
    font-size: 1.2rem;
    font-weight: 600;
}
.add-to-cart{
    position: absolute;
    width: 100%;
    left:0;
    right: 0;
    top: 100%;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
}
.card:hover .add-to-cart{
    top: 100%;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease-in-out;
}
.sale::before
{
    content: 'Sale';
    position: absolute;
    top:10px;
    left:10px;
    background-color: var(--primary-clr);
    color: var(--white-clr);
    padding: .3rem 1.2rem;
    font-size: .8rem;
    font-weight: 500;
    
}
.new::before{
    content: 'New';
    position: absolute;
    top:10px;
    left:10px;
    background-color: var(--tag-clr);
    color: var(--white-clr);
    padding: .3rem 1.2rem;
    font-size: .8rem;
    font-weight: 500;
}
.sale-container{
    padding-block: 5rem;
    text-align: center;
    background-image: url("images/sale-image.jpg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
.sale-container h3{
    font-weight: 200;
    font-size: 1.6rem;
    line-height: 1.6rem;
    text-transform: uppercase;

}
.sale-container h1{
    font-size: 2.2rem;
    line-height: 4.7rem;
    font-weight: 500;
    text-transform: uppercase;
}
.sale-container .line{
    width:15%;
    background: #c5c5c5;
}
.sale-container h4{
    font-size: 1.2rem;
    line-height: 3.4rem;
    color: #6e6e6e
    
}
.container-flex{
    display: flex;
    justify-content: space-between;
    gap:2rem;
}
.box{
    flex:1;
    text-align: center;
    margin-block: 1rem;
    flex-basis: 200px;
}
.box p{
    font-size: .8rem;
    color: var(--light-black);
}
.box i{
    font-size: 1.5rem;
    color:var(--primary-clr)
}
h5 a{
    font-size: 1rem;
    color:var(--light-black);
    font-weight: 500;
    line-height: 2rem;
}
.des{
    color: #6e6e6e;
    font-size: .9rem;
    font-weight: 400;
}
.blog-container{
    margin-top: 3rem;
    gap: 2rem;
}
.blog-box{
    flex:1;
    position: relative;
}
.blog-box::before{
    content: '';
    position: absolute;
    background: rgba(0,0,0,0.8);
    top:0;
    left:0;
    width: 0;
    z-index: 3;
    height: 100%;

}
.blog-box:hover::before{
    width: 100%;
    transition: all 0.5s ease-in-out;
}
.blog-content{
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%,-50%);
    width: 100%;
    text-align: center;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    flex-basis: 300px;

}
.heading{
    font-size: 1.7rem;
    line-height: 4rem;
    font-weight: 500;
}
.blog-content *{
    color:var(--secondary-clr)
}
.blog-link{
    font-size: .9rem;
    font-weight: 600;
    line-height: 5rem;
    color:var(--primary-clr);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-transform: uppercase;
}
.blog-box:hover .blog-content{
    opacity: 1;
    visibility: visible;
    left:50%;
}
form h3{
    font-size: 1.4rem;

}
form{
    gap: 3rem;
}
.input-container{
    flex:1;
    align-items: stretch;
}
#email{
    border: none;
    flex: 1;
    font-size: 1rem;
    padding-left: 1.1rem;
    border-radius: 15px;
}
#email:focus{
    outline: none;
}
.social-icons{
    gap: 1.2rem;
    justify-content: flex-end;
}
.media{
    font-size: 1.2rem;
    color:var(--light-black);
}
.signin{
    display: flex;
    gap: 25px;
    padding: 0px 10px 0px 10px;
}
.signin h3{
    font-size: 1.1rem;
}
.containers {
    flex: 1;

}
.input-container button{
    margin-left: 10px;
}


















footer{
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 1rem;
    background: #575252;
    color: #ccc;
    flex-wrap: wrap;
}
.footer-list{
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 220px;
}
.footer-link{
    display: inline-block;
    color: #bbb;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}

.footer-link:hover{
    color: #fff;
}
.footer-list:first-child li:first-child{
    font-weight: 600;
}

.footer-list:last-child li:first-child a{
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
}

.footer-list:last-child span{
    color: var(--primary-clr);
}
.footer-list li{
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}
.footer-bottom{
    background: #575252;
    text-align: center;
}
.footer-bottom a{
    color:black;
    font-weight: 600;
}

/* Responsive rules: tablets and phones */
@media (max-width: 1024px) {
    .container{ max-width: 90%; }
    .navbar{ height: 10vh; }
    .navlist{ gap: 1rem; }
    .navlist{ display: none; }
    .hamburger{ display: block; }
    .hero{ height: 90vh; }
    .category-container{ grid-template-columns: repeat(2, 1fr); }
    .card{ padding-block: 2rem; }
    .container-flex{ flex-direction: column; gap: 1.2rem; }
    footer{ padding: 2rem 1rem; }
}

@media (max-width: 768px) {
    .container{ max-width: 95%; }
    h1{ font-size: 2.4rem; }
    h3{ font-size: 1.2rem; }
    h4{ font-size: .95rem; }
    .hero{ height: 70vh; background-position: center; }
    .category-container{ grid-template-columns: 1fr; }
    .card-container{ flex-direction: column; align-items: stretch; }
    .card{ margin-left: 0; border-right: none; padding-block: 1.8rem; }
    .card img{ height: auto; }
    .sale-container{ background-size: cover; padding-block: 3rem; }
    .blog-content{ left: 50%; top: 50%; transform: translate(-50%,-50%); }
    .container-flex{ flex-direction: column; }
    footer{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .navbar{ height: 8vh; }
    .logo{ font-size: 1rem; }
    h1{ font-size: 1.6rem; line-height: 2rem; }
    h3{ font-size: 1rem; }
    .hero{ height: 60vh; margin-top: 4rem; }
    .hamburger{ display: block; font-size: 1.4rem; }
    .navlist{ display: none; }
    .category button{ font-size: .9rem; padding: .6rem 1rem; }
    .card{ padding-block: 1.2rem; }
    .add-to-cart{ position: relative; top: auto; transform: none; opacity: 1; visibility: visible; }
    .footer-list{ flex: 1 1 100%; margin-bottom: 1rem; }
    .social-icons{ justify-content: flex-start; }
}
