* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    padding-bottom: 90px; 
}

/* ===============================
   Header & Search (FIXED)
   =============================== */
.app-header {
    background-color: #000000;
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column; /* Title aur search bar ko upar-neeche karega */
    gap: 12px; /* Dono ke beech ka gap */
}

.app-header h1 {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
}

.app-header h1 span {
    color: #ffc107;
}

.search-bar {
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: white;
    outline: none;
    font-size: 14px;
}

.search-bar input:focus {
    border-color: #ffc107;
}

/* ===============================
   Cards Generated by JS (IMAGE FIX)
   =============================== */
.menu-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%; /* Card screen se bahar nahi jayega */
}

.card-img {
    width: 100%;
    height: 180px !important; /* Image ko strict height de di */
    object-fit: cover; /* Image fatega nahi, cut hoke fit ho jayega */
    border-bottom: 1px solid #222;
    display: block;
}

.card-body {
    padding: 15px;
}

/* Categories Nav */
.category-nav {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    gap: 10px;
    background-color: #0a0a0a;
}

.category-nav::-webkit-scrollbar { display: none; }

.cat-btn {
    background-color: #141414;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 25px;
    color: #aaa;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}

.cat-btn.active {
    background-color: #ffc107;
    color: #000;
    border-color: #ffc107;
}

/* Menu Layout */
.menu-container {
    padding: 0 15px;
}

.menu-section {
    margin-bottom: 25px;
}

.menu-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #333;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Cards Generated by JS */
.menu-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #222;
}

.card-body {
    padding: 15px;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.card-desc {
    font-size: 12px;
    color: #888;
    margin: 5px 0 12px 0;
}

/* Pizza Options (Sizes & Cheese) */
.pizza-options, .hf-options {
    background: #000;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.size-btns, .hf-options {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-size, .btn-hf {
    flex: 1;
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.size-price, .hf-price {
    font-weight: 700;
    margin-top: 3px;
}

.btn-size.active, .btn-hf.active {
    border-color: #ffc107;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.cheese-row {
    font-size: 13px;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheese-row input[type="checkbox"] {
    accent-color: #ffc107;
    width: 16px;
    height: 16px;
}

/* Card Footer (Price & Add Btn) */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: #ffc107;
}

.btn-add {
    background: transparent;
    color: #ffc107;
    border: 1px solid #ffc107;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add.added {
    background: #2ed573;
    color: #000;
    border-color: #2ed573;
}

/* Bottom Floating Cart Bar */
.bottom-cart-bar {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: #ffc107;
    color: #000;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
    cursor: pointer;
    z-index: 99;
}

/* Cart Modal / Popup */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.cart-modal.active {
    visibility: visible;
    opacity: 1;
}

.cart-modal-content {
    background: #141414;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.close-cart {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.cart-list {
    overflow-y: auto;
    margin-bottom: 20px;
}

/* Individual Cart Items generated by JS */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #222;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: block;
}

.cart-item-size {
    font-size: 11px;
    color: #aaa;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    padding: 4px;
}

.qty-btn {
    background: transparent;
    color: #ffc107;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
}

.qty-val {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.cart-item-price {
    font-weight: 700;
    color: #ffc107;
}

.cart-footer {
    border-top: 1px dashed #333;
    padding-top: 15px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cart-total-row span:last-child {
    color: #ffc107;
}

.checkout-btn {
    width: 100%;
    background: #ffc107;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
/* =========================================
   Checkout Form Premium Inputs
   ========================================= */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 5px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 13px;
    color: #888;
    font-weight: 600;
}

.checkout-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #333 !important;
    background-color: #1a1a1a !important; /* Proper dark background */
    color: #ffffff !important;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.checkout-form input:focus {
    border-color: #ffc107 !important;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.2);
}

.checkout-form input::placeholder {
    color: #666;
}

/* Table number highlight */
.checkout-form input[readonly] {
    background-color: #222 !important;
    color: #ffc107 !important;
    font-weight: 700;
    cursor: not-allowed;
    border-color: #444 !important;
}

/* =========================================
   Custom Premium Alert Popup
   ========================================= */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
}

.custom-alert-overlay.active {
    visibility: visible;
    opacity: 1;
}

.custom-alert-box {
    background: #141414;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px 20px;
    width: 85%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert-overlay.active .custom-alert-box {
    transform: scale(1); /* Bouncy pop animation */
}

.alert-icon {
    font-size: 55px;
    margin-bottom: 10px;
}

.custom-alert-box h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 22px;
}

.custom-alert-box p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.alert-btn {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}
.warning-text {
    color: #ff4757; /* Proper Red */
    font-size: 12px;
    font-weight: 700;
    margin-top: 15px;
    display: block;
    padding: 8px;
    border: 1px dashed #ff4757;
    border-radius: 8px;
    background: rgba(255, 71, 87, 0.05);
}
