:root {
    --primary-color: #6B4226; /* Deep Brown */
    --accent-color: #C9A66B; /* Muted Gold */
    --background-color: #FAF3E0; /* Light Cream */
}

body {
    background-color: var(--background-color);
    color: var(--primary-color);
}

*{
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    outline: none; border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: .2s linear;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: hidden;
}

section{
    padding: 2rem 9%;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    border-radius: 5rem;
    background: var(--primary-color);
    color: #FAF3E0;
    padding: .9rem 3.5rem;
    cursor: pointer;
    font-size: 1.7rem;
    transition: all 0.3s ease; /* Smooth transition for all properties */
}

.btn:hover,
.btn:active {
    background: #FAF3E0;
    border: 2px solid var(--primary-color); /* Add border on hover or active */
    color: #C9A66B; /* Change text color on hover or active */
}

.icons a {
    color: #6B4226;
    font-size: 1.8rem;
}

.navbar{
    background-color: var(--background-color); /* Light Cream */
}

header{
    background-color: var(--background-color); /* Light Cream */
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    color: #6B4226;
    justify-content: space-between;
    z-index: 1000; 
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

header .logo{
    font-size: 3rem;
    font-weight: bolder;
    color: #6B4226;
}

header .navbar a{
    background-color: transparent; /* Remove brown background */
    color: var(--primary-color); /* Ensure text remains deep brown */
    font-size: 2rem;
    padding: 0 1.5rem;
}

header .icon a{
    font-size: 2.5rem;
    margin-left: 1.5rem;
}

header #toggler{
    display: none;
}

header .fa-bars{
    font-size: 3rem;
    border-radius: .5rem;
    padding: .5rem 1.5rem;
    cursor: pointer;
    border: .1rem solid rgba(0,0,0,.3);
    display: none;
}

