/* ==========================================================================
   RESTAURANT DIGITAL MENU - MAIN STYLESHEET (ARABIC / RTL)
   ========================================================================== */

:root {
    --primary-color: #e65100;
    --primary-hover: #bf360c;
    --primary-light: #fff3e0;
    --secondary-color: #2e384d;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
    --font-arabic: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.25s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: var(--font-arabic);
    background-color: var(--bg-main);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

.menu-container, .main-content {
    flex: 1 0 auto;
    padding-bottom: 90px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ==========================================================================
   HERO / BANNER SECTION
   ========================================================================== */

.menu-hero {
    position: relative;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    padding: 2rem 0 3.5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(230, 81, 0, 0.25), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.15), transparent 50%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffedd5;
}

.admin-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: #e2e8f0;
    transition: var(--transition);
}

.admin-quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-brand {
    text-align: center;
    margin-bottom: 1.25rem;
}

.restaurant-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
}

.restaurant-tagline {
    font-size: 1.05rem;
    color: #cbd5e1;
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
}

.table-welcome-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e65100;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.4);
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.hero-info-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.hero-contact-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.75rem;
}

.btn-hero-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-hero-contact:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-hero-contact.whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
}

.btn-hero-contact.whatsapp:hover {
    background: #1eb857;
}

/* SEARCH INPUT */
.search-box-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-box input {
    width: 100%;
    padding: 14px 48px 14px 44px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    color: var(--text-dark);
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.search-input-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.25);
}

.search-input-box .search-icon {
    position: absolute;
    right: 18px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    left: 16px;
    background: #e2e8f0;
    color: var(--text-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
}

/* ==========================================================================
   STICKY CATEGORIES NAVIGATION BAR
   ========================================================================== */

.categories-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.categories-scroll-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.categories-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}
.categories-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: #f1f5f9;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    flex-shrink: 0;
}

.cat-pill .cat-icon {
    font-size: 1.15rem;
}

.cat-pill .cat-count {
    background: rgba(0,0,0,0.07);
    color: inherit;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 0.78rem;
}

.cat-pill:hover {
    background: #e2e8f0;
}

.cat-pill.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
}

.cat-pill.active .cat-count {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* TAG FILTER CHIPS */
.tag-filter-section {
    padding: 12px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.tag-filter-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
}

.tag-chip {
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.tag-chip:hover {
    border-color: #94a3b8;
    color: var(--text-dark);
}

.tag-chip.active {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

/* ==========================================================================
   MENU CONTENT & PRODUCT CARDS
   ========================================================================== */

.menu-content-container {
    padding-top: 2rem;
}

.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.category-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cat-header-icon {
    font-size: 1.6rem;
}

.cat-header-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
}

.category-divider {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to left, var(--border-color), transparent);
}

/* PRODUCT GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.product-image-box {
    position: relative;
    width: 100%;
    padding-top: 65%; /* 16:10 aspect */
    background: #f1f5f9;
    overflow: hidden;
    cursor: pointer;
}

.product-image-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-box img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.badge-custom {
    background: #111827;
    color: #fef08a;
}

.badge-discount {
    background: #dc2626;
    color: #ffffff;
}

.badge-unavailable {
    background: #64748b;
    color: #ffffff;
}

.image-meta-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.image-meta-overlay span {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(4px);
    color: #f8fafc;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 500;
}

/* PRODUCT CARD BODY */
.product-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-main-info {
    cursor: pointer;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-color);
}

.product-price-box {
    display: flex;
    flex-direction: column;
}

.current-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(230, 81, 0, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-add-to-cart:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.out-stock-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
}

.item-out-of-stock .product-image-box img {
    filter: grayscale(80%) opacity(70%);
}

