.rm-order-panel{
    max-width:1200px;
    margin:0 auto;
    box-sizing:border-box;
}

/* STATUS */

.rm-status-bar{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 20px;
    border:1px solid #e5e5e5;
    border-radius:50px;
    background:#fff;
    margin-bottom:30px;
    font-size:16px;
}

.rm-open-dot,
.rm-close-dot{
    width:12px;
    height:12px;
    border-radius:50%;
    display:block;
}

.rm-open-dot{
    background:#32c24d;
}

.rm-close-dot{
    background:#ff3b30;
}

/* PICKUP DELIVERY */

.rm-order-type{
    display:flex;
    max-width:560px;
    margin-bottom:30px;
}

.rm-order-btn{
    flex:1;
    height:60px;
    border:1px solid #666;
    background:#fff;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:all .3s ease;
}

.rm-order-btn.rm-active{
    background:#efb0b0;
}

/* INFO */

.rm-pickup-delivery-info{
    display:flex;
    gap:40px;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.rm-info-item{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:15px;
}

.rm-icon{
    font-size:20px;
}

/* FILTERS */

.rm-filter-row{
    display:flex;
    align-items:flex-start;
    gap:25px;
}

.rm-category-dropdown{
    position:relative;
    width:300px;
}

.rm-dropdown-btn{
    width:100%;
    height:60px;
    border:1px solid #d9d9d9;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    font-size:16px;
    cursor:pointer;
}

/* DROPDOWN */

.rm-dropdown-list{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    z-index:999;
    border:1px solid #ddd;
    border-top:none;
}

.rm-category-item{
    padding:14px 20px;
    font-size:16px;
    cursor:pointer;
}

.rm-category-item:hover{
    background:#f5f5f5;
}

.rm-category-item.active{
    background:#f5f5f5;
    font-weight:600;
}

.rm-divider{
    width:1px;
    height:60px;
    background:#d9d9d9;
}

.rm-food-tabs{
    display:flex;
    gap:40px;
}

.rm-food-tab{
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    padding-bottom:8px;
}

.rm-food-tab.active{
    color:#efb0b0;
    border-bottom:3px solid #efb0b0;
}

/* PRODUCTS */

#rm-products-container{
    margin-top:40px;
}

.rm-products-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.rm-product-card{
    display:flex;
    justify-content:space-between;
    align-items:stretch;
    border:1px solid #e5e5e5;
    border-radius:12px;
    background:#fff;
    padding:18px;
    min-height:220px !important;
    box-sizing:border-box;
    cursor:pointer;
    transition:all .3s ease;
}

.rm-product-card:hover{
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transform:translateY(-2px);
}

.rm-product-content{
    flex:1;
    padding-right:15px;
    min-width:0;
    display:flex;
    flex-direction:column;
}

.rm-product-title{
    margin:0 0 10px;
    font-size:18px;
    font-weight:700;
    line-height:1.3;
    text-transform:uppercase;
    text-align:left;
}

.rm-product-description{
    font-size:14px;
    line-height:1.6;
    color:#555;
    margin-bottom:12px;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.rm-product-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:15px;
}

.rm-tag{
    display:inline-flex;
    align-items:center;
    background:#f7f7f7;
    border:1px solid #e5e5e5;
    border-radius:20px;
    padding:4px 10px;
    font-size:11px;
    font-weight:600;
    color:#555;
}

.rm-product-price{
    margin-top:auto;
    font-size:20px;
    font-weight:700;
    color:#111;
}

.rm-product-price del{
    opacity:.5;
    margin-right:6px;
}

/* IMAGE SIZE - SAME ON DESKTOP/TABLET/MOBILE */

.rm-product-image{
    width:200px !important;
    min-width:200px !important;
    flex-shrink:0;
}

.rm-product-image img{
    width:200px !important;
    height:220px !important;
    object-fit:cover !important;
    display:block;
}

.rm-loading,
.rm-no-products{
    text-align:center;
    padding:40px;
}

/* DELIVERY MODAL */

#rm-delivery-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    z-index:99999;
    justify-content:center;
    align-items:center;
}

.rm-delivery-modal-box{
    width:90%;
    max-width:650px;
    background:#fff;
    padding:40px;
    border-radius:12px;
    position:relative;
    box-sizing:border-box;
}

.rm-delivery-modal-box h3{
    margin:0 0 25px;
    font-size:28px;
}

#rm-close-modal{
    position:absolute;
    right:20px;
    top:15px;
    font-size:34px;
    cursor:pointer;
}

.rm-modal-field{
    margin-bottom:20px;
}

