 <style>
    :root {
        --primary: #28a745;
        --primary-hover: #218838;
    }
    
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        padding-bottom: 60px;
        background-color: #f8f9fa;
        height: 100vh;
        max-height: -webkit-fill-available;
        touch-action: manipulation;
    }
    
    /* Weight Options Styling */
    .weight-options {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 8px;
    }
    
    .weight-preset-btn {
        flex: 1 0 calc(33% - 5px);
        max-width: calc(33% - 5px);
        padding: 5px;
        font-size: 0.8rem;
        background: #f8f9fa;
        border: 1px solid #ddd;
        border-radius: 2px;
    flex: 0 0 calc(33.3% - 3px);
    padding: 3px 2px;
    font-size: 0.7rem;
        font-size: 0.65rem;
        padding: 2px;
		min-height: 28px;
    }
    
    .weight-preset-btn:hover {
        background: #e9ecef;
    }
    
    .custom-weight-trigger {
        flex: 1 0 100%;
        text-align: center;
        font-size: 0.8rem;
        color: #0d6efd;
        cursor: pointer;
        margin-top: 5px;
    }
    
    .custom-weight-input {
        display: none;
        width: 100%;
    }
    /* Prevent horizontal scrolling/swiping */
body, html {
    overscroll-behavior-x: none;
    touch-action: pan-y;
    max-width: 100vw;
    overflow-x: hidden;
}

.container-fluid {
    width: 100%;
    overflow-x: hidden;
}

.order-items-container {
    touch-action: pan-y;
}

    
    .product-item-compact img {
        width: 100%;
        max-height: 40px;
        object-fit: contain;
        pointer-events: none;
    }
    
/* Right-side cart container */
.order-summary-container {
    position: fixed;
    top: 50px; /* Adjusted to ensure it's below the header */
    right: 0;
    width: 350px; /* Fixed width for the cart */
    height: calc(100vh - 50px); /* Adjust height to account for the notification bar */
    background: #f8f9fa;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1050; /* Make sure cart is in front */
    transition: transform 0.3s ease-in-out;
}
    
/* Add class for collapsed cart */
.order-summary-container.collapsed {
    transform: translateX(100%); /* Hide the cart */
}
        
    
    .order-items-container {
        max-height: 250px;
        overflow-y: auto;
        transition: max-height 0.3s ease;
        touch-action: pan-y;
        overscroll-behavior-y: contain;
    }
    
    .order-summary-container.collapsed .order-items-container {
        max-height: 0;
        overflow: hidden;
    }
    

    
    .product-item-compact.disabled .added-overlay {
        display: flex;
    }
    
    
    #product-list-container {
    height: calc(100vh - env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 220px; /* Increased from 180px to 220px */
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    margin-top: 0 !important;
    padding-top: 60px !important;
}


    
    #checkoutModal, #weightModal {
        z-index: 2000 !important;
    }
    
    /* Notification bar styles */
    .notification-bar {
    position: fixed;
    top: 48px; /* Adjust this value to keep it below the header */
    left: 0;
    right: 0;
    z-index: 1040; /* Ensure the notification bar is behind the cart */
    background-color: #ebb207;
    color: white;
    padding: 8px 15px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    direction: rtl;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    height: 50px !important;
}

    
    .notification-bar.show {
        transform: translateY(0);
    }
    .notification-bar strong {
    font-weight: 700;
    color: #d68910;
}

.notification-bar .btn-close {
    filter: invert(1);
    opacity: 0.8;
    padding: 0.5rem;
    margin-right: -0.5rem;
}

.notification-bar .btn-close:hover {
    opacity: 1;
}
    
    /* Always visible checkout button */
    .checkout-button-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 10px;
        border-top: 1px solid #dee2e6;
        z-index: 1001;
    }
    
    /* Cart item row styling */
    .order-items > div {
        min-height: 50px !important;
        display: flex;
        align-items: center;
        padding: 4px 0 !important;
        margin-bottom: 2px !important;
    }
    
    /* --- Core Styling for Select/Input Transform --- */
