.table-row {
    border-collapse: collapse;
    /* Collapse borders to avoid double borders */
    width: 100%;
    /* Set table width */
}

.table-row tr {
    border-top: 2px solid #ccc;
    /* Top border for each row */
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    animation: fadeIn 0.3s ease-in-out;
    /* Smooth fade in */
}

.modal.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    background-color: #fff;
    /* White background */
    margin: 10% auto;
    /* 15% from the top and centered */
    padding: 20px;
    /* Padding inside the modal */
    border: 1px solid #888;
    /* Border around the modal */
    width: 80%;
    /* Set width to 80% of the viewport */
    max-width: 600px;
    /* Optional: Set a max width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Optional: Add shadow */
    border-radius: 8px;
    /* Optional: Rounded corners */
}

.container2 {
    background-color: #fff;
    /* White background */
    margin: 5% auto;
    /* 5% from the top and centered */
    padding: 20px;
    /* Padding inside the modal */
    border: 1px solid #888;
    /* Border around the modal */
    width: 90%;
    /* Set width to 90% of the viewport */
    max-width: 400px;
    /* Optional: Set a max width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Optional: Add shadow */
    border-radius: 8px;
    /* Optional: Rounded corners */
    position: relative;
    /* Ensure proper positioning */
    animation: slideIn 0.3s ease-out;
    /* Smooth slide in */
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-hr {
    border: none;
    /* Remove default border */
    height: 1px;
    /* Set the height of the line */
    background-color: #ccc;
    /* Set the color of the line */
    margin: 5px 5px;
    /* Adjust the margin to reduce the gap above and below the line */
}



.card {
    padding: 0px;
    display: fixed;
    /* Use flexbox for layout */
    height: 120px;
    /* FFixed height*/
    width: 100%;
    /* Full width of the container */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
    margin-bottom: 10px;
    /* Space between cards */
}

.card-body1 {
    flex: 0 0 100px;
    /* Fixed width for the image container */
    height: 120px;
    /* Fixed height */
    overflow: hidden;
    /* Hide overflow */
}

.card-img-top {
    width: 100%;
    /* Full width of the container */
    height: auto;
    /* Maintain aspect ratio */
    max-height: 120px;
    /* Ensure the image does not exceed the height of the container */
    object-fit: cover;
    /* Ensure the image covers the area without distortion */
    border-radius: 8px;
    /* Optional: rounded corners */
}

.card-body2 {
    flex: 1;
    /* Allow the text to take the remaining space */
    height: 120px;
    /* Fixed height */
    text-align: left;
    /* Align text to the left */
    padding: 10px;
    /* Add padding for text */
    color: #6c757d;
    /* Optional: a lighter color for small text */
    display: flex;
    /* Use flexbox for layout */
    flex-direction: column;
    /* Stack text vertically */
    justify-content: space-between;
    /* Space out the content */
}



.pricebar {
    background-color: #860303;
    border: #860303;
    color: white;
    padding: 2px 6px;
    text-align: center;
    font-family: Arial, sans-serif;
    /* Corrected font-family */
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    margin: 0px 0px;
    cursor: pointer;
    border-radius: 50%;
    /* Optional: rounded corners */
}

.pricebar:hover {
    color: white;
    text-decoration: none;
    background-color: #B60404;
}

/* Food Catalogue Improvements */
.food-catalogue {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.food-item-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

.food-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.food-image {
    flex: 0 0 120px;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.food-item-card:hover .food-image img {
    transform: scale(1.05);
}

.food-details {
    flex: 1;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.food-info {
    flex: 1;
}

.food-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.food-shop {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.view-details {
    font-size: 12px;
    color: #860303;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-details:hover {
    color: #B60404;
    text-decoration: underline;
}

.food-price-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.add-btn {
    background-color: #860303;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(134, 3, 3, 0.3);
}

.add-btn:hover {
    background-color: #B60404;
    color: white;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(134, 3, 3, 0.4);
}

/* Responsive Design for Food Cards */
@media (max-width: 480px) {
    .food-item-card {
        flex-direction: column;
    }

    .food-image {
        flex: none;
        height: 180px;
        width: 100%;
    }

    .food-details {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .food-price-action {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
    }

    .price {
        font-size: 18px;
    }

    .add-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Modal Button Styles */
.buttonmain {
    background-color: #860303;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.buttonmain:hover {
    background-color: #B60404;
    color: white;
}