*{
    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-section-------- */
.hero{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 50px;
    width: 100%;
    padding: 0 50px;
}

.hero-left{
    width: 60%;
}

.hero-right{
    width: 40%;
}

.order-summary{
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.order-summary h3{
    font-size: 22px;
    margin-bottom: 18px;
}

.checkout-cart-items{
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 380px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.order-summary-details{
    border-top: 1px solid #eee;
    padding-top: 18px;
    display: grid;
    gap: 10px;
}

.summary-row{
    display: flex;
    justify-content: space-between;
    color: #4a4a4a;
    font-size: 15px;
}

.total-row{
    font-weight: 700;
    font-size: 16px;
}

.confirm-payment-btn{
    width: 100%;
    margin-top: 18px;
    height: 48px;
    background: #f02b01;
    color: #fff;
    border: none;
}

.delivery-section h3{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 2px;
}

.address-location{
    display: flex;
    gap: 5px;
}

.location{
    color: red;
}

/* .delivery-address{
    font-size: 15px;
    font-weight: 200;
    color: gray;
    margin-bottom: 20px;
} */

.delivery-address.empty {
  color: gray;
  font-style: italic;
}
.delivery-address{
  padding: 8px;
  width: 50%;
  outline: none;
}

.delivery-address.error{
        border: 1px solid #e74c3c;
        box-shadow: 0 0 0 3px rgba(231,76,60,0.06);
}

.address-btn{
    background-color: #f02b01;
    color: #fff;
    padding: 7px 12px;
    border-radius: 8px;
    border: none;
    width: auto;
    height: auto;
    font-size: 12px;
    margin-top: 10px;
}

/* -----Payment-Section-------- */
.title{
    text-align: center;
    margin-top: 100px;
    background-color: #fff3cd;
    padding: 15px;
    font-weight: bold;
    font-size: 25px;
}

.h3{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 20px;
}

.payment-option{
    display:flex;
    align-items:center;
    gap:15px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:15px;
    margin-bottom:10px;
    cursor:pointer;
}

.payment-option img{
    height:30px;
}

.success-page{
    display:none;
}

.order-status{
    text-align: center;
    margin-top: 20px;
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

.order-success{
    text-align: center;
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}

.success-page{
    display: none;
    background: #fff;
    max-width: 1100px;
    margin: 40px auto 80px;
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.08);
    padding: 40px;
}

.success-page .title{
    text-align: left;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 30px;
}

.success-page .order-status,
.success-page .order-success{
    text-align: left;
}

.success-page .order-success{
    margin-bottom: 30px;
}

.success-content{
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

.success-page .address{
    background: #f9fafc;
    border: 1px solid #e8eaee;
    border-radius: 24px;
    padding: 28px;
    display: grid;
    gap: 10px;
}

.success-page .address-label{
    font-size: 12px;
    font-weight: 700;
    color: #8e96a8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.success-page .address-line1{
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #141823;
}

.success-page .address-text{
    margin: 0;
    color: #555b6e;
    line-height: 1.75;
    font-size: 15px;
}

.success-page .summary{
    background: #fff;
    border: 1px solid #e8eaee;
    border-radius: 24px;
    padding: 28px;
    display: grid;
    gap: 16px;
}

.success-page .summary p{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f1f4;
    color: #4b5160;
    font-size: 15px;
}

.success-page .summary p:last-child{
    border-bottom: none;
    padding-bottom: 0;
}

.success-page .summary span:first-child{
    color: #7a8290;
    font-weight: 600;
}

.success-page .summary span:last-child{
    color: #151b29;
    font-weight: 700;
}

.success-page button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f02b01;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 32px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .success-content{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .success-page{
        padding: 24px;
        margin: 24px auto 60px;
    }
}

/*----------Card-Form-------- */
.card-form{
    border:1px solid #ddd;
    border-radius:10px;
    padding:20px;
    margin-top:15px;
    display:none;
}

.card-form input{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
    margin-top:5px;
    margin-bottom:15px;
    outline:none;
}

.expiry{
    display:flex;
    gap:10px;
}

.expiry div{
    flex:1;
}

.card-form button{
    background:#f02b01;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:6px;
    cursor:pointer;
}

/* ----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; */
}

.checkout-item{
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.checkout-item-info .name{
    font-weight: 600;
    margin-bottom: 4px;
}

.checkout-item-info .ingredent{
    color: gray;
    font-size: 13px;
    margin: 0;
}

.checkout-quantity,
.checkout-price{
    font-size: 14px;
    color: #444;
}

.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: 1000px){
    .hero{
        flex-direction: column;
        padding: 0 20px;
    }

    .hero-left,
    .hero-right{
        width: 100%;
    }
}

@media (max-width: 600px){
    .cart-panel{
        right: -100%;
        width: 100%;
    }
}
