.pos-page { min-height: 100vh; background: var(--bg); color: var(--text); }
.pos-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 20px; background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.pos-header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.pos-header > :last-child { justify-self: end; }
.pos-header h1 { margin: 0; font-size: 24px; text-align: center; }
.pos-header p { margin: 3px 0 0; text-align: center; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 380px); gap: 18px; padding: 18px; align-items: start; }
.pos-catalog, .pos-cart { min-width: 0; }
.pos-categories { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
.pos-category { min-height: 48px; white-space: nowrap; }
.pos-category.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
.pos-product { min-height: 112px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); color: var(--text); box-shadow: var(--shadow-sm); text-align: left; cursor: pointer; touch-action: manipulation; }
.pos-product:hover, .pos-product:focus-visible { border-color: var(--primary); box-shadow: var(--shadow-md); }
.pos-product-name { display: block; font-size: 17px; font-weight: 700; }
.pos-product-price { display: block; margin-top: 12px; color: var(--primary); font-size: 20px; font-weight: 700; }
.pos-cart { position: sticky; top: 92px; padding: 18px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.pos-cart input { width: 100%; min-height: 48px; font-size: 16px; }
.pos-guest-results { display: grid; gap: 5px; margin-top: 6px; max-height: 190px; overflow-y: auto; }
.pos-guest-option { width: 100%; padding: 10px 12px; background: var(--card-bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: left; cursor: pointer; }
.pos-selected-guest { margin: 10px 0 18px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--code-bg); font-weight: 600; }
.pos-cart h2 { margin: 0 0 10px; }
.pos-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pos-line-name { font-weight: 600; }
.pos-line-price { color: var(--muted); font-size: 13px; }
.pos-qty { display: flex; align-items: center; gap: 8px; }
.pos-qty button { width: 38px; height: 38px; padding: 0; font-size: 20px; }
.pos-total { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--border); font-size: 20px; }
.pos-total strong { font-size: 28px; }
.pos-checkout { width: 100%; min-height: 58px; margin-top: 14px; font-size: 18px; }
.pos-help { text-align: center; margin-bottom: 0; }
@media (max-width: 760px) {
  .pos-header { grid-template-columns: auto 1fr auto; padding: 10px; }
  .pos-header h1 { font-size: 19px; }
  .pos-header p { display: none; }
  .pos-layout { grid-template-columns: 1fr; padding: 10px; }
  .pos-cart { position: static; }
  .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