.weight-input-container,
.transformable-edit-container {
    position: relative;
    transition: all 0.2s ease;
    min-width: 100px;
}

/* --- Optional: Smooth overlay transition --- */
.added-overlay {
    transition: all 0.3s ease-in-out;
}

/* --- Input focus z-index safety --- */
.transformable-edit-select:focus + .transformable-edit-input {
    z-index: 21;
}

/* --- Responsive Tweaks for Small Screens --- */
@media (max-width: 576px) {
    .transformable-edit-container,
    .weight-input-container {
        min-width: 80px;
        
    }

    .transformable-edit-select,
    .transformable-edit-input {
        font-size: 0.85rem;
        height: 34px;
    }
}

/* --- Fix for Custom Weight Input Stability --- */
.weight-input-container {
    position: relative;
    width: 120px;
    height: 38px;
    margin: 0 auto 8px;
}


.modal-header div {
    flex-direction: column;
    display: flex;
    gap: 2px;
}
.modal-header small {
    font-size: 0.8rem;
    color: #6c757d;
    direction: rtl;
}


    /* Product name-price single line */
    .product-title-price {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
        direction: rtl;
    }
    
    /* Custom weight input always visible */
    .custom-weight-input {
        display: block !important;
        margin-top: 5px;
    }
    
    /* Input validation message */
    .weight-validation-message {
        font-size: 0.7rem;
        color: #dc3545;
        display: none;
        text-align: right;
        direction: rtl;
        margin-top: 3px;
    }
    
    /* Enhanced added overlay */
    .added-overlay {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 5px;
    }
    
    .added-overlay .product-name {
        font-weight: bold;
        margin-bottom: 3px;
    }
    
    /* Make the remove button red */
.added-overlay .remove-option {
    background: #dc3545 !important; /* Bootstrap danger red */
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    text-decoration: none !important;
}

.added-overlay .remove-option:hover {
    background: #c82333 !important; /* Darker red on hover */
    transform: scale(1.05);
    text-decoration: none !important;
    color: white !important;
}


    /* Responsive adjustments */
    @media (max-width: 768px) {
        #product-list .col {
            flex: 0 0 48%;
            max-width: 48%;
        }
        
        .order-items small {
            font-size: 0.7rem;
        }
        
        .order-items .total-price {
            font-size: 0.9rem;
        }
        
        .btn-loading {
            position: relative;
            color: transparent !important;
            pointer-events: none;
        }
        
        .btn-loading:after {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            width: 16px;
            height: 16px;
            margin: -8px 0 0 -8px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }
        
        .toggle-cart-btn {
            font-size: 1rem;
            padding: 0.25rem 0.5rem;
        }
        
        .toggle-cart-btn .toggle-text {
            font-size: 0.875rem;
            font-weight: 500;
        }
        
        .transformable-edit-container {
            width: 100px !important;
        }
        
        /* Smaller, cleaner weight input */
.weight-input {
    width: 80px !important;
    text-align: center;
    padding: 0.25rem 0.5rem !important;
}

/* Align "kg" label properly */
.weight-input + small {
    margin-left: 4px !important;
}

    
.product-item-compact.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.product-item-compact.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -8px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    z-index: 20;
}

