:root {
    --lilac: #d8c7fa;
    --yellow: #ffe42f;
    --dark: #2d1b4e;
    --soft: #f8f6fb;
}

body {
    margin: 0;
    background: var(--soft);
    font-family: "Segoe UI", sans-serif;
}

/* ===== HEADER ===== */

.main-header {
    background: linear-gradient(135deg, var(--yellow), #ffe42f);
    text-align: center;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1500;
    transition: box-shadow 0.3s ease;
}

.logo {
    height: 70px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.main-header p {
    margin: 1px 0 0;
    font-style: italic;
    color: var(--dark);
    font-size: 10px;
}

@media (max-width: 768px) {
    .logo {
        height: 60px; /* smaller but still clear */
    }

    .brand-text p {
        font-size: 10px;
    }
}
/* ===== LAYOUT ===== */

.layout {
    display: flex;
    min-height: calc(100vh - 100px);
}

/* ===== MENU SECTION ===== */

.menu-section {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* NEW APP STYLE LIST */
.menu-list {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #eee;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #fafafa;
}

.menu-info {
    max-width: 70%;
}

.menu-info h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.menu-info p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
}

.price {
    font-weight: 800;
    color: var(--dark);
}
/* Category Bar section */

.category-bar {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #f2f2f2;
    cursor: pointer;
    font-weight: 500;
}

.cat-btn.active {
    background: var(--dark);
    color: #fff;
}

/* ADD BUTTON – Clean App Feel */
.menu-action button {
    background: white;
    border: 2px solid var(--dark);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.menu-action button:hover {
    background: var(--dark);
    color: var(--yellow);
}

/* ===== CART ===== */

.cart-header {
    text-align: center;
    padding: 15px;
    font-weight: bold;
    background: #efe6ff;
}

.cart-header::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: #ccc;
    margin: 10px auto;
    border-radius: 10px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-card {
    background: white;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-name {
    font-weight: 600;
}

.cart-qty {
    font-size: 13px;
    color: #555;
}

.cart-actions button {
    background: var(--dark);
    color: var(--yellow);
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.close-cart {
    float: right;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* ===== CART FOOTER ===== */

.cart-footer {
    background: white;
    padding: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}

.cart-footer input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.cart-footer button {
    width: 100%;
    padding: 12px;
    background: var(--dark);
    color: var(--yellow);
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.cart-footer button:hover {
    opacity: 0.9;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .menu-section {
        padding: 15px;
    }

    /* Cart Drawer */
    .cart-section {
        position: fixed; /* NOT sticky */
        bottom: -100%;
        left: 0;
        width: 100%;
        height: 70vh;
        background: #fff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
        transition: bottom 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
        background: linear-gradient(135deg, var(--lilac), #e8ddf5);
        display: flex;
        flex-direction: column;
        border-left: 2px solid #e0d5f0;
    }

    .cart-section.active {
        bottom: 0;
    }

    /* Prevent content hiding behind drawer */
    body {
        padding-bottom: 80px;
    }
}

/* ===== Message when Items added in cart === */

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: #fff;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: 0.3s ease;
}

.add-button {
    background-color: #533423;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.mobile-cart-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #533423;
    color: #fff;
    padding: 14px;
    text-align: center;
    font-weight: 600;
    z-index: 999;
}

@media (max-width: 768px) {
    .mobile-cart-bar {
        display: block;
    }
}
