:root {
  --primary: #2E7D32;
  --primary-light: #4CAF50;
  --primary-dark: #1B5E20;
  --primary-bg: #E8F5E9;
  --accent: #FF6F00;
  --danger: #D32F2F;
  --danger-bg: rgba(211,47,47,.1);
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --text: #212121;
  --text2: #616161;
  --text3: #9E9E9E;
  --border: #E0E0E0;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --nav-h: 68px;
  --header-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Inter', -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F0F;
    --surface: #1A1A1A;
    --text: #E8E8E8;
    --text2: #AAAAAA;
    --text3: #666666;
    --border: #2A2A2A;
    --primary-bg: #1B3A1D;
    --danger-bg: rgba(211,47,47,.2);
    --shadow: 0 2px 8px rgba(0,0,0,.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.4);
  }
}

html[data-theme="dark"] {
  --bg: #0F0F0F;
  --surface: #1A1A1A;
  --text: #E8E8E8;
  --text2: #AAAAAA;
  --text3: #666666;
  --border: #2A2A2A;
  --primary-bg: #1B3A1D;
  --danger-bg: rgba(211,47,47,.2);
  --shadow: 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.4);
}

html[data-theme="light"] {
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --text: #212121;
  --text2: #616161;
  --text3: #9E9E9E;
  --border: #E0E0E0;
  --primary-bg: #E8F5E9;
  --danger-bg: rgba(211,47,47,.1);
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font); font-size: 16px; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--text); min-height: 100dvh; overflow: hidden; }
a { color: var(--primary-light); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
.hidden { display: none !important; }

#app { display: flex; flex-direction: column; height: 100dvh; max-height: 100dvh; }

#header {
  background: var(--primary);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  padding: 0 16px;
  box-shadow: var(--shadow);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header-bar h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.3px; }
.header-actions { display: flex; gap: 4px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem;
  color: #fff; transition: background .2s;
}
.icon-btn:active { background: rgba(255,255,255,.2); }

.search-wrap { position: relative; padding: 0 0 10px; }
.search-wrap input {
  width: 100%; height: 42px; border-radius: 21px;
  padding: 0 40px 0 16px;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: .92rem; transition: background .2s;
}
.search-wrap input:focus { background: rgba(255,255,255,.28); }
.search-wrap input::placeholder { color: rgba(255,255,255,.55); }
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-size: .8rem; display: grid; place-items: center;
  margin-top: -5px;
}

#main { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.view { display: none; padding: 14px 16px 24px; min-height: 100%; }
.view.active { display: block; }
.view-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
#item-count { font-size: .82rem; color: var(--text2); font-weight: 500; }
.toolbar select {
  background: var(--surface); color: var(--text);
  padding: 6px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: .78rem;
}

.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  background: var(--surface); color: var(--text2);
  border: 1.5px solid var(--border); transition: all .2s;
}
.chip:active { transform: scale(.95); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }

.product-card {
  display: flex; gap: 12px;
  background: var(--surface); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow);
  transition: transform .15s; cursor: pointer;
  position: relative; overflow: hidden;
  animation: fadeSlideUp .3s ease both;
}
.product-card:active { transform: scale(.98); }

