/* Food Truck Minimal Menu - core styles */

.ftm-wrapper{
    padding:1.2rem;
    padding-bottom:5.2rem; /* space for sticky bar */
    display:flex;
    flex-direction:column;
    gap:2.4rem;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.ftm-category{
    display:flex;
    flex-direction:column;
    gap:1.2rem;
}

.ftm-items{
    display:flex;
    flex-direction:column;
    gap:1rem;
}

.ftm-item{
    background:#ffffff;
    border-radius:0.9rem;
    box-shadow:0 8px 18px rgba(15,23,42,0.08);
    padding:0.85rem 0.9rem 0.9rem;
    display:flex;
    flex-direction:column;
    gap:0.8rem;
}

/* Card layout with image + content */

.ftm-item-main{
    display:flex;
    flex-direction:column;
    gap:0.7rem;
    align-items:stretch;
}


.ftm-item-media{
    flex:0 0 auto;
    align-self:center;
}


.ftm-item-media img{
    width:96px;
    height:96px;
    object-fit:cover;
    border-radius:0.9rem;
    display:block;
    cursor:zoom-in;
}

/* Lightbox (product image zoom) */

.ftm-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.78);
    display:none;
    align-items:center;
    justify-content:center;
    padding:1.2rem;
    z-index:99999;
}

.ftm-lightbox.ftm-lightbox-open{
    display:flex;
}

.ftm-lightbox-inner{
    position:relative;
    max-width:min(92vw, 920px);
    max-height:88vh;
}

.ftm-lightbox-img{
    display:block;
    max-width:100%;
    max-height:88vh;
    border-radius:1rem;
    background:#111;
}

.ftm-lightbox-close{
    position:absolute;
    top:-10px;
    right:-10px;
    width:40px;
    height:40px;
    border-radius:999px;
    border:none;
    background:#ffffff;
    cursor:pointer;
    font-size:20px;
    line-height:40px;
    box-shadow:0 8px 18px rgba(15,23,42,0.22);
}


.ftm-item-body{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    gap:0.4rem;
}

.ftm-item-title-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:0.75rem;
}

.ftm-item-title{
    font-size:1.05rem;
    font-weight:600;
    margin:0;
    color:#111827;
}

.ftm-item-price{
    font-weight:700;
    white-space:nowrap;
    font-size:0.98rem;
    color:#16a34a;
}

.ftm-item-desc{
    font-size:0.86rem;
    color:#4b5563;
}

.ftm-item-desc p{
    margin:0.16rem 0;
}

/* Fields */

.ftm-field-row{
    margin-top:0.25rem;
    display:flex;
    flex-direction:column;
    gap:0.25rem;
}

.ftm-field-label{
    font-size:0.78rem;
    font-weight:600;
    color:#6b7280;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.ftm-variation-select,
.ftm-drink-select{
    width:100%;
    padding:0.4rem 0.55rem;
    border-radius:0.6rem;
    border:1px solid #e5e7eb;
    font-size:0.88rem;
    background:#f9fafb;
}

.ftm-variation-select:focus,
.ftm-drink-select:focus{
    outline:none;
    border-color:#0ea5e9;
    box-shadow:0 0 0 1px rgba(14,165,233,0.2);
    background:#ffffff;
}

/* Extras */

.ftm-extras-list{
    display:flex;
    flex-wrap:wrap;
    gap:0.35rem 0.55rem;
}

.ftm-extra-item{
    display:inline-flex;
    align-items:center;
    gap:0.25rem;
    font-size:0.84rem;
    background:#f9fafb;
    border-radius:999px;
    padding:0.2rem 0.55rem;
}

.ftm-extra-item input[type="checkbox"]{
    accent-color:#16a34a;
}

.ftm-extra-price{
    font-weight:600;
    color:#22c55e;
}

/* Notes */

.ftm-notes{
    width:100%;
    min-height:2.1rem;
    border-radius:0.7rem;
    border:1px solid #e5e7eb;
    padding:0.4rem 0.55rem;
    font-size:0.84rem;
    resize:vertical;
}

.ftm-notes:focus{
    outline:none;
    border-color:#0ea5e9;
    box-shadow:0 0 0 1px rgba(14,165,233,0.18);
}

/* Footer (qty + add button) */

.ftm-footer-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:0.65rem;
    margin-top:0.3rem;
}

