:root {
    --accent: #FFE600;
}

/* Add to Cart Button in Menu Cards */
.add-to-cart-btn {
    background: #FFE600 !important;
    color: #000000 !important;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.add-to-cart-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(255, 230, 0, 0.6);
}
.add-to-cart-btn:active {
    transform: scale(0.95);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

/* ===== ADD PANEL (BOTTOM BAR) ===== */
.bottom-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(150%) translateX(-50%);
    left: 50%;
    width: calc(100% - 24px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
}
.bottom-bar.visible {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
    pointer-events: auto;
}
@media (min-width: 760px) {
    .bottom-bar {
        max-width: 560px;
    }
}

.cart-fab {
    background: rgba(17, 17, 20, 0.94);
    border: 1px solid rgba(255, 204, 0, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
    border-radius: 28px;
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
}
.cart-fab:active {
    transform: scale(0.98);
}
.cart-fab-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #d4a946 45%, var(--accent) 100%);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
    font-size: 1.4rem;
}
.cart-fab-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cart-fab-title {
    display: block;
    font-weight: 800;
    font-size: 1.05em;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}
.cart-fab-summary {
    display: block;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-fab-total {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1em;
    padding-right: 8px;
}

/* Drawer styles */
.drawer {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 2000;
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    justify-content: center;
}
.drawer.open {
    transform: translateY(0);
}
.drawer-content {
    background: #111116;
    border-top: 1px solid rgba(255, 204, 0, 0.2);
    width: 100%;
    max-width: 560px;
    border-radius: 34px 34px 0 0;
    max-height: 86vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Cart Items & Form */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-header h2 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
}
.close-cart {
    background: rgba(255, 204, 0, 0.15);
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    color: var(--accent);
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s;
}
.close-cart:hover {
    background: var(--accent);
    color: #000;
}

.cart-items {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-empty-msg {
    text-align: center;
    color: #666;
    margin-top: 20px;
    font-style: italic;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 204, 0, 0.05);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
}
.cart-item-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-info h4 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    line-height: 1.2;
}
.cart-item-info .cart-item-base {
    color: #888;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 4px;
}
.cart-item-info p {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
}
.qty-controls {
    display: flex;
    gap: 0;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 204, 0, 0.1);
    padding: 6px 10px;
    border-radius: 20px;
    width: 95px;
    flex-shrink: 0;
}
.qty-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty {
    color: #fff;
    font-weight: bold;
    width: 28px;
    text-align: center;
    display: inline-block;
}

/* Order Form */
.cart-footer-section {
    padding: 25px;
    background: #181820;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.order-mode-container {
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.1);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
}
.order-mode-title {
    color: #888;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 12px;
}
.order-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.order-type-btn {
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.15);
    color: #888;
    padding: 10px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    min-width: 100px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.order-type-btn.active {
    background: linear-gradient(135deg, var(--accent), #d4a946);
    border-color: transparent;
    color: #111;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.order-fields-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.order-field-label {
    font-size: 0.85em;
    font-weight: bold;
    color: #bbb;
    margin-bottom: -6px;
}

.order-input {
    width: 100%;
    background: #111116;
    border: 1px solid rgba(255, 204, 0, 0.2);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}
.order-input:focus {
    border-color: var(--accent);
}
textarea.order-input {
    resize: vertical;
}

/* WhatsApp Button */
.whatsapp-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
}
.whatsapp-checkout-btn:hover {
    transform: translateY(-2px);
}
.whatsapp-checkout-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
}
