/* ==========================================================================
   NotaQ Kasir — Moka-inspired POS theme (STYLE ONLY, concept unchanged)
   Fresh green primary, light-green surface, white rounded cards,
   dark green sidebar. All original class names preserved.
   ========================================================================== */

:root {
  --nq-primary: #16a34a;
  --nq-primary-dark: #15803d;
  --nq-primary-darker: #166534;
  --nq-primary-soft: #dcfce7;
  --nq-primary-ring: rgba(22, 163, 74, 0.16);
  --nq-bg: #eafaf0;
  --nq-surface: #ffffff;
  --nq-border: #d9ecdf;
  --nq-text: #1f2430;
  --nq-muted: #6b7280;
  --nq-success: #16a34a;
  --nq-success-dark: #15803d;
  --nq-danger: #dc2626;
  --nq-warning: #f59e0b;
  --nq-info: #0ea5e9;
  --nq-radius: 14px;
  --nq-radius-sm: 10px;
  --nq-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --nq-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --nq-sidebar-w: 272px;
  --nq-topbar-h: 58px;
  --nq-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ========== General ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--nq-font);
  background-color: var(--nq-bg);
  color: var(--nq-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--nq-primary); }
a:hover { color: var(--nq-primary-dark); }
.text-muted { color: var(--nq-muted) !important; }

/* ========== Auth Page ========== */
.auth-page {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, #16a34a 0%, #166534 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-container { width: 100%; max-width: 410px; }
.auth-card {
  border: none; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(12, 45, 25, 0.35);
  overflow: hidden;
}
.auth-card .card-body { padding: 2rem !important; }
.auth-logo {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 18px;
  background: linear-gradient(135deg, var(--nq-primary), var(--nq-primary-darker));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; box-shadow: 0 10px 24px var(--nq-primary-ring);
}

/* ========== Layout ========== */
.wrapper { display: flex; min-height: 100vh; }
.main-content {
  flex: 1; display: flex; flex-direction: column;
  min-height: 100vh; min-width: 0;
  overflow-x: hidden; overflow-x: clip;
  margin-left: var(--nq-sidebar-w);
  transition: margin-left 0.3s ease;
}

/* ========== Sidebar ========== */
.sidebar {
  width: var(--nq-sidebar-w);
  background: linear-gradient(180deg, #173a26 0%, #102b1b 100%);
  color: #fff;
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; transition: transform 0.3s ease; z-index: 1000;
  box-shadow: 4px 0 24px rgba(10, 35, 20, 0.18);
}
.sidebar-header {
  height: var(--nq-topbar-h);
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
}
.sidebar-header h4 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.sidebar-logo {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--nq-primary), var(--nq-primary-darker));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #fff; box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}
.sidebar-nav { padding: 14px 12px; }
.sidebar-nav .nav-item { margin: 7px 0; }
/* Capsule/pill nav links — large, finger-friendly touch targets (tablet) */
.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.78);
  min-height: 48px; padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600; font-size: 0.95rem;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.sidebar-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.sidebar-nav .nav-link:active { transform: scale(0.97); }
.sidebar-nav .nav-link.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(90deg, var(--nq-primary), var(--nq-primary-dark));
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}
.sidebar-nav .nav-link i { font-size: 1.2rem; width: 24px; text-align: center; }
.nav-divider {
  padding: 18px 18px 6px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255, 255, 255, 0.35);
}

/* Sidebar hidden (desktop) */
.sidebar.hidden { transform: translateX(-100%); }
body.sidebar-hidden .main-content { margin-left: 0 !important; }

/* ========== Navbar ========== */
.navbar {
  height: var(--nq-topbar-h);
  background: var(--nq-surface) !important;
  border-bottom: 1px solid var(--nq-border) !important;
  box-shadow: var(--nq-shadow-sm);
  padding: 0 1rem;
}
.navbar .btn-link { color: var(--nq-text); }
.navbar .navbar-brand { font-weight: 700; color: var(--nq-text); }

