* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6ff;
    color: #333;
}

/* ========== NAVBAR ========== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 12px;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.logo {
    height: 50px;
    width: auto;
}
.delivery-location {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}
.delivery-location:hover {
    background: #eef2ff;
}
.location-info {
    display: flex;
    flex-direction: column;
}
.location-label {
    font-size: 10px;
    color: #666;
}
.location-address {
    font-size: 12px;
    font-weight: 500;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.status-indicator {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.searchBox {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.searchBox input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 13px;
}
.voice-search-nav {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.voice-search-nav:hover {
    background: #4338ca;
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 80px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.userActions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.loginBtn, .signupBtn {
    padding: 6px 12px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
}
.loginBtn {
    border: 1px solid #4f46e5;
    color: #4f46e5;
    background: white;
}
.signupBtn {
    background: #4f46e5;
    color: white;
}

/* Offline banner */
.offlineBanner {
    background: #ff4444;
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 13px;
}

/* Delivery Banner */
.delivery-banner {
    background: #e8f5e9;
    padding: 8px 20px;
    margin-left: 90px;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.delivery-charge-badge {
    background: #4f46e5;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
}

/* ========== HERO SLIDER ========== */
.heroSlider {
    position: relative;
    width: calc(100% - 90px);
    margin-left: 90px;
    margin-top: 0;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}
.slide.active {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-order-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.order-now-btn {
    background: #4f46e5;
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.order-now-btn:hover {
    background: #4338ca;
    transform: scale(1.05);
}
.sliderDots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.sliderDots span {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
}
.sliderDots span.active {
    opacity: 1;
}
@media(max-width:768px){
    .heroSlider {
        width: calc(100% - 70px);
        margin-left: 70px;
        height: 120px;
    }
    .order-now-btn {
        padding: 4px 10px;
        font-size: 9px;
    }
}

/* ========== RIGHT SIDE FLOATING BUTTONS ========== */
.right-floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}
.floating-whatsapp {
    background: #25D366;
    color: white;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.3s;
    position: relative;
}
.floating-whatsapp:hover {
    background: #1da851;
    transform: scale(1.05);
}
.floating-whatsapp .whatsapp-badge {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    position: absolute;
    top: -8px;
    right: -8px;
}
.floating-track {
    background: #4f46e5;
    color: white;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.3s;
    position: relative;
}
.floating-track:hover {
    background: #4338ca;
    transform: scale(1.05);
}
.floating-track .track-badge {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    position: absolute;
    top: -8px;
    right: -8px;
}
.floating-install-right {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.floating-install-right:hover {
    background: #4338ca;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .right-floating-buttons {
        right: 10px;
        gap: 8px;
    }
    .floating-whatsapp, .floating-track, .floating-install-right {
        padding: 6px 12px;
        font-size: 11px;
    }
    .floating-whatsapp .whatsapp-badge,
    .floating-track .track-badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
        top: -6px;
        right: -6px;
    }
}

/* ========== TRACK ORDER MODAL ========== */
.track-section {
    margin-bottom: 25px;
}
.track-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4f46e5;
    display: inline-block;
}
.history-section h3 {
    border-bottom-color: #10b981;
}
.no-orders-message {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}
.no-orders-message i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #4f46e5;
}
.login-prompt {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}
.login-prompt i {
    font-size: 48px;
    color: #4f46e5;
    margin-bottom: 15px;
}
.login-prompt a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: bold;
}
.track-order-item, .history-order-item {
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
}
.track-order-item:hover, .history-order-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #4f46e5;
}
.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.order-date {
    font-size: 11px;
    color: #666;
}
.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.status-received { background: #dbeafe; color: #1e40af; }
.status-preparing { background: #fed7aa; color: #9a3412; }
.status-ready { background: #c7d2fe; color: #3730a3; }
.status-outfordelivery { background: #d1fae5; color: #065f46; }
.status-delivered { background: #d1fae5; color: #065f46; }
.order-items-preview {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0;
}
.order-total {
    font-weight: bold;
    color: #4f46e5;
    margin: 5px 0;
}
.track-btn {
    background: none;
    border: 1px solid #4f46e5;
    color: #4f46e5;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    width: 100%;
    transition: 0.3s;
}
.track-btn:hover {
    background: #4f46e5;
    color: white;
}

/* ========== VERTICAL STICKY CATEGORY BAR ========== */
.vertical-category-bar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 90px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    z-index: 900;
    height: calc(100vh - 70px);
    overflow-y: auto;
    transition: all 0.3s;
}
.category-header {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.category-header h3 {
    font-size: 13px;
    margin: 0;
}
.category-list {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.category-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}
.category-item.active {
    background: #4f46e5;
    border-radius: 30px;
    transform: translateX(5px);
}
.category-item.active img {
    border-color: white;
}
.category-item.active span {
    color: white;
}
.category-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4f46e5;
}
.category-item span {
    font-size: 10px;
    margin-top: 4px;
    font-weight: 500;
}

/* Popular Section */
.popular-section {
    margin-left: 90px;
    padding: 0 20px;
}
@media (max-width: 768px) {
    .popular-section {
        margin-left: 70px;
    }
}

/* Main content area */
.main-content {
    margin-left: 90px;
    padding: 20px;
}
@media (max-width: 768px) {
    .main-content {
        margin-left: 70px;
        padding: 10px;
    }
}

/* ========== SECTION TITLE ========== */
.sectionTitle {
    font-size: 18px;
    font-weight: bold;
    padding: 12px 20px;
}

/* ========== POPULAR ITEMS ========== */
.popularGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 0 15px 20px;
}
.popularCard {
    background: white;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.popularCard img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}
.popularCard h4 {
    margin-top: 6px;
    font-size: 14px;
}
.popularCard .price {
    font-weight: bold;
    color: #4f46e5;
    margin: 5px 0;
}

/* ========== PRODUCTS ========== */
.productGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 15px;
}
.productCard {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.productCard:hover {
    transform: translateY(-3px);
}
.productImg img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}
.productCard h3 {
    margin-top: 8px;
    font-size: 16px;
}
.productCard p {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
.price {
    font-weight: bold;
    margin-top: 6px;
    color: #4f46e5;
}

/* +/- Quantity controls */
.product-card-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-control button {
    background: #4f46e5;
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}
.qty-control span {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* ========== BOTTOM CART BAR ========== */
.cart-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ff4444;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    padding: 8px;
    z-index: 999;
    transition: all 0.3s;
    color: white;
}
.cart-bottom-bar:not(.cart-active) {
    background: white;
    color: #333;
}
.cart-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
}
.cart-item-card {
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    font-size: 11px;
    color: #333;
}
.cart-bottom-bar.cart-active .cart-item-card {
    background: rgba(0,0,0,0.2);
    color: white;
}
.item-name {
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 5px 0;
}
.item-qty-controls button {
    background: #4f46e5;
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
}
.cart-bottom-bar.cart-active .item-qty-controls button {
    background: white;
    color: #4f46e5;
}
.item-price {
    font-weight: bold;
}
@keyframes barPulse {
    0% { background: #ff4444; }
    50% { background: #ff8888; }
    100% { background: #ff4444; }
}
.cart-bottom-bar.pulse {
    animation: barPulse 0.5s ease;
}

/* ========== FLOATING CART BUTTON ========== */
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4f46e5;
    color: white;
    padding: 10px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.2s, background 0.2s;
    transition: bottom 0.3s ease;
}
.floating-cart-btn:hover {
    transform: scale(1.05);
}
.floating-cart-btn .cart-icon {
    position: relative;
}
.floating-cart-btn .cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-cart-btn .cart-total {
    font-weight: bold;
    font-size: 14px;
}
.floating-cart-btn.cart-active {
    background: #2ecc71;
}
.floating-cart-btn.pulse {
    animation: cartPulse 0.5s ease;
}
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #ff8c42; }
    100% { transform: scale(1); }
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 2001;
}
.close-modal, .close-modal-success {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
.form-group {
    margin-bottom: 15px;
    position: relative;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.address-autocomplete {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.location-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
}
.order-summary {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
}
.order-summary ul {
    margin-left: 20px;
}
.delivery-charge {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid #ddd;
}
.payment-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.payment-icons i {
    font-size: 20px;
    color: #4f46e5;
}
.confirm-order-btn {
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}
.success-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.success-buttons a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
}
.selected-location {
    margin: 10px 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 12px;
}
.suggestions-list {
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    display: none;
    position: absolute;
    z-index: 2100;
    width: 100%;
    left: 0;
    top: 100%;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.suggestion-item:hover {
    background: #f0f0f0;
}
.voice-result-item:hover {
    background: #f0f0f0;
}

/* Fix Google Places Autocomplete dropdown */
.pac-container {
    z-index: 2100 !important;
}

/* Voice highlight */
.productCard.voice-highlight, .popularCard.voice-highlight {
    background: #fff0e0;
    transform: scale(1.02);
    transition: all 0.3s;
    box-shadow: 0 0 0 2px #ff8c42;
}

/* Saved Addresses */
.saved-addresses {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
}
.saved-addresses label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}
.address-list {
    max-height: 150px;
    overflow-y: auto;
}
.address-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eee;
    transition: 0.2s;
}
.address-item:hover {
    background: #eef2ff;
    border-color: #4f46e5;
}
.address-item.default-address {
    background: #e8f5e9;
    border-color: #2ecc71;
}
.default-badge {
    background: #2ecc71;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    margin-left: auto;
}
.save-address-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    font-size: 13px;
}
.save-address-btn:hover {
    background: #27ae60;
}

/* Delivery Info Box */
.delivery-info-box {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
}
.distance-result {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}
.distance-info {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.delivery-charge-preview {
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 12px;
    }
    .logo-section {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .delivery-location {
        flex-wrap: wrap;
        white-space: normal;
    }
    .searchBox {
        width: 100%;
    }
    .userActions {
        justify-content: center;
    }
    .productGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
    .popularGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vertical-category-bar {
        width: 70px;
        top: 110px;
        height: calc(100vh - 110px);
    }
    .delivery-banner {
        margin-left: 70px;
        font-size: 11px;
        flex-wrap: wrap;
        gap: 5px;
    }
    .floating-cart-btn.cart-active {
        bottom: 160px !important;
    }
}

/* Floating cart button with "Place Order" text */
.floating-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #4f46e5;
    color: white;
    padding: 10px 16px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.2s, background 0.2s;
}
.floating-cart-btn .place-order-text {
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
}
.floating-cart-btn.cart-active {
    background: #2ecc71;
}
@media (max-width: 768px) {
    .floating-cart-btn .place-order-text {
        font-size: 12px;
    }
}

/* Delivery Banner with Order Status */
.delivery-banner {
    background: #e8f5e9;
    padding: 8px 20px;
    margin-left: 90px;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}
.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.order-status-info {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(79,70,229,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}
.order-status-info i {
    color: #4f46e5;
}
.order-status-info .track-hint {
    font-size: 11px;
    color: #666;
}
.order-status-info a {
    color: #4f46e5;
    text-decoration: none;
}
@media (max-width: 768px) {
    .delivery-banner {
        margin-left: 70px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Delivery Banner */
.delivery-banner {
    background: #e8f5e9;
    padding: 8px 20px;
    margin-left: 90px;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}
.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.order-status-info {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(79,70,229,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}
.order-status-info i {
    color: #4f46e5;
}
.order-status-info .track-hint {
    font-size: 11px;
    color: #666;
}
.order-status-info a {
    color: #4f46e5;
    text-decoration: none;
}
@media (max-width: 768px) {
    .delivery-banner {
        margin-left: 70px;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Guest Tracking Modal Styles - Mobile Optimized */
.guest-tracking-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.guest-tracking-input input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.guest-tracking-input input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.guest-order-result {
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    15% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        margin: 10px auto !important;
        padding: 15px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .guest-tracking-section {
        padding: 12px;
    }
    
    .guest-tracking-input {
        gap: 8px;
    }
    
    .guest-tracking-input input,
    .guest-tracking-input button {
        font-size: 14px;
        padding: 10px;
    }
    
    .guest-order-details {
        font-size: 12px;
    }
    
    .guest-order-details p,
    .guest-order-details li {
        font-size: 12px;
    }
    
    .btn-primary {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    h2 {
        font-size: 18px !important;
    }
}

/* Enhanced Guest Tracking Styles */
.guest-order-details {
    max-height: 500px;
    overflow-y: auto;
}

.guest-order-details ul {
    list-style: none;
    padding-left: 0;
}

.guest-order-details li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.guest-whatsapp-btn {
    transition: all 0.3s ease;
}

.guest-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.guest-whatsapp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .guest-order-details {
        font-size: 12px;
    }
    
    .guest-order-details p,
    .guest-order-details li {
        font-size: 12px;
    }
    
    .guest-order-details strong {
        font-size: 13px;
    }
}

/* Category bar dynamic positioning */
.vertical-category-bar {
    transition: top 0.2s ease, max-height 0.2s ease;
}

/* Voice Bot Styles */
.voice-bot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.voice-bot-icon:hover { transform: scale(1.1); }
.voice-bot-icon i { font-size: 28px; color: white; }

.voice-bot-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
}
.voice-bot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.voice-bot-header h3 { margin: 0; font-size: 18px; }
.voice-bot-close { font-size: 24px; cursor: pointer; }

.voice-bot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}
.user-message, .bot-message {
    max-width: 80%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
}
.user-message {
    background: #667eea;
    color: white;
    margin-left: auto;
    text-align: right;
}
.bot-message {
    background: #e9ecef;
    color: #333;
}
.voice-bot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}
.voice-bot-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin: 0 5px;
}
.voice-bot-input button {
    background: #667eea;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
}



