*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}
body{
    background-color: #dadada;
    
}
a{
    text-decoration: none;
    color: inherit;
}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:#131921 ;
    padding: 10px 20px;
    color: #fff;

}
.nav-country{
    display: flex;
    align-items: end;
    margin-left: 15px;
    font-size: 13px;
    color: #c4c4c4;
}
.nav-country h3{
    color: #fff;
    font-size: 14px;
}
.nav-search{
    flex: 1;
    display: flex;
    align-items: center;
    background:#fff ;
    max-width: 1000px;
    border-radius: 4px;
    margin-left: 15px;

}

.nav-search-category{
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 5px;
    background: #e5e5e5;
    border-radius: 4px 0 4px;
}
.nav-search-input{
    border: none;
    outline: none;
    padding-left: 20px;
    width: 100%;
}
.nav-search-icon{
  max-width: 41px; 
  padding: 8px; 
  background: #ffd64f;
  border-radius: 0 4px 4px 0;

}
.nav-search p{
    color: #131921;
}
.nav-language{
display: flex;
align-items: center;
gap: 2px;
font-weight: 600;
margin-left: 15px;
}
.nav-text{
    margin-left: 15px;

}
.nav-text p{
    font-size: 10px;
}
.nav-text h3{
   font-size: 14px; 
}
.nav-cart{
    display: flex;
    align-items: center;
    margin: 0px 15px;
}
.nav-bottom{
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px;
    background:#232f3e ;
    color: #fff;
    font-size: 15px;
}
.nav-bottom div{
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.header-slider ul{
display: flex;
overflow-y: hidden;
}
.header-img{
    max-width: 100%;
    mask-image: linear-gradient(to bottom,#000000 50% transparent 100%);
}
.header-slider a{
    position:absolute ;
    top: 20%;
    z-index: 1;
    padding: 5vh 1vw;
    background: #ffffff4f;
    color: #0000007b;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}
.control-next{
    right: 0;

}
.box-row{
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
    justify-content: space-between;
    margin: 20px 30px;
}
.box-col{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    max-width: 24%;
    min-height: 200px;
    z-index: 1;
}
.box-col a{
    font-size: 13px;
    color: #009999;
    font-weight: 500;
}
.header-box{
    margin-top: -20vw;
}
.products-slider{
background: #fff;
margin: 0 30px;
padding: 20px;
margin-bottom: 15px;
}

.products-slider .products{
    display: flex;
    overflow-x: auto;
    gap: 20px;
    margin-top: 10px;
}

.products-slider .products img{
    max-width: 200px;
    max-height: 200px;
}
.products-slider .products::-webkit-scrollbar{
    display: none ;
}
.products-slider-with-price{
    background: #fff;
    margin:0 30px ;
    padding: 20px;
    margin-bottom: 15px;
}
.products-slider-with-price .products{
    display: flex;
    overflow: auto;
    gap: 10px;
    margin-top: 10px;

}
.products-slider-with-price .products::-webkit-scrollbar{
    display: none;
}
.product-card{
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-width: 210px;
    background: #fbfbfb;
}
.product-card img{
   width: 110px; 
   margin: 0 50px;
}
.product-offer{
    background: #be0b3b;
    color: #fff;
    display: inline-block;
    padding: 2px 5px;
    border-radius:2px ;
    margin: 8px 0;
    font-size: 13px;
    width: 60px;
    height: 20px;

}

.product-price{
    color: gray;
    font-size: 13px;
    }
.product-card h4{
    color: #525252;
    font-size: 15px;
    font-weight: 400;
    }
footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background:#131921 ;
    padding: 20px 60px;

    }
/*---------media query-----*/

/* tablet view (max-width: 900px) */
@media (max-width: 900px) {

    nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-search {
        order: 3;
        width: 100%;
        margin: 10px 0;
    }

    .nav-country,
    .nav-language {
        display: none;
    }

    .box-col {
        max-width: 48%;
    }

    .products-slider .products img {
        max-width: 150px;
    }
}


/* mobile view(max-width: 600px)*/
@media (max-width: 600px) {

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-search {
        width: 100%;
        order: 2;
    }

    .nav-cart {
        align-self: flex-end;
    }

    .nav-text {
        display: none;
    }

    .nav-bottom {
        overflow-x: auto;
        font-size: 13px;
        gap: 10px;
    }

    .nav-bottom::-webkit-scrollbar {
        display: none;
    }

    .header-slider a {
        display: none; 
    }

    .box-row {
        flex-direction: column;
        margin: 10px;
    }

    .box-col {
        max-width: 100%;
    }

    .header-box {
        margin-top: 0;
    }

    .products-slider,
    .products-slider-with-price {
        margin: 10px;
        padding: 10px;
    }

    .product-card {
        min-width: 150px;
    }

    .product-card img {
        width: 80px;
        margin: 0 auto;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
}


.product-container {
    display: flex;
    gap: 30px;
    padding: 20px;
}

/* LEFT SIDE */
.product-left {
    display: flex;
    
    gap: 10px;
}

.thumbnails img {
    
    width: 60px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;

    border: 1px solid gray;
    border-radius: 10px;
}

.main-image img {
    width: 350px;
    margin-left: 20px;
}

/* CENTER */
.product-center {
    flex: 1;
    margin-left: 80px;
}

.product-center h2 {
    font-size: 22px;
}

.rating {
    color: orange;
}

.price {
    color: #b12704;
    font-size: 20px;
    font-weight: bold;
}


.product-right {
    width: 250px;
    border: 1px solid #494545;
    padding: 15px;
    border-radius: 8px;
}

.product-right button {
    outline: none;
    border: none;
    background: #ffd814;
    width: 100%;
    padding: 10px 0;
    margin-top: 10px;
    border-radius: 50px;
    cursor: pointer;
}
.product-right button:hover{
    background: #d86624;
}

.product-right button:first-child {
    background: #d86624;
}

.buy-now {
    background: #ea9f2e;
}

.logout button {
  background-color: transparent;
  border: 1px solid #fff;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

/* HOVER EFFECT */
.logout button:hover {
  background-color: #232f3e;
  border-color: #ffd814;
  color: #ffd814;
}