body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #fff8f2;
    color: #3b1d11;
}

.bg-brand-red {
    background: linear-gradient(135deg, #c1121f, #e5383b);
}

.bg-brand-accent {
    background: linear-gradient(135deg, #ffb703, #fb8500);
}

.text-brand-red {
    color: #c1121f;
}

.text-brand-accent {
    color: #fb8500;
}

.btn-brand {
    background: #c1121f;
    color: #fff;
    border: none;
}

.btn-brand:hover,
.btn-brand:focus {
    background: #a40f1a;
    color: #fff;
}

.btn-accent {
    background: #fb8500;
    color: #fff;
    border: none;
}

.btn-accent:hover,
.btn-accent:focus {
    background: #d86d00;
    color: #fff;
}

.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #a60d17, #d62828);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.84);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.35rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 193, 7, 0.2);
}

.stat-card,
.surface-card {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(146, 34, 23, 0.08);
}

.menu-card {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(146, 34, 23, 0.16);
}

.menu-image {
    height: 160px;
    object-fit: cover;
}

.menu-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.receipt-paper {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.table thead th {
    background: #fff1db;
    color: #8a3200;
    border-bottom: 0;
}

.hero-card {
    background:
        radial-gradient(circle at top right, rgba(255, 183, 3, 0.28), transparent 30%),
        linear-gradient(135deg, #fff, #fff4e8);
    border: 0;
    border-radius: 26px;
    box-shadow: 0 16px 40px rgba(146, 34, 23, 0.08);
}

.login-panel {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 183, 3, 0.35), transparent 28%),
        radial-gradient(circle at bottom right, rgba(229, 56, 59, 0.32), transparent 30%),
        linear-gradient(135deg, #8d0801, #dc2f02);
}

.login-card {
    border: 0;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.cashier-pos-header {
    border-radius: 28px;
}

.cashier-top-summary {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cashier-summary-pill {
    min-width: 112px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
}

.cashier-search {
    border-radius: 18px;
    border: 1px solid #ffd7bf;
    background: #fff;
}

.category-filter-scroller {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.category-filter-scroller::-webkit-scrollbar {
    height: 6px;
}

.category-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    border: 1px solid #ffd6b0;
    background: #fff8f2;
    color: #8a3200;
    font-weight: 600;
}

.category-chip.active,
.category-chip:hover {
    background: #c1121f;
    border-color: #c1121f;
    color: #fff;
}

.menu-card-modern {
    padding: 0;
    background: linear-gradient(180deg, #ffffff, #fff8f1);
    border: 1px solid rgba(255, 209, 179, 0.7);
}

.menu-card-modern .card-body {
    padding: 1rem;
}

.menu-title {
    min-height: 2.7rem;
    line-height: 1.35;
}

.mobile-cart-summary {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(146, 34, 23, 0.1);
    background: linear-gradient(135deg, #fff, #fff4ea);
}

.cashier-order-panel {
    overflow: hidden;
}

.cart-items-shell {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    max-height: 45vh;
    overflow: auto;
    padding-right: 0.25rem;
}

.cart-item-card {
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(180deg, #fff, #fff7f0);
    border: 1px solid #ffe0c6;
}

.cart-remove-btn {
    border: 0;
    background: #fff1f1;
    color: #c1121f;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #ffd3af;
    background: #fff;
    overflow: hidden;
}

.quantity-stepper button {
    width: 40px;
    height: 40px;
    border: 0;
    background: #fff5e8;
    color: #8a3200;
    font-size: 1.2rem;
    font-weight: 700;
}

.quantity-stepper input {
    width: 48px;
    border: 0;
    text-align: center;
    font-weight: 700;
    background: transparent;
}

.quantity-stepper input:focus {
    outline: none;
}

.cashier-totals-card {
    border-radius: 20px;
    padding: 1rem;
    background: linear-gradient(135deg, #fff0de, #fff8f2);
    border: 1px solid #ffd8b8;
}

.cashier-money-input {
    border-radius: 18px;
    border: 1px solid #ffd3af;
}

.offcanvas.offcanvas-bottom {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    min-height: 60vh;
    max-height: 82vh;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .menu-image,
    .menu-placeholder {
        height: 128px;
    }

    .menu-card-modern .card-body {
        padding: 0.85rem;
    }

    .menu-title {
        min-height: 2.4rem;
        font-size: 0.95rem;
    }

    .cashier-pos-header {
        border-radius: 22px;
    }

    .cashier-summary-pill {
        min-width: 96px;
        padding: 0.85rem 0.9rem;
    }

    .cart-items-shell {
        max-height: 32vh;
    }
}

@media print {
    body {
        background: #fff;
    }

    .no-print {
        display: none !important;
    }

    .receipt-paper {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }
}
