/* ══════════════════════════════════════════════════════════
   MIETBAR KASSE — Stylesheet (Homer Design System)
   ══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ── HOMER DESIGN TOKENS ──────────────────────────────── */
:root {
  /* Homer Primary — Green */
  --primary:        #62cb31;
  --primary-hover:  #52b025;
  --primary-soft:   rgba(98, 203, 49, 0.12);
  --accent:         #62cb31;  /* Legacy-Alias auf --primary (Modal-Icons, Section-Header-Icons) */

  /* Homer Status Colors */
  --success:        #27ae60;
  --success-soft:   rgba(39, 174, 96, 0.12);
  --success-hover:  #1e8449;
  --danger:         #e74c3c;
  --danger-soft:    rgba(231, 76, 60, 0.12);
  --danger-hover:   #c0392b;
  --warn:           #ffb606;
  --warn-soft:      rgba(255, 182, 6, 0.12);
  --blue:           #3498db;
  --orange:         #e67e22;
  --purple:         #9b59b6;

  /* Backgrounds */
  --bg:             #f1f3f6;
  --surface:        #ffffff;
  --surface-2:      #f6f7fb;
  --surface-3:      #eef2f7;

  /* Borders */
  --border:         #e7e9eb;
  --border-2:       #ced4da;

  /* Text */
  --text-1:         #313a46;
  --text-2:         #6a6c6f;
  --text-3:         #a1a9b1;
  --text-inv:       #ffffff;

  /* Homer Sidebar */
  --sidebar-bg:     #1c1d28;
  --sidebar-text:   #6c7889;
  --sidebar-hover:  #bccee4;
  --sidebar-active: #2f3742;

  /* Homer Radii — sehr kompakt */
  --radius-sm:      2px;
  --radius:         3px;
  --radius-lg:      4px;
  --radius-pill:    50rem;

  /* Homer Shadows — subtil */
  --shadow-sm:      0 0 0 1px rgba(130,143,163,.08);
  --shadow:         0px 1px 4px 0px rgba(130,143,163,.18);
  --shadow-lg:      0px 4px 16px 0px rgba(130,143,163,.22);

  --transition:     150ms cubic-bezier(.4,0,.2,1);

  /* Homer Layout */
  --topbar-height:  60px;
  --sidebar-width:  210px;
}

html, body {
  height: 100%;
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--text-1);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── PIN SCREEN ──────────────────────────────────────────── */
#pin-screen {
  position: fixed;
  inset: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 9999;
  user-select: none;
}

/* Homer Color-Bar im PIN-Screen */
#pin-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background-image: linear-gradient(to right,
    #34495e 0%, #34495e 25%,
    #9b59b6 25%, #9b59b6 35%,
    #3498db 35%, #3498db 45%,
    #62cb31 45%, #62cb31 55%,
    #ffb606 55%, #ffb606 65%,
    #e67e22 65%, #e67e22 75%,
    #e74c3c 75%, #e74c3c 85%,
    #c0392b 85%, #c0392b 100%
  );
}

.pin-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pin-brand-row svg { color: var(--primary); }

.pin-subtitle {
  font-size: 12px;
  color: var(--sidebar-text);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pin-dots-wrap {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #2d3c4a;
  background: transparent;
  transition: background .12s, border-color .12s;
}

.pin-dot.filled {
  background: var(--primary);
  border-color: var(--primary);
}

.pin-error-msg {
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 18px;
  letter-spacing: .02em;
}

@keyframes pin-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-10px); }
  40%      { transform: translateX(10px); }
  60%      { transform: translateX(-8px); }
  80%      { transform: translateX(8px); }
}
.pin-shake { animation: pin-shake .4s ease; }

.pin-numpad {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  grid-template-rows: repeat(4, 60px);
  gap: 8px;
  margin-top: 16px;
}

