@font-face {
    font-family: 'RTA';
    src: url('assets/rta.ttf') format('truetype');
}

:root {
    /* Brand Colors from Logo */
    --primary: #786eb1;          /* Deep Purple - main brand */
    --primary-light: #9e92c6;    /* Soft Purple - hover states */
    --primary-dark: #5a5190;     /* Dark Purple - active/pressed */
    --accent: #e9ce66;           /* Golden Yellow - highlights */
    --accent-dark: #c9a83a;      /* Dark Gold */

    /* UI Colors */
    --bg-main: #f5f4fb;
    --bg-white: #ffffff;
    --text-dark: #2d2b40;
    --text-muted: #7a788f;
    --border: #e8e6f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(120,110,177,0.07);
    --shadow-md: 0 8px 24px rgba(120,110,177,0.1);
    --shadow-lg: 0 20px 50px rgba(120,110,177,0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'RTA', Tahoma, sans-serif;
    font-weight: 500; /* Normal weight for RTA */
}

body {
    background: var(--bg-main);
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
}

/* View switching */
.app-view { display: none; }
.app-view.active-view { display: block; }

/* Base Layout */
.orders-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: #ffffff;
    border-left: 1px solid var(--border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(120,110,177,0.08);
    z-index: 10;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.brand:hover {
    transform: scale(1.02);
}
.brand img {
    height: 56px;
    filter: drop-shadow(0 4px 8px rgba(120,110,177,0.15));
}
.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 1px;
}
.brand-sub {
    font-size: 0.82rem;
    color: var(--accent-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    width: 100%;
}

.nav-btn i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.nav-btn:hover {
    background: rgba(120,110,177,0.08);
    color: var(--primary);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(120,110,177,0.25);
    border: none;
}

.nav-btn.trash-btn {
    color: #e05252;
    margin-top: 8px;
}
.nav-btn.trash-btn:hover {
    background: rgba(224,82,82,0.08);
    color: #c0392b;
}

/* Sidebar Action Buttons at Bottom */
.sidebar-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    /* Removed border-top per user request */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(120,110,177,0.3);
}
.sidebar-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120,110,177,0.5);
}

.sidebar-btn-secondary {
    width: 100%;
    padding: 11px;
    background: var(--bg-main);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}
.sidebar-btn-secondary:hover {
    background: rgba(120,110,177,0.08);
    color: var(--primary);
    border-color: var(--primary-light);
}

/* Main Content Wrapper */
.content {
    flex: 1;
    padding: 24px; /* Edge to edge with 24px margin */
    overflow-y: auto;
    background: var(--bg-main);
}

.orders-container {
    width: 100%;
}

/* Header Area */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem; /* Reduced from 2rem since titles are gone */
}

.orders-title-section h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.orders-title-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.orders-header-actions {
    display: flex;
    gap: 15px;
}

.orders-btn-primary, .btn-submit {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(120,110,177,0.4);
}

.orders-btn-primary:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(120,110,177,0.55);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.orders-btn-secondary, .btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.orders-btn-secondary:hover, .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary);
}

/* Cards (Stats) */
.orders-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.orders-stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}
.orders-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.orders-stat-card h3 {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.orders-stat-card p {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

/* Gold accent for highlighted numbers */
.orders-stat-card p.accent { color: var(--accent-dark); }

/* Searching */
.orders-filters-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orders-search-bar {
    position: relative;
    width: 400px;
}

.orders-search-bar i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.orders-search-bar input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    font-size: 1rem;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.orders-search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(95,61,196,0.1);
}

/* Table Design */
.orders-table-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    text-align: right;
    padding: 18px 20px;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.95rem;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #fbfbfe;
}

/* Small UI Tweaks */
.actions-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.actions-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.copy-small-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 5px;
    transition: 0.2s;
}
.copy-small-btn:hover {
    color: var(--primary);
}