.ftm-qty-wrap{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    border:1px solid #e5e7eb;
    overflow:hidden;
}

.ftm-qty-btn{
    width:2rem;
    height:2rem;
    border:none;
    background:#f3f4f6;
    font-size:1rem;
    cursor:pointer;
}

.ftm-qty-input{
    width:2.4rem;
    height:2rem;
    border:none;
    border-left:1px solid #e5e7eb;
    border-right:1px solid #e5e7eb;
    text-align:center;
    font-size:0.92rem;
    -moz-appearance:textfield;
}

.ftm-qty-input::-webkit-outer-spin-button,
.ftm-qty-input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

.ftm-btn{
    border:none;
    border-radius:999px;
    padding:0.55rem 1.2rem;
    font-size:0.9rem;
    font-weight:600;
    cursor:pointer;
    background:#111827;
    color:#ffffff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:0.35rem;
    min-width:7rem;
}

.ftm-btn-disabled,
.ftm-btn:disabled{
    opacity:0.4;
    cursor:not-allowed;
}

/* Sticky bar */

.ftm-sticky-bar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    pointer-events:none;
    z-index:9999;
}

.ftm-sticky-inner{
    max-width:640px;
    margin:0 auto 0.9rem;
    padding:0 1.2rem;
    display:flex;
    justify-content:flex-end;
}

.ftm-sticky-btn{
    pointer-events:auto;
    box-shadow:0 18px 35px rgba(15,23,42,0.45);
    background:#16a34a;
}

.ftm-sticky-hidden{
    opacity:0;
    transform:translateY(100%);
    transition:opacity 0.18s ease,transform 0.18s ease;
    pointer-events:none;
}

.ftm-sticky-bar.ftm-visible{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

/* Toast */

.ftm-toast{
    position:fixed;
    left:50%;
    bottom:4.2rem;
    transform:translateX(-50%);
    background:#111827;
    color:#ffffff;
    padding:0.55rem 0.9rem;
    border-radius:999px;
    font-size:0.84rem;
    box-shadow:0 14px 30px rgba(15,23,42,0.5);
    z-index:10000;
    opacity:0;
    pointer-events:none;
}

.ftm-toast.ftm-toast-visible{
    opacity:1;
    pointer-events:auto;
    transition:opacity 0.2s ease;
}

/* Horizontal layout (desktop) */

@media (min-width: 768px){
    .ftm-horizontal .ftm-items{
        flex-direction:row;
        flex-wrap:wrap;
        gap:1.1rem;
    }

    .ftm-horizontal .ftm-item{
        width:calc(50% - 0.55rem);
    }
}

@media (min-width: 1024px){
    .ftm-horizontal .ftm-item{
        width:calc(33.333% - 0.7rem);
    }
}

/* Very small screens tweaks */

@media (max-width: 480px){
    .ftm-item-main{
        align-items:flex-start;
    }
}


/* Desktop layout tuning (keeps mobile exactly as v1.4.1) */

@media (min-width: 768px){
    .ftm-wrapper{
        max-width: 1100px;
        margin: 0 auto;
    }
    .ftm-horizontal .ftm-items{
        justify-content:center;
        gap:1.5rem;
    }
}

@media (min-width: 1024px){
    .ftm-horizontal .ftm-item{
        width:calc(50% - 1rem);
    }
    .ftm-sticky-inner{
        max-width:1100px;
        padding:0 1.6rem;
    }
}
