@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Basic Styling */
.rmo-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    font-family: 'Outfit', sans-serif;
    color: #2c3e50;
}

.rmo-menu-list {
    flex: 2;
    min-width: 60%;
}

.rmo-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.rmo-menu-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.rmo-menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.rmo-item-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f4f4f4;
}

.rmo-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rmo-menu-item:hover .rmo-item-image-wrapper img {
    transform: scale(1.08);
}

.rmo-item-content-wrapper {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rmo-item-title {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.rmo-item-desc {
    font-size: 0.95rem;
    color: #646477;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.rmo-item-variants {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #f0f0f5;
}

.rmo-variant-group {
    margin-bottom: 12px;
}

.rmo-variant-group:last-child {
    margin-bottom: 0;
}

.rmo-variant-group label {
    font-size: 0.85em;
    display: block;
    color: #4a4a5e;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rmo-variant-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e1e1e8;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2c3e50;
    font-family: 'Outfit', sans-serif;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rmo-variant-select:focus {
    outline: none;
    border-color: #ff512f;
    box-shadow: 0 0 0 3px rgba(255, 81, 47, 0.1);
}

.rmo-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #eaeaea;
    padding-top: 20px;
    margin-top: auto;
}

.rmo-price {
    font-weight: 800;
    color: #ff512f;
    font-size: 1.4rem;
}

.rmo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rmo-quantity-input {
    width: 55px;
    padding: 10px 5px;
    border: 1px solid #e1e1e8;
    border-radius: 8px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.rmo-quantity-input:focus {
    outline: none;
    border-color: #ff512f;
}

.rmo-add-to-cart-btn {
    background: linear-gradient(135deg, #ff7b54, #ff512f);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.2);
}

.rmo-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 81, 47, 0.3);
}

.rmo-add-to-cart-btn:active {
    transform: translateY(1px);
}

.rmo-category-title {
    width: 100%;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 30px;
    margin-top: 50px;
    position: relative;
    padding-bottom: 15px;
}

.rmo-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(135deg, #ff7b54, #ff512f);
    border-radius: 3px;
}

.rmo-category-title:first-child {
    margin-top: 0;
}

/* Sidebar Cart */
.rmo-sidebar {
    flex: 1;
    min-width: 350px;
    position: sticky;
    top: 40px;
    align-self: flex-start;
}

.rmo-cart, .rmo-checkout-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.7);
}

.rmo-cart h2, .rmo-checkout-section h3 {
    margin-top: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#rmo-cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for Cart */
#rmo-cart-items::-webkit-scrollbar {
    width: 6px;
}
#rmo-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#rmo-cart-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
#rmo-cart-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.rmo-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f5;
}

.rmo-cart-item:last-child {
    border-bottom: none;
}

.rmo-cart-item-info {
    flex-grow: 1;
    padding-right: 15px;
}

.rmo-cart-item-title {
    font-weight: 700;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    line-height: 1.3;
}

.rmo-cart-item-price {
    color: #ff512f;
    font-weight: 700;
    font-size: 1rem;
}

.rmo-cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rmo-cart-total {
    font-size: 1.3rem;
    text-align: right;
    border-top: 2px dashed #eaeaea;
    padding-top: 25px;
    margin-top: 15px;
    color: #1a1a2e;
    font-weight: 600;
}

#rmo-total-price {
    color: #ff512f;
    font-size: 1.8rem;
    font-weight: 800;
    margin-left: 10px;
}

.rmo-clear-cart-btn {
    width: 100%;
    margin-top: 25px;
    background-color: transparent;
    color: #646477;
    border: 2px solid #e1e1e8;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.rmo-clear-cart-btn:hover {
    background-color: #fff1f0;
    color: #ff512f;
    border-color: #ff512f;
}

/* Checkout Form */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #4a4a5e;
    font-size: 0.95rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e1e8;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #ff512f;
    box-shadow: 0 0 0 4px rgba(255, 81, 47, 0.1);
    background: #fff;
}

.rmo-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    margin-top: 15px;
}

.rmo-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.35);
}

.rmo-btn-primary:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .rmo-container {
        flex-direction: column;
        padding: 20px 15px;
    }
    .rmo-sidebar {
        order: -1; 
        position: static; 
        min-width: 100%;
    }
}