.pin-key {
  background: var(--sidebar-active);
  border: 1px solid #2d3c4a;
  border-radius: var(--radius);
  color: var(--sidebar-hover);
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .1s, transform .08s, color .1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-key:hover  { background: #3a4551; color: #fff; }
.pin-key:active { background: var(--primary); color: #fff; transform: scale(.95); border-color: var(--primary); }
.pin-key-back   { font-size: 16px; }
.pin-key-empty  { pointer-events: none; background: transparent; border-color: transparent; }

/* ── LAYOUT ───────────────────────────────────────────── */
#app {
  display: grid;
  grid-template-rows: var(--topbar-height) 1fr;
  grid-template-columns: 67% 33%;
  height: 100vh;
}

/* ── HOMER COLOR-BAR ──────────────────────────────────── */
.color-line {
  height: 6px;
  background-image: linear-gradient(to right,
    #34495e 0%, #34495e 25%,
    #9b59b6 25%, #9b59b6 35%,
    #3498db 35%, #3498db 45%,
    #62cb31 45%, #62cb31 55%,
    #ffb606 55%, #ffb606 65%,
    #e67e22 65%, #e67e22 75%,
    #e74c3c 75%, #e74c3c 85%,
    #c0392b 85%, #c0392b 100%
  );
  grid-column: 1 / -1;
  flex-shrink: 0;
}

/* ── HEADER ───────────────────────────────────────────── */
header {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex: 1;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-1);
}

.header-brand svg {
  flex-shrink: 0;
  color: #fff;
  background: var(--primary);
  padding: 7px;
  border-radius: var(--radius);
  width: 20px;
  height: 20px;
  box-sizing: content-box;
}

.header-center {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 34px;
  background: var(--primary-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-report:hover { background: var(--primary); color: #fff; }
.btn-report:active { opacity: .9; }

/* ── LEFT PANEL ─────────────────────────────────────── */
#panel-products {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.category-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.category-bar::-webkit-scrollbar { display: none; }

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.cat-btn:hover  { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.product-grid {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

/* ── PRODUCT CARD ────────────────────────────────────── */
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 90px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
  user-select: none;
  overflow: visible;
}
.product-card:hover  {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.product-card:active { transform: scale(.97); box-shadow: var(--shadow); }

.product-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  pointer-events: none;
}

.product-icon  { color: var(--primary); flex-shrink: 0; }

.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

.product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
}

/* ── RIGHT PANEL ────────────────────────────────────── */
#panel-cart {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
}
.cart-count-badge {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  text-align: center;
  display: none;
}

.cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
  -webkit-overflow-scrolling: touch;
}

/* ── CART EMPTY STATE ───────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: var(--text-3);
}
.cart-empty svg { opacity: .25; }
.cart-empty p   { font-size: 13px; font-weight: 500; }

/* ── CART ITEMS ─────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  animation: fadeSlideIn 160ms ease-out;
  cursor: pointer;
  transition: background var(--transition);
  margin: 0 -6px;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover  { background: var(--danger-soft); }
.cart-item:active { background: rgba(231,76,60,.2); }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cart-item-qty {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 26px;
  text-align: center;
}

.cart-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-unit {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 54px;
  text-align: right;
  flex-shrink: 0;
}

.cart-item-line-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
  flex-shrink: 0;
}

/* ── CART FOOTER ───────────────────────────────────── */
.cart-footer {
  border-top: 1px solid var(--border);
  padding: 12px 18px 14px;
  flex-shrink: 0;
}

.cart-actions {
  display: flex;
  gap: 8px;
}

.btn-pay {
  flex: 1;
  height: 52px;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(98,203,49,.30);
}
.btn-pay:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(98,203,49,.40);
  transform: translateY(-1px);
}
.btn-pay:active:not(:disabled) { transform: scale(.98); }
.btn-pay:disabled {
  background: var(--border);
  color: var(--text-3);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-pay-total {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: .95;
  margin-left: 4px;
}

/* ── TOAST ─────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── MODAL ─────────────────────────────────────────── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49,58,70,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
  padding: 20px;
}
#modal-overlay.show { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: scale(.97) translateY(6px);
  transition: transform 200ms ease-out;
  overflow: hidden;
}
#modal-overlay.show .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface-2);
}
.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-title svg { color: var(--primary); }

.btn-modal-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.btn-modal-close:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

/* ── TAGESBERICHT (Homer Stat-Cards) ────────────────── */
.report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 16px 22px;
  text-align: left;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
}
.stat-card:nth-child(2)::before { background: var(--success); }
.stat-card:nth-child(3)::before { background: var(--warn); }
.stat-card:nth-child(4)::before { background: var(--purple); }
.stat-card:nth-child(5)::before { background: var(--blue); }
.stat-card:nth-child(6)::before { background: var(--orange); }

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  display: block;
  letter-spacing: -.01em;
}
.stat-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 5px;
}

