*{
    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;
    color: black;
}

.logout-btn {
    padding: 8px 14px !important;
    font-size: 12px;
    font-weight: 500;
}

.hero{
    display: flex;
    padding: 50px;
    gap: 50px;
    margin-left: 50px;
}

.hero img{
    object-fit: contain;
}

.location{
    color: red;
}

.icon{
    gap: 10px;
    display: flex;
    align-items: center;
}

.week{
    display: flex;
    gap: 20px;
}

.hour{
    color: orangered;
}

.stats{
    display: flex;
    justify-content: space-between;
    background-color: rgba(253, 187, 140, 0.473);
    width: 700px;
    margin: auto;
    padding: 20px 50px;
    border-radius: 10px;
}

.star{
    color: rgb(206, 206, 3);
    font-size: large;
}

.time{
    color: red;
    font-size: large;
}

.locate{
    color: orangered;
    font-size: large;
}

.offer{
    margin-top: 70px;
    padding: 50px;
}

.offer h3{
    margin-left: 180px;
    margin-bottom: 40px;
    font-weight: bold;
    font-size: 25px;
}

.cart{
    width: 200px;
    height: 300px;
    border: 1px solid gray;
    padding: 16px 16px 25px;
    border-radius: 15px;
}

.cart img{
    width: 100%;
    height: auto;
    display: block;
}

.cart h4{
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 0;
}

.cart .verity{
    margin-left: 24px;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 400;
    color: gray;
}

.grid{
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.price{
    color: orangered;
    margin-left: 24px;
    font-weight: bold;
}

.quantity-btn{
    margin-left: 15px;
    font-size: 15px;
    color: orangered;
    width: 90px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid gray;
}

.remove-item-btn{
    display:none;
    font-size: 13px;
    color: orangered;
    border: 1px solid gray;
}

.quantity-btn,
.remove-item-btn{
    width:80px;
    height:30px;
    border-radius:15px;
    cursor:pointer;
}

.menu .price-tag,
.cart .price-tag{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.menu .quantity,
.cart-panel .quantity{
    color: gray;
    font-weight: bold;
    font-size: 13px;
}

.deal{
    margin-top: 70px;
    padding: 50px;
}

.deal h3{
    margin-left: 180px;
    margin-bottom: 40px;
    font-weight: bold;
    font-size: 25px;
}

.grid-template{
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
    gap: 7rem;
    justify-content: center;
}

.quantity{
    color: gray;
    font-weight: bold;
    font-size: 13px;
}

.menu{
    display: flex;
    gap: 16px;
    border: 1px solid gray;
    border-radius: 20px;
    padding: 16px;
    min-height: 210px;
    height: auto;
}

.menu .name{
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 0;
}

.menu .ingredent{
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: gray;
}

.price1{
    color: orangered;
    font-weight: bold;
}

.add-btn{
    font-size: 15px;
    color: orangered;
    border-radius: 15px;
    border: 1px solid gray;
    margin-top: 50px;
}

.actions{
    display:flex;
    gap:8px;
    margin-top: 20px;
}

.add-btn,
.remove-btn{
    width:80px;
    height:30px;
    border-radius:15px;
    cursor:pointer;
}

.remove-btn{
    display:none;
    margin-top: 50px;
    font-size: 13px;
    color: orangered;
    border: 1px solid gray;
}

/* ----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;
}

.cart-panel .name{
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
    margin-top: 10px;
}

.cart-panel .ingredent{
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: gray;
}

.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{
    width: auto;
    height: 150px;
    object-fit: cover;
    /* vertical-align: bottom; */
}

.cart-empty{
    color: gray;
    font-size: 14px;
    margin-top: 20px;
}

.cart-panel .price-tag{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cart-panel .quantity{
    margin-right: 0;
    color: inherit;
    font-weight: 500;
    font-size: 15px;
}

.price{
    margin-left: 0;
    margin-top: 20px;
    font-size: 13px;
    color: inherit;
    font-weight: normal;
}

.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%;
    }
}

/* -----News-Letter----- */
.mangiona-news-letter{
    padding: 50px;
    display: flex;
    margin-top: 100px;
}

span{
    color: #f02b01;
}

/* -----news-letter-left----- */
.news-letter-left{
    margin-top: 50px;
}

.news-letter-left h1{
    font-size: 40px;
}

.news-letter-left h3{
    font-size: 30px;
    font-weight: 200;
    margin-top: 30px;
}

.news-letter-left h4{
    font-size: 20px;
    font-weight: 200;
    margin-top: 15px;
}

.update-input{
    margin-top: 40px;
}

input{
    outline: none;
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    width: 300px;
    padding: 10px;
    border-radius: 9px 0px 0px 9px;
}

