﻿body {
    background: #f2f2f2;
    font-family: 'Inter', sans-serif;
}

.mobile-frame {
   /* max-width: 420px;*/
    margin: auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.card-section {
    background: white;
    margin-top: 10px;
    padding: 16px;
}

.address-title {
    font-weight: 600;
    margin-top: 10px;
}

.address-sub {
    font-size: 12px;
    color: #777;
}

.warning {
    background: #fff3cd;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.section-header {
    padding: 12px 16px;
    font-weight: 600;
    background: #f6f6f6;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.app-container {
   /* max-width: 480px;*/
    margin: auto;
/*    background: #fff;
*/    min-height: 100vh;
    padding-bottom: 120px;
    padding-top: 10px;
 
}
/*
.app-container {
    padding-bottom: 120px;
}*/

/* HEADER */
.header {
    padding: 16px;
}

.title {
    font-weight: 600;
    font-size: 16px;
}

.sub {
    font-size: 13px;
    color: #666;
}

.meta-row {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

    .header h6 {
        font-weight: 600;
    }

.meta {
    font-size: 13px;
    color: #777;
}

/* CATEGORY */
.categories {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
}

    .categories button {
        border-radius: 20px;
        padding: 6px 14px;
        background: #f1f1f1;
        border: none;
        font-size: 13px;
    }

    .categories .active {
        background: #d1f2eb;
        color: #0f5132;
    }

/* PROMO */
.promo {
    margin: 10px;
    padding: 12px;
    background: #eef7ff;
    border-radius: 10px;
    font-size: 14px;
}

/* MENU ITEM */
.menu-item {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.left {
    flex: 1;
    padding-right: 10px;
}

.name {
    font-weight: 600;
    font-size: 15px;
}


.desc {
    font-size: 13px;
    color: #777;
    margin: 4px 0;
}

.price {
    font-weight: 600;
    font-size: 14px;
}

.right {
    position: relative;
}

    .right img {
        width: 95px;
        height: 95px;
        border-radius: 12px;
        object-fit: cover;
    }

.add-btn {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #198754;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}



.add-btn:active {
    transform: scale(0.95);
}

    .menu-item .info {
        flex: 1;
    }

    .menu-item h6 {
        font-size: 15px;
        font-weight: 600;
    }

    .menu-item p {
        font-size: 13px;
        color: #777;
        margin-bottom: 6px;
    }

.price {
    font-weight: bold;
}

/* IMAGE */
.image-box {
    position: relative;
    text-align: center;
}

    .image-box img {
        width: 90px;
        height: 90px;
        border-radius: 12px;
        object-fit: cover;
    }

/*.cart-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: auto;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    display: none;
    animation: slideUp 0.3s ease;
    z-index: 9999;*/ /* 🔥 ADD THIS */
/*}*/

.cart-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: auto;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

    .cart-modal.active {
        transform: translateY(0);
    }

.modal-content {
    text-align: center;
}

.qty-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

    .qty-box button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #eee;
        font-size: 18px;
    }

.confirm-btn {
    width: 100%;
    padding: 14px;
    background: #14532d;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}


/* CART BAR */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}
.cart-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 12px;
    border-top: 1px solid #eee;
    animation: slideUp 0.3s ease;
    z-index: 1000;
    animation: popUp 0.25s ease;
}
@keyframes popUp {
    0% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/*.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.cart-item .name {
    font-weight: 600;
}

.cart-item .price {
    font-size: 13px;
    color: #777;
}*/

/* QTY CONTROL */
/*.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-control button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #eee;
}*/

/* CHECKOUT BAR */
/*.checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: auto;
    padding: 12px;
    background: white;
    border-top: 1px solid #eee;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-bar button {
    background: #14532d;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
}*/

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.qty-pill {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    border-radius: 20px;
    padding: 4px 10px;
    gap: 10px;
}
    .qty-pill span {
        font-weight: 600;
        font-size: 14px;
    }

    .qty-pill button {
        border: none;
        background: none;
        font-size: 18px;
    }

.app-header {
    display: flex;
    align-items: center;
    padding: 14px;
    font-weight: 600;
}

.back-btn {
    border: none;
    background: none;
    font-size: 18px;
    margin-right: 10px;
}

.progress-container {
    display: flex;
    gap: 10px;
    padding: 0 16px;
}

.progress-item {
    flex: 1;
    text-align: center;
    font-size: 13px;
}

    .progress-item span {
        display: block;
        margin-bottom: 6px;
    }

    .progress-item .line {
        height: 4px;
        border-radius: 2px;
        background: #ddd;
    }

    .progress-item.active .line {
        background: #14532d;
    }

.step {
    flex: 1;
    text-align: center;
    font-size: 13px;
}

.order-preview {
    border-bottom: 1px solid #eee;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
}

/*.order-items {
    padding: 0 16px 10px;
}

.order-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

    .order-item img {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        object-fit: cover;
    }*/

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.item-info {
    flex: 1;
}

/* reuse same pill style */
.qty-pill {
    display: flex;
    align-items: center;
    background: #f3f3f3;
    border-radius: 20px;
    padding: 4px 10px;
    gap: 10px;
}

    .qty-pill button {
        border: none;
        background: none;
        font-size: 16px;
    }

.add-more {
    padding: 16px;
}

    .add-more button {
        width: 100%;
        padding: 12px;
        border: 1px dashed #14532d;
        background: transparent;
        border-radius: 10px;
        color: #14532d;
    }

.line {
    height: 4px;
    background: #ddd;
    margin-top: 6px;
    border-radius: 2px;
}

    .line.active {
        background: #14532d;
    }
.section-title {
    padding: 12px 16px;
    font-weight: 600;
    background: #f5f5f5;
}
.message-box {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.message-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}


.bottom-checkout {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
   /* max-width: 420px;*/
    margin: auto;
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.top-fixed {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    padding-bottom: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding-top: 10px;
/*    padding-top: env(safe-area-inset-top, 10px);
*/    padding-bottom: 10px;
}

/* Terms */
.terms {
    font-size: 12px;
    text-align: center;
    color: #777;
    margin-bottom: 10px;
}

/* Button */
.bottom-checkout button {
    width: 100%;
    padding: 14px;
    background: #14532d;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .qty-box button {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: #f1f1f1;
        font-size: 16px;
    }

.checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: auto;
    padding: 14px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .checkout-bar button {
        background: #14532d;
        color: white;
        border: none;
        padding: 12px 18px;
        border-radius: 10px;
    }


.cart-count-animate {
    display: inline-block;
    animation: bounce 0.4s ease;
}

    .cart-bar a {
        background: #14532d;
        padding: 14px;
        border-radius: 10px;
        color: white;
        display: flex;
        justify-content: space-between;
        text-decoration: none;
        font-weight: 600;
    }
/*.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9000;
    display: none;
}*/

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* IMPORTANT */
}

    .modal-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.modal-box {
    width: 100%;
    max-width: 420px;
    margin: auto;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 16px;
}

/* HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* TEXTAREA */
.modal-box textarea {
    width: 100%;
    height: 100px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
}

.modal-product {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
}

    .modal-product img {
        width: 70px;
        height: 70px;
        border-radius: 10px;
        object-fit: cover;
    }

.modal-info h6 {
    margin: 0;
    font-weight: 600;
}

.modal-info p {
    font-size: 13px;
    color: #777;
    margin: 2px 0;
}

/* PRICE ROW */
.price-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 15px;
    font-size: 14px;
}

.confirm-btn {
    transition: all 0.15s ease;
}

    .confirm-btn:active {
        transform: scale(0.96);
    }

.success-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #14532d;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

    .success-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

/*.modal-overlay {
    opacity: 0;
}

    .modal-overlay.active {
        pointer-events: all;
        opacity: 1;
    }*/

.drag-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 0 auto 10px;
}