/* ===============
    Home Page
==================*/
* {
    box-sizing: border-box;
}

a{
    color: black;
    text-decoration: none;
   
}

button{
    color: white;
    border: none;
}

.down a{
    color: white;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial;
}

.header {
    display: flex;
    justify-content: space-between;
    background-color: white;
    align-items: center;
   padding: 20px 100px;
   margin: 0;
   max-width: 2000px;
   margin: auto;
}

.header a {
    text-decoration: underline dotted;

}

.header img {
    height: 30px;
}

.banner {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 2000px;
    margin: auto;

}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 2px;

}

.banner p {
    width: 100%;
    display: inline-block;
}

.text {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding-top: 40px;

}

.main_menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 20px;
    margin: 20px;

}

.main_menu {
    width: 90%;
    margin: auto;
    padding: 0;
    max-width: 2000px;
    justify-content: center;
    align-items: center;
    /* display: flex; */

}

.main_menu img {

    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 15px;


}

.view a {
    text-decoration: none;
    background-color: rgb(45, 157, 45);
    display: inline-block;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 30px;
    height: 40px;
    justify-content: center;
    align-items: center;
    display: flex;
    color: white;
    font-weight: bold;
  
}

.popular {
    text-align: center;
    margin: 10px 0;
    background-color: white;
    justify-content: center;
    align-items: center;
    font-family: cursive} 


/* .popular::before,
        .popular::after{
            content: "";
            position: absolute;
            top: 15px;
            width: 25%;
            height: 2px;
            background: #660707;
        }
        
        .popular::before{
            left: 0;
        
        }

        .popular::after{
            right: 0;
        } */

.down {
    width: 100%;
    background-color: black;
    color: WHITE;
    max-width: 2000px;
    justify-content: center;
    margin: auto;
}

.get img {
    height: 50px;
    background-color: black;
    border-radius: 7px;
}

.down {
    display: flex;
}
.down a{
    
    text-decoration: none;
}

.down ul {
    list-style: none;
    padding: 5px;
    margin-left: 60px;
    margin-bottom: 0px;

}

.down ul li {
    padding: 5px;

}

.footer {


    background-color: black;
    color: white;
    height: 55px;
    margin: auto;
    max-width: 2000px;
}

.footer p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px;
}

    /* =============
        Deals Page
     ================*/
.mode {

    align-items: center;
    gap: 6px;
}

.mode img {
    height: 18px;
}

.navlist {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 5px;
     flex-wrap: wrap;
     justify-content: space-around;


}

.nav {
    max-width: 2000px;
    gap: 3px;
    margin: auto;
    
   
}
.navlist li a {
    width: 100%;
    display: block;
}

.navlist li {

    list-style: none;
    background-color: rgb(255, 255, 255);
    margin: 0;
    height: 50px;
    text-align: center;
    display: flex;
   
    

}

.navlist li a {
    text-decoration: none;
    padding: 15px;
    height: 50px;
    width: 200px;
}

.navlist li {
    border-width: 2px;
    border-style: inherit;
    border-color: rgb(0, 0, 0);
}
.navlist li:hover{
    background-color: rgb(243, 241, 238);
    border-radius: 7px;
}
.alldeals{
    margin: 0;
   padding: 0;
   background-color: rgb(246, 228, 206);
   padding: 64px 20px;
   
}
.alldeals img{
    height: auto;
    width: 100%;
    border-radius: 20px;
    box-sizing: border-box;

    
}
.row{
    display: flex;
    margin: 0;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.row > div{
    flex: 1;
    padding-left: 0px;
    
}
.row p{
    padding-left: 10px;
    padding-right: 10px;
}

.row h3{
   padding-left: 10px;
    padding-right: 10px;
}

.row>p{
    padding-left: 10px;
    padding-right: 10px;
}

.row > div > p{
    padding-left: 10px;
    padding-right: 10px;
}

.main_menu ul{
    display: flex;
    justify-content: center;
    gap: 20px;
  
}

.row>div p{
        
    text-align: center;
}


/* =====================
   Responsive Media Query
===================== */

/* Small devices (≥576px & below tablet) */
@media (max-width: 768px) {

  .header{
    flex-direction: column;
    padding: 15px 20px;
    gap:10px;
    text-align:center;
  }

  .main_menu ul{
    flex-direction: column;
    gap:15px;
    align-items:center;
  }

  .banner{
    flex-direction: column;
  }

  .banner img{
    height:auto;
  }

  .row{
    flex-direction: column;
    gap:20px;
  }

  .down{
    flex-direction: column;
    text-align:center;
    padding:20px;
    max-width: 2000px;
    margin: auto;
    justify-content: space-evenly;
    /* align-items: center; */
  }

}

/* Large screen (≥992px) */
@media (min-width: 992px){

  .header,
  .banner,
  .main_menu,
  .down,
  .footer,
  .nav{
    max-width:2000px;
    margin:auto;
  }

  .main_menu ul{
    justify-content:center;
  }

  .row{
    justify-content:center;
  }

}


/* ===== Final Nav Fix for Mobile ===== */
@media (max-width: 768px){

  .navlist{
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    max-height: 100px;
    overflow-y: auto;
  }

  .navlist li{
    height: auto !important;
    width: 100%;
  }

  .navlist li a{
    width: 100%;
    height: auto !important;
    padding: 10px;
    font-size: 14px;
  }

}
