body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    margin: 0;
    padding: 0;
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.light-mode {
    background-color: rgb(235, 236, 240);
    color: #000000;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero {
    background-image: url('hero-background.webp'); /* Update the path as necessary */
    background-size: cover;
    background-position: center;
    height: 50vh; /* Smaller hero section */
}

.hero .title {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-size: 3rem;
}

.container {
    margin-top: 2rem;
    padding-bottom: 4rem; /* Space for fixed navbar */
}

.card {
    border-radius: 15px; /* Increased border radius for a smoother look */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow for more depth */
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #2e2e2e;
    color: #ffffff;
    display: flex; /* Flexbox for better layout control */
    flex-direction: column;
    overflow: hidden; /* Ensure inner elements are clipped */
    max-width: 100%; /* Ensure cards take full width */
    margin: 1rem auto; /* Center the cards */
}

.card:hover {
    transform: translateY(-10px); /* More pronounced lift on hover */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
    background-color: #3e3e3e; /* Slight background color change on hover */
}

.card .image {
    width: 100%;
    height: fit-content; /* Set a fixed height */
    background-size: cover;
    background-position: center;
    flex-shrink: 0; /* Prevent image from shrinking */
    padding-bottom: 10px; /* Add padding below the image */
}

.card-content {
    padding: 10px; /* Reduce padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the start */
}

.card-content h5 {
    font-size: 1.25rem; /* Larger font size for titles */
    margin-bottom: 5px;
    color: #ff6347; /* Tomato red for a subtle yet appetizing effect */
}

.card-content p {
    flex-grow: 1;
    margin-bottom: 5px; /* Reduce margin */
}

.card .badges-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badge {
    background-color: #ff6347; /* Tomato red for badges */
    color: #ffffff;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.badge i {
    margin-right: 5px;
}

.notification {
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.button {
    border-radius: 5px;
    background-color: #ff6347; /* Tomato red for buttons */
    color: #ffffff;
    border: none;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #ff4500; /* Darker red on hover */
}

.field .control .input {
    border-radius: 5px;
}

#summary-items .box {
    margin-bottom: 1rem;
}

.light-mode .card {
    background-color: #ffffff;
    color: #000000;
}

.light-mode .card:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.light-mode .card-content h5 {
    color: #e74c3c; /* Light mode red for titles */
}

.light-mode .badge {
    background-color: #e74c3c; /* Light mode red for badges */
}

.light-mode .button {
    background-color: #e74c3c; /* Light mode red for buttons */
}

.light-mode .button:hover {
    background-color: #c0392b; /* Darker red on hover for light mode */
}

.slider {
    margin: 2rem 0;
    position: relative;
}

.slick-slide {
    padding: 0 5px; /* Adjusted padding */
}

.slick-prev, .slick-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: all 0.3s ease;
}

.slick-prev:hover, .slick-next:hover {
    color: #ff6347;
    background: rgba(0, 0, 0, 0.8);
}

.slick-prev {
    left: -20px;
}

.slick-next {
    right: -20px;
}

.slick-prev:before, .slick-next:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f053'; /* Font Awesome icon for left arrow */
}

.slick-next:before {
    content: '\f054'; /* Font Awesome icon for right arrow */
}

.slick-dots {
    bottom: -30px;
    text-align: center;
    padding: 0;
}

.slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.slick-dots li button {
    font-size: 0; /* Hide default number */
    line-height: 0;
    width: 10px;
    height: 10px;
    padding: 5px;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slick-dots li.slick-active button {
    background-color: #ff6347; /* Tomato red for active dots */
}

.category-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px; /* Adjusted width */
    height: 130px; /* Adjusted height */
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.menu-item-image {
    border-radius: 10px; /* Default border radius for rectangular shape */
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slider-item {
    text-align: center;
}

.slider-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-card {
    max-width: 800px;
    width: 90%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1e1e1e;
}

.modal-card-head {
    background-color: #2e2e2e;
    color: #ffffff;
    border-bottom: 1px solid #ff6347; /* Tomato red for modal head border */
    padding: 1rem 1.5rem;
}

.modal-card-title {
    color: #ff6347; /* Tomato red for modal title */
}

.delete {
    color: #ffffff;
}

.delete:hover {
    color: #ff6347; /* Tomato red on hover */
}

.modal-card-body {
    padding: 2rem 1.5rem;
    background-color: #1e1e1e;
    color: #ffffff;
}

.modal-card-foot {
    background-color: #2e2e2e;
    border-top: 1px solid #ff6347; /* Tomato red for modal foot border */
    padding: 1rem 1.5rem;
    justify-content: space-between;
}

.modal-card-foot .button {
    border-radius: 5px;
}

.modal-card-foot .button.is-secondary {
    background-color: #ffdd57;
    color: #000000;
}

.modal-card-foot .button.is-secondary:hover {
    background-color: #ffd700;
    color: #000000;
}

.modal-card-foot .button.is-success {
    background-color: #23d160;
    color: #ffffff;
}

.modal-card-foot .button.is-success:hover {
    background-color: #20c157;
    color: #ffffff;
}

.field .control .input {
    border-radius: 5px;
    background-color: #2e2e2e;
    border: 1px solid #ff6347; /* Tomato red for input borders */
    color: #ffffff;
}

.field .control .input::placeholder {
    color: #aaaaaa;
}

.light-mode .field .control .input {
    background-color: #ffffff;
    border: 1px solid #ff6347; /* Tomato red for input borders in light mode */
    color: #000000;
}

.light-mode .field .control .input::placeholder {
    color: #aaaaaa;
}

.navbar.is-fixed-bottom {
    bottom: 0;
    width: 100%;
    z-index: 1030;
}

.cart-icon {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: #ff6347; /* Tomato red for cart icon */
    color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 900; /* Adjusted z-index to place behind the cart */
    transition: right 0.3s ease;
}

.cart-icon:hover {
    background-color: #ff4500; /* Darker red on hover */
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body, nav {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.menu-item-card {
    position: relative;
}

.badges-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badges-container:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
}

.cart-section {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: calc(100% - 56px); /* Adjusted height */
    background-color: #1e1e1e;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding-bottom: 56px; /* Adjusted padding */
}

.theme-toggle-wrapper {
    display: inline-block;
    position: relative;
}

.theme-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ffeb3b;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.theme-toggle-label::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:checked + .theme-toggle-label {
    background-color: #000;
}

.theme-toggle:checked + .theme-toggle-label::before {
    transform: translateX(26px);
}

.theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.theme-icon.sun {
    right: 5px;
    opacity: 0;
}

.theme-icon.moon {
    left: 5px;
    opacity: 1;
}

.theme-toggle:checked + .theme-toggle-label .theme-icon.sun {
    opacity: 1;
}

.theme-toggle:checked + .theme-toggle-label .theme-icon.moon {
    opacity: 0;
}
.light-mode .cart-section {
    background-color: #f7f7f7;
    color: #000000;
}

.cart-section.is-active {
    right: 0;
}

.cart-section.is-active ~ .cart-icon {
    right: -100px; /* Move the cart icon out of view when the cart is open */
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ff6347; /* Tomato red for cart header border */
}

.cart-header h2 {
    color: #ff6347; /* Tomato red for cart header title */
    margin: 0;
}

.light-mode .cart-header h2 {
    color: #e74c3c; /* Light mode red for cart header title */
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-item figure {
    margin: 0;
    margin-right: 1rem;
    width: 50px;
    height: 50px;
    overflow: hidden;
}

.cart-item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-total {
    padding: 1rem;
    border-top: 1px solid #ff6347; /* Tomato red for cart total border */
    text-align: center;
    color: #ff6347; /* Tomato red for cart total text */
}

.light-mode .cart-total {
    color: #e74c3c; /* Light mode red for cart total text */
}

.cart-actions {
    padding: 1rem;
    text-align: center;
}

/* Adjustments for title and label in light mode */
.light-mode .title.is-5,
.light-mode .label {
    color: #333333 !important; /* Override Bulma's default styles */
}

.price {
    padding: 10px 20px;
    color: #e74c3c;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-block;
    margin-top: 10px;
    background-color: #3a3a3a;
    border: 1px solid #1c1c1c;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}


/* Mobile specific styles */
@media (max-width: 768px) {
    .card {
        flex-direction: column;
        margin-bottom: 1rem; /* Add some margin between cards */
        width: 90%; /* Reduce width for mobile */
        margin: 1rem auto; /* Center the cards */
    }

    .card .image {
        height: auto; /* Set a fixed height for mobile */
        object-fit: cover; /* Ensure the image covers the area without distortion */
        padding-bottom: 10px; /* Add padding below the image */
    }

    .card-content {
        padding: 10px; /* Reduce padding for mobile */
    }

    .card-content h5,
    .card-content p {
        margin-bottom: 5px; /* Reduce margin for mobile */
    }

    .cart-icon {
        top: 50%;
        bottom: auto;
        right: 10px;
        transform: translateY(-50%);
        z-index: 1050; /* Ensure cart icon is above other elements */
    }

    .cart-section {
        height: 100%;
    }
}