/* ========== Cards ========== */
.card {
  border: 1px solid var(--nq-border);
  border-radius: var(--nq-radius);
  box-shadow: var(--nq-shadow-sm);
  background: var(--nq-surface);
}
.card-header {
  background: var(--nq-surface);
  border-bottom: 1px solid var(--nq-border);
  padding: 0.9rem 1.1rem; font-weight: 600;
  border-radius: var(--nq-radius) var(--nq-radius) 0 0 !important;
}
.card-header.bg-primary {
  background: linear-gradient(90deg, var(--nq-primary), var(--nq-primary-dark)) !important;
  border-bottom: none; color: #fff;
}
.card-footer { background: #f4fcf7; border-top: 1px solid var(--nq-border); }
.card-footer.bg-light { background: #f4fcf7 !important; }

/* ========== Tables ========== */
.table { margin-bottom: 0; --bs-table-hover-bg: var(--nq-primary-soft); }
.table th {
  font-weight: 700; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--nq-muted);
  background: #f4fcf7; border-bottom: 1px solid var(--nq-border);
}
.table td { vertical-align: middle; border-color: var(--nq-border); font-size: 0.9rem; }

/* ========== Buttons ========== */
.btn { border-radius: var(--nq-radius-sm); font-weight: 600; font-family: var(--nq-font); }
.btn-group-sm .btn { padding: 0.35rem 0.6rem; }
.btn-lg { border-radius: 12px; padding: 0.7rem 1.2rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--nq-primary), var(--nq-primary-dark));
  border: none; color: #fff; box-shadow: 0 6px 16px var(--nq-primary-ring);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: linear-gradient(135deg, var(--nq-primary-dark), var(--nq-primary-darker));
  color: #fff; box-shadow: 0 8px 20px var(--nq-primary-ring);
}
.btn-outline-primary { color: var(--nq-primary); border-color: var(--nq-primary); }
.btn-outline-primary:hover, .btn-outline-primary.active {
  background: var(--nq-primary); border-color: var(--nq-primary); color: #fff;
}
.btn-success { background: var(--nq-success); border-color: var(--nq-success); }
.btn-success:hover { background: var(--nq-success-dark); border-color: var(--nq-success-dark); }
.btn-outline-success { color: var(--nq-success); border-color: var(--nq-success); }
.btn-outline-success:hover { background: var(--nq-success); border-color: var(--nq-success); }
.btn-danger { background: var(--nq-danger); border-color: var(--nq-danger); }
.btn-outline-danger { color: var(--nq-danger); border-color: var(--nq-danger); }
.btn-outline-danger:hover { background: var(--nq-danger); border-color: var(--nq-danger); }
.btn-outline-secondary { color: var(--nq-muted); border-color: var(--nq-border); }
.btn-outline-secondary:hover { background: #e8f6ec; border-color: var(--nq-border); color: var(--nq-text); }
.btn-secondary { background: #6b7280; border-color: #6b7280; }

/* Bootstrap color utilities -> theme */
.text-primary { color: var(--nq-primary) !important; }
.bg-primary { background-color: var(--nq-primary) !important; }
.border-primary { border-color: var(--nq-primary) !important; }
.bg-light { background-color: #f4fcf7 !important; }
.link-primary { color: var(--nq-primary) !important; }

/* ========== Forms ========== */
.form-control, .form-select {
  border-radius: var(--nq-radius-sm); border-color: var(--nq-border);
  font-family: var(--nq-font); padding: 0.55rem 0.8rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--nq-primary); box-shadow: 0 0 0 0.2rem var(--nq-primary-ring);
}
.input-group-text {
  border-radius: var(--nq-radius-sm); border-color: var(--nq-border);
  background: #f4fcf7; color: var(--nq-muted);
}
.form-check-input:checked { background-color: var(--nq-primary); border-color: var(--nq-primary); }
.form-check-input:focus { border-color: var(--nq-primary); box-shadow: 0 0 0 0.2rem var(--nq-primary-ring); }
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--nq-text); }

