@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    overflow-y: hidden;
    font-family: "Inter", sans-serif !important;
}

.logo-overlay{
  position: fixed;
  inset: 0;
  background:#000000e8;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.logo-overlay img{
  width:120px;
  animation: pulse 1.3s infinite ease-in-out;
}

@keyframes pulse{
  0%{transform:scale(1);opacity:1}
  50%{transform:scale(1.2);opacity:.7}
  100%{transform:scale(1);opacity:1}
}

img.logo {
    width: 234px;
}
.safe-area {
    padding: 10px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background: #dbf7c9;
    padding: 20px;
    border-bottom: 1px solid #389308a1;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.table-info {
    display: flex;
    align-items: center;
}

.table-info img {
    width: 55px;
}

.table-no {
    font-weight: bold;
    margin-left: 6px;
    font-size: 40px;
}

.search {
    position: relative;
    width: 60%;
}

.search i {
    position: absolute;
    right: 17px;
    top: 17px;
    font-size: 32px;
    color: #4bc30b;
}

.search-input {
    width: 100%;
    padding: 18px 20px;
    border-radius: 40px;
    border: 1px solid #5c5c5c;
    font-size: 35px;
}


.menu-view {
    display: flex;
    margin-top: 10px;
}

.category-wrapper {
    width: 218px;
    background: #46B409;
    border-radius: 34px;
    height: 100vh;
    overflow-x: scroll;
    padding-left: 12px;
    padding-top: 9px;
    overflow-y: auto;
    border-right: 1px solid #46b409;
}

.cat-list {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding-bottom: 450px;
}

.category-item {
    text-align: center;
    padding: 8px;
    cursor: pointer;
}

.category-item.active {
    background: #8bf588;
}

.category-item img {
    height: 158px;
    width: 158px;
    border-radius: 50%;
    object-fit: cover;
}

.category-item p {
    font-size: 30px;
    margin: 10px 0;
}

.food-wrapper {
    flex: 1;
    margin-left: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 0 10px;
    height: 90vh;
    overflow-x: scroll;
    padding-bottom: 300px;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.food-card {
    background: #DBF7C9;
    border-radius: 35px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #46b409;
}

.food-card img {
    width: 100%;
    max-width: 100%;
    border-radius: 32px;
    height: 242px;
    object-fit: cover;
}

.food-card h4 {
    font-weight: 400;
    font-size: 32px;
    margin: 5px 0;
}

.food-card .price {
    font-weight: bold;
    font-size: 42px;
    color: #46b409;
}

/* BACKDROP */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
}

/* BOTTOM SHEET */
.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 44px;
    transition: 0.3s;
    z-index: 9990;
    padding-bottom: 100px;
}

.bottom-sheet.show {
    bottom: 0;
}

.sheet-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sheet-content img {
    width: 140px;
    border-radius: 28px;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.quantity-control button {
    background: #389308;
    color: white;
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 15px;
    font-size: 60px;
    margin-left: 4px;
}

.quantity-control span {
    margin: 0 24px;
    font-size: 50px;
}

.add-cart {
background: #46B809;
    color: white;
    padding: 30px 25px;
    border: none;
    border-radius: 20px;
    font-size: 42px;
    width: 100%;
    margin-top: 32px;
    font-weight: 600;
}



footer.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    z-index: 99;
}

.app-foot {
    display: flex;
    justify-content: space-around;
    background: #389308;
    padding: 20px 0;
    align-items: center;
    border-top-left-radius: 54px;
    border-top-right-radius: 54px;
    box-shadow: 0 10px 20px rgb(0 0 0 / 100%);
}

.nav-item i {
    font-size: 40px;
    color: #fafafa;
}

.nav-item a {
    font-size: 32px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item.active a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item.active {
    background: #46B809;
    color: #fff;
    border-radius: 42px;
    padding: 20px 35px;
}

.nav-item {
    background: #54A22B;
    border-radius: 42px;
    padding: 20px 35px;
}

.nav-item.active i {
    color: #fff;
}

.main-add {
    width: 100%;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.price-add h3 {
    font-size: 38px;
    margin: 0;
}

p.price {
    font-size: 47px;
    margin: 0;
    font-weight: 600;
    margin-top: 15px;
    color: #46b809;
}


/* Toggle Bar Styles */
.toggle-bar {
    position: fixed;
    top: 0;
    right: -90%;
    width: 90%;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.7s ease;
    z-index: 1000;
}

#order-toggle-bar {
    transform: translateX(90%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

#order-toggle-bar.active {
    transform: translateX(0);
}

/* Swipe visual feedback */
#order-toggle-bar.swipe-active {
    transition: none;
}

.checkout-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #555;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.toggle-bar.active {
    right: 0;
}

.single-product img {
    width: 30%;
    height: 38%;
    object-fit: cover;
    border-radius: 25px;
}

.single-product {
    display: flex;
    gap: 14px;
    align-items: center;
}

.single-pro-det h5 {
    margin: 8px 0;
    font-size: 45px;
    color: #389308;
}

.single-pro-det span {
    font-size: 30px;
    color: #555;
}

.single-pro-det p {
    font-size: 38px;
    font-weight: 500;
    margin: 7px 0;
}

.toggle-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.toggle-bar-header h3 {
    margin: 0;
    font-size: 43px;
}

.close-toggle {
    background: none;
    border: none;
    font-size: 70px;
    cursor: pointer;
    color: #666;
    padding: 0;
        margin-right: 22px;
}

.close-toggle:hover {
    color: #333;
}

.toggle-bar-content{
    padding: 20px;
    padding-bottom: 350px;

    height: 70vh;                     /* safer height for mobile */
    overflow-y: auto !important;      /* enable scroll */
    overflow-x: scroll;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}


.toggle-bottom span {
    float: right;
    color: #46b809;
    font-weight: 600;
}

.toggle-bottom p {
    font-size: 42px;
    border: 1px dashed #46b809;
    padding: 15px;
    border-radius: 18px;
    color: #555;
    font-weight: 600;
    margin-top: 0;
}

/* Overlay Styles */
.toggle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toggle-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Optional: Add some styling to your toggle link */
.toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

button.add-check {
    background: #46B809;
    color: white;
    padding: 27px;
    border: none;
    border-radius: 15px;
    font-size: 40px;
    width: 100%;
}

.toggle-bottom {
    margin: 0;
    /* position: fixed;
    bottom: 0;
    width: 100%; */
    background: #fff;
    padding: 22px;
}


.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

button.remove-btn {
    background: #ff1c1c;
    color: #fff;
    margin-left: 22px;
    padding: 18px 22px;
    font-size: 28px;
    border: none;
    border-radius: 50%;
}

  .empty-cart-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    color: #666;
  }
  
 .empty-cart-message i {
    font-size: 150px;
    color: #ddd;
    margin-bottom: 20px;
}
  
.empty-cart-message p {
    font-size: 32px;
    color: #888;
    margin: 0;
}