.pos-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.pos-header {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pos-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.products-section {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: white;
    margin: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-section {
    width: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    height: calc(100vh - 200px);
    overflow: hidden;
    border-radius: 0 0 0 16px;
}

.product-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    height: 100px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.cart-item {
    background: white;
    border: 1px solid #e8f0fe;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    position: relative;
}

.cart-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-items-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: linear-gradient(135deg, #f1f8e9 0%, #ffffff 100%);
}

.cart-items-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: calc(100vh - 500px);
}

.cart-total {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    padding: 1.5rem;
    margin-top: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    flex-shrink: 0;
    border-top: 3px solid #4caf50;
}

.checkout-button {
    margin-top: 0;
    margin-bottom: 0;
    min-height: 56px;
    visibility: visible !important;
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.search-container {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-tabs {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    margin: 0 1rem 1rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.category-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.7) 100%);
    border-radius: 20px;
    z-index: 0;
}

.category-tabs .mud-tabs {
    position: relative;
    z-index: 1;
}

.category-tabs .mud-tabs {
    min-height: 60px;
}

.category-tabs .mud-tab {
    min-height: 52px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.5px;
    border-radius: 16px;
    margin: 0 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #374151;
}

.category-tabs .mud-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}

.category-tabs .mud-tab.mud-tab-active {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.25);
    transform: translateY(-3px);
    border-color: rgba(76, 175, 80, 0.2);
}

.category-tabs .mud-tab .mud-icon-root {
    margin-right: 8px;
    font-size: 1.2rem;
}

.category-tabs .mud-tabs-slider {
    display: none;
}

.category-tabs .mud-tab-panels {
    padding: 0;
}

.category-tabs .mud-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.category-tabs .mud-tab:hover::before {
    opacity: 1;
}

.category-tabs .mud-tab.mud-tab-active::before {
    opacity: 0;
}

.category-tabs .mud-tab .mud-tab-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.category-tabs .mud-tabs-toolbar {
    background: transparent;
    padding: 0;
    min-height: 70px;
    border-bottom: none;
}

.category-tabs .mud-tabs-toolbar .mud-tabs-toolbar-content {
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
}

.stock-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-in {
    background: #4caf50;
    color: white;
}

.stock-low {
    background: #ff9800;
    color: white;
}

.stock-out {
    background: #f44336;
    color: white;
}

.gap-2 {
    gap: 0.5rem;
}

.product-card .mud-card-content {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-info {
    border-top: 1px solid #e0e0e0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.stock-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border: 1px solid #c8e6c9;
    border-radius: 6px;
}

.price-edit-input {
    font-size: 0.8rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
}

.price-edit-buttons {
    gap: 0.25rem;
}

.price-edit-buttons .mud-button {
    font-size: 0.6rem !important;
    min-width: 50px !important;
    height: 22px !important;
    padding: 0 4px !important;
}

.cost-price-display {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 2px 4px;
}

.cart-price-edit-input {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
}

.cart-price-edit-buttons {
    gap: 0.25rem;
}

.cart-price-edit-buttons .mud-button {
    font-size: 0.6rem !important;
    min-width: 50px !important;
    height: 22px !important;
    padding: 0 4px !important;
}

.cart-cost-display {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #f44336;
    box-shadow: 0 1px 3px rgba(244, 67, 54, 0.2);
}

.cart-header {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.cart-subtotal {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2e7d32;
    text-align: right;
}

.cart-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: #4caf50;
}

.cart-empty-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.cart-empty-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.cart-total-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.08);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.cart-total-row.final {
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
}

.cart-total-label {
    font-weight: 600;
    opacity: 0.9;
}

.cart-total-value {
    font-weight: 700;
}

.checkout-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.checkout-button {
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.checkout-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4) !important;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e8 100%) !important;
}

.checkout-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3) !important;
}