/* ===== COMMON CART STYLES ===== */
/* This file contains shared cart styles for all menu templates */

/* ===== BANNER POPUP MODAL ===== */
.banner-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.banner-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.banner-popup {
    position: relative;
    max-width: 420px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.banner-popup-overlay.active .banner-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.banner-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.2s ease;
}

.banner-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.banner-popup-image {
    width: 100%;
    line-height: 0;
}

.banner-popup-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Offer Content */
.banner-popup-offer {
    padding: 24px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.banner-popup-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #f59e0b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 12px;
}

.banner-popup-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: 1px;
}

.banner-popup-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 14px;
}

.banner-popup-code {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 10px 24px;
    border-radius: 10px;
    border: 1.5px dashed rgba(245, 158, 11, 0.5);
}

@media (max-width: 480px) {
    .banner-popup-overlay {
        padding: 20px;
    }

    .banner-popup {
        border-radius: 14px;
    }

    .banner-popup-image img {
        height: 180px;
    }

    .banner-popup-offer {
        padding: 20px 16px;
    }

    .banner-popup-title {
        font-size: 1.5rem;
    }
}

/* Cart Bar - Fixed Bottom */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cart-bar-bg, #1a1a2e);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    z-index: 101;
    transition: transform 0.3s ease;
}

.cart-bar.hidden {
    transform: translateY(100%);
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-items-count {
    font-size: 0.8rem;
    color: var(--cart-text-muted, #8a9ca3);
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cart-text, #ffffff);
}

.view-cart-btn {
    background: var(--cart-btn-bg, #2196f3);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.view-cart-btn:hover {
    background: var(--cart-btn-hover, #1976d2);
    transform: translateY(-2px);
}

.view-cart-btn i {
    transition: transform 0.2s ease;
}

.view-cart-btn:hover i {
    transform: translateX(4px);
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Cart Section - Bottom Sheet */
.cart-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cart-section-bg, #122a32);
    border-radius: 24px 24px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s ease, max-height 0.3s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.cart-section.active {
    transform: translateY(0);
}

/* Fullscreen Cart */
.cart-section.fullscreen {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
}

.cart-section.fullscreen .cart-fullscreen-btn i {
    transform: rotate(45deg);
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

.cart-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cart-text, #ffffff);
    margin: 0;
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-fullscreen-btn,
.cart-close-btn {
    width: 36px;
    height: 36px;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.1));
    border: none;
    border-radius: 50%;
    color: var(--cart-text, #ffffff);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-fullscreen-btn:hover {
    background: var(--cart-btn-bg, #2196f3);
    color: white;
}

.cart-close-btn:hover {
    background: var(--cart-text-muted, #5a6b72);
}

/* Cart Items List */
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    min-height: 100px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cart-border, rgba(255, 255, 255, 0.05));
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-item-price-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-unit {
    font-size: 0.78rem;
    color: var(--cart-text-muted, #8a9ca3);
}

/* Cart Item Type Badge */
.cart-item-type {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 4px;
    border: 2px solid;
    position: relative;
    flex-shrink: 0;
}

.cart-item-type.veg {
    border-color: #22c55e;
}

.cart-item-type.veg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.cart-item-type.non-veg {
    border-color: #ef4444;
}

.cart-item-type.non-veg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #ef4444;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cart-text, #ffffff);
    margin: 0;
}

.cart-item-mrp {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--cart-accent, #c9a962);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.1));
    padding: 6px 10px;
    border-radius: 20px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--cart-section-bg, #122a32);
    border: none;
    border-radius: 50%;
    color: var(--cart-text, #ffffff);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--cart-btn-bg, #2196f3);
}

.qty-btn.delete:hover {
    background: #e53935;
}

.cart-item-qty {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cart-text, #ffffff);
    min-width: 20px;
    text-align: center;
}

/* Cart Footer */
.cart-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    background: var(--cart-footer-bg, rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.cart-summary {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--cart-text-muted, #8a9ca3);
}

.summary-row.total {
    border-top: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cart-text, #ffffff);
}

/* Two Checkout Buttons */
.checkout-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-btn {
    flex: 1;
    background: var(--cart-btn-bg, #2196f3);
    border: none;
    color: white;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.checkout-btn:hover {
    background: var(--cart-btn-hover, #1976d2);
    transform: translateY(-2px);
}

.delivery-btn {
    flex: 1;
    background: #22c55e;
    border: none;
    color: white;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.delivery-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.checkout-btn i,
.delivery-btn i {
    font-size: 1.05rem;
}

/* Order Type Toggle - inactive (blur) state */
.checkout-btn.order-type-btn:not(.active),
.delivery-btn.order-type-btn:not(.active) {
    opacity: 0.45;
    filter: grayscale(0.4);
    transform: scale(0.97);
}

.checkout-btn.order-type-btn:not(.active):hover,
.delivery-btn.order-type-btn:not(.active):hover {
    opacity: 0.75;
    filter: grayscale(0);
    transform: scale(1);
}

/* Cart Empty State */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--cart-text-muted, #8a9ca3);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty p {
    margin: 0;
    font-size: 1rem;
}

/* ===== PRODUCT DETAIL POPUP - MODERN DESIGN ===== */
.product-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 301;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

.product-popup.active {
    transform: translateY(0);
}

/* Drag Handle */
.popup-drag-handle {
    width: 36px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 10px auto;
    flex-shrink: 0;
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.popup-close-btn:hover {
    background: #fff;
    transform: scale(1.08);
}

/* Image Section */
.popup-image-section {
    position: relative;
    flex-shrink: 0;
}

.popup-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f8f8f8;
}

.popup-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popup-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 5;
}

.popup-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.popup-badge.bestseller {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.popup-badge.recommended {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.popup-badge.new {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

/* Content Area */
.popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 10px;
}

/* Header with Type & Title */
.popup-header {
    margin-bottom: 16px;
}

.popup-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.popup-item-type {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid;
    position: relative;
    flex-shrink: 0;
}

.popup-item-type.veg {
    border-color: #22c55e;
}

.popup-item-type.veg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.popup-item-type.non-veg {
    border-color: #ef4444;
}

.popup-item-type.non-veg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #ef4444;
}

.popup-type-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

/* Rating Row */
.popup-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #16a34a;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.popup-rating i {
    font-size: 0.7rem;
}

.popup-reviews {
    font-size: 0.85rem;
    color: #666;
}

/* Description */
.popup-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 16px 0;
    padding: 14px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 3px solid #10847e;
}

/* Pricing Section */
.popup-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.popup-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
}

.popup-mrp {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.popup-discount {
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Customization Section */
.popup-customization {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.popup-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-section-title i {
    color: #10847e;
}

.popup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popup-option {
    padding: 8px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.popup-option:hover {
    border-color: #10847e;
    color: #10847e;
}

.popup-option.selected {
    background: #10847e;
    border-color: #10847e;
    color: white;
}

/* Footer */
.popup-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.popup-qty-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.popup-qty-btn {
    width: 40px;
    height: 44px;
    background: transparent;
    border: none;
    color: #10847e;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.popup-qty-btn:hover {
    background: #e8f5f4;
}

.popup-qty-btn:active {
    transform: scale(0.95);
}

.popup-qty-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.popup-qty-value {
    font-size: 1.05rem;
    font-weight: 700;
    min-width: 36px;
    text-align: center;
    color: #1a1a1a;
}

.popup-add-btn {
    flex: 1;
    background: linear-gradient(135deg, #10847e 0%, #0d6b66 100%);
    border: none;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(16, 132, 126, 0.3);
}

.popup-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 132, 126, 0.4);
}

.popup-add-btn:active {
    transform: translateY(0);
}

.popup-add-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-add-btn .btn-price {
    font-weight: 700;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

/* Animation for added state */
.popup-add-btn.added {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* Responsive */
@media (max-width: 480px) {
    .popup-image-container {
        height: 200px;
    }

    .popup-content {
        padding: 16px;
    }

    .popup-name {
        font-size: 1.2rem;
    }

    .popup-price {
        font-size: 1.4rem;
    }

    .popup-footer {
        padding: 14px 16px;
    }

    .popup-qty-btn {
        width: 36px;
        height: 40px;
    }

    .popup-add-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (min-width: 600px) {
    .product-popup {
        max-width: 440px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        border-radius: 20px 20px 0 0;
    }

    .product-popup.active {
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== POWERED BY MINI HEADER ===== */
.powered-by-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 8px 16px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.powered-by-header .powered-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.powered-by-header .powered-icon {
    color: #f59e0b;
    font-size: 0.85rem;
}

.powered-by-header span {
    opacity: 0.7;
}

.powered-by-header strong {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.powered-by-header a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.powered-by-header a:hover strong {
    text-decoration: underline;
}

/* ===== GLOBAL SEARCH SECTION ===== */
.global-search-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
    background: #fff;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.global-search-section.active {
    max-height: 60px;
    padding: 12px 16px;
    opacity: 1;
    overflow: visible;
}

.global-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.global-search-bar:focus-within {
    border-color: var(--accent, #10847e);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 132, 126, 0.1);
}

.global-search-bar i.bi-search {
    color: #999;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.global-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1a1a1a;
    outline: none;
}

.global-search-bar input::placeholder {
    color: #999;
}

.global-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ddd;
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.global-search-clear.visible {
    display: flex;
}

.global-search-clear:hover {
    background: #ccc;
}

/* Search Dropdown Results */
.global-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 8px;
}

.global-search-dropdown.active {
    max-height: 350px;
    opacity: 1;
    overflow-y: auto;
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    position: sticky;
    top: 0;
}

.search-results-count {
    font-size: 0.8rem;
    color: #666;
}

.search-results-count strong {
    color: var(--accent, #10847e);
}

.search-close-btn {
    width: 26px;
    height: 26px;
    background: #eee;
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    background: #ddd;
}

/* Search Results List */
.search-results-list {
    padding: 4px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-name .item-type-icon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid;
    position: relative;
    flex-shrink: 0;
}

.search-result-name .item-type-icon.veg {
    border-color: #22c55e;
}

.search-result-name .item-type-icon.veg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.search-result-name .item-type-icon.non-veg {
    border-color: #ef4444;
}

.search-result-name .item-type-icon.non-veg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #ef4444;
}

.search-result-category {
    font-size: 0.7rem;
    color: #888;
}

.search-result-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent, #10847e);
    flex-shrink: 0;
}

/* No Results */
.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #888;
}

.search-no-results i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.5;
    display: block;
}

.search-no-results p {
    margin: 0;
    font-size: 0.9rem;
}

/* Highlight */
.search-highlight {
    background: rgba(16, 132, 126, 0.15);
    color: var(--accent, #10847e);
    padding: 0 2px;
    border-radius: 2px;
}

/* Mobile */
@media (max-width: 480px) {
    .global-search-section.active {
        padding: 10px 12px;
    }

    .global-search-bar {
        padding: 10px 14px;
    }

    .search-result-image {
        width: 44px;
        height: 44px;
    }
}

/* ===== THANK YOU BOTTOM SHEET ===== */
.thankyou-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.thankyou-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cart-section-bg, #122a32);
    border-radius: 24px 24px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.thankyou-section.active {
    transform: translateY(0);
}

/* Header */
.thankyou-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

.thankyou-header-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cart-text, #ffffff);
    margin: 0;
}

.thankyou-close-btn {
    width: 36px;
    height: 36px;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.1));
    border: none;
    border-radius: 50%;
    color: var(--cart-text, #ffffff);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.thankyou-close-btn:hover {
    background: var(--cart-text-muted, #5a6b72);
}

/* Body */
.thankyou-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    text-align: center;
}

/* Checkmark Animation */
.thankyou-checkmark {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
}

.thankyou-checkmark svg {
    width: 100%;
    height: 100%;
}

.thankyou-checkmark circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #22c55e;
    animation: thankyouStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.thankyou-checkmark path {
    stroke: #22c55e;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: thankyouStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes thankyouStroke {
    100% { stroke-dashoffset: 0; }
}

.thankyou-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cart-text, #ffffff);
    margin: 0 0 4px;
}

.thankyou-subtitle {
    font-size: 0.9rem;
    color: var(--cart-text-muted, #8a9ca3);
    margin: 0 0 20px;
}

.thankyou-order-info {
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.07));
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left;
}

.thankyou-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--cart-text-muted, #8a9ca3);
}

.thankyou-order-row strong {
    color: var(--cart-text, #ffffff);
    font-weight: 600;
}

.thankyou-order-row.total {
    border-top: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    margin-top: 4px;
    padding-top: 12px;
    font-size: 1rem;
}

.thankyou-order-row.total strong {
    color: var(--cart-accent, #c9a962);
    font-size: 1.1rem;
    font-weight: 700;
}

.thankyou-message {
    font-size: 0.85rem;
    color: var(--cart-text-muted, #8a9ca3);
    line-height: 1.5;
    margin: 0 0 16px;
}

/* Tracking Phone */
.thankyou-tracking {
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.07));
    border-radius: 14px;
    padding: 14px 16px;
    text-align: center;
}

.thankyou-tracking-label {
    font-size: 0.8rem;
    color: var(--cart-text-muted, #8a9ca3);
    margin: 0 0 10px;
}

.thankyou-tracking-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cart-accent, #c9a962);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    border: 1.5px solid var(--cart-accent, #c9a962);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.thankyou-tracking-phone:hover {
    background: var(--cart-accent, #c9a962);
    color: #1a1a2e;
}

.thankyou-tracking-phone i {
    font-size: 1rem;
}

/* Footer */
.thankyou-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    background: var(--cart-footer-bg, rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.thankyou-done-btn {
    width: 100%;
    background: #22c55e;
    border: none;
    color: white;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.thankyou-done-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.thankyou-done-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .thankyou-header {
        padding: 16px;
    }

    .thankyou-header-title {
        font-size: 1.1rem;
    }

    .thankyou-close-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .thankyou-body {
        padding: 20px 16px;
    }

    .thankyou-checkmark {
        width: 56px;
        height: 56px;
    }

    .thankyou-title {
        font-size: 1.3rem;
    }

    .thankyou-footer {
        padding: 14px 16px 20px;
    }

    .thankyou-done-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .thankyou-section {
        max-width: 500px;
        left: 50%;
        margin-left: -250px;
    }
}

/* ===== DELIVERY FORM BOTTOM SHEET ===== */
.delivery-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delivery-form-overlay.active {
    opacity: 1;
    visibility: visible;
}

.delivery-form-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cart-section-bg, #122a32);
    border-radius: 24px 24px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.delivery-form-section.active {
    transform: translateY(0);
}

.delivery-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

.delivery-form-header-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cart-text, #ffffff);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-form-header-title i {
    color: #22c55e;
}

.delivery-form-close-btn {
    width: 36px;
    height: 36px;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.1));
    border: none;
    border-radius: 50%;
    color: var(--cart-text, #ffffff);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delivery-form-close-btn:hover {
    background: var(--cart-text-muted, #5a6b72);
}

.delivery-form-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.delivery-form-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.07));
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--cart-text-muted, #8a9ca3);
}

.delivery-form-summary strong {
    color: var(--cart-accent, #c9a962);
    font-size: 1.05rem;
}

.delivery-form-group {
    margin-bottom: 18px;
}

.delivery-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cart-text-muted, #8a9ca3);
    margin-bottom: 8px;
}

.delivery-form-label i {
    font-size: 0.95rem;
    color: var(--cart-accent, #c9a962);
}

.delivery-optional {
    font-weight: 400;
    opacity: 0.6;
    font-size: 0.75rem;
}

.delivery-input-wrap {
    display: flex;
    align-items: center;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.07));
    border: 1.5px solid var(--cart-border, rgba(255, 255, 255, 0.15));
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.delivery-input-wrap:focus-within {
    border-color: var(--cart-accent, #c9a962);
}

.delivery-input-wrap.error {
    border-color: #ef4444;
}

.delivery-input-prefix {
    padding: 14px 12px 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cart-text-muted, #8a9ca3);
    border-right: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

.delivery-mobile-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--cart-text, #ffffff);
    letter-spacing: 1px;
}

.delivery-mobile-input::placeholder {
    color: rgba(138, 156, 163, 0.5);
    font-weight: 400;
    letter-spacing: 0;
    font-size: 0.85rem;
}

.delivery-name-input {
    width: 100%;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.07));
    border: 1.5px solid var(--cart-border, rgba(255, 255, 255, 0.15));
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--cart-text, #ffffff);
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.delivery-name-input:focus {
    border-color: var(--cart-accent, #c9a962);
}

.delivery-name-input.error {
    border-color: #ef4444;
}

.delivery-name-input::placeholder {
    color: rgba(138, 156, 163, 0.5);
    font-size: 0.85rem;
}

.delivery-address-input,
.delivery-notes-input {
    width: 100%;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.07));
    border: 1.5px solid var(--cart-border, rgba(255, 255, 255, 0.15));
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--cart-text, #ffffff);
    resize: vertical;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}

.delivery-address-input:focus,
.delivery-notes-input:focus {
    border-color: var(--cart-accent, #c9a962);
}

.delivery-address-input.error {
    border-color: #ef4444;
}

.delivery-address-input::placeholder,
.delivery-notes-input::placeholder {
    color: rgba(138, 156, 163, 0.5);
    font-size: 0.85rem;
}

.delivery-field-error {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: #ef4444;
}

.delivery-form-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    background: var(--cart-footer-bg, rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.delivery-checkout-btn {
    width: 100%;
    background: #22c55e;
    border: none;
    color: white;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.delivery-checkout-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.delivery-checkout-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .delivery-form-header {
        padding: 16px;
    }

    .delivery-form-header-title {
        font-size: 1.1rem;
    }

    .delivery-form-close-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .delivery-form-body {
        padding: 16px;
    }

    .delivery-form-footer {
        padding: 14px 16px 20px;
    }

    .delivery-checkout-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .checkout-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .checkout-btn,
    .delivery-btn {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .delivery-form-section {
        max-width: 500px;
        left: 50%;
        margin-left: -250px;
    }
}

/* ===== ORDERS VIEW - FLOATING BUTTON & BOTTOM SHEET ===== */
.orders-fab-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    color: #1a1a2e;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.orders-fab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.orders-fab-btn:active {
    transform: translateY(0);
}

/* Orders Bottom Sheet */
.orders-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.orders-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cart-section-bg, #122a32);
    border-radius: 24px 24px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.orders-section.active {
    transform: translateY(0);
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--cart-border, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

.orders-header-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cart-text, #ffffff);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.orders-header-title i {
    color: var(--cart-accent, #c9a962);
}

.orders-close-btn {
    width: 36px;
    height: 36px;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.1));
    border: none;
    border-radius: 50%;
    color: var(--cart-text, #ffffff);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.orders-close-btn:hover {
    background: var(--cart-text-muted, #5a6b72);
}

.orders-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 200px;
}

/* Orders Empty State */
.orders-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--cart-text-muted, #8a9ca3);
}

.orders-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
    display: block;
}

.orders-empty p {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: var(--cart-text, #ffffff);
    font-weight: 500;
}

.orders-empty span {
    font-size: 0.85rem;
}

/* Order Item Card */
.order-card {
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.05));
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--cart-border, rgba(255, 255, 255, 0.06));
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-card-id {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cart-accent, #c9a962);
}

.order-card-time {
    font-size: 0.75rem;
    color: var(--cart-text-muted, #8a9ca3);
}

/* Order Items List */
.order-card-items-list {
    margin-bottom: 10px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--cart-border, rgba(255, 255, 255, 0.04));
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-name {
    font-size: 0.85rem;
    color: var(--cart-text, #ffffff);
    font-weight: 500;
}

.order-item-qty {
    font-size: 0.75rem;
    color: var(--cart-text-muted, #8a9ca3);
    font-weight: 400;
    margin-left: 4px;
}

.order-item-price {
    font-size: 0.85rem;
    color: var(--cart-text-muted, #8a9ca3);
    font-weight: 600;
    flex-shrink: 0;
}

.order-card-summary {
    padding: 8px 0;
    border-top: 1px dashed var(--cart-border, rgba(255, 255, 255, 0.08));
    margin-top: 8px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--cart-text-muted, #8a9ca3);
    padding: 2px 0;
}

.order-summary-discount span:last-child {
    color: #16a34a;
    font-weight: 600;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--cart-border, rgba(255, 255, 255, 0.06));
}

.order-card-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cart-text, #ffffff);
}

.order-card-date {
    font-size: 0.75rem;
    color: var(--cart-text-muted, #8a9ca3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-card-date i {
    font-size: 0.7rem;
}

.order-card-type {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--cart-btn-secondary, rgba(255, 255, 255, 0.08));
    color: var(--cart-text-muted, #8a9ca3);
}

.order-card-type i {
    font-size: 0.7rem;
}

.order-item-size {
    font-size: 0.7rem;
    color: var(--cart-accent, #c9a962);
    background: rgba(201, 169, 98, 0.12);
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
    margin: 0 2px;
}

.order-card-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: capitalize;
}

.order-card-status.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.order-card-status.status-confirmed {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.order-card-status.status-preparing {
    background: rgba(168, 85, 247, 0.12);
    color: #7c3aed;
}

.order-card-status.status-completed {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.order-card-status.status-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

@media (max-width: 480px) {
    .orders-fab-btn {
        bottom: 80px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .orders-header {
        padding: 16px;
    }

    .orders-header-title {
        font-size: 1.1rem;
    }

    .orders-body {
        padding: 16px;
    }
}

@media (min-width: 768px) {
    .orders-section {
        max-width: 500px;
        left: 50%;
        margin-left: -250px;
    }
}

/* Responsive Styles */
@media (max-width: 480px) {
    .cart-bar {
        padding: 10px 16px;
    }

    .view-cart-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .cart-header {
        padding: 16px;
    }

    .cart-title {
        font-size: 1.1rem;
    }

    .cart-fullscreen-btn,
    .cart-close-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .cart-items-list {
        padding: 12px 16px;
    }

    .cart-footer {
        padding: 14px 16px 20px;
    }

    .checkout-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .cart-bar {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }

    .cart-bar.hidden {
        transform: translateX(-50%) translateY(100%);
    }

    .cart-section {
        max-width: 500px;
        left: 50%;
        margin-left: -250px;
    }
}

/* ===== TODAY'S SPECIALS POPUP ===== */
.specials-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.specials-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.specials-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 201;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.specials-popup.active {
    transform: translateY(0);
}

.specials-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.specials-popup-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specials-popup-header h3 i {
    color: #f59e0b;
}

.specials-popup-close {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.specials-popup-close:hover {
    background: #e5e5e5;
    color: #333;
}

.specials-popup-body {
    overflow-y: auto;
    padding: 16px;
    flex: 1;
}

/* Specials Empty State */
.specials-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.specials-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 12px;
    display: block;
}

.specials-empty p {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin: 0 0 4px;
}

.specials-empty span {
    font-size: 0.85rem;
}

/* Specials Card */
.specials-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.specials-card:hover {
    background: #f0f0f0;
}

.specials-card-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.specials-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specials-card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
}

.specials-card-badge .veg-dot,
.specials-card-badge .non-veg-dot {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specials-card-badge .veg-dot {
    border: 2px solid #22c55e;
}

.specials-card-badge .veg-dot::after {
    content: '';
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
}

.specials-card-badge .non-veg-dot {
    border: 2px solid #ef4444;
}

.specials-card-badge .non-veg-dot::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 7px solid #ef4444;
}

.specials-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.specials-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1A1A2E;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.specials-card-desc {
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.specials-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.specials-card-pricing {
    display: flex;
    align-items: center;
    gap: 6px;
}

.specials-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A2E;
}

.specials-card-mrp {
    font-size: 0.75rem;
    color: #aaa;
}

.specials-card-off {
    font-size: 0.65rem;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.specials-card-add {
    background: #1A1A2E;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.specials-card-add:hover {
    background: #2a2a4e;
    transform: scale(1.05);
}

/* Desktop layout for specials popup handled by desktop-common.css */

/* ===== BOTTOM NAVIGATION ===== */
body:has(.bottom-nav) {
    padding-bottom: 70px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #1A1A2E;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 60;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.15);
}

.bottom-nav.hidden {
    transform: translateY(100%);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.65rem;
    font-family: inherit;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    transition: color 0.25s ease, transform 0.2s ease;
    position: relative;
    min-width: 0;
    flex: 1;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-item i {
    font-size: 1.25rem;
    transition: all 0.25s ease;
}

/* Dual icon system: outline default, filled on active */
.bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
}

.bottom-nav-icon-wrap > i {
    position: absolute;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.bottom-nav-icon-active {
    opacity: 0;
    transform: scale(0.5);
}

.bottom-nav-item.active .bottom-nav-icon-wrap > i:not(.bottom-nav-icon-active) {
    opacity: 0;
    transform: scale(0.5);
}

.bottom-nav-item.active .bottom-nav-icon-active {
    opacity: 1;
    transform: scale(1);
}

.bottom-nav-item > span:last-child {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: 0.01em;
    transition: color 0.25s ease;
}

.bottom-nav-item.active {
    background: none;
    color: #ffffff;
    font-weight: 600;
}

.bottom-nav-item.active i {
    color: #ffffff;
}

/* Cart Badge */
.bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    background: #ef4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #1A1A2E;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Desktop layout handled by desktop-common.css */