.status-select {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    outline: none;
    text-align: center;
    min-width: 110px;
    appearance: none;
}
.select-pending { background: #fff3cd; color: #856404; }
.select-completed { background: #d4edda; color: #155724; }
.select-delivered { background: #cce5ff; color: #004085; }

/* MODAL OVERLAY - Premium Popup */
.orders-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.orders-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.orders-modal-container {
    background: var(--bg-white);
    width: 800px;
    max-width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.orders-modal-header {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.orders-modal-header h2 {
    color: var(--primary);
    font-size: 1.4rem;
}

.orders-btn-close-modal {
    background: white;
    border: 1px solid var(--border);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    display: flex; justify-content: center; align-items: center;
}
.orders-btn-close-modal:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.orders-order-form-modal {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
}

.orders-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
    background: #f8fafc;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(95,61,196,0.1);
}

.orders-modal-footer {
    padding: 1.5rem 2.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-add-item-small {
    background: #f0ecff;
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}
.btn-add-item-small:hover { background: var(--primary); color: white; }

.orders-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    background: white;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.orders-item-row input {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 100%;
}

.orders-btn-remove-item {
    color: #ef4444; background: #fee2e2; border: none; width: 35px; height: 35px; border-radius: 6px; cursor: pointer; transition: 0.2s;
}
.orders-btn-remove-item:hover { background: #ef4444; color: white; }

/* Improved Print Invoice (A6) */
@media print {
    .orders-integrated-wrapper {
        height: auto !important;
        overflow: visible !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    body * {
        visibility: hidden;
    }

    .orders-integrated-wrapper, 
    #orders, 
    .main-content, 
    body {
        visibility: visible !important;
        background: none !important;
    }

    #invoice-print-area, #invoice-print-area * {
        visibility: visible;
    }

    .orders-shell, .orders-modal-overlay { display: none !important; }

    #invoice-print-area {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 105mm;
        height: 148mm;
        margin: 0;
        padding: 0;
        background: white;
        overflow: hidden;
    }

    @page {
        size: 105mm 148mm;
        margin: 0;
    }
}

.print-invoice { background: white; color: #333; font-family: 'RTA', Tahoma, Geneva, Verdana, sans-serif; height: 100%; display: flex; flex-direction: column; padding: 8mm; position: relative; border: 1px solid #eee; }
.print-header { text-align: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; }
.print-header h3 { color: var(--primary); margin: 5px 0; font-size: 18px; }
.print-header p { font-size: 12px; color: #777; margin: 0; }
.print-customer { background: #fcfcff; padding: 10px; border-radius: 8px; margin-bottom: 15px; font-size: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.print-customer p { margin: 0; }
.print-customer strong { color: #555; }
.print-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 10px; flex: 1; }
.print-table th { background: #f8f9fa; padding: 8px 4px; text-align: right; border-bottom: 2px solid #eee; color: #666; }
.print-table td { padding: 8px 4px; border-bottom: 1px solid #f0f0f0; }
.print-total-box { margin-top: 15px; padding: 10px; background: #fdfcff; border-top: 1px solid #eee; text-align: left; }
.print-total-box .total-row { font-size: 14px; font-weight: 800; color: var(--primary); }
.print-qr { text-align: center; margin: 15px 0; }
.print-footer { text-align: center; font-size: 9px; color: #aaa; border-top: 1px dashed #eee; padding-top: 10px; }

/* ============================
   Kanban Board
   ============================ */
.kanban-board {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    overflow-x: auto;
    min-height: calc(100vh - 180px);
    align-items: flex-start;
}

.kanban-column {
    flex: 1;
    min-width: 320px;
    background: #f8f9fa;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    border: 1px solid #eef0f2;
    transition: background 0.2s;
}

.kanban-column.drag-over {
    background: #f1f5f9;
    border-color: var(--primary-light);
}

.kanban-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(0,0,0,0.03);
}

.kanban-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kanban-count {
    background: white;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid #eef0f2;
}

.kanban-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    min-height: 100px;
}

.kanban-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f1f3f5;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--primary-light);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    cursor: grabbing;
}

.kanban-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.kanban-card-id {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.kanban-card-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kanban-card-info div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kanban-card-price {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-price-tag {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.kanban-card-actions {
    display: flex;
    gap: 5px;
}

.kanban-mini-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #f1f3f5;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-mini-btn:hover {
    background: var(--primary);
    color: white;
}

/* Kanban Column Themes */
.col-pending { border-top: 4px solid #f59e0b; }
.col-pending .kanban-header h3 i { color: #f59e0b; }
.col-completed { border-top: 4px solid #10b981; }
.col-completed .kanban-header h3 i { color: #10b981; }
.col-delivered { border-top: 4px solid #6366f1; }
.col-delivered .kanban-header h3 i { color: #6366f1; }
/* ============================
   Products Grid
   ============================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 1rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-img-container {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-no-img {
    font-size: 3rem;
    color: #dee2e6;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-main);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    align-self: flex-start;
}

.product-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f3f5;
}

.product-price {
    font-weight: 900;
    color: var(--primary);
    font-size: 1.4rem;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f1f3f5;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.product-btn:hover {
    background: var(--primary);
    color: white;
}

.product-btn.delete { color: #ef4444; background: #fff1f2; }
.product-btn.delete:hover { background: #ef4444; color: white; }

/* ===== POS (Point of Sale) VIEW STYLES ===== */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    height: calc(100vh - 48px); /* Override content padding */
    margin: -24px;
    overflow: hidden;
}

.pos-products-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
}

.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    overflow-y: auto;
    padding-bottom: 2rem;
    padding-top: 10px;
}

.pos-item-card {
    background: white;
    border-radius: 15px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pos-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(112, 72, 232, 0.08);
}

.pos-item-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #fcfbff;
    border-bottom: 1px solid var(--border);
}

.pos-item-info {
    padding: 12px;
    text-align: center;
}

.pos-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.pos-item-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
}

/* Cart Section */
.pos-cart-section {
    height: 100%;
    background: #ffffff;
    border-right: 1px solid var(--border);
    box-shadow: -2px 0 16px rgba(120,110,177,0.08);
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.pos-cart-card {
    background: transparent;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

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

.pos-cart-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
}

.btn-clear-cart {
    background: none;
    border: none;
    color: #e05252;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}

.pos-cart-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fcfbff;
    border-radius: 12px;
    border: 1px solid var(--border);
}

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

.cart-item-name {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

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

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-it-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.cart-it-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pos-cart-summary {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: #fbfbfc;
    border-radius: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px dashed var(--border);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

.btn-checkout {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: #5f3dc4;
    transform: scale(1.02);
}

/* POS Category Tabs */
.pos-category-tabs-container {
    margin: 1rem 0;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.pos-category-tabs {
    display: flex;
    gap: 10px;
}

.pos-tab-item {
    position: relative;
}

.pos-tab-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pos-tab-label {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.pos-tab-item input[type="radio"]:checked + .pos-tab-label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(112, 72, 232, 0.2);
}

.pos-tab-label:hover {
    border-color: var(--primary);
    background: #fcfbff;
}

/* POS Category Grouping */
.pos-category-group-title {
    grid-column: 1 / -1;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    padding: 1.5rem 0 0.5rem 0;
    border-bottom: 2px solid var(--primary-light);
    margin-bottom: 1rem;
    background: var(--bg-card);
    position: sticky;
    top: -24px;
    z-index: 5;
}

