/* ==========================================================================
   B2B Hotel / Restaurant / Resort Order Management System - Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* GFE Brand Palette (Extracted directly from GFE Logo) */
    --gfe-navy: #003b7a;
    --gfe-navy-dark: #002652;
    --gfe-navy-light: #0056b3;
    --gfe-navy-subtle: #edf4fb;
    
    --gfe-green: #3ea614;
    --gfe-green-dark: #2c800c;
    --gfe-green-light: #48bb18;
    --gfe-green-subtle: #f0fdf0;
    --gfe-green-neon: #68d61a;

    /* Primary Color Palette (GFE Navy System) */
    --primary-50: #edf4fb;
    --primary-100: #d6e8f8;
    --primary-200: #b0d3f2;
    --primary-500: #0056b3;
    --primary-600: #003b7a;
    --primary-700: #002652;
    --primary-900: #001a38;

    /* Theme Accents */
    --accent-indigo: #6366f1;
    --accent-emerald: #3ea614;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;

    /* Surface & Background Colors */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-header: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Layout & Shell Architecture
   ========================================================================== */

.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 1040;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.sidebar-brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.sidebar-brand-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
    padding: 0.75rem 0.75rem 0.35rem;
    margin-top: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.2rem;
}

.sidebar-link i {
    font-size: 1.15rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.sidebar-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.07);
}

.sidebar-link:hover i {
    color: var(--primary-500);
}

.sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-link.active i {
    color: #ffffff;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-navbar {
    height: 64px;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.page-body {
    padding: 1.5rem;
    flex: 1;
}

/* ==========================================================================
   Components & Cards
   ========================================================================== */

.card-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
}

.stat-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--stat-accent, var(--primary-600));
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background-color: var(--stat-bg, var(--primary-50));
    color: var(--stat-accent, var(--primary-600));
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Order POS / Shopping UI
   ========================================================================== */

/* ==========================================================================
   Order POS / Shopping UI
   ========================================================================== */

.product-card-pos {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem 0.65rem 0.55rem 0.65rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.product-card-pos:hover {
    border-color: #3ea614;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -4px rgba(0, 59, 122, 0.12), 0 4px 8px -2px rgba(62, 166, 20, 0.08);
}

.product-card-top {
    display: flex;
    gap: 0.55rem;
    align-items: stretch;
}

.product-thumb-wrapper {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    flex-shrink: 0;
}

.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
    transition: transform 0.25s ease;
}

.product-card-pos:hover .product-thumb-img {
    transform: scale(1.04);
}

.product-emoji-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-pos:hover .product-emoji-icon {
    transform: scale(1.08);
}

.product-sku-tag {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 4px;
    border-radius: 4px;
}

.product-info-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 0.82rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0b1f38 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
    min-height: 2.05rem;
}

.product-unit-text {
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-pricing-wrap {
    margin-top: auto;
}

.product-price-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a99ad;
    display: block;
    line-height: 1;
    margin-bottom: 1px;
}