.user-status-bar {
    direction: rtl; /* For Urdu/RTL support */
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
/* Make search bar responsive */
@media (max-width: 576px) {
    .user-status-bar span {
        display: none !important;
    }
.user-status-bar a {
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}
/* Search Container */
.search-container {
    position: relative;
    flex-grow: 1;
    margin-right: 10px;
}

.search-icon {
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s;
}

.search-icon:hover {
    transform: scale(1.1);
}

.search-input.active {
    display: block !important;
    width: 100% !important;
    margin-left: 10px;
}

/* User Actions */
.user-actions {
    white-space: nowrap;
}
#notificationBar::-webkit-scrollbar {
  display: none;
}
#notificationBar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .user-actions .btn span {
        display: none;
    }
    
    .user-actions .btn i {
        margin-right: 0 !important;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    


.product-item-compact.disabled {
    pointer-events: none;
}

.added-overlay {
    pointer-events: auto !important; /* Force overlay to be clickable */
    z-index: 10; /* Ensure it's above other elements */
}

.remove-option {
    cursor: pointer;
    pointer-events: auto !important;
}

.product-item-compact.disabled .added-overlay {
    display: flex !important; /* Force show if in cart */
}

/* PWA Install Button Styles */
#pwa-install-button {
  animation: pulse 2s infinite;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  font-weight: bold;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#pwa-install-button:hover {
  animation: none;
  transform: scale(1.05);
}

  #installAppBtn {
    transition: opacity 0.3s ease;
  }
    /* Adjust the product list when the cart is open */
#product-list-container {
    width: 100%;
    padding-right: 350px; /* Leave space for the right-side cart */
}

#product-list-container.cart-open {
    padding-right: 0; /* Remove extra padding when cart is closed */
}

    /* Add some padding to product list for mobile */
    #product-list-container {
        padding-right: 0px;
    }
    /* Shipping Options Styling */
.shipping-options {
    direction: rtl;
}
.shipping-options .form-check {
    padding-right: 1.5em;
    margin-bottom: 0.5rem;
}
.shipping-options .form-check-input {
    float: right;
    margin-right: -1.5em;
}
.cart-toggle-btn {
    position: fixed;
    top: 49px;
    right: 0;
    z-index: 1060;
    background-color: var(--primary);
    color: white;
    border-radius: 4px 0 0 4px; /* Only round left corners */
    width: auto; /* Let content determine width */
    height: 50px; /* Match notification bar */
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
}

/* Add this new rule */
.order-summary-container:not(.collapsed) ~ .cart-toggle-btn {
    transform: translateX(-350px); /* Same as cart width */
}

#cartBadge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-left: -10px;
    display: inline-block;
}
    #cartBadge.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
    /* Cart toggle button base style */
.cart-toggle-btn {
    background-color: var(--primary); /* Default green */
    transition: background-color 0.3s ease-in-out;
}

/* When cart is open (showing X icon) */
.cart-toggle-btn.cart-open {
    background-color: #dc3545; /* Bootstrap danger red */
}

/* Ensure icons are white for contrast */
.cart-toggle-btn .bi {
    color: white;
}
    /* Empty cart message animation */
@keyframes shake {
    0%, 100% { transform: translateX(-50%); }
    20%, 60% { transform: translateX(calc(-50% - 5px)); }
    40%, 80% { transform: translateX(calc(-50% + 5px)); }
}

.empty-cart-shake {
    animation: shake 0.5s ease-in-out;
}

/* Vibration animation */
@keyframes vibrate {
    0% { transform: translateX(-50%) translateY(0); }
    25% { transform: translateX(-50%) translateY(-2px); }
    50% { transform: translateX(-50%) translateY(0); }
    75% { transform: translateX(-50%) translateY(2px); }
    100% { transform: translateX(-50%) translateY(0); }
}

.empty-cart-vibrate {
    animation: vibrate 0.3s linear;
}
    /* Out of stock styles */
.product-item-compact.out-of-stock {
    opacity: 0.7;
    filter: grayscale(70%);
    pointer-events: none;
    position: relative;
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 7px;
    pointer-events: none;
}

#outOfStockToast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
}
/* For disabled options after 6pm */
.shipping-option.after-cutoff {
    pointer-events: none;
    opacity: 0.5;
}

/* For the message popup */
#deliveryCutoffToast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ebb207;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1100;
    display: none;
    max-width: 90%;
    text-align: center;
}
.form-check.after-cutoff {
    opacity: 0.7;
    text-decoration: line-through;
}
/* New List View Styles */
.product-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.product-image-col {
    width: 15%;
    min-width: 50px;
    text-align: center;
}