/* NO RESULTS BOX */
.no-results-box {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.no-results-box h3 {
    margin: 1rem 0 0.5rem;
    color: var(--text-dark);
}

/* ==========================================================================
   FLOATING CART BAR & DRAWER
   ========================================================================== */

.floating-cart-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    margin: 0 auto;
    z-index: 900;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.floating-cart-inner {
    background: linear-gradient(135deg, #e65100, #bf360c);
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(230, 81, 0, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.floating-cart-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(230, 81, 0, 0.5);
}

.cart-summary-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-count-badge {
    background: #ffffff;
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.cart-summary-text {
    display: flex;
    flex-direction: column;
}
.cart-summary-text strong {
    font-size: 0.95rem;
    line-height: 1.2;
}
.cart-summary-text span {
    font-size: 0.75rem;
    color: #ffedd5;
}

.cart-summary-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-total-price {
    font-size: 1.15rem;
    font-weight: 800;
}

/* CART OVERLAY / DRAWER */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.cart-drawer {
    width: 100%;
    max-width: 460px;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .cart-drawer {
    transform: translateX(100%);
}

.cart-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-header .header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.close-cart-btn {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-muted);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.cart-empty-notice {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.cart-empty-notice i {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    padding: 4px 8px;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cart-qty-val {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 16px;
    text-align: center;
}

.cart-divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.cart-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ORDER TYPE PICKER */
.order-type-picker {
    display: flex;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.type-pill {
    flex: 1;
    cursor: pointer;
}

.type-pill input {
    display: none;
}

.type-pill span {
    display: block;
    text-align: center;
    padding: 8px 10px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.type-pill input:checked + span {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cart-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.cart-bill-summary {
    margin-bottom: 1rem;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.bill-row.total {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 800;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.cart-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-whatsapp-order {
    background: #25d366;
    color: #ffffff;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-whatsapp-order:hover {
    background: #1eb857;
}

.btn-primary-order {
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-primary-order:hover {
    background: var(--primary-hover);
}

/* ==========================================================================
   MODALS (PRODUCT VIEW & CONFIRMATION)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-dialog {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
    transform: scale(1);
}

.modal-product-view .modal-content {
    position: relative;
}

.modal-close-round {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close-round:hover {
    background: rgba(0, 0, 0, 0.8);
}

.product-modal-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f1f5f9;
}
.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-badge-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #111827;
    color: #fef08a;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.product-modal-body {
    padding: 1.5rem;
}

.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.75rem;
}
.modal-title-row h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
}
.modal-price-box .price-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}
.modal-price-box .old-price-val {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-right: 6px;
}

.modal-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}
.modal-meta-tag {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-dark);
}

.modal-desc-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.modal-desc-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-order-bar {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.qty-counter {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 4px;
}
.qty-btn {
    width: 34px;
    height: 34px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
}

.btn-add-modal {
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
}
.btn-add-modal:hover {
    background: var(--primary-hover);
}

/* FOOTER */
.menu-footer {
    background: #111827;
    color: #94a3b8;
    padding: 3rem 0 2.5rem;
    margin-top: auto;
    margin-bottom: 0;
    width: 100%;
}
.footer-brand h3 {
    color: #ffffff;
    font-size: 1.3rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 1rem 0;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.footer-links a:hover {
    color: #ffffff;
}
.copyright {
    font-size: 0.8rem;
    color: #64748b;
}

/* ==========================================================================
   MODERN CART ORDER FORM & INPUTS
   ========================================================================== */

.cart-order-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.cart-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-header-badge {
    width: 40px;
    height: 40px;
    background: #fff7ed;
    color: #ea580c;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.cart-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.cart-section-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

.modern-field {
    position: relative;
}

.form-label-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.required-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: #fee2e2;
    color: #b91c1c;
    padding: 1.5px 7px;
    border-radius: 4px;
}

.badge-optional {
    font-size: 0.68rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    padding: 1.5px 7px;
    border-radius: 4px;
}

.tables-count-pill {
    font-size: 0.72rem;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Order Type Segmented Control */
.type-segmented-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.type-segment-btn {
    display: block;
    cursor: pointer;
    margin: 0;
}

.type-segment-btn input {
    display: none;
}

.type-segment-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s ease;
    user-select: none;
}

.type-segment-btn input:checked + .type-segment-content {
    background: #ffffff;
    color: #ea580c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 800;
}

/* Scanned Table Alert */
.scanned-table-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 8px;
    color: #166534;
}

.pulse-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    flex-shrink: 0;
}

.btn-change-table {
    background: #ffffff;
    border: 1px solid #86efac;
    color: #15803d;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-change-table:hover {
    background: #f0fdf4;
    border-color: #4ade80;
}

/* Modern Input & Select Wrappers */
.modern-input-wrapper,
.modern-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.modern-input-wrapper .input-icon,
.modern-select-wrapper .input-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}

.form-control-modern,
.form-select-modern {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0f172a;
    transition: all 0.2s ease;
}

.form-control-modern::placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
}

.form-control-modern:focus,
.form-select-modern:focus {
    background: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 0 0 3.5px rgba(234, 88, 12, 0.12);
    outline: none;
}

.form-select-modern {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-left: 36px;
}

.select-chevron {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 2;
}

.modern-input-wrapper.textarea-wrap {
    align-items: flex-start;
}

.modern-input-wrapper.textarea-wrap .input-icon {
    top: 12px;
}

textarea.form-control-modern {
    min-height: 60px;
    resize: vertical;
    line-height: 1.5;
}

/* ==========================================================================
   REDESIGNED ORDER CONFIRMATION MODAL (RECEIPT STYLE)
   ========================================================================== */

.modal-order-receipt {
    max-width: 460px;
    width: 94%;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.success-receipt-content {
    position: relative;
    padding: 1.5rem 1.4rem;
    text-align: center;
}

.receipt-header-hero {
    margin-bottom: 1.25rem;
}

.success-icon-animation {
    position: relative;
    width: 66px;
    height: 66px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #ecfdf5;
    border: 2px dashed #34d399;
    animation: spin-slow 18s linear infinite;
}

.success-ring-inner {
    width: 50px;
    height: 50px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    z-index: 2;
}

.success-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.success-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* Digital Ticket */
.digital-receipt-ticket {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    position: relative;
    text-align: right;
}

.ticket-code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-code-label {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.ticket-code-val {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ea580c;
    letter-spacing: 0.5px;
    font-family: monospace, 'Cairo', sans-serif;
}

.btn-copy-code {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-copy-code:hover {
    background: #fff7ed;
    border-color: #ea580c;
    color: #ea580c;
}

/* Perforated Divider with cutouts */
.ticket-perforated-divider {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0.75rem -1.15rem;
    height: 16px;
}

.ticket-perforated-divider .dashed-line {
    flex-grow: 1;
    border-bottom: 2px dashed #cbd5e1;
}

.ticket-perforated-divider .cutout-left,
.ticket-perforated-divider .cutout-right {
    width: 14px;
    height: 16px;
    background: #ffffff;
    position: absolute;
    z-index: 2;
}

.ticket-perforated-divider .cutout-left {
    left: -1.5px;
    border-radius: 0 16px 16px 0;
    border: 1.5px solid #e2e8f0;
    border-left: none;
}

.ticket-perforated-divider .cutout-right {
    right: -1.5px;
    border-radius: 16px 0 0 16px;
    border: 1.5px solid #e2e8f0;
    border-right: none;
}

/* Ticket Meta Grid */
.ticket-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 0.85rem;
}

.ticket-meta-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
}

.ticket-meta-item .meta-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.ticket-meta-item .meta-val {
    font-size: 0.86rem;
    color: #1e293b;
    font-weight: 700;
}

.ticket-meta-item .meta-val.highlight-table {
    color: #ea580c;
}

.ticket-meta-item .meta-val.price-highlight {
    color: #059669;
    font-weight: 800;
}

/* Live Status Tracker */
.order-status-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 12px;
    margin-bottom: 0.85rem;
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.tracker-step .step-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.tracker-step .step-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
}

.tracker-step.active .step-icon {
    background: #10b981;
    color: #ffffff;
}

.tracker-step.active .step-label {
    color: #059669;
}

.tracker-step.in-progress .step-icon {
    background: #ea580c;
    color: #ffffff;
    animation: pulse-scale 1.5s infinite;
}

.tracker-step.in-progress .step-label {
    color: #ea580c;
}

.tracker-line {
    flex-grow: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 6px 14px;
    border-radius: 2px;
}

.tracker-line.active {
    background: #10b981;
}

/* Ordered Items Mini Summary */
.ticket-items-summary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
}

.items-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.badge-items-count {
    font-size: 0.7rem;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 6px;
    border-radius: 4px;
}

.ticket-items-scroll {
    max-height: 95px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #1e293b;
}

.receipt-item-row .item-qty {
    color: #ea580c;
    font-weight: 800;
    margin-left: 3px;
}

.receipt-item-row .item-price {
    font-weight: 700;
    color: #475569;
}

/* Receipt Tip & Actions */
.receipt-tip-notice {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    padding: 7px 11px;
    font-size: 0.76rem;
    color: #1e40af;
    margin-bottom: 1rem;
    text-align: right;
    line-height: 1.4;
}

.receipt-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-whatsapp-follow {
    background: #25d366;
    color: #ffffff;
    border-radius: 11px;
    padding: 11px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.btn-whatsapp-follow:hover {
    background: #1eb857;
    color: #ffffff;
}

.btn-primary-return {
    background: #0f172a;
    color: #ffffff;
    border-radius: 11px;
    padding: 11px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.btn-primary-return:hover {
    background: #1e293b;
    color: #ffffff;
}

@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ==========================================================================
   CUSTOMER LIVE ORDER TRACKING STYLES
   ========================================================================== */

/* Active Order Tracking Bar (Below Search Bar) */
.active-order-tracking-bar {
    margin-top: 12px;
    margin-bottom: 4px;
    width: 100%;
}

.tracking-bar-inner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid #ea580c;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.22);
    transition: all 0.25s ease;
}

.tracking-bar-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.3);
    border-color: #f97316;
}

.tracking-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.live-pulse-badge {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.4);
    animation: live-pulse 1.6s infinite ease-out;
}

@keyframes live-pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.tracking-bar-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tracking-bar-title strong {
    color: #fdba74;
    letter-spacing: 0.5px;
}

.tracking-bar-status {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.dot-yellow { background: #eab308; box-shadow: 0 0 6px #eab308; }
.status-dot.dot-orange { background: #f97316; box-shadow: 0 0 6px #f97316; }
.status-dot.dot-green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }

.btn-tracking-pill {
    background: #ea580c;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.tracking-bar-inner:hover .btn-tracking-pill {
    background: #c2410c;
}

/* Button in Confirmation Modal */
.btn-track-order-modal {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    border-radius: 11px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.btn-track-order-modal:hover {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   ORDER TRACKING POPUP MODAL
   ========================================================================== */

.modal-order-tracking {
    max-width: 460px;
    width: 94%;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tracking-modal-content {
    position: relative;
    padding: 1.5rem 1.4rem;
    text-align: right;
}

.tracking-modal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.tracking-modal-icon {
    width: 56px;
    height: 56px;
    background: #fff7ed;
    color: #ea580c;
    border-radius: 50%;
    margin: 0 auto 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

.tracking-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.tracking-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 800;
    color: #1e293b;
    font-size: 0.88rem;
}

.tracking-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2;
    color: #b91c1c;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.live-indicator-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: live-pulse 1.4s infinite;
}

/* 4-Step Visual Stepper */
.tracking-stepper-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 4px 0;
}

.stepper-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.stepper-content strong {
    display: block;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.3;
}

.stepper-content small {
    display: block;
    font-size: 0.74rem;
    color: #94a3b8;
}

.stepper-item.current .stepper-circle {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
    animation: pulse-scale 1.8s infinite;
}

.stepper-item.current .stepper-content strong {
    color: #ea580c;
    font-weight: 800;
}

.stepper-item.completed .stepper-circle {
    background: #10b981;
    color: #ffffff;
}

.stepper-item.completed .stepper-content strong {
    color: #0f172a;
}

.stepper-connector {
    width: 3px;
    height: 18px;
    background: #e2e8f0;
    margin-right: 15.5px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.stepper-connector.active {
    background: #10b981;
}

/* Status Banner */
.tracking-current-banner {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #1e40af;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tracking-current-banner.status-preparing {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.tracking-current-banner.status-ready {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.tracking-current-banner.status-completed {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

/* Meta Card */
.tracking-meta-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 0.85rem;
}

.tracking-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.84rem;
}

.tracking-meta-row:last-child {
    margin-bottom: 0;
}

.meta-label {
    color: #64748b;
    margin-left: 4px;
}

.highlight-table-number {
    font-size: 0.9rem;
    font-weight: 800;
}

/* Items Box */
.tracking-items-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 0.85rem;
}

.tracking-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.tracking-items-header i#trackItemsChevron {
    transition: transform 0.25s ease;
}

.tracking-items-list {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 110px;
    overflow-y: auto;
}

.tracking-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #1e293b;
}

.tracking-item-row .item-qty {
    color: #ea580c;
    margin-left: 4px;
}

/* Footnote & Auto Refresh Notice */
.tracking-auto-refresh-notice {
    font-size: 0.74rem;
    color: #64748b;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE TYPOGRAPHY (From 300px and up)
   ========================================================================== */

@media (max-width: 768px) {
    .menu-footer {
        padding: 2.5rem 0 calc(2rem + 80px);
        margin-top: auto;
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .restaurant-name {
        font-size: 1.45rem;
    }
    .restaurant-tagline {
        font-size: 0.86rem;
    }
    .header-meta {
        gap: 8px 14px;
        font-size: 0.82rem;
    }
    .banner-title {
        font-size: 1.25rem;
    }
    .banner-desc {
        font-size: 0.85rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    /* Expanded Product Card for Mobile - ensures all information is displayed cleanly */
    .product-card {
        flex-direction: row;
        height: auto;
        min-height: 140px;
        align-items: stretch;
    }
    .product-image-box {
        width: 120px;
        min-width: 120px;
        height: auto;
        min-height: 100%;
        padding-top: 0;
        position: relative;
        flex-shrink: 0;
    }
    .product-image-box img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .product-body {
        padding: 0.75rem 0.85rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        min-width: 0;
    }
    .product-main-info {
        margin-bottom: 0.45rem;
    }
    .product-name {
        font-size: 0.98rem;
        font-weight: 700;
        margin-bottom: 4px;
        line-height: 1.35;
    }
    .product-desc {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.8rem;
        line-height: 1.45;
        color: var(--text-muted);
        margin-bottom: 4px;
    }
    .product-footer {
        padding-top: 0.5rem;
        gap: 6px;
    }
    .current-price {
        font-size: 1rem;
        font-weight: 800;
        white-space: nowrap;
    }
    .old-price {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .btn-add-to-cart {
        padding: 5px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
        border-radius: 8px;
    }
    /* Compact Badges & Meta Over Image for Mobile */
    .card-badge {
        top: 6px;
        right: 6px;
        padding: 2px 7px;
        font-size: 0.68rem;
        font-weight: 700;
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.25);
        max-width: calc(100% - 12px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .image-meta-overlay {
        bottom: 5px;
        left: 5px;
        gap: 3px;
        flex-wrap: wrap;
    }
    .image-meta-overlay span {
        padding: 2px 6px;
        font-size: 0.66rem;
        font-weight: 600;
        line-height: 1.2;
        border-radius: 4px;
        background: rgba(15, 23, 42, 0.85);
        color: #ffffff;
    }
    .image-meta-overlay span i {
        font-size: 0.6rem;
        margin-left: 2px;
    }
    .floating-cart-wrapper {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .floating-cart-inner {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .product-modal-image {
        height: 200px;
    }
    .modal-badge-tag {
        bottom: 8px;
        right: 8px;
        padding: 3px 10px;
        font-size: 0.72rem;
    }
}

/* Small Mobiles (360px to 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14.5px;
    }
    .container {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
    .restaurant-name {
        font-size: 1.3rem;
    }
    .category-title {
        font-size: 1.15rem;
    }
    .category-tab-btn {
        padding: 6px 12px;
        font-size: 0.82rem;
    }
    .filter-tag-pill {
        padding: 4px 10px;
        font-size: 0.76rem;
    }
    .product-card {
        min-height: 135px;
    }
    .product-image-box {
        width: 110px;
        min-width: 110px;
    }
    .product-body {
        padding: 0.7rem 0.75rem;
    }
    .product-name {
        font-size: 0.94rem;
    }
    .product-desc {
        font-size: 0.78rem;
        -webkit-line-clamp: 3;
    }
    .current-price {
        font-size: 0.94rem;
    }
    .btn-add-to-cart {
        padding: 4px 10px;
        font-size: 0.78rem;
    }
    .card-badge {
        top: 5px;
        right: 5px;
        padding: 2px 6px;
        font-size: 0.64rem;
        border-radius: 3px;
    }
    .image-meta-overlay {
        bottom: 4px;
        left: 4px;
        gap: 2px;
    }
    .image-meta-overlay span {
        padding: 1.5px 5px;
        font-size: 0.62rem;
        border-radius: 3px;
    }
    .image-meta-overlay span i {
        font-size: 0.56rem;
    }
    .product-modal-image {
        height: 180px;
    }
    .modal-badge-tag {
        bottom: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 0.68rem;
    }
    .modal-order-receipt {
        width: 96%;
        border-radius: 18px;
    }
    .success-receipt-content {
        padding: 1.25rem 1rem;
    }
    .digital-receipt-ticket {
        padding: 0.85rem;
    }
    .ticket-code-val {
        font-size: 1.2rem;
    }
    .modal-order-tracking {
        width: 96%;
        border-radius: 18px;
    }
    .tracking-modal-content {
        padding: 1.15rem 1rem;
    }
    .stepper-circle {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }
    .stepper-connector {
        margin-right: 13.5px;
    }
    .stepper-content strong {
        font-size: 0.82rem;
    }
    .stepper-content small {
        font-size: 0.7rem;
    }
    .tracking-bar-inner {
        padding: 8px 11px;
    }
    .btn-tracking-pill {
        padding: 5px 10px;
        font-size: 0.76rem;
    }
}

/* Compact Mobiles (320px to 360px) */
@media (max-width: 360px) {
    html {
        font-size: 13.5px;
    }
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .restaurant-name {
        font-size: 1.15rem;
    }
    .restaurant-tagline {
        font-size: 0.78rem;
    }
    .product-card {
        min-height: 128px;
    }
    .product-image-box {
        width: 95px;
        min-width: 95px;
    }
    .product-body {
        padding: 0.6rem 0.65rem;
    }
    .product-name {
        font-size: 0.88rem;
    }
    .product-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    .current-price {
        font-size: 0.88rem;
    }
    .btn-add-to-cart {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    .floating-cart-wrapper {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
    .floating-cart-inner {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .card-badge {
        top: 4px;
        right: 4px;
        padding: 1.5px 5px;
        font-size: 9.5px;
        border-radius: 3px;
        max-width: calc(100% - 8px);
        line-height: 1.2;
    }
    .image-meta-overlay {
        bottom: 3px;
        left: 3px;
        gap: 2px;
        max-width: calc(100% - 6px);
    }
    .image-meta-overlay span {
        padding: 1px 4px;
        font-size: 9px;
        border-radius: 3px;
        line-height: 1.2;
    }
    .image-meta-overlay span i {
        font-size: 8px;
    }
    .product-modal-image {
        height: 160px;
    }
    .modal-badge-tag {
        bottom: 6px;
        right: 6px;
        padding: 2px 6px;
        font-size: 9.5px;
    }
    .cart-order-form {
        padding: 0.95rem;
        border-radius: 12px;
    }
    .type-segment-content {
        padding: 8px 8px;
        font-size: 0.82rem;
        gap: 6px;
    }
    .form-control-modern,
    .form-select-modern {
        padding: 9px 36px 9px 10px;
        font-size: 0.84rem;
        border-radius: 9px;
    }
    .modal-order-receipt {
        width: 98%;
        border-radius: 16px;
    }
    .success-receipt-content {
        padding: 1rem 0.75rem;
    }
    .ticket-meta-grid {
        gap: 6px;
    }
    .ticket-meta-item {
        padding: 6px 8px;
    }
    .ticket-code-val {
        font-size: 1.15rem;
    }
    .btn-whatsapp-follow,
    .btn-primary-return {
        padding: 9px 12px;
        font-size: 0.85rem;
    }
    .tracking-bar-title {
        font-size: 0.82rem;
    }
    .tracking-bar-status {
        font-size: 0.74rem;
    }
    .btn-tracking-pill {
        padding: 4px 8px;
        font-size: 0.72rem;
    }
    .btn-tracking-pill .arrow-icon {
        display: none;
    }
    .tracking-modal-title {
        font-size: 1.1rem;
    }
    .tracking-modal-content {
        padding: 1rem 0.75rem;
    }
    .tracking-meta-row {
        font-size: 0.78rem;
    }
    .stepper-circle {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    .stepper-connector {
        margin-right: 11.5px;
        height: 14px;
    }
}

/* Ultra-Compact Mobiles (300px to 320px) */
@media (max-width: 320px) {
    html {
        font-size: 12.5px;
    }
    .container {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
    .restaurant-name {
        font-size: 1.05rem;
    }
    .product-card {
        min-height: 120px;
    }
    .product-image-box {
        width: 85px;
        min-width: 85px;
    }
    .product-body {
        padding: 0.5rem 0.55rem;
    }
    .product-name {
        font-size: 0.84rem;
    }
    .product-desc {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
    }
    .current-price {
        font-size: 0.84rem;
    }
    .btn-add-to-cart {
        padding: 3px 6px;
        font-size: 0.72rem;
    }
    .card-badge {
        top: 3px;
        right: 3px;
        padding: 1px 4px;
        font-size: 8.5px;
        border-radius: 3px;
        max-width: calc(100% - 6px);
        line-height: 1.15;
    }
    .image-meta-overlay {
        bottom: 3px;
        left: 3px;
        gap: 2px;
        max-width: calc(100% - 6px);
    }
    .image-meta-overlay span {
        padding: 1px 3.5px;
        font-size: 8.5px;
        border-radius: 3px;
        line-height: 1.15;
    }
    .image-meta-overlay span i {
        font-size: 7.5px;
    }
    .product-modal-image {
        height: 140px;
    }
    .modal-badge-tag {
        bottom: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 8.5px;
    }
    .type-segmented-control {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .ticket-meta-grid {
        grid-template-columns: 1fr;
    }
    .ticket-code-val {
        font-size: 1.05rem;
    }
    .success-title {
        font-size: 1.15rem;
    }
    .success-subtitle {
        font-size: 0.78rem;
    }
    .btn-whatsapp-follow,
    .btn-primary-return {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    .tracking-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        text-align: center;
    }
    .tracking-bar-left {
        justify-content: center;
    }
    .btn-tracking-pill {
        justify-content: center;
        width: 100%;
        padding: 5px 8px;
        font-size: 0.72rem;
    }
    .tracking-meta-row {
        flex-direction: column;
        gap: 2px;
        font-size: 0.75rem;
    }
    .stepper-content strong {
        font-size: 0.76rem;
    }
    .stepper-content small {
        font-size: 0.66rem;
    }
    .tracking-current-banner {
        font-size: 0.78rem;
        padding: 8px 10px;
    }
}
