*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: open sans, arial;
}

/* ----------header--------- */
header{
    padding: 0px 50px;
    margin-top: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    width: 100%;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.cart-container{
    position: relative;
    display: inline-block;
}

.cart-icon{
    font-size: 30px;
    cursor: pointer;
}

.cart-count2 {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: red;
    color: white;
}

.mangiona-logo{
  width: 50px;
  height: 50px;
}

.mangiona-logo img{
    width: 100%;
    height: 100%;
    margin-left: 20px;
}

.mangiona-nav-links ul{
    list-style: none;
    display: flex;
    gap: 5px;
}

.mangiona-nav-links li{
    display: inline-block;
    padding: 10px 15px;
}

.mangiona-nav-links a{
    text-decoration: none;
    color: black;
    background-color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: 0.3s;
    white-space: nowrap;
}

.mangiona-nav-links a.active{
    background-color: #f02b01;
    color: #fff;
}

.mangiona-order{
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.order-btn{
    background-color: #f02b01;
    color: #fff;
    padding: 7px 12px;
    border-radius: 8px;
    border: none;
    width: auto;
    height: auto;
    font-size: 12px;
}

.order-btn:hover{
    background-color: #df330c;
}
.order-btn:active{
    background-color: #772311;
}

.nav-username {
    display: flex !important;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.nav-username span {
    font-size: 14px;
}

.logout-btn {
    padding: 8px 14px !important;
    font-size: 12px;
    font-weight: 500;
}

/* ------------hero----------- */
.hero{
  display: flex;
  margin-top: 80px;
  padding: 50px;
  gap: 100px;
}

/* ------hero-left--------- */
h1{
    font-size: 40px;
    font-weight: 600;
}

.hero-left{
    margin-left: 30px;
    margin-top: 40px;
}

.hero-left p{
    font-size: small;
    margin-top: 20px;
    font-weight: 100;
}

.input-box{
    margin-top: 80px;
    background-color: #fff;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 45px;
    width: 350px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
}

input{
    outline: none;
    border: none;
}

.search-btn{
    background-color: #f02b01;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 45px;
    width: 90px;
    margin-left: 40px;
}

/* -------hero-right------- */
.hero-right{
    width: 50%;
    position: relative;
    margin-left: 200px;
}

.arrow{
    width: 200px;
    height: 200px;
    background-image: url(Group\ 53.png);
    background-repeat: no-repeat;
    position: absolute;
    left: 80%;
    top: -40px;
}

.image{
    background-image: url(Rectangle\ 4189.png);
    width: 400px;
    height: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 60px;
    top: -10px;
}

.image img{
    width: 80%;
    height: 80%;
    border-radius: 30px;
    position: absolute;
    z-index: 3;
    top: 50px;
    left: 50px;
}

.bg-shape-1{
    position: absolute;
    width: 300px;
    height: 300px;
    background: #f02b01;
    border-radius: 30px;
    top: 40px;
    left: 120px;
    z-index: 1;
    transform: rotate(70deg);
    opacity: 0.6;
}

.summary{
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: gray;
    position: absolute;
    top: -35px;
    left: -25px;
    border-radius: 20px;
    z-index: 3;
    margin-top: 290px;
    width: 200px;
    height: 100px;
}

.summary p{
    text-align: center;
    padding: 0;
    font-size: 12px;
}
.summary .span-left{
    color: #f02b01;
    font-size: 20px;
    padding: 15px 8px 0px;
}
.summary .span-right{
    color: #f02b01;
    font-size: 20px;
    margin-left: 150px;
}

/* ---------sub-hero-------- */
.sub-hero{
    width: 100%;
    margin-top: 70px;
}

.mangiona-offer{
     background: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("4160 1.png");
    width: 80%;
    height: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin: auto;
    border-radius: 50px;
}

/* ---------list-of-restaurants-------- */
.restaurant-list{
    text-align: center;
    margin-top: 90px;
    width: 100%;
}

.restaurant-list h3{
    color: #f02b01;
    font-size: 18px;
    font-weight: 500;
}

.restaurant-list h2{
    margin-top: 20px;
}

.restaurant-list p{
    margin-top: 20px;
    font-size: 14px;
    font-weight: 100;
}

.grid{
    display: grid;
    grid-template-columns: 100px 100px 100px 100px;
    grid-template-rows: 100px 100px 100px;
    gap: 8rem;
    justify-content: center;
    margin-top: 70px;
    width: 92%;
}

.grid a{
    text-decoration: none;
    color: rgb(240, 30, 50);
}

.card{
    background: #fff;
    box-shadow: 0px 4px  10px rgba(0,0,0,0.3);
    width: 200px;
    height: 200px;
    padding: 1.5em;
    border-radius: 10px;
    transition: 0.3s ease;
}

.card:hover{
    transform: scale(1.1);
    background-color:  #FDC729;
    cursor: pointer;
}

.card img{
    width: 70%;
    height: 50%;
    border-radius: 10px;
}

.card h5{
    margin-top: 10px;
    font-size: 12px;
    font-weight: 400;
}

.icon{
    display: block;
    text-align: left;
}

.card iconify-icon{
    color: #f02b01;
    margin-top: 10px;
}

.card span{
    color: #f02b01;
}

.card .p{
    color: black;
    font-size: 13px;
}

.card .location{
    font-size: 13px;
    margin-right: 3px;
}

/* ----cart-overlay----- */
.bg-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);

    display:none;
}

.cart-panel{
    position:fixed;
    top:0;
    right:-700px;

    width:550px;
    height:100vh;
    box-sizing: border-box;

    background:white;

    transition:0.3s ease;

    z-index:1000;

    padding:20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-panel.active{
    right:0;
}

.bg-overlay.active{
    display:block;
}

.close-btn{
    width: 50px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid gray;
}

.name{
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
    margin-top: 10px;
}

.ingredent{
    margin-top: 0;
    font-size: 12px;
    font-weight: 500;
    color: gray;
    margin-top: 5px;
}

.actions2{
    display:flex;
    gap:8px;
    align-items: center;
    margin-top: 40px;
    margin-left: 20px;
}

.add-btn2{
    font-size: 15px;
    color: #fff;
    border: none;
    margin-top: 5px;
    background-color: #ff4d00;
}

.add-btn2 span{
    color: #fff;
}

.add-btn2,
.remove-btn2{
    width:31px;
    height:30px;
    border-radius: 100%;
    cursor:pointer;
}

.remove-btn2{
    display:none;
    margin-top: 5px;
    font-size: 15px;
    color: gray;
    border: 1px solid gray;
}

.cart-items h2{
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
}

.cart-items{
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.cart-flex{
    display: flex;
    gap: 10px;
    /* align-items: center; */
    margin-top: 20px;
}

.cart-flex img{
    height: 150px;
    object-fit: cover;
    /* vertical-align: bottom; */
}

.cart-empty{
    color: gray;
    font-size: 14px;
    margin-top: 20px;
}

.price-tag{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.quantity{
    font-weight: 500;
    font-size: 15px;
}

.price{
    margin-top: 20px;
    font-size: 13px;
}

.top-cart-panel{
    display: flex;
    gap: 10rem;
    margin-bottom: 20px;
}

.top-cart-panel h2{
    font-size: 30px;
}

.cart-notification{
    background:#fff3cd;
    color:#f5a300;
    padding:15px;
    border-radius:8px;
    font-weight:bold;
    text-align:center;
}

.cart-count{
    font-size:18px;
    color: #f5a300;
}

.cart-items-summary{
    display: block;
    flex-shrink: 0;
    padding-top: 15px;
    background: #fff;
}

.cart-items-summary p{
    display: block;
}

.cart-items-summary .checkout-btn{
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #ff4d00;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 600px){
    .cart-panel{
        right: -100%;
        width: 100%;
    }
}

/* ------Responsive polish------ */
img{
    max-width: 100%;
}

@media (max-width: 1180px){
    body{
        overflow-x: hidden;
    }

    header{
        padding: 0 24px;
    }

    nav,
    .mangiona-order,
    .lower,
    .links,
    .mangiona-policy,
    .icons-links{
        flex-wrap: wrap;
    }

    .mangiona-nav-links ul{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .mangiona-nav-links li{
        padding: 8px;
    }

    .mangiona-order{
        gap: 18px;
    }

    .hero{
        gap: 48px;
        padding: 40px 24px;
    }

    .hero-right,
    .links,
    .mangiona-policy,
    .icons-links,
    .news-letter-right img,
    .bg-effect{
        margin-left: 0;
        left: auto;
    }

    .grid{
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 32px;
    }

    .card{
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .google-btn,
    .apple-btn{
        position: static;
        margin-top: 16px;
    }

    hr{
        width: 100%;
    }

    .footer{
        height: auto;
    }
}

@media (max-width: 900px){
    nav,
    .hero,
    .mangiona-news-letter{
        justify-content: center;
        text-align: center;
    }

    .hero,
    .mangiona-news-letter{
        flex-direction: column;
        align-items: center;
    }

    .hero-right{
        width: min(100%, 420px);
        min-height: 420px;
    }

    .arrow,
    .summary{
        display: none;
    }

    .image{
        position: relative;
        left: auto;
        top: auto;
        width: min(100%, 360px);
        height: 360px;
        margin: 0 auto;
    }

    .mangiona-offer{
        width: 92%;
        border-radius: 28px;
    }

    .get-app,
    .mangiona-news-letter,
    .footer{
        padding: 32px 20px;
    }

    .overlay{
        position: relative;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mangiona-get-app{
        height: auto;
    }

    .get-app-right,
    .news-letter-right,
    .bg-effect{
        display: none;
    }

    .links{
        justify-content: center;
    }

    .footer h1{
        font-size: clamp(52px, 18vw, 150px);
    }
}

@media (max-width: 640px){
    header{
        padding: 0 14px;
        margin-top: 12px;
    }

    .mangiona-logo img{
        margin-left: 0;
    }

    .mangiona-nav-links a{
        display: block;
        padding: 8px 12px;
        font-size: 12px;
    }

    h1,
    .news-letter-left h1{
        font-size: 30px;
    }

    .input-box{
        width: 100%;
    }

    .search-btn{
        margin-left: 0;
    }

    .restaurant-list{
        padding: 0 18px;
    }

    .btn,
    .update-input{
        flex-direction: column;
        align-items: stretch;
    }

    .fill,
    .update-btn{
        width: 100%;
        border-radius: 9px;
    }

    .cart-flex img{
        width: 96px;
        height: 96px;
    }

    .top-cart-panel{
        justify-content: space-between;
        gap: 20px;
    }
}