.product-image-col img {
    max-height: 40px;
    width: auto;
}

.product-title-col {
    width: 25%;
    padding: 0 8px;
    direction: rtl;
    display: flex;
    flex-direction: column;
    text-align: right; /* Ensure text aligns right */
}

.product-title-col h6 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.product-title-col small {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
    margin-top: 2px;
}

.product-weights-col {
    width: 40%; /* Increased from 35% */
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}



.product-custom-col {
    width: 35%; /* Increased from 25% */
    padding-right: 5px;
}
.custom-weight-input {
    margin-top: 4px;
}

.custom-weight-field {
    padding: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
}

.confirm-custom-weight {
    padding: 3px;
    font-size: 0.75rem;
}

/* Update existing selectors to use .product-item-compact */
.product-item-compact img {
    width: 100%;
    max-height: 40px;
    object-fit: contain;
    pointer-events: none;
}

.product-item-compact.disabled .added-overlay {
    display: flex;
}

.product-item-compact.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.product-item-compact.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    z-index: 20;
}

.product-item-compact.disabled {
    pointer-events: none;
}

.product-item-compact.out-of-stock {
    opacity: 0.7;
    filter: grayscale(70%);
    pointer-events: none;
    position: relative;
}

@media (max-width: 768px) {
    .product-item-compact.disabled .added-overlay {
        display: flex !important;
    }
    .product-item-compact.disabled {
        pointer-events: none;
    }

/* Updated Added Overlay Styles */
.added-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 167, 69, 0.95);
    color: white;
    align-items: center;
    justify-content: space-between; /* This spaces remove button left and info right */
    padding: 0 15px;
    z-index: 5;
    flex-direction: row-reverse; /* This reverses the order for RTL */
}