.report-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.top-products {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.top-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.top-product-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.top-product-name { flex: 1; font-size: 12.5px; font-weight: 600; }
.top-product-qty {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* ── STEUERNACHWEIS ─────────────────────────────────── */
.vat-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  font-size: 12px;
}
.vat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
}
.vat-row:last-child { border-bottom: none; }
.vat-row.vat-header {
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
}
.vat-row.vat-total {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text-1);
  border-top: 2px solid var(--border-2);
}
.vat-row span:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── TRANSAKTIONSLISTE ──────────────────────────────── */
.transactions-list { display: flex; flex-direction: column; gap: 6px; }
.transaction-row {
  padding: 9px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.transaction-time  { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.transaction-items { font-size: 11px; color: var(--text-2); flex: 1; padding: 0 10px; }
.transaction-total {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* ── MODAL FOOTER ───────────────────────────────────── */
.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: var(--surface-2);
}
.btn-danger-outline {
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.btn-modal-ok {
  flex: 1;
  height: 38px;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(98,203,49,.25);
}
.btn-modal-ok:hover  { background: var(--primary-hover); box-shadow: 0 4px 14px rgba(98,203,49,.35); }
.btn-modal-ok:active { opacity: .9; }

.empty-report {
  text-align: center;
  padding: 28px 0;
  color: var(--text-3);
  font-size: 13px;
}

/* ── VERKNÜPFTE PRODUKT-ZEILE ───────────────────────────── */
.cart-item-linked {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  margin: -4px -6px 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  cursor: default;
  user-select: none;
}
.cart-item-linked:last-child { border-bottom: none; }

.cil-qty {
  font-size: 12px;
  font-weight: 600;
  color: var(--border-2);
  font-variant-numeric: tabular-nums;
  min-width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.cil-name {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cil-unit {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  min-width: 54px;
  text-align: right;
  flex-shrink: 0;
}
.cil-total {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 70px;
  text-align: right;
  flex-shrink: 0;
}

/* ── NEGATIVE-PRICE (RÜCKGABE) ──────────────────────── */
.product-card.product-refund {
  border-color: rgba(231,76,60,.25);
  background: rgba(231,76,60,.04);
}
.product-card.product-refund .product-icon { color: var(--danger); }
.product-card.product-refund .product-price { color: var(--danger); }
.product-card.product-refund:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: 0 4px 12px rgba(231,76,60,.14);
}
.product-card.product-refund .product-badge { background: var(--danger); }

.cart-item.cart-item-refund { background: rgba(231,76,60,.04); }
.cart-item.cart-item-refund:hover  { background: rgba(231,76,60,.10); }
.cart-item.cart-item-refund:active { background: rgba(231,76,60,.18); }
.cart-item.cart-item-refund .cart-item-qty        { color: var(--danger); }
.cart-item.cart-item-refund .cart-item-unit       { color: var(--danger); opacity: .85; }
.cart-item.cart-item-refund .cart-item-line-total { color: var(--danger); }

/* ── SCROLLBARS ─────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── RESPONSIVE: TABLET LANDSCAPE ≥ 900px ──────────── */
@media (min-width: 900px) and (orientation: landscape) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── RESPONSIVE: PORTRAIT / SCHMALE SCREENS ≤ 767px ── */
@media (max-width: 767px) {
  html, body { overflow: auto; }

  #app {
    grid-template-rows: var(--topbar-height) auto 1fr;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  header {
    grid-column: 1;
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .header-center { font-size: 14px; }

  #panel-products {
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow: visible;
  }

  .product-grid {
    overflow: visible;
    grid-template-columns: repeat(3, 1fr);
  }

  #panel-cart   { min-height: 60vh; }

  .cart-list {
    overflow: visible;
    min-height: 100px;
  }
}
