﻿/* ── Mobile responsive ── */
@media (max-width: 768px) {
    .pos-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        gap: 0;
    }

    /* Mobile tab switcher for Products / Cart panels */
    .pos-mobile-tabs {
        display: flex;
        border-bottom: 2px solid var(--color-border);
        background: var(--color-surface);
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .pos-mobile-tab {
        flex: 1;
        padding: var(--space-3);
        text-align: center;
        font-size: var(--text-sm);
        font-weight: 600;
        cursor: pointer;
        border: none;
        background: none;
        color: var(--color-text-muted);
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: all var(--transition);
    }

    .pos-mobile-tab.active {
        color: var(--color-primary);
        border-bottom-color: var(--color-primary);
    }

    .pos-left.mobile-hidden,
    .pos-right.mobile-hidden {
        display: none;
    }

    .pos-right {
        min-height: 400px;
    }

    .pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        max-height: 50vh;
    }

    .pos-product-card {
        padding: var(--space-2);
    }

    .pos-product-card .product-card-name {
        font-size: var(--text-xs);
    }

    .pos-product-card .product-card-price {
        font-size: var(--text-xs);
    }

    .pos-product-card .product-card-vendor {
        display: none;
    }

    .pos-payment-buttons {
        grid-template-columns: 1fr;
    }

    /* Shift banner compact */
    .pos-shift-banner {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    /* Denomination grid compact */
    .denomination-grid {
        grid-template-columns: 1fr 70px 80px;
        gap: var(--space-1);
    }

    .denomination-grid .denom-label {
        font-size: var(--text-xs);
    }

    /* Payment modal total compact */
    .payment-modal-total .total-value {
        font-size: var(--text-2xl);
    }

    /* Cart items compact */
    .cart-item {
        gap: var(--space-2);
    }

    .cart-item-subtotal {
        min-width: 60px;
    }

    /* History items */
    .history-item {
        flex-wrap: wrap;
        gap: var(--space-1);
    }

    .history-item-order {
        font-size: var(--text-xs);
    }

    /* Cashout items */
    .cashout-item {
        flex-wrap: wrap;
        gap: var(--space-1);
    }

    /* Mobile sticky cart summary */
    .pos-cart-footer {
        position: sticky;
        bottom: 0;
        background: var(--color-surface);
        border-top: 2px solid var(--color-border);
    }
}

@media (max-width: 480px) {
    .pos-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pos-search-row {
        flex-direction: column;
    }

    .quick-amount-buttons .btn {
        min-width: 60px;
        font-size: var(--text-xs);
    }
}

/* Hide mobile tabs on desktop */
.pos-mobile-tabs {
    display: none;
}