.remove-option {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.remove-option:hover {
    background: #c82333;
    transform: scale(1.05);
}

.product-info {
    display: flex;
    align-items: center;
    gap: 20px; /* Increased gap for significant space */
    font-size: 0.9rem;
    flex-wrap: nowrap;
}

.product-total {
    font-weight: bold;
    color: #fff;
    min-width: 80px; /* Ensure consistent width */
    text-align: left;
}

.product-weight {
    color: #e8f5e8;
    min-width: 50px; /* Ensure consistent width */
    text-align: left;
}

.product-name {
    font-weight: bold;
    min-width: 80px; /* Ensure consistent width */
    text-align: right; /* RTL alignment for Urdu */
}

.product-name {
    font-weight: bold;
}

.product-details {
    color: #e8f5e8;
}

.added-overlay.show { /* Optional: Add if you want fade, but your JS uses .show() */
    opacity: 1;
}

.added-overlay .product-name {
    font-weight: bold;
    font-size: 0.85rem; /* Smaller for row fit */
    margin: 0;
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%; /* Limit width to avoid overflow */
}

.added-overlay > div:nth-child(2) { /* The "added" text */
    font-size: 0.85rem;
    margin: 0 4px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .added-overlay {
        flex-wrap: wrap; /* Allow wrapping if screen too narrow */
        gap: 4px;
        padding: 2px 4px; /* Even tighter on mobile */
    }
    
    .added-overlay .product-name,
    .added-overlay > div:nth-child(2) {
        font-size: 0.75rem;
    }
    
    .added-overlay .remove-option {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
/* Hide on Scroll Transitions */
.sticky-top {
    transition: transform 0.3s ease-out; /* Smooth slide up */
}

.sticky-top.hidden {
    transform: translateY(-100%);
}

.checkout-button-container {
    transition: transform 0.3s ease-out; /* Smooth slide down */
}

.checkout-button-container.hidden {
    transform: translateY(100%);
}

/* Reduce Row Spacing: Replace Gap with 1px Line */
.product-list-compact {
    gap: 0; /* Remove previous 8px gap */
}

.product-item-compact {
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: white;
    min-height: 70px;
    position: relative;
    overflow: visible;
    margin-bottom: 0px; /* Add spacing between rows */
    width: 100%; /* Ensure full width */
}

.product-item-compact:last-child {
    border-bottom: none; /* No line after last row */
}

.product-info-col {
    width: 25%;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image-top {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.product-image-top img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column stack */
    gap: 2px;
    width: 100%;
    direction: rtl;
    text-align: center;
}

.product-name {
    font-size: 0.65rem;
    font-weight: bold;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.product-price {
    font-size: 0.75rem;
    color: #00000;
    line-height: 1.1;
    font-weight:bold;
}
/* Discount Section Styles */
.discount-section {
    direction: rtl;
}

#discountMessage.success {
    color: #198754;
}

#discountMessage.error {
    color: #dc3545;
}

#discountDisplay {
    border-top: 1px dashed #dee2e6;
    padding-top: 8px;
/* Add this to your existing <style> block in index.php */

/* Mobile Cart Adjustments */
@media (max-width: 768px) {
    .order-summary-container {
        width: 100% !important; /* Full width on mobile */
        right: 0 !important;
        height: calc(100vh - 100px) !important; /* Adjust for header + notification bar */
        top: 100px !important; /* Push down below header + notification */
        border-radius: 0 !important; /* No radius on full-screen */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important; /* Shadow on top for overlay feel */
    }
    
    .order-summary-container.collapsed {
        transform: translateX(100%) !important; /* Slide off right */
    }
    
    /* Adjust toggle button for mobile */
    .cart-toggle-btn {
        width: 60px !important; /* Slimmer on mobile */
        height: 50px;
        border-radius: 50% !important; /* Round pill shape */
        right: 10px !important;
        top: 60px !important; /* Below header */
    }
    
    /* Ensure sections stack and scroll properly */
    .order-items-container {
        max-height: 200px !important; /* Slightly shorter on mobile */
    }
    
    .delivery-area,
    .discount-section,
    .shipping-options {
        padding: 10px !important; /* Tighter padding */
        font-size: 0.85rem !important;
    }
    
    .shipping-options .form-check {
        margin-bottom: 8px !important; /* More space between options */
        font-size: 0.8rem !important;
    }
    
    .shipping-options .form-check-label {
        line-height: 1.3 !important; /* Prevent cutoff */
        white-space: normal !important; /* Allow wrap for long labels */
    }
    
    /* Checkout button full-width and taller on mobile */
    .checkout-button-container {
        padding: 15px !important;
        bottom: 0 !important;
    }
    
    .checkout-button-container button {
        padding: 12px !important;
        font-size: 1rem !important;
    }
    
    /* Product list adjusts when cart open */
    #product-list-container.cart-open {
        padding-right: 0 !important;
        /* Optional: Dim or hide products when cart open on mobile */
        filter: blur(2px);
        pointer-events: none;
    }
    
    #product-list-container.cart-open + .order-summary-container {
        filter: none;
        pointer-events: auto;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .order-summary-container {
        top: 110px !important; /* Extra room for taller headers */
        height: calc(100vh - 110px) !important;
    }
    
    .weight-input {
        width: 60px !important; /* Smaller inputs */
    }
    
    .shipping-options {
        max-height: 150px;
        overflow-y: auto; /* Scroll if too many options */
    }

	}
	
	/* Mobile App Specific Styles */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #ddd;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 1000;
    }
    
    .nav-item {
        text-align: center;
        flex: 1;
    }
    
    .nav-item i {
        font-size: 20px;
        display: block;
        margin-bottom: 5px;
    }
    
    .nav-item span {
        font-size: 12px;
    }
    
    /* Safe area for iPhone X and above */
    .safe-area-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Pull to refresh */
.pull-to-refresh {
    text-align: center;
    padding: 10px;
    color: #666;
}