.product-price-val {
    color: #003b7a !important; /* GFE Brand Navy */
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.15;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.product-actions-bar {
    width: 100%;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid #f1f5f9;
}

.product-action-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row !important;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    overflow: hidden;
    height: 30px;
    width: 76px;
    min-width: 76px;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.qty-control:hover, .qty-control:focus-within {
    border-color: #003b7a;
}

.qty-btn {
    border: none;
    background: transparent;
    width: 22px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #003b7a;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    user-select: none;
    padding: 0;
}

.qty-btn:hover {
    background-color: #edf4fb;
    color: #002652;
}

.qty-btn:active {
    background-color: #d6e8f8;
}

.qty-input {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 100%;
    border: none;
    background: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 0.84rem;
    color: #0b1f38;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 0;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    background: #eff6ff;
}

.btn-add-to-cart {
    height: 30px;
    border-radius: 6px;
    white-space: nowrap;
    padding: 0 0.45rem;
    font-size: 0.74rem;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    flex-grow: 1;
    min-width: 0;
    background: linear-gradient(135deg, #3ea614 0%, #2c800c 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(62, 166, 20, 0.25) !important;
}

.btn-add-to-cart .btn-cart-icon {
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
}

.btn-add-to-cart .btn-text {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #46bc17 0%, #34960f 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(62, 166, 20, 0.35) !important;
    color: #ffffff !important;
}

.btn-add-to-cart:active {
    transform: scale(0.97);
}

/* ==========================================================================
   Public Customer Portal Styling
   ========================================================================== */

.public-portal-body {
    background-color: #f4f7fa;
}

/* Brand Accent Top Line (Navy to Lime Gradient from GFE Logo) */
.header-brand-line {
    height: 3px;
    background: linear-gradient(90deg, #002652 0%, #003b7a 40%, #3ea614 75%, #68d61a 100%);
    width: 100%;
}

.public-header {
    border-bottom: 1px solid #dce5ef;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.96);
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 38, 82, 0.05);
}

.header-company-title {
    font-size: 1.15rem;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: #002652 !important;
    line-height: 1.25;
}

.header-support-btn {
    border-color: #3ea614 !important;
    color: #2c800c !important;
    background-color: #f0fdf0 !important;
    transition: all 0.2s ease;
}

.header-support-btn:hover {
    background-color: #3ea614 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(62, 166, 20, 0.25);
}

.header-cart-btn {
    background: linear-gradient(135deg, #002652 0%, #003b7a 100%) !important;
    border: 1px solid #002652 !important;
    color: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 59, 122, 0.25) !important;
}

.header-cart-btn:hover {
    background: linear-gradient(135deg, #001a38 0%, #002d62 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 59, 122, 0.35) !important;
    color: #ffffff !important;
}

.header-cart-btn .header-cart-badge {
    background: #3ea614 !important;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25em 0.6em;
    box-shadow: 0 2px 5px rgba(62, 166, 20, 0.4);
}

/* Filter Card & Category Pills */
.public-filter-card {
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

.public-search-bar-wrap {
    margin-bottom: 0.55rem;
}

.search-input-group {
    box-shadow: 0 1px 4px rgba(0, 38, 82, 0.04);
    border-radius: 9999px;
    overflow: hidden;
    border: 1.5px solid #dce5ef;
    background: #ffffff;
    height: 36px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.search-input-group:focus-within {
    border-color: #3ea614;
    box-shadow: 0 0 0 3px rgba(62, 166, 20, 0.15);
}

.search-input-group .form-control {
    font-size: 0.84rem;
    box-shadow: none !important;
    border: none !important;
    background: transparent;
    height: 100%;
}

.search-input-group .input-group-text {
    border: none !important;
    background: transparent;
}

.search-input-group .bi-search {
    color: #003b7a !important;
}

.sort-select {
    border-radius: 8px;
    border-color: #cbd5e1;
    font-weight: 600;
    color: #0b1f38;
}

.sort-select:focus {
    border-color: #003b7a;
    box-shadow: 0 0 0 3px rgba(0, 59, 122, 0.12);
}

.category-pills-wrap {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.category-pills-wrap::-webkit-scrollbar {
    height: 4px;
}

.category-pills-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.public-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    border: 1.5px solid #dce5ef;
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.public-cat-pill:hover {
    background: #f8fafc;
    border-color: #3ea614;
    color: #002652;
    transform: translateY(-1px);
}

.public-cat-pill.active {
    background: linear-gradient(135deg, #002652 0%, #003b7a 100%) !important;
    border-color: #002652 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 59, 122, 0.28) !important;
}

.public-cat-pill .cat-pill-badge {
    background-color: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.public-cat-pill.active .cat-pill-badge {
    background-color: #3ea614 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(62, 166, 20, 0.35);
}

/* Offcanvas Cart Styling */
.public-cart-offcanvas {
    width: 480px !important;
    max-width: 100vw;
}

.public-cart-offcanvas .offcanvas-header {
    background: linear-gradient(135deg, #002652 0%, #003b7a 100%) !important;
    border-bottom: 2px solid #3ea614 !important;
    color: #ffffff;
}

.public-cart-offcanvas .offcanvas-body {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.offcanvas-cart-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #68d61a !important;
}

.cart-items-scroll-area {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    padding-right: 4px;
}

.cart-item-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.cart-item-card:hover {
    border-color: #3ea614 !important;
    box-shadow: 0 4px 12px rgba(0, 59, 122, 0.05);
}

.cart-item-remove-btn {
    color: #ef4444;
    border-color: #fecaca;
    background-color: #fef2f2;
    transition: all 0.15s ease;
}

.cart-item-remove-btn:hover {
    color: #ffffff !important;
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.cart-drawer-qty-control {
    height: 32px !important;
    width: 90px !important;
}

.cart-drawer-qty-control .qty-btn {
    width: 25px !important;
    font-size: 0.95rem !important;
    color: #003b7a !important;
}

.cart-drawer-qty-control .qty-input {
    width: 40px !important;
    min-width: 40px !important;
    font-size: 0.85rem !important;
    color: #0b1f38 !important;
}

/* Book Order Button in Offcanvas Cart */
#btnOpenBookingModal {
    background: linear-gradient(135deg, #3ea614 0%, #2c800c 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(62, 166, 20, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#btnOpenBookingModal:hover {
    background: linear-gradient(135deg, #46bc17 0%, #34960f 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(62, 166, 20, 0.45) !important;
}

#btnOpenBookingModal:active {
    transform: scale(0.98);
}

/* Delivery Details Modal */
#deliveryDetailsModal .modal-header {
    background: linear-gradient(135deg, #002652 0%, #003b7a 100%) !important;
    border-bottom: 2px solid #3ea614 !important;
}

#deliveryDetailsModal #btnLookupPhone {
    border-color: #003b7a !important;
    color: #003b7a !important;
}

#deliveryDetailsModal #btnLookupPhone:hover {
    background: #003b7a !important;
    color: #ffffff !important;
}

.btn-confirm-order {
    background: linear-gradient(135deg, #3ea614 0%, #2c800c 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(62, 166, 20, 0.3) !important;
    transition: all 0.2s ease;
}

.btn-confirm-order:hover {
    background: linear-gradient(135deg, #46bc17 0%, #34960f 100%) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(62, 166, 20, 0.4) !important;
}

/* Sticky Bottom Mobile Bar */
.sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 31, 56, 0.96) !important;
    backdrop-filter: blur(14px);
    border-top: 2px solid #3ea614;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
}

.sticky-cart-icon-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    padding: 3px 6px;
    background-color: #3ea614 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(62, 166, 20, 0.5);
}

#publicStickyTotal {
    color: #68d61a !important;
    font-weight: 800;
}

.sticky-cart-bar .btn {
    background: linear-gradient(135deg, #3ea614 0%, #2c800c 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(62, 166, 20, 0.4) !important;
    transition: all 0.2s ease;
}

.sticky-cart-bar .btn:hover {
    background: linear-gradient(135deg, #46bc17 0%, #34960f 100%) !important;
    transform: translateY(-1px);
}

@media (min-width: 992px) {
    .sticky-cart-bar {
        display: none !important;
    }
}

/* ==========================================================================
   Order Workflow Timeline
   ========================================================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 11px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--primary-600);
}

.timeline-item.completed .timeline-marker {
    background-color: var(--accent-emerald);
    border-color: var(--accent-emerald);
    color: #ffffff;
}

.timeline-content {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
}

/* ==========================================================================
   Badges & Tags (Crystal Clear High Contrast)
   ========================================================================== */

.bg-teal { background-color: #0d9488 !important; }
.bg-purple { background-color: #7c3aed !important; }

.badge-soft-success {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 0.25rem 0.5rem !important;
    font-weight: 600 !important;
}

.badge-soft-danger {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    padding: 0.25rem 0.5rem !important;
    font-weight: 600 !important;
}

.badge-soft-warning {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
    padding: 0.25rem 0.5rem !important;
    font-weight: 600 !important;
}

.badge-soft-primary {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
    padding: 0.25rem 0.5rem !important;
    font-weight: 600 !important;
}

.badge-soft-info {
    background-color: #f0f9ff !important;
    color: #075985 !important;
    border: 1px solid #bae6fd !important;
    padding: 0.25rem 0.5rem !important;
    font-weight: 600 !important;
}

.badge-soft-secondary {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.25rem 0.5rem !important;
    font-weight: 600 !important;
}

/* Fallback override for any badge with text-* and bg-opacity-* to prevent solid matching color hiding */
.badge.text-success.bg-success {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.badge.text-danger.bg-danger {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.badge.text-warning.bg-warning,
.badge.text-dark.bg-warning {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.badge.text-primary.bg-primary {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

.badge.text-info.bg-info {
    background-color: #f0f9ff !important;
    color: #075985 !important;
    border: 1px solid #bae6fd !important;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1035;
        display: none;
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .page-body {
        padding: 1rem;
    }
}

/* ==========================================================================
   Public Customer Ordering Portal: Cart Drawer & Modal Popup
   ========================================================================== */
.public-portal-body {
    padding-bottom: 120px !important;
}

.public-cart-offcanvas {
    width: 440px !important;
    max-width: 100vw !important;
    display: flex;
    flex-direction: column;
    z-index: 1060 !important;
    background-color: #ffffff !important;
}
.public-cart-offcanvas .offcanvas-body {
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.cart-items-scroll-area {
    flex: 1 1 auto;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    padding-bottom: 2rem !important;
}
#cartFooterArea {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background-color: #ffffff;
}
#deliveryDetailsModal {
    z-index: 1070 !important;
}
#deliveryDetailsModal .modal-content {
    border-radius: 0.85rem;
    overflow: hidden;
}
#deliveryDetailsModal .form-control {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

@media (max-width: 767.98px) {
    .public-portal-body {
        padding-bottom: 140px !important;
    }
    .public-cart-offcanvas {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    /* Mobile Header adjustments */
    .public-header .container {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    .header-company-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .public-brand-logo-img {
        height: 36px !important;
        max-width: 90px !important;
    }

    /* Container padding on mobile */
    main.container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Filter Card */
    .public-filter-card {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    .search-input-group .form-control {
        font-size: 0.85rem !important;
    }
    .search-input-group {
        border-radius: 9999px !important;
        height: 33px !important;
    }
    .public-cat-pill {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
    }

    /* Product Grid: 2 per row */
    #publicProductGrid {
        --bs-gutter-x: 0.45rem;
        --bs-gutter-y: 0.45rem;
    }
    .public-product-card-wrap {
        padding-left: 3px !important;
        padding-right: 3px !important;
        margin-bottom: 4px !important;
    }
    .product-card-pos {
        padding: 0.55rem 0.5rem 0.45rem 0.5rem !important;
        border-radius: 10px !important;
    }

    /* Thumbnail & Visuals */
    .product-card-top {
        gap: 0.45rem !important;
    }
    .product-thumb-wrapper {
        width: 68px !important;
        height: 68px !important;
        min-width: 68px !important;
        min-height: 68px !important;
        margin-bottom: 0 !important;
        border-radius: 8px !important;
    }
    .product-emoji-icon {
        font-size: 1.8rem !important;
    }

    /* Badges & Titles */
    .product-title {
        font-size: 0.76rem !important;
        line-height: 1.2 !important;
        min-height: 1.85rem !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 2px !important;
    }
    .product-unit-text {
        font-size: 0.68rem !important;
        margin-bottom: 2px !important;
        color: #475569 !important;
    }
    .product-unit-text strong {
        color: #0b1f38 !important;
        font-weight: 700 !important;
    }
    .product-price-label {
        font-size: 0.54rem !important;
        margin-bottom: 0 !important;
    }
    .product-price-val {
        color: #003b7a !important;
        font-size: 0.90rem !important;
        font-weight: 800 !important;
    }

    /* Action buttons: Quantity and Add to Cart in ONE Line */
    .product-actions-bar {
        width: 100%;
        margin-top: 0.35rem !important;
        padding-top: 0.35rem !important;
    }
    .product-action-row {
        flex-direction: row !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        width: 100% !important;
    }
    .qty-control {
        width: 64px !important;
        min-width: 64px !important;
        height: 27px !important;
        display: inline-flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-radius: 5px !important;
        border: 1.5px solid #cbd5e1 !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }
    .qty-btn {
        width: 18px !important;
        height: 100% !important;
        font-size: 0.95rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        color: #003b7a !important;
        padding: 0 !important;
    }
    .qty-input {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        font-size: 0.80rem !important;
        height: 100% !important;
        line-height: 25px !important;
        text-align: center !important;
        color: #0b1f38 !important;
        padding: 0 !important;
    }
    .btn-add-to-cart {
        background: linear-gradient(135deg, #3ea614 0%, #2c800c 100%) !important;
        border: none !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(62, 166, 20, 0.25) !important;
        width: auto !important;
        flex: 1 !important;
        min-width: 0 !important;
        height: 27px !important;
        padding: 0 3px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }
    .btn-add-to-cart .btn-cart-icon {
        font-size: 0.78rem !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
    }
    .btn-add-to-cart .btn-text {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Sticky Bottom Cart Bar on Mobile */
    .sticky-cart-bar {
        padding: 0.5rem 0.75rem !important;
    }
    .sticky-cart-icon-wrap {
        width: 36px !important;
        height: 36px !important;
    }
    .sticky-cart-icon-wrap i {
        font-size: 1.1rem !important;
    }
    #publicStickyTotal {
        font-size: 0.95rem !important;
    }
    .sticky-cart-bar .btn {
        font-size: 0.82rem !important;
        padding: 0.4rem 0.75rem !important;
    }

    /* Delivery Modal & Confirm Order Button on Mobile */
    #deliveryDetailsModal .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
    #deliveryDetailsModal .modal-body {
        padding: 0.85rem !important;
    }
    #btnOpenBookingModal {
        font-size: 0.85rem !important;
        padding: 0.65rem 0.75rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }
    #btnOpenBookingModalText {
        font-size: 0.82rem !important;
        word-break: break-word;
    }
    .btn-confirm-order {
        font-size: 0.85rem !important;
        padding: 0.65rem 0.75rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .btn-confirm-order i {
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
    }
    .btn-confirm-order #confirmBtnText {
        font-size: 0.82rem !important;
        letter-spacing: 0.02em;
        word-break: break-word;
    }
}

/* ==========================================================================
   Universal Responsiveness & Table Protections
   ========================================================================== */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table th, .table td {
    vertical-align: middle;
    white-space: normal;
}

.table .text-nowrap {
    white-space: nowrap !important;
}

.card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure no text or button breaks out on any screen */
.btn {
    white-space: nowrap;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Country Code Dropdown Styling in Delivery Modal */
.country-select-btn {
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
    font-size: 0.85rem;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    display: inline-flex;
    align-items: center;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    transition: all 0.2s ease;
}

.country-select-btn:hover, .country-select-btn:focus {
    background-color: #edf4fb !important;
    border-color: #003b7a !important;
}

.country-dropdown-menu {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 38, 82, 0.12) !important;
    padding: 0.4rem 0;
    z-index: 1060;
}

.country-dropdown-menu .dropdown-item {
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
    color: #0b1f38;
    transition: background-color 0.15s ease;
}

.country-dropdown-menu .dropdown-item:hover {
    background-color: #f0fdf4;
    color: #2c800c;
}

.country-dropdown-menu .dropdown-item.active {
    background: linear-gradient(135deg, #002652 0%, #003b7a 100%) !important;
    color: #ffffff !important;
}

.country-dropdown-menu .dropdown-item.active .badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}





