/* GLOBAL */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f7f7f7;
    color: #111;
}

h1, h2, h3, h4 {
    margin: 0;
}

/* NAVBAR */
.navbar {
    background: #111;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}
.navbar .logo {
    font-size: 22px;
    font-weight: bold;
}
.navbar nav a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
    font-size: 15px;
}
.cart-btn {
    background: #d50000;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* SLIDER */
.slider {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}
.slides {
    width: 100%;
    height: 100%;
    display: flex;
    animation: slideAnim 18s infinite;
}
.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slideAnim {
    0% { transform: translateX(0%); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0%); }
}

/* CATEGORY BAR */
.category-bar {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 10px;
}
.category-bar button {
    background: #d50000;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    border: none;
    white-space: nowrap;
    cursor: pointer;
}

/* MENU */
.menu-section {
    padding: 20px;
}
.menu-section h2 {
    margin-bottom: 10px;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}
.menu-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    cursor: pointer;
}
.menu-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
}

/* CART PANEL */
.cart-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 60;
    transition: 0.3s;
}
.cart-panel.open {
    right: 0;
}
.btn-clear, .btn-checkout, .btn-close {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
}
.btn-clear { background: #444; color: white; }
.btn-checkout { background: #d50000; color: white; }
.btn-close { background: #111; color: white; }

/* CHECKOUT PANEL */
.checkout-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 70;
    transition: 0.3s;
}
.checkout-panel.open {
    right: 0;
}
.checkout-panel input, 
.checkout-panel select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
}
.btn-place {
    width: 100%;
    padding: 12px;
    background: #d50000;
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
}

/* PAYMENT PANEL */
.payment-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 80;
    transition: 0.3s;
}
.payment-panel.open {
    right: 0;
}
.pay-btn {
    width: 100%;
    padding: 12px;
    border: none;
    margin-top: 10px;
    border-radius: 8px;
    background: #d50000;
    color: white;
    font-size: 16px;
}

/* ORDER COMPLETE */
.complete-panel {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -25%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    display: none;
    text-align: center;
    z-index: 200;
}

/* PRODUCT POPUP */
.product-popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    top: 0; left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 150;
}
.popup-content {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 12px;
}
.popup-img {
    width: 100%;
    border-radius: 10px;
}
#popupOptions label {
    display: block;
    margin: 5px 0;
}
#popupNote {
    width: 100%;
    height: 60px;
    padding: 8px;
    border-radius: 6px;
    margin-top: 8px;
}
.qty-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}
.qty-box button {
    width: 40px;
    height: 40px;
    background: #d50000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
}
.popup-add, .popup-close {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
}
.popup-add { background: #d50000; color: white; }
.popup-close { background: #111; color: white; }

/* MOBILE */
@media(max-width: 600px){
    .navbar nav a { display: none; }
}
