/* ============================================================
   Intelligente Vorratskammer – app.css
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --primary:          #2c7a3e;
  --primary-dark:     #1e5429;
  --primary-light:    #4caf65;
  --primary-xlight:   #e8f5e9;
  --accent:           #ff6b2b;
  --accent-light:     #fff3ee;
  --warning:          #ff9800;
  --warning-light:    #fff8e1;
  --danger:           #f44336;
  --danger-light:     #ffebee;
  --success:          #4caf50;
  --success-light:    #e8f5e9;
  --info:             #2196f3;
  --info-light:       #e3f2fd;
  --bg:               #f5f5f5;
  --surface:          #ffffff;
  --surface-2:        #fafafa;
  --text:             #212121;
  --text-secondary:   #757575;
  --text-disabled:    #bdbdbd;
  --border:           #e0e0e0;
  --border-focus:     #2c7a3e;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.08);
  --shadow:           0 2px 8px rgba(0,0,0,.10);
  --shadow-md:        0 4px 16px rgba(0,0,0,.14);
  --shadow-lg:        0 8px 32px rgba(0,0,0,.18);
  --radius-sm:        6px;
  --radius:           10px;
  --radius-lg:        16px;
  --radius-xl:        24px;
  --transition:       0.2s ease;
  --sidebar-width:    240px;
  --bottom-nav-h:     64px;
  --header-h:         56px;
  --safe-top:         env(safe-area-inset-top, 0px);
  --safe-bottom:      env(safe-area-inset-bottom, 0px);
  --safe-left:        env(safe-area-inset-left, 0px);
  --safe-right:       env(safe-area-inset-right, 0px);
}

/* ── Reset / Normalize ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ── Typography ────────────────────────────────────────────── */
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem;     font-weight: 600; }
h5 { font-size: .875rem;  font-weight: 600; }
p  { line-height: 1.6; }
small { font-size: .8125rem; color: var(--text-secondary); }
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-danger    { color: var(--danger); }
.text-warning   { color: var(--warning); }
.text-success   { color: var(--success); }
.text-muted     { color: var(--text-disabled); }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-sm  { font-size: .875rem; }
.text-xs  { font-size: .75rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }

/* ── Layout Utilities ──────────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1  { gap: .25rem; }
.gap-2  { gap: .5rem; }
.gap-3  { gap: .75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.flex-1 { flex: 1; }
.grid { display: grid; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: .5rem; }
.ml-auto { margin-left: auto; }
.p-2  { padding: .5rem; }
.p-3  { padding: .75rem; }
.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Loading Screen ────────────────────────────────────────── */
.loading-screen {
  position: fixed; inset: 0;
  background: var(--surface);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem; z-index: 9999;
  transition: opacity .3s ease;
}
.loading-logo svg { width: 80px; height: 80px; }
.loading-screen.fade-out { opacity: 0; pointer-events: none; }

/* ── Loading Spinner ───────────────────────────────────────── */
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loading-spinner.sm {
  width: 20px; height: 20px;
  border-width: 2px;
}
.loading-spinner.lg {
  width: 52px; height: 52px;
  border-width: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── App Layout ────────────────────────────────────────────── */
#app-container {
  display: flex;
  min-height: 100dvh;
}

.main-content {
  flex: 1;
  padding: 1.5rem;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
  min-width: 0;
  max-width: 100%;
}

/* ── Sidebar (desktop) ─────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  padding-top: var(--safe-top);
  box-shadow: var(--shadow-sm);
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.sidebar-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.sidebar-nav {
  flex: 1;
  padding: .75rem 0;
}
.sidebar-nav li a,
.sidebar-nav li button {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  width: 100%;
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}
.sidebar-nav li a:hover,
.sidebar-nav li button:hover {
  background: var(--primary-xlight);
  color: var(--primary);
  text-decoration: none;
}
.sidebar-nav li.active a,
.sidebar-nav li.active button {
  background: var(--primary-xlight);
  color: var(--primary);
  font-weight: 600;
  border-right: 3px solid var(--primary);
}
.sidebar-nav .nav-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  opacity: .7;
}
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sidebar-user {
  font-size: .8rem;
  color: var(--text-secondary);
  word-break: break-all;
  text-align: center;
}

/* ── Bottom Navigation (mobile) ────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}
.bottom-nav ul {
  display: flex;
  height: var(--bottom-nav-h);
  align-items: stretch;
}
.bottom-nav li { flex: 1; }
.bottom-nav li a,
.bottom-nav li button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  height: 100%;
  width: 100%;
  color: var(--text-secondary);
  font-size: .7rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: .25rem;
}
.bottom-nav li.active a,
.bottom-nav li.active button {
  color: var(--primary);
}
.bottom-nav .nav-icon {
  width: 22px; height: 22px;
}

/* ── Mobile More Menu ──────────────────────────────────────── */
.mobile-more-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  width: 100%;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition);
  text-align: left;
}
.mobile-more-item:hover { background: var(--bg); }
.mobile-more-item .nav-icon {
  width: 24px; height: 24px;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-more-item-danger { color: var(--danger); }
.mobile-more-item-danger .nav-icon { color: var(--danger); }

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-header h1, .page-header h2 { margin: 0; }
.page-header .header-actions { margin-left: auto; display: flex; gap: .5rem; }
.back-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-secondary);
  font-size: .9rem;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.back-btn:hover { background: var(--border); text-decoration: none; }