.rm-modal-field label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.rm-modal-field input{
    width:100%;
    height:60px;
    padding:0 15px;
    font-size:18px;
    box-sizing:border-box;
}

#rm-check-delivery,
#rm-save-delivery{
    height:55px;
    padding:0 30px;
    border:none;
    cursor:pointer;
    font-size:18px;
}

#rm-check-delivery{
    background:#111;
    color:#fff;
}

#rm-save-delivery{
    background:#efb0b0;
    margin-top:20px;
}

#rm-delivery-result{
    margin-top:20px;
    font-size:18px;
}

/* TABLET */

@media (max-width:1200px){

    .rm-products-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* MOBILE */

@media(max-width:768px){

    .rm-order-type{
        display:flex;
        flex-direction:row;
        max-width:100%;
    }

    .rm-order-btn{
        flex:1;
        height:50px;
        font-size:16px;
    }

    .rm-pickup-delivery-info{
        flex-direction:column;
        gap:15px;
    }

    .rm-filter-row{
        flex-direction:column;
        gap:20px;
    }

    .rm-divider{
        display:none;
    }

    .rm-category-dropdown{
        width:100%;
    }

    .rm-food-tabs{
        gap:20px;
        flex-wrap:wrap;
    }

    .rm-products-grid{
        grid-template-columns:1fr;
        gap:15px;
    }

    .rm-product-card{
        display:flex;
        justify-content:space-between;
        align-items:stretch;
        gap:12px;
        padding:12px;
        min-height:150px !important;
        overflow:hidden;
    }

    .rm-product-content{
        flex:1;
        min-width:0;
        padding-right:0;
        display:flex;
        flex-direction:column;
    }

    .rm-product-image{
        width:120px !important;
        min-width:120px !important;
        align-self:stretch;
    }

    .rm-product-image img{
        width:100% !important;
        height:100% !important;
        min-height:150px !important;
        object-fit:cover !important;
        display:block;
        border-radius:6px;
    }

    .rm-product-title{
        font-size:14px;
        line-height:1.3;
        margin-bottom:8px;
    }

    .rm-product-description{
        font-size:12px;
        line-height:1.5;
        -webkit-line-clamp:2;
        overflow:hidden;
    }

    .rm-product-price{
        font-size:16px;
        margin-top:auto;
    }

}







/* =========================
   PRODUCT ACTIONS
========================= */

.rm-product-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:15px;
}

.rm-qty-box{
    display:flex;
    align-items:center;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
}

.rm-qty-minus,
.rm-qty-plus{
    width:36px;
    height:36px;
    border:none;
    background:#f5f5f5;
    cursor:pointer;
    font-size:18px;
    font-weight:700;
}

.rm-qty-input{
    width:45px;
    height:36px;
    border:none;
    text-align:center;
    font-size:15px;
    font-weight:600;
    background:#fff;
}

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

.rm-add-cart{
    width:42px;
    height:42px;
    border:1px solid #000;
    border-radius:50%;
    background:#e5e5e5;
    color:#000;
    cursor:pointer;
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .3s ease;
}

.rm-add-cart:hover{
    background:#000;
    color:#fff;
    border:1px solid #fff;
}

.rm-add-cart{
    box-shadow:0 2px 6px rgba(0,0,0,.12);
}

/* MOBILE */

@media(max-width:768px){

    .rm-product-actions{
        margin-top:10px;
    }

    .rm-qty-minus,
    .rm-qty-plus{
        width:30px;
        height:30px;
    }

    .rm-qty-input{
        width:35px;
        height:30px;
        font-size:13px;
    }

    .rm-add-cart{
        width:36px;
        height:36px;
        font-size:15px;
    }

}


#rm-subcategory-wrapper{
    margin-top:15px;
}

.rm-subcategory-dropdown{
    position:relative;
    width:300px;
}

.rm-subcategory-btn{
    width:100%;
    height:58px;
    border:1px solid #ddd;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    cursor:pointer;
}

.rm-subcategory-list{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border:1px solid #ddd;
    z-index:999;
    max-height:300px;
    overflow-y:auto;
}

.rm-subcategory-item{
    padding:12px 20px;
    cursor:pointer;
    border-bottom:1px solid #eee;
}

.rm-subcategory-item:hover{
    background:#f5f5f5;
}

.rm-subcategory-item.active{
    background:#efb0b0;
}



.rm-filter-row{
    display:flex;
    align-items:flex-start;
    gap:20px;
}

#rm-subcategory-wrapper{
    margin-top:0 !important;
    padding-top:0 !important;
    align-self:flex-start;
}

.rm-category-dropdown,
.rm-subcategory-dropdown{
    margin:0;
}