.update-btn{
    border: none;
    padding: 10px;
    background: #f02b01;
    color: #fff;
    border-radius: 0px 9px 9px 0px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* -----news-letter-right----- */
.news-letter-right{
    width: 400px;
    height: 430px;
    position: relative;
    top: -90px;
}

.news-letter-right img{
    width: 100%;
    height: 100%;
    z-index: 1;
    position: absolute;
    margin-left: 300px;
}

.bg-effect{
     position: absolute;
    width: 360px;
    height: 330px;
    background: #f02b01;
    border-radius: 50px;
    z-index: 1;
    margin-top: 80px;
    left: 370px;
    top: 20px;
}

/* -----footer------ */
footer{
    position: relative;
}
.footer{
    background-color: #f02b01;
    padding: 70px;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.lower{
    display: flex;
}

.logo{
    width: 100px;
    height: 100px;
}

.logo img{
    width: 100%;
    height: 100%;
}

.white-line-3{
    background-image: url("../image/gray-torn-paper-edge-template-ripped-horizontal-strips-with-shadows-border-texture-design-vector 5.png");
    width: 100%;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: -17px;   /* instead of margin-top */
    left: 0;
    z-index: 2;
}

.mangiona-address{
    margin-top: 20px;
}

.mangiona-address p{
    color: #f0e7e7;
    font-weight: bold;
    font-size: 14px;
}

.mangiona-email{
    margin-top: 10px;
}

.mangiona-number{
    margin-top: 10px;
}

.links{
    display: flex;
    gap: 50px;
    margin-top: 30px;
    margin-left: 300px;
}

.links ul{
    list-style: none;
}

.links a{
    text-decoration: none;
    color: #f0e7e7;
    font-weight: bold;
    font-size: 14px;
}

.links li{
    padding: 10px;
}

.sub-title{
    color: #fff;
    font-weight: bold;
}

hr{
    margin-top: 60px;
    width: 900px;
    border: #FDC729 1px solid;
}

.google-btn{
    display: flex;
    align-items: center;
    width: 170px;
    padding: 10px;
    gap: 9px;
    border-radius: 9px;
    border: none;
    position: absolute;
    top: 40%;
    left: 80%;
}

.google-btn iconify-icon{
    font-size: 30px;
}

.apple-btn{
    display: flex;
    align-items: center;
    width: 170px;
    padding: 10px;
    gap: 9px;
    border-radius: 9px;
    border: none;
    position: absolute;
    top: 52%;
    left: 80.1%;
}

.apple-btn iconify-icon{
    font-size: 30px;
}

.mangiona-policy{
    display: flex;
    gap: 50px;
    margin-top: 10px;
    margin-left: 40%;
}

.mangiona-policy a{
    text-decoration: none;
    color: #fff;
}

.icons-links{
    font-size: 23px;
    display: flex;
    gap: 20px;
    margin-left: 84%;
    margin-top: 20px;
}

.first{
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    width: 40px;
    text-align: center;
}

.second{
    background-color: #fff;
    width: 40px;
    border-radius: 5px;
    text-align: center;
    padding: 5px;
}

.third{
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    width: 40px;
}

.icons-links a{
    text-decoration: none;
    color: black;
}

.footer h1{
    color: #e0ac0f;
    font-size: 200px;
    margin-top: 1px;
    text-align: center;
    width: 100%;
}

/* ------Responsive polish------ */
img{
    max-width: 100%;
}

@media (max-width: 1180px){
    body{
        overflow-x: hidden;
    }

    header{
        padding: 0 24px;
    }

    nav,
    .mangiona-nav-links ul,
    .mangiona-order,
    .lower,
    .links,
    .mangiona-policy,
    .icons-links{
        flex-wrap: wrap;
    }

    .mangiona-nav-links ul{
        justify-content: center;
        gap: 12px;
    }

    .mangiona-order{
        gap: 18px;
    }

    .hero{
        margin-left: 0;
        padding: 40px 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats{
        width: min(92%, 700px);
        gap: 18px;
        flex-wrap: wrap;
    }

    .offer h3,
    .deal h3{
        margin-left: 0;
        text-align: center;
    }

    .grid-template{
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 32px;
    }

    .links,
    .mangiona-policy,
    .icons-links,
    .news-letter-right img,
    .bg-effect{
        margin-left: 0;
        left: 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;
    }

    .offer,
    .deal,
    .get-app,
    .mangiona-news-letter,
    .footer{
        padding: 32px 20px;
    }

    .cart{
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }

    .menu{
        height: auto;
        min-height: 210px;
    }

    .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;
    }

    .stats,
    .week,
    .actions,
    .btn,
    .update-input{
        flex-direction: column;
        align-items: center;
    }

    .grid{
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .grid-template{
        grid-template-columns: 1fr;
    }

    .menu{
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .add-btn,
    .remove-btn{
        margin-top: 12px;
    }

    input,
    .update-btn{
        width: 100%;
        border-radius: 9px;
    }

    .cart-panel{
        right: -100%;
        width: 100%;
    }

    .cart-flex img{
        width: 96px;
        height: 96px;
    }

    .top-cart-panel{
        justify-content: space-between;
        gap: 20px;
    }
}