.card-img-wrap { position: relative; flex-shrink: 0; }
.card-img {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--bg);
}
.card-img-placeholder {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  background: var(--primary-bg); display: grid; place-items: center;
  font-size: 2rem; position: relative; overflow: hidden; cursor: pointer;
}
.card-img-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .55rem; text-align: center; padding: 2px 0;
  font-weight: 600;
}
.card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-name {
  font-weight: 600; font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta {
  font-size: .76rem; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-badges { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.badge { font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.badge-nutri-A { background: #1B8A2A; color: #fff; }
.badge-nutri-B { background: #7AB648; color: #fff; }
.badge-nutri-C { background: #FECB02; color: #333; }
.badge-nutri-D { background: #EE8100; color: #fff; }
.badge-nutri-E { background: #E63312; color: #fff; }
.badge-cat { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.badge-expiring { background: #FFF3E0; color: #E65100; }
.badge-expired { background: #FFEBEE; color: #C62828; }

.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.card-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  font-size: 1.05rem; font-weight: 700;
  display: grid; place-items: center; transition: all .15s;
}
.qty-btn:active { background: var(--primary); color: #fff; transform: scale(.9); }
.qty-value { font-weight: 700; font-size: .95rem; min-width: 26px; text-align: center; }
.card-del {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--danger-bg); color: var(--danger);
  font-size: .75rem; display: grid; place-items: center;
  transition: all .15s;
}
.card-del:active { background: var(--danger); color: #fff; transform: scale(.9); }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 50px 20px; gap: 10px;
}
.empty-icon { font-size: 4rem; }
.empty-state h2 { font-size: 1.15rem; }
.empty-state p { color: var(--text2); font-size: .88rem; max-width: 260px; }
.empty-actions { display: flex; gap: 10px; margin-top: 12px; }

.btn-primary {
  background: var(--primary); color: #fff;
  padding: 12px 24px; border-radius: 25px;
  font-weight: 600; font-size: .9rem;
  box-shadow: 0 4px 12px rgba(46,125,50,.3);
  transition: transform .15s;
}
.btn-primary:active { transform: scale(.95); }
.btn-secondary {
  background: var(--primary-bg); color: var(--primary);
  padding: 12px 24px; border-radius: 25px;
  font-weight: 600; font-size: .9rem;
  transition: transform .15s;
}
.btn-secondary:active { transform: scale(.95); }
.btn-danger {
  background: var(--danger-bg); color: var(--danger);
  padding: 12px 24px; border-radius: 25px;
  font-weight: 600; font-size: .9rem;
  transition: transform .15s;
}
.btn-danger:active { transform: scale(.95); }
.btn-sm { padding: 8px 16px; font-size: .82rem; border-radius: 20px; }

#view-scanner { padding: 0 !important; }
#view-scanner.active { display: flex; flex-direction: column; }

#scanner-container { position: relative; width: 100%; aspect-ratio: 16/10; background: #000; overflow: hidden; }
#reader { width: 100%; height: 100%; }
#reader video { object-fit: cover !important; }
#reader img[alt="Info icon"] { display: none !important; }
#reader__dashboard { display: none !important; }
#reader__header_message { display: none !important; }

.scan-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.scan-frame { width: 260px; height: 140px; position: relative; }
.scan-corner { position: absolute; width: 24px; height: 24px; border-color: #fff; border-style: solid; border-width: 0; }
.scan-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 4px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 4px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 4px; }
.scan-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 4px 0; }
.scan-line {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  animation: scanAnim 2.2s ease-in-out infinite;
}
@keyframes scanAnim { 0%,100% { top: 8px; } 50% { top: calc(100% - 10px); } }

.manual-barcode-bar {
  display: flex; gap: 8px; padding: 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.manual-barcode-bar input {
  flex: 1; height: 40px; border-radius: 20px;
  padding: 0 16px; background: var(--bg); color: var(--text);
  font-size: .9rem; border: 1px solid var(--border);
}
.manual-barcode-bar input:focus { border-color: var(--primary); }
.btn-go {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  font-size: .9rem; display: grid; place-items: center;
}
.btn-go:active { transform: scale(.9); }

#scan-result { padding: 14px 16px 20px; animation: fadeSlideUp .3s ease; }

.scan-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-lg);
}
.scan-card-header { display: flex; gap: 12px; margin-bottom: 12px; }
.scan-card-img-wrap { position: relative; flex-shrink: 0; }
.scan-card-img {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--bg);
}
.scan-card-img-placeholder {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  background: var(--primary-bg); display: grid; place-items: center;
  font-size: 2rem; cursor: pointer; position: relative;
}
.scan-card-img-placeholder .card-img-add { cursor: pointer; }
.scan-card-info { flex: 1; min-width: 0; }
.scan-card-info h3 { font-size: 1rem; margin-bottom: 3px; word-break: break-word; }
.scan-card-info p { font-size: .82rem; color: var(--text2); }
.scan-card-details { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.scan-card-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qty-picker { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 25px; padding: 4px; }
.qty-picker button {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--primary);
  font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.qty-picker button:active { transform: scale(.9); }
.qty-picker span { font-size: 1.1rem; font-weight: 700; min-width: 30px; text-align: center; }

.not-found-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 20px; text-align: center; box-shadow: var(--shadow-lg);
}
.not-found-card .nf-icon { font-size: 3rem; margin-bottom: 8px; }
.not-found-card h3 { margin-bottom: 4px; }
.not-found-card p { color: var(--text2); font-size: .88rem; margin-bottom: 4px; }
.not-found-card .not-found-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px; text-align: center; box-shadow: var(--shadow);
}
.stat-card.highlight { border-left: 3px solid var(--accent); }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-card.highlight .stat-value { color: var(--accent); }
.stat-label { font-size: .75rem; color: var(--text2); margin-top: 2px; font-weight: 500; }

.stats-section { margin-bottom: 22px; }
.stats-section h3 {
  font-size: .92rem; margin-bottom: 12px; font-weight: 600;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-label { width: 130px; font-size: .8rem; color: var(--text2); flex-shrink: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 26px; background: var(--bg); border-radius: 13px; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 13px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px; font-size: .72rem; font-weight: 700; color: #fff;
  min-width: 32px; transition: width .8s ease;
}

.nutri-distribution { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.nutri-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 44px; }
.nutri-bar {
  width: 100%; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff; min-height: 36px;
}
.nutri-bar-label { font-size: .7rem; color: var(--text3); font-weight: 600; }

.settings-group {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow);
}
.settings-group-title {
  font-size: .78rem; font-weight: 600; color: var(--text3);
  padding: 14px 16px 6px; text-transform: uppercase; letter-spacing: .5px;
}
.settings-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.settings-btn:last-child { border-bottom: none; }
.settings-btn:active { background: var(--bg); }
.s-icon { font-size: 1.3rem; width: 32px; text-align: center; flex-shrink: 0; }
.s-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.s-title { font-weight: 600; font-size: .92rem; color: var(--text); }
.s-desc { font-size: .78rem; color: var(--text3); line-height: 1.3; }
.settings-btn.danger .s-title { color: var(--danger); }
.settings-about { padding: 14px 16px; }
.settings-about p { font-size: .82rem; color: var(--text2); margin-bottom: 5px; line-height: 1.4; }
.settings-about a { color: var(--primary-light); }
.settings-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.settings-stat-row:last-child { border-bottom: none; }
.settings-stat-row .ss-label { font-size: .88rem; color: var(--text2); }
.settings-stat-row .ss-value { font-weight: 700; font-size: .95rem; color: var(--primary); }

.add-menu-options { display: flex; flex-direction: column; gap: 4px; }
.add-option {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px; border-radius: var(--radius-sm);
  text-align: left; transition: background .15s;
}
.add-option:active { background: var(--bg); }
.ao-icon { font-size: 2rem; width: 44px; text-align: center; flex-shrink: 0; }
.ao-title { font-weight: 600; font-size: .95rem; }
.ao-desc { font-size: .8rem; color: var(--text2); }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end;
  animation: fadeIn .2s;
}
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet {
  position: relative; z-index: 1;
  background: var(--surface); width: 100%; max-height: 92dvh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto; padding: 0 20px 28px;
  padding-bottom: calc(28px + var(--safe-b));
  animation: sheetUp .3s ease;
}
.sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 12px auto 16px;
  cursor: pointer;
}

.detail-img {
  width: 100%; max-height: 220px; object-fit: contain;
  background: var(--bg); border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.detail-img-placeholder {
  width: 100%; height: 160px; border-radius: var(--radius-sm);
  background: var(--primary-bg); display: grid; place-items: center;
  font-size: 3.5rem; cursor: pointer; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.detail-img-placeholder .card-img-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .78rem; padding: 6px; text-align: center;
}
.detail-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 3px; word-break: break-word; }
.detail-brand { font-size: .92rem; color: var(--text2); margin-bottom: 10px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.detail-section { margin-bottom: 14px; }
.detail-section h4 {
  font-size: .78rem; color: var(--text3); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 6px; font-weight: 600;
}
.detail-section p { font-size: .88rem; color: var(--text); line-height: 1.5; word-break: break-word; }
.detail-section .big-number { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.nutri-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nutri-item { background: var(--bg); border-radius: var(--radius-sm); padding: 10px; }
.nutri-item .n-label { font-size: .72rem; color: var(--text3); }
.nutri-item .n-value { font-size: .95rem; font-weight: 600; margin-top: 2px; }
.detail-barcode {
  font-family: 'Courier New', monospace; font-size: .82rem; color: var(--text3);
  text-align: center; padding: 10px;
  background: var(--bg); border-radius: var(--radius-sm);
  margin-bottom: 16px; letter-spacing: 1px;
}
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text2); margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  border: 1.5px solid var(--border); font-size: .92rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 60px; resize: vertical; }
.form-group .img-upload-area {
  width: 100%; height: 120px; border-radius: var(--radius-sm);
  background: var(--bg); border: 2px dashed var(--border);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer;
  transition: border-color .2s; font-size: .85rem; color: var(--text3);
  overflow: hidden; position: relative;
}
.form-group .img-upload-area:active { border-color: var(--primary); }
.form-group .img-upload-area img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.form-actions { display: flex; gap: 10px; margin-top: 10px; }

#nav {
  display: flex; align-items: center; justify-content: space-around;
  height: var(--nav-h); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--border);
  position: relative; z-index: 50; flex-shrink: 0;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 12px; color: var(--text3);
  transition: color .2s;
}
.nav-btn.active { color: var(--primary); }
.nav-btn.active .n-icon { transform: scale(1.1); }
.n-icon { font-size: 1.35rem; transition: transform .2s; line-height: 1; }
.n-label { font-size: .6rem; font-weight: 600; }
.nav-center { position: relative; top: -10px; }
.nav-center .n-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(46,125,50,.35);
}
.nav-center.active .n-icon { background: var(--primary-light); }
.nav-center .n-label { margin-top: 4px; color: var(--primary); font-weight: 700; }

.toast {
  position: fixed; bottom: calc(var(--nav-h) + 20px + var(--safe-b));
  left: 50%; transform: translateX(-50%);
  background: #323232; color: #fff;
  padding: 12px 24px; border-radius: 25px;
  font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 200;
  white-space: nowrap; animation: toastIn .3s ease;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.success { background: var(--primary); }
.toast.error { background: var(--danger); }

.spinner {
  display: inline-block; width: 28px; height: 28px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (min-width: 600px) {
  .product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .nutri-grid { grid-template-columns: repeat(3, 1fr); }
}