.back-btn svg { width: 18px; height: 18px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.card-meta  { font-size: .8rem; color: var(--text-secondary); }

/* ── Pantry Grid ───────────────────────────────────────────── */
.pantries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.pantry-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.pantry-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pantry-card-inner {
  padding: 1.5rem 1.25rem 1rem;
}
.pantry-card-icon {
  width: 52px; height: 52px;
  background: var(--primary-xlight);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.pantry-card-icon svg { width: 28px; height: 28px; color: var(--primary); }
.pantry-card-name { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.pantry-card-meta { font-size: .8rem; color: var(--text-secondary); }
.pantry-card-actions {
  display: flex;
  border-top: 1px solid var(--border);
}
.pantry-card-actions button {
  flex: 1;
  padding: .6rem;
  font-size: .8rem;
  color: var(--text-secondary);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  transition: background var(--transition), color var(--transition);
}
.pantry-card-actions button:hover { background: var(--bg); }
.pantry-card-actions button.danger:hover { color: var(--danger); }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .55rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
}
.badge-primary  { background: var(--primary-xlight); color: var(--primary-dark); }
.badge-accent   { background: var(--accent-light);   color: var(--accent); }
.badge-warning  { background: var(--warning-light);  color: #e65100; }
.badge-danger   { background: var(--danger-light);   color: var(--danger); }
.badge-success  { background: var(--success-light);  color: #2e7d32; }
.badge-info     { background: var(--info-light);     color: #1565c0; }
.badge-neutral  { background: var(--bg);             color: var(--text-secondary); border: 1px solid var(--border); }
.badge-shared   { background: #ede7f6; color: #5e35b1; }
.badge-global   { background: #e3f2fd; color: #1565c0; }

/* ── Product Grid ──────────────────────────────────────────── */
.sort-toolbar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.sort-toolbar-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}
.sort-field-select {
  width: auto;
  min-width: 140px;
  padding: .3rem .7rem;
  font-size: .875rem;
}
.sort-dir-btn {
  white-space: nowrap;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.product-card.stock-warn  { border-color: var(--warning); }
.product-card.stock-low   { border-color: var(--danger); }
.product-card.stock-warn .product-card-header { background: var(--warning-light); }
.product-card.stock-low  .product-card-header { background: var(--danger-light); }

.product-card-header {
  position: relative;
  background: var(--primary-xlight);
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card-header img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-placeholder-icon {
  width: 56px; height: 56px;
  color: var(--text-disabled);
  opacity: .5;
}
.product-drag-handle {
  position: absolute;
  top: .4rem; left: .4rem;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-drag-handle { opacity: 1; }
.product-drag-handle:active { cursor: grabbing; }

.product-stock-badge {
  position: absolute;
  top: .4rem; right: .4rem;
}
.product-card-body {
  padding: .85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.product-name {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-category-tag {
  display: inline-flex;
  align-items: center;
  padding: .15rem .45rem;
  border-radius: 99px;
  font-size: .7rem;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  width: fit-content;
}
.product-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-qty {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.product-qty.warn { color: var(--warning); }
.product-qty.low  { color: var(--danger); }
.product-price {
  font-size: .8rem;
  color: var(--text-secondary);
}
.product-card-actions {
  display: flex;
  border-top: 1px solid var(--border);
}
.product-card-actions button {
  flex: 1;
  min-width: 0;
  padding: .55rem .4rem;
  font-size: .78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  transition: background var(--transition), color var(--transition);
  border-right: 1px solid var(--border);
}
.product-card-actions button:last-child { border-right: none; }
.product-card-actions button:hover { background: var(--bg); }
.product-card-actions .btn-add:hover   { color: var(--success); }
.product-card-actions .btn-take:hover  { color: var(--primary); }
.product-card-actions .btn-edit:hover  { color: var(--info); }
.product-card-actions .btn-delete:hover { color: var(--danger); }
.product-card-actions button > svg { flex-shrink: 0; }


/* Drag and drop states */
.product-card.dragging {
  opacity: .5;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.product-card.drag-over {
  border-color: var(--primary);
  background: var(--primary-xlight);
}
.sortable-ghost { opacity: .4; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg); }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) { background: #c62828; border-color: #c62828; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--text); }

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover:not(:disabled) { background: var(--primary-xlight); }

.btn-sm {
  padding: .3rem .7rem;
  font-size: .82rem;
}
.btn-lg {
  padding: .75rem 1.75rem;
  font-size: 1rem;
}
.btn-icon {
  padding: .5rem;
  border-radius: var(--radius);
  width: 36px; height: 36px;
}
.btn-icon svg { width: 20px; height: 20px; }
.btn-fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
  right: 1rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-fab:hover { transform: scale(1.08); box-shadow: var(--shadow-lg); }
.btn-fab svg { width: 26px; height: 26px; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(44,122,62,.12);
}
.form-control::placeholder { color: var(--text-disabled); }
.form-control:disabled { background: var(--bg); color: var(--text-secondary); cursor: not-allowed; }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(244,67,54,.12); }
.invalid-feedback { font-size: .8rem; color: var(--danger); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23757575' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 80px; }

.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control {
  border-radius: var(--radius) 0 0 var(--radius);
  flex: 1;
}
.input-group .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}

.form-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}
.form-check-label { font-size: .9rem; cursor: pointer; }

/* Password toggle wrapper */
.password-wrapper {
  position: relative;
}
.password-wrapper .form-control { padding-right: 2.75rem; }
.password-toggle {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  padding: .25rem;
  display: flex;
}
.password-toggle svg { width: 20px; height: 20px; }

/* Image upload */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--bg);
}
.image-upload-area:hover,
.image-upload-area.drag-over {
  border-color: var(--primary);
  background: var(--primary-xlight);
}
.image-upload-area input { display: none; }
.image-preview-wrap {
  position: relative;
  display: inline-block;
  margin-top: .75rem;
}
.image-preview {
  width: 100px; height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.image-preview-remove {
  position: absolute;
  top: -.5rem; right: -.5rem;
  width: 22px; height: 22px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  cursor: pointer;
}

/* ── Camera capture ────────────────────────────────────────── */
.camera-section {
  margin-top: .5rem;
}
.camera-stream-container {
  margin-top: .5rem;
}
.camera-stream-container video {
  width: 100%;
  max-height: 50dvh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
  display: block;
}
.camera-controls {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}
.camera-controls .btn {
  flex: 1;
}

/* ── Modals ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeInOverlay .2s ease;
}
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }

.modal-overlay.center {
  align-items: center;
  padding: 1rem;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: slideUp .25s ease;
  padding-bottom: var(--safe-bottom);
}
.modal-overlay.center .modal {
  border-radius: var(--radius-xl);
  max-height: 90dvh;
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-title { font-size: 1.1rem; font-weight: 600; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--bg); }
.modal-close svg { width: 20px; height: 20px; }

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: .65rem 1.1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: .75rem 1rem;
  text-align: left;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: .75rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--bg); }
.table .actions-cell { white-space: nowrap; display: flex; gap: .4rem; }

/* ── Shopping List ─────────────────────────────────────────── */
.shopping-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.shopping-list-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.shopping-list-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.shopping-list-card.completed { opacity: .7; }
.shopping-list-meta {
  display: flex;
  gap: .5rem;
  margin: .5rem 0;
  font-size: .8rem;
  color: var(--text-secondary);
  align-items: center;
}
.shopping-progress {
  height: 5px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  margin-top: .75rem;
}
.shopping-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width .3s ease;
}

/* Shopping list detail */
.shopping-detail-header {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.shopping-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.share-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.share-public-link {
  overflow-wrap: break-word;
  word-break: break-all;
}
.btn-share-whatsapp  { background: #25d366; color: #fff; }
.btn-share-sms       { background: #1565c0; color: #fff; }
.btn-share-email     { background: #ea4335; color: #fff; }
.btn-share-copy      { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

.shopping-category-group {
  margin-bottom: 1.5rem;
}
.shopping-category-title {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.shopping-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: .5rem;
  transition: opacity var(--transition);
}
.shopping-item.is-checked {
  opacity: .55;
  text-decoration: line-through;
}
.shopping-item input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.shopping-item-img {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.shopping-item-info { flex: 1; min-width: 0; }
.shopping-item-name { font-size: .9rem; font-weight: 500; }
.shopping-item-qty  { font-size: .8rem; color: var(--text-secondary); }
.shopping-item-price { font-size: .85rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.shopping-unassigned-warning {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .85rem;
  background: var(--warning-light);
  border-radius: var(--radius);
  font-size: .82rem;
  color: #e65100;
  margin-bottom: .75rem;
}

/* ── Admin Panel ───────────────────────────────────────────── */
.admin-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.admin-section-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.admin-section-title { font-size: 1rem; font-weight: 600; }
.admin-section-body { padding: 1.25rem; }

/* ── Categories List ───────────────────────────────────────── */
.categories-list, .supermarkets-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.category-item, .supermarket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem .85rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.category-item.is-hidden { opacity: .5; }
.category-item-name, .supermarket-item-name { font-size: .9rem; font-weight: 500; }
.category-item-actions, .supermarket-item-actions {
  display: flex;
  gap: .25rem;
}

/* ── Sortable category list for supermarket ────────────────── */
.sortable-list {
  min-height: 40px;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.sortable-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: grab;
  user-select: none;
  transition: box-shadow var(--transition), background var(--transition);
}
.sortable-item:active { cursor: grabbing; box-shadow: var(--shadow-md); }
.sortable-item.dragging { opacity: .5; box-shadow: var(--shadow-md); }
.sortable-item.over { border-color: var(--primary); background: var(--primary-xlight); }
.drag-grip {
  color: var(--text-disabled);
  display: flex;
  flex-shrink: 0;
}
.drag-grip svg { width: 18px; height: 18px; }
.sortable-item-name { flex: 1; font-size: .875rem; }

/* ── Toast Notifications ───────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}
.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--border);
  pointer-events: all;
  animation: toastIn .25s ease;
  max-width: 320px;
  font-size: .875rem;
}
.toast.out { animation: toastOut .25s ease forwards; }
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info    { border-left-color: var(--info); }
.toast-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info    .toast-icon { color: var(--info); }
.toast-message { flex: 1; }
.toast-close {
  color: var(--text-disabled);
  display: flex;
  flex-shrink: 0;
}
.toast-close svg { width: 16px; height: 16px; }
@keyframes toastIn  { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(60px); opacity: 0; } }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  gap: .75rem;
}
.empty-state-icon {
  width: 72px; height: 72px;
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .5rem;
}
.empty-state-icon svg { width: 40px; height: 40px; color: var(--text-disabled); }
.empty-state-title { font-size: 1.1rem; font-weight: 600; }
.empty-state-text  { font-size: .875rem; color: var(--text-secondary); max-width: 280px; }

/* ── Auth / Login Page ─────────────────────────────────────── */
.auth-container {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #f5f5f5 50%, #fff8e1 100%);
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
  text-align: center;
}
.auth-logo svg { width: 60px; height: 60px; }
.auth-logo-title { font-size: 1.3rem; font-weight: 700; }
.auth-logo-sub   { font-size: .85rem; color: var(--text-secondary); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: .82rem;
}
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem;
}
.form-label-link {
  font-size: .8125rem;
}

/* ── Share Dialog ──────────────────────────────────────────── */
.share-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 200px;
  overflow-y: auto;
}
.share-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .85rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.share-item-email { font-size: .875rem; }

/* ── Passkey button ─────────────────────────────────────────── */
.btn-passkey {
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.btn-passkey:hover:not(:disabled) { background: #0d0d1a; }
.btn-passkey svg { width: 22px; height: 22px; }

/* ── Reset Password Page ───────────────────────────────────── */
.reset-container {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg);
}
.reset-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 400px;
}

/* ── Legal pages ───────────────────────────────────────────── */
.legal-container {
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.legal-container h1 { margin-bottom: 1.5rem; }
.legal-container h2 { margin-top: 2rem; margin-bottom: .75rem; }
.legal-container p  { margin-bottom: 1rem; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

/* ── Install page ──────────────────────────────────────────── */
.install-container {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}
.install-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
}
.install-card h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.install-step-indicator {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.install-step {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--border);
}
.install-step.active  { background: var(--primary); }
.install-step.done    { background: var(--success); }

/* ── Pantry detail header ──────────────────────────────────── */
.pantry-detail-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pantry-detail-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pantry-detail-icon svg { width: 28px; height: 28px; color: #fff; }
.pantry-detail-name  { font-size: 1.2rem; font-weight: 700; }
.pantry-detail-meta  { font-size: .82rem; opacity: .8; }
.pantry-detail-actions { margin-left: auto; display: flex; gap: .5rem; }
.pantry-detail-actions .btn { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.pantry-detail-actions .btn:hover { background: rgba(255,255,255,.25); }

/* ── Section header with add button ────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title { font-size: 1rem; font-weight: 600; }

/* ── Offline page ──────────────────────────────────────────── */
.offline-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  gap: 1rem;
}
.offline-icon {
  width: 80px; height: 80px;
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.offline-icon svg { width: 44px; height: 44px; color: var(--text-secondary); }

/* ── Responsive – Desktop ──────────────────────────────────── */
@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
  .sidebar    { display: flex; }

  #app-container.nav-visible { padding-left: var(--sidebar-width); }

  .main-content {
    padding: 2rem;
    padding-bottom: 2rem;
  }

  .btn-fab {
    bottom: 2rem;
    right: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .pantries-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
  .modal {
    border-radius: var(--radius-xl);
  }
}

@media (max-width: 767px) {
  .sidebar { display: none !important; }

  h1 { font-size: 1.4rem; }

  .auth-card { padding: 1.75rem 1.25rem; }

  .page-header { margin-bottom: 1rem; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: .75rem;
  }

  .pantry-card-actions button {
    flex-direction: row;
  }

  .pantry-detail-header {
    flex-wrap: wrap;
  }
  .pantry-detail-actions {
    width: 100%;
    margin-left: 0;
  }

  .table-wrap { font-size: .82rem; }
}

/* ── Scrollbar styling (Webkit) ────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-disabled); }

/* ── Focus visible ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* ── Alert box ─────────────────────────────────────────────── */
.alert {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem; }
.alert-info    { background: var(--info-light);    color: #1565c0; }
.alert-success { background: var(--success-light); color: #2e7d32; }
.alert-warning { background: var(--warning-light); color: #e65100; }
.alert-danger  { background: var(--danger-light);  color: #c62828; }

/* ── Chip / tag ─────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.chip .chip-remove {
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  color: var(--text-secondary);
}
.chip .chip-remove:hover { background: var(--border); color: var(--danger); }

/* ── Stock indicator bar ────────────────────────────────────── */
.stock-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: .35rem;
}
.stock-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--success);
  transition: width .3s ease;
}
.stock-bar.warn { background: var(--warning); }
.stock-bar.low  { background: var(--danger); }

/* ── Number input with +/- ──────────────────────────────────── */
.qty-input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.qty-input-group:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(44,122,62,.12); }
.qty-btn {
  width: 36px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--border); color: var(--text); }
.qty-input {
  flex: 1;
  border: none;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  outline: none;
  min-width: 0;
  padding: .4rem .2rem;
  background: var(--surface);
}

/* ── Pantry selector dropdown ──────────────────────────────── */
.pantry-selector {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.pantry-selector label { font-weight: 500; white-space: nowrap; }
.pantry-selector select { flex: 1; }

/* ── Completed shopping list overlay ───────────────────────── */
.list-completed-banner {
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  color: #2e7d32;
  font-weight: 500;
}
.list-completed-banner svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ── Print styles ───────────────────────────────────────────── */
@media print {
  .sidebar, .bottom-nav, .btn-fab, .toast-container, .modal-overlay { display: none !important; }
  .main-content { padding: 0; }
  body { background: white; }
}

/* ── PWA Install Banner ─────────────────────────────────────── */
.pwa-install-banner {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + .75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 480px;
  width: calc(100% - 2rem);
  animation: slideUpBanner .25s ease;
}
@media (min-width: 768px) {
  .pwa-install-banner {
    bottom: 1.5rem;
    left: calc(var(--sidebar-width) + 1.5rem);
    transform: none;
    animation: slideUpBannerDesktop .25s ease;
  }
}
.pwa-install-banner-content {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  font-size: .9rem;
}
.pwa-install-banner-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}
.pwa-install-banner-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
@keyframes slideUpBanner {
  from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes slideUpBannerDesktop {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}