/* ========== Badges / alerts / dropdowns ========== */
.badge { font-weight: 600; padding: 0.4em 0.75em; border-radius: 8px; }
.alert { border: none; border-radius: var(--nq-radius-sm); }
.alert-success { background: #ecfdf3; color: #147a3d; }
.alert-danger { background: #fef2f2; color: #b91c1c; }
.alert-info { background: #eff8ff; color: #0b6ea8; }
.alert-warning { background: #fffbeb; color: #b45309; }
.dropdown-menu { border: 1px solid var(--nq-border); border-radius: 12px; box-shadow: var(--nq-shadow); }
.dropdown-item { border-radius: 8px; font-size: 0.9rem; }
.dropdown-item:hover { background: var(--nq-primary-soft); color: var(--nq-primary-dark); }
.dropdown-item.active { background: var(--nq-primary); }

/* ========== Footer ========== */
.footer { margin-top: auto; color: var(--nq-muted); font-size: 0.82rem; }

/* ========== POS ========== */
.category-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.category-btn-icon {
  width: 100%; aspect-ratio: 1; max-width: 3rem; max-height: 3rem; margin: 0 auto; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--nq-border);
  background: #f4fcf7; color: var(--nq-muted); transition: all 0.15s ease;
}
.category-btn-icon i { font-size: 1.1rem; }
.category-btn-icon:hover { border-color: var(--nq-primary); color: var(--nq-primary); background: var(--nq-primary-soft); }
.category-btn-icon.active {
  background: linear-gradient(135deg, var(--nq-primary), var(--nq-primary-dark));
  border-color: transparent; color: #fff; box-shadow: 0 6px 14px var(--nq-primary-ring);
}
@media (min-width: 400px) { .category-btns { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 576px) {
  .category-btns { grid-template-columns: repeat(8, 1fr); gap: 0.6rem; }
  .category-btn-icon { max-width: 3.25rem; max-height: 3.25rem; }
  .category-btn-icon i { font-size: 1.25rem; }
}
@media (min-width: 768px) { .category-btns { grid-template-columns: repeat(10, 1fr); } }
@media (min-width: 992px) { .category-btns { grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); } }

.product-card {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  border: 1px solid var(--nq-border); border-radius: var(--nq-radius); cursor: pointer;
}
.product-card:hover {
  border-color: var(--nq-primary); transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--nq-primary-ring);
}
.product-card .card-body > i.bi-box {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin: 0 auto 0.55rem; border-radius: 14px;
  background: var(--nq-primary-soft); color: var(--nq-primary); font-size: 1.6rem;
}
.product-card .product-name { font-weight: 600; color: var(--nq-text); }
.product-card .product-price { color: var(--nq-primary); font-size: 0.95rem; }

.cart-item { transition: background 0.15s ease; border-radius: 8px; }
.cart-item:hover { background-color: #f4fcf7; }
.cart-item .item-name { font-size: 0.9rem; }
.cart-item .qty-minus, .cart-item .qty-plus {
  min-width: 50px; height: 44px; padding: 0 12px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 999px;
  font-size: 1.35rem; font-weight: 700; line-height: 1;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.cart-item .qty-minus:active, .cart-item .qty-plus:active { transform: scale(0.92); }
.cart-item .qty-plus { color: var(--nq-primary); border-color: var(--nq-primary); }
.cart-item .qty-plus:hover { background: var(--nq-primary); color: #fff; }
.cart-item .item-qty { min-width: 40px !important; font-size: 1.1rem; font-weight: 700; }
.cart-item .item-remove {
  width: 44px; height: 44px; padding: 0; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 999px; font-size: 1.1rem;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}
.cart-item .item-remove:active { transform: scale(0.92); }

/* ========== SweetAlert2 theme ========== */
.swal2-popup { border-radius: 18px; font-family: var(--nq-font); }
.swal2-title { font-weight: 700; color: var(--nq-text); }
.swal2-styled.swal2-confirm {
  background: linear-gradient(135deg, var(--nq-primary), var(--nq-primary-dark)) !important;
  border-radius: 10px; font-weight: 600; box-shadow: 0 6px 16px var(--nq-primary-ring);
}
.swal2-styled.swal2-confirm:focus { box-shadow: 0 0 0 3px var(--nq-primary-ring); }
.swal2-styled.swal2-cancel { border-radius: 10px; font-weight: 600; }
.swal2-styled.swal2-deny { border-radius: 10px; font-weight: 600; }
.swal2-input { border-radius: 10px; font-family: var(--nq-font); }
.swal2-input:focus { border-color: var(--nq-primary); box-shadow: 0 0 0 3px var(--nq-primary-ring); }

/* ========== Responsive: tablet (<=991px) ========== */
@media (max-width: 991.98px) {
  /* Off-canvas drawer must paint above the sticky navbar, not under it */
  .sidebar {
    transform: translateX(-100%);
    width: min(86vw, 300px);
    height: 100vh; height: 100dvh;
    z-index: 1045;
  }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(8, 24, 15, 0.5); z-index: 1040;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.show { display: block; }

  .navbar { position: sticky; top: 0; z-index: 1020; }
  .container-fluid { padding-left: 1rem; padding-right: 1rem; }
  .table > :not(caption) > * > * { padding: 0.55rem 0.6rem; }
  .table th { font-size: 0.68rem; }
  .table td { font-size: 0.85rem; }
  .card-body { padding: 1rem; }
  .modal-dialog { margin: 0.75rem auto; }
  .swal2-popup { border-radius: 16px; }
  .container-fluid > .d-flex.justify-content-between { margin-bottom: 1rem !important; }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #bcd9c4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--nq-primary); }

/* ========== Animations ========== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease; }

/* ========== Print ========== */
@media print {
  .sidebar, .navbar, .footer, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ========== Thermal receipt (auto-print after payment) ========== */
.thermal-receipt { display: none; }
@media print {
  @page { size: auto; margin: 0; }
  body.printing-thermal { background: #fff !important; }
  body.printing-thermal > *:not(#thermalReceipt) { display: none !important; }
  body.printing-thermal #thermalReceipt {
    display: block !important;
    width: var(--thermal-w, 80mm);
    margin: 0; padding: 3mm 2mm;
    font-family: 'Courier New', monospace;
    font-size: 11px; line-height: 1.35; color: #000;
  }
  #thermalReceipt .tr-head { text-align: center; }
  #thermalReceipt .tr-title { font-size: 13px; font-weight: bold; }
  #thermalReceipt .tr-sep { border-top: 1px dashed #000; margin: 4px 0; }
  #thermalReceipt .tr-line { display: flex; justify-content: space-between; gap: 6px; }
  #thermalReceipt .tr-item { margin-bottom: 3px; }
  #thermalReceipt .tr-name { word-break: break-word; }
  #thermalReceipt .tr-strong { font-weight: bold; }
  #thermalReceipt .tr-foot { text-align: center; margin-top: 4px; }
}

/* ==========================================================================
   Responsive & touch layer — phones + Android tablets
   ========================================================================== */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* Page header rows: title + action stay together, wrap when space runs out */
.container-fluid > .d-flex.justify-content-between {
  flex-wrap: wrap; gap: 0.75rem;
}
.container-fluid > .d-flex.justify-content-between > h4 {
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  display: flex; align-items: center; gap: 0.5rem; min-width: 0;
}
.container-fluid > .d-flex.justify-content-between > h4 i { font-size: 1.05em; }
.container-fluid > .d-flex.justify-content-between > .btn,
.container-fluid > .d-flex.justify-content-between > div > .btn { white-space: nowrap; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Keep long amounts / barcodes inside their column */
.row > * { min-width: 0; }
.card h2, .card h3 { overflow-wrap: anywhere; }
.table td, .table th { overflow-wrap: break-word; }

/* Horizontal table scroll feels native on touch devices */
.table-responsive { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.table-responsive > .table { margin-bottom: 0; }

/* Sticky table header inside scroll boxes */
.table-responsive.sticky-head thead th { position: sticky; top: 0; z-index: 2; }

/* ========== Sidebar controls (off-canvas) ========== */
.sidebar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.sidebar-close {
  margin-left: auto; width: 36px; height: 36px; flex: 0 0 36px;
  display: none; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1rem;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.sidebar-close:active { transform: scale(0.94); }
@media (max-width: 991.98px) { .sidebar-close { display: inline-flex; } }

/* Current page title in the mobile navbar */
.navbar-title {
  flex: 1 1 auto; min-width: 0; padding: 0 0.25rem;
  font-weight: 700; font-size: 0.95rem; color: var(--nq-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ========== POS: mobile cart summary bar ========== */
.pos-mobile-bar { display: none; }
.pos-cart-scroll { max-height: 400px; }

@media (max-width: 991.98px) {
  .pos-cart-scroll { max-height: none; }
  .pos-mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--nq-border);
    box-shadow: 0 -10px 28px rgba(16, 24, 40, 0.1);
    backdrop-filter: blur(10px);
  }
  body.has-pos-bar { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .pos-mobile-bar__info { flex: 1 1 auto; min-width: 0; }
  .pos-mobile-bar__total {
    font-weight: 800; font-size: 1.05rem; line-height: 1.15;
    color: var(--nq-text); overflow-wrap: anywhere;
  }
  .pos-mobile-bar__meta { font-size: 0.72rem; color: var(--nq-muted); }
  .pos-mobile-bar .btn { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* ========== Phones (<=575px) ========== */
@media (max-width: 575.98px) {
  .container-fluid { padding-left: 0.7rem; padding-right: 0.7rem; }
  .main-content { min-height: 100dvh; }

  .card { border-radius: 12px; }
  .card-body { padding: 0.85rem; }
  .card-header { padding: 0.7rem 0.85rem; font-size: 0.9rem; }
  .card-footer { padding: 0.6rem 0.85rem; }
  .card h2 { font-size: 1.15rem; }
  .card h3 { font-size: 1.05rem; }
  .card h6 { font-size: 0.78rem; }
  .card-body i.fs-1 { font-size: 1.6rem !important; }

  /* 16px avoids the iOS/Android input auto-zoom */
  .form-control, .form-select { font-size: 16px; }
  .form-label { font-size: 0.8rem; }
  .input-group-text { padding: 0.4rem 0.6rem; }

  .table > :not(caption) > * > * { padding: 0.5rem 0.45rem; }
  .table th { font-size: 0.64rem; letter-spacing: 0.3px; }
  .table td { font-size: 0.8rem; }
  .badge { font-size: 0.68rem; }
  .btn-group-sm > .btn, .btn-sm { padding: 0.35rem 0.5rem; }

  .modal-dialog { margin: 0.5rem; }
  .modal-content { border-radius: 16px; }
  .swal2-popup:not(.swal2-toast) { width: 92vw !important; padding: 1.1rem; }
  .swal2-toast { width: auto !important; max-width: 92vw; }
  .swal2-title { font-size: 1.05rem; }
  .swal2-actions { gap: 0.5rem; }

  .pagination { flex-wrap: wrap; gap: 0.25rem; }
  .footer { font-size: 0.72rem; padding: 0.7rem 0; }
  .navbar { padding: 0 0.5rem; }

  /* Dashboard / report KPI cards */
  .card .d-flex.justify-content-between.align-items-start { gap: 0.4rem; }

  /* POS product tiles + cart steppers */
  .product-card .card-body { padding: 0.5rem !important; }
  .product-card .product-name { font-size: 0.78rem; }
  .product-card .product-price { font-size: 0.82rem; }
  .cart-item .qty-minus, .cart-item .qty-plus { min-width: 40px; height: 40px; font-size: 1.1rem; }
  .cart-item .item-remove { width: 40px; height: 40px; }
  .cart-item .item-qty { min-width: 28px !important; font-size: 1rem; }

  /* Auth */
  .auth-page { padding: 14px; }
  .auth-card { border-radius: 18px; }
  .auth-card .card-body { padding: 1.35rem !important; }
  .auth-logo { width: 56px; height: 56px; border-radius: 16px; font-size: 1.6rem; }
  .auth-card h3 { font-size: 1.25rem; }
}

/* ========== Touch devices: comfortable hit areas ========== */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm, .btn-group-sm > .btn { min-height: 38px; }
  .form-control, .form-select { min-height: 44px; }
  .dropdown-item { min-height: 44px; display: flex; align-items: center; }
  .navbar .btn-link, .sidebar-close { min-height: 44px; min-width: 44px; }
  .page-link { min-height: 40px; display: flex; align-items: center; }
}

@media print {
  .pos-mobile-bar, .sidebar-close { display: none !important; }
  body.has-pos-bar { padding-bottom: 0 !important; }
}