body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6f9;
    color: #333;
}
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}
.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #0d213b;
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}
.sidebar .sidebar-header {
    padding: 20px;
    background: #09172a;
    font-weight: 700;
}
.sidebar ul.components {
    padding: 20px 0;
}
.sidebar ul li a {
    padding: 12px 20px;
    font-size: 14px;
    display: block;
    color: #ced4da;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar ul li a:hover, .sidebar ul li.active > a {
    color: #fff;
    background: #1d3557;
    border-left: 4px solid #ffc107;
}
.main-content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    background: #f8f9fa;
}
.topbar {
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.btn-menu {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
}
.card-custom {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    background: #fff;
}
.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.pos-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #f8f9fa;
}
.pos-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}
.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}
.pos-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scrollbar-width: none;
}
.pos-categories::-webkit-scrollbar {
    display: none;
}
.category-chip {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    font-size: 13px;
}
.category-chip.active, .category-chip:hover {
    background: #0d213b;
    color: #fff;
    border-color: #0d213b;
}
.pos-menu-area {
    flex: 1;
    overflow-y: auto;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}
.menu-item-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}
.menu-item-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.menu-title {
    font-weight: 600;
    font-size: 13px;
    padding: 10px 10px 2px 10px;
    color: #333;
}
.menu-price {
    font-weight: 700;
    color: #198754;
    font-size: 13px;
    padding: 0 10px 10px 10px;
}
.pos-cart-sidebar {
    width: 380px;
    background: #fff;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e9ecef;
}
.cart-item-img {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
}
.cart-item-info {
    flex: 1;
}
.cart-item-info h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}
.cart-item-info p {
    margin: 0;
    font-size: 12px;
    color: #198754;
    font-weight: 700;
}
.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 20px;
    overflow: hidden;
}
.cart-qty-btn {
    background: #fff;
    border: none;
    width: 26px;
    height: 26px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}
.cart-qty-btn:hover {
    background: #f1f3f5;
}
.cart-qty-input {
    width: 32px;
    text-align: center;
    border: none;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}
.cart-summary {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}
.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #0d213b;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}
.btn-pay {
    width: 100%;
    background: #198754;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 15px;
    margin-top: 15px;
    transition: all 0.2s;
}
.btn-pay:hover:not(:disabled) {
    background: #146c43;
}
.btn-pay:disabled {
    background: #ced4da;
    cursor: not-allowed;
}
.btn-primary-custom {
    background: #0d213b;
    color: #fff;
    border-radius: 10px;
    transition: all 0.2s;
}
.btn-primary-custom:hover {
    background: #1d3557;
    color: #fff;
}
@media (max-width: 992px) {
    .pos-wrapper {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .pos-cart-sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid #dee2e6;
    }
    .pos-main {
        height: auto;
        overflow: visible;
    }
}
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
        position: fixed;
        z-index: 1050;
        height: 100%;
    }
    .sidebar.active {
        margin-left: 0;
    }
    .topbar {
        padding: 15px;
    }
}