.home{
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: url(images/handsome-man-with-beard-choosing-shirt-shop.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.home .content{
    max-width: 50rem;
}

.home .content h3{
    font-size: 6rem;
    color: var(--primary-color); /* Deep Brown */
}

.home .content span{
    font-size: 3.5rem;
    padding: 1rem 0;
    line-height: 1.5;
}

.home .content p{
    font-size: 1.5rem;
    padding: 1rem 0;
    line-height: 1.5;
}

.about .row{
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    padding-bottom: 3rem;
}

.about .row .video-container{
    flex: 1 1 40rem;
    position: relative;
    height: 70vh;
}

.about .row .video-container video {
    width: 100%;
    border: none; 
    border-radius: .5rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
    height: 100%;
    object-fit: cover;
}

.about .row .video-container h3{
    position: absolute;
    top: 50%; transform: translateY(-50%);
    font-size: 3rem;
    width: 100%;
    padding: 1rem 2rem;
    text-align: center;
    mix-blend-mode: screen;
}

.about .row .content{
    flex: 1 1 40rem;
}

.about .row .content h3{
    font-size: 3rem;
}

.about .row .content p{
    font-size: 1.5rem;
    padding: .5rem 0;
    padding-top: 1rem;
    line-height: 1.5;
}

.icons-container{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.icons-container .icons{
    border: .1rem solid;
    padding: 2rem;
    display: flex;
    align-items: center;
    flex: 1 1 25rem;
}

.icons-container .icons img{
    height: 5rem;
    margin-right: 2rem;
}

.icons-container .icons h3{
    font-size: 1.3rem;
    padding-bottom: .5rem;
    font-size: 1.5rem;
}

.icons-container .icons span{
    font-size: 1.3rem;
}

.products .box-container{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.products .box-container .box{
    flex: 1 1 30rem;
    box-shadow: 0 .5rem 1.5rem #6B4226;
    border-radius: .5rem;
    border: 1rem solid var;
    position: relative;
}

.products .box-container .box .discount{
    position: absolute;
    top: 1rem; left: 1rem;
    padding: .7rem 1rem;
    font-size: 2rem;
    z-index: 1;
    border-radius: .5rem;
}

.products .box-container .box .image{
   position: relative;
   text-align: center;
   overflow: hidden;
}

.products .box-container .box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products .box-container .box:hover .image img{
   transform: scale(1.1);
}

.products .box-container .box .image .icons{
   position: absolute;
   bottom: -7rem; left: 0; right: 0;
   display: flex;
}
 
.products .box-container .box:hover .image .icons{
    bottom: 0;
}

.products .box-container .box .image .icons a{
    height: 5rem;
    line-height: 5rem;
    font-size: 2rem;
    width: 50%;
}

.products .box-container .box .image .icons .cart-btn{
    border-left: .1rem solid;
    border-right: .1rem solid;
    width: 100%;
}

.products .box-container .box .content{
    padding: 2rem;
    text-align: center;
}

.products .box-container .box .content h3{
    font-size: 2.5rem;
}

.products .box-container .box .content .price{
    font-size: 2.5rem;
    font-weight: bolder;
    padding-top: 1rem;
}

.products .box-container .box .content .price span{
    font-size: 1.5rem;
    font-weight: lighter;
    text-decoration: line-through;
}

.review .box-container{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.review .box-container .box{ 
    flex: 1 1 30rem;
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1);
    border-radius: .5rem;
    padding: 3rem 2rem;
    position: relative;
}

.review .box-container .box .fa-quote-right{ 
    position: absolute;
    bottom: 3rem; right:3rem;
    font-size: 6rem;
    color: #eee;
}

.review .box-container .box .stars i{ 
   font-size: 2rem;
}

.review .box-container .box p{ 
    color: var(--primary-color); /* Deep Brown */
    font-size: 1rem; 
    line-height: 1.5;
    padding-left: 2rem;
}

.review .box-container .box .user{ 
    display: flex;
    align-items: center;
    padding-top: 2rem;
}

.review .box-container .box .user img{ 
    height: 6rem;
    width: 6rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.contact .row {
   display: flex;
   flex-wrap: wrap-reverse;
   gap: 1.5rem;
   align-items: center;
}

.contact .row form{
    flex: 1 1 40rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1);
    border: .1rem solid rgba(0,0,0,.1);
    border-radius: .5rem;
}

.contact .row .image{
    flex: 1 1 40rem;
}

.contact .row .image img{
   object-fit: cover;
   width: 100%;
   height: 66vh;
}

.contact .row form .box{
   padding: 1rem;
   font-size: 1.7rem;
   color: #6B4226;
   text-transform:  none;
   border: .1rem solid rgba(0,0,0,.1);
   border-radius: .5rem;
   margin: .7rem 0;
   width: 100%;
}

.contact .row form .box:focus{
    color: var(--primary-color); 
}

.contact .row form .box::placeholder {
    color: var(--primary-color); /* Deep Brown */
}

.contact .row form textarea{
   height: 15rem;
   resize: none;
}

.footer {
    background-color: var(--primary-color);
    color: #FAF3E0;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer .box-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-left: 0;
    flex: 1;
}

.footer .box-container .box {
    flex: 1;
    min-width: 200px;
}

.footer .box-container .box h3 {
    color: #C9A66B;
    font-size: 2rem;
    padding: 1rem 0;
}

.footer .box-container .box a {
    display: block;
    font-size: 1.5rem;
    padding: 1rem 0;
    color: #FAF3E0;
}

.footer a:hover,
.footer a:focus,
.footer a:active {
    color: var(--accent-color); /* Deep Brown */
    text-decoration: underline;
}

/* Footer Credit */
.footer .credit {
    text-align: center;
    padding: 1.5rem;
    margin-top: 1.5rem;
    font-size: 1.8rem;
    border-top: 1px solid rgba(0, 0, 0, .1);
    width: 100%;
}

.footer .credit span a{
    color: #C9A66B;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* BackToTop Section Starts */

.back-to-top {
    position: fixed;
    height: 40px;
    width: 40px;
    bottom: 20px;
    display: grid !important;
    place-items: center;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    border-radius: 100%;
    font-size: 18px;
    transition: background-color 0.3s;
    background-color: var(--accent-color);
}

.back-to-top:hover {
    background-color: var(--primary-color);
}
/* BackToTop Section Ends */

/* media queries */
@media (max-width:991px) {
    html{
        font-size: 55%;
    }

    header{
        padding: 2rem;
    }

    section {
        padding: 2rem;
    }

    .home{
        background-position: left;
    }

    .footer .box-container{
        margin-left: 20px;
    }
}

@media (max-width:768px) {

   header .fa-bars{
    display: block;
   }

   header .navbar{
    position: absolute;
    top: 100%; left: 0; right: 0;
    border-top: .1rem solid rgba(0,0,0,.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
   }

   header #toggler:checked ~ .navbar{
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
   }

   header .navbar a{
   background-color: var(--primary-color); /* Deep Brown */
   color: var(--background-color); /* Light Cream */
   margin: 1.5rem;
   padding: 1.5rem;
   border: .1rem solid rgba(0,0,0,.1);
   display: block;
   }

   header label.toggler-label {
    cursor: pointer;
    display: block;
   }

   header .icon a{
    font-size: 3rem;
   }

   .home .content h3{
   font-size: 5rem;
   }

   .home .content span{
    font-size: 2.5rem;
    white-space: wrap;
 }

.icons-container .icons h3{
    font-size: 2rem;
}

.icons-container .icons span{
    font-size: 1.7rem;
}

.contact .row .image img{
    height: 100%;
 }

 .about .row .video-container{
    height: 50vh;
}

}

@media (max-width:450px) {
    html{
        font-size: 50%;
    }

    .heading{
        font-size: 3rem;
    }
}

section{
    padding: 2rem 9%;
}

.heading{
    text-align: center;
    font-size: 4rem;
    color: #6B4226;
    padding: 1rem;
    margin: 2rem 0;
    background: #FAF3E0;
}

.heading span{
    color: #C9A66B;
}

.header, .footer, .navbar a, .btn {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.header .logo span, .navbar a:hover, .btn:hover, .footer a:hover {
    color: var(--accent-color);
}

/* Ensure consistent styling for other elements */
.video-container h3, .content h3, .heading span {
    color: var(--accent-color);
}

/* Update other elements to match the color palette */
.box-container .box .content h3, .box-container .box .price span {
    color: var(--accent-color);
}

.box-container .box .icons a, .box-container .box .icons .cart-btn {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.box-container .box .icons .cart-btn:hover {
    background-color: var(--accent-color);
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        padding: 2rem 5%;
    }

    .footer .box-container {
        flex-direction: column;
        text-align: center;
    }

    .footer .credit {
        border-top: 2px solid rgba(0, 0, 0, .1);
        padding-top: 2rem;
        width: 100%;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

/* media queries */
@media (max-width:991px) {
    html{
        font-size: 55%;
    }

    header{
        padding: 2rem;
    }

    section {
        padding: 2rem;
    }

    .home{
        background-position: left;
    }

    .footer .box-container{
        margin-left: 20px;
    }
}

@media (max-width:768px) {

   header .fa-bars{
    display: block;
   }

   header .navbar{
    position: absolute;
    top: 100%; left: 0; right: 0;
    border-top: .1rem solid rgba(0,0,0,.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
   }

   header #toggler:checked ~ .navbar{
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
   }

   header .navbar a{
   margin: 1.5rem;
   padding: 1.5rem;
   border: .1rem solid rgba(0,0,0,.1);
   display: block;
   }

   /* New rule to make the toggler clickable */
   header label.toggler-label {
    cursor: pointer;
    display: block;
   }

   /* Increase icon size for smaller screens */
   header .icon a{
    font-size: 3rem;
   }

   .home .content h3{
   font-size: 5rem;
   }

   .home .content span{
    font-size: 2.5rem;
    white-space: wrap;
 }

.icons-container .icons h3{
    font-size: 2rem;
}

.icons-container .icons span{
    font-size: 1.7rem;
}

.contact .row .image img{
    height: 100%;
 }

 .about .row .video-container{
    height: 50vh;
}

}

@media (max-width:450px) {
    html{
        font-size: 50%;
    }

    .heading{
        font-size: 3rem;
    }
}
