/* ============================================
   Bottom Navigation
   ============================================ */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 16px;
    background: var(--white);
    border-top: 1px solid #e5e7eb;
    position: relative;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 24px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-family: inherit;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 22px;
    transition: all 0.2s ease;
    color: var(--primary);
    font-weight: bold;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-label {
    color: var(--primary);
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(135deg, var(--cerulean) 0%, var(--fresh-sky) 100%);
    border-radius: 2px;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 12px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust app container for bottom nav */
.app-container {
    padding-bottom: 0;
}

.chat-container {
    padding-bottom: 10px;
}

/* Hide header-links on mobile since we have bottom nav */
.header-links {
    display: none;
}

/* ============================================
   Page Views (Navigation)
   ============================================ */
.view {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    max-height: none;
}

.view.active {
    display: flex;
}

.view-header {
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.view-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
}

.view-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scroll-behavior: smooth;
}

/* Cart View specific */
#cartView .cart-footer {
    border-radius: 0;
    margin: 0;
}

#cartView .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Orders View specific */
#ordersView .orders-list {
    flex: 1;
    overflow-y: auto;
}

.empty-orders,
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-orders-icon,
.empty-cart-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.empty-orders p,
.empty-cart p {
    font-size: 16px;
    margin: 0;
}

/* Order Items in Orders View */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.order-item.confirmed {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.order-item.pending {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.order-item-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-item-seller {
    display: block;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 2px;
}

.order-item-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.order-item-status {
    text-align: right;
}

.order-item-price {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.confirmed {
    background: #d1fae5;
    color: #065f46;
}

