:root {
  --bg:      #1a1a2e;
  --panel:   #16213e;
  --card:    #0f3460;
  --accent:  #e94560;
  --accent2: #f5a623;
  --text:    #e8e8f0;
  --muted:   #8888aa;
  --green:   #2ecc71;
  --red:     #e74c3c;
  --border:  rgba(255,255,255,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100dvh;
}

/* TOP BAR */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 4px; }
.logo span { color: var(--accent); }
.badge {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* MAIN */
.inv-main { padding: 20px 16px 80px; max-width: 560px; margin: 0 auto; }

/* Search bar */
.inv-search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.inv-search-input {
  flex: 1;
  background: var(--panel);
  border: 2px solid var(--card);
  border-radius: 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
}
.inv-search-input:focus { border-color: var(--accent2); }
.inv-search-input::placeholder { color: var(--muted); font-size: 14px; }
.inv-search-btn {
  background: var(--accent2);
  border: none;
  border-radius: 14px;
  color: #1a1a2e;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  min-width: 54px;
}
.inv-search-btn:active { opacity: 0.8; }

/* Filter panel */
.filter-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 40px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.filter-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
}
.filter-pill:active { opacity: 0.7; }
.filter-pill.active {
  background: var(--card);
  border-color: var(--accent2);
  color: var(--accent2);
}

/* Summary bar */
.inv-summary {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-bottom: 14px;
  padding-right: 2px;
}
.inv-summary strong { color: var(--accent2); }

/* Status / empty */
.inv-status { text-align: center; color: var(--muted); font-size: 14px; padding: 12px; }
.inv-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.inv-empty .icon { font-size: 44px; margin-bottom: 14px; }
.inv-empty p { font-size: 14px; line-height: 1.6; }

/* Inventory product card (horizontal list style) */
.inv-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: border-color 0.2s;
}
.inv-card:active { border-color: var(--accent2); }

.inv-card-img {
  width: 72px;
  min-height: 72px;
  background: var(--card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.inv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-card-img .no-img { font-size: 26px; opacity: 0.3; }

.inv-card-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.inv-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inv-card-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.3px; }
.inv-card-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 8px; }
.inv-card-meta { font-size: 12px; color: var(--muted); }
.inv-card-meta strong { color: var(--text); font-weight: 600; }

.inv-card-price {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent2);
  white-space: nowrap;
}

.inv-card-stock {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.inv-card-stock.in  { background: rgba(46,204,113,0.12); color: var(--green); border: 1px solid rgba(46,204,113,0.3); }
.inv-card-stock.low { background: rgba(245,166,35,0.12); color: var(--accent2); border: 1px solid rgba(245,166,35,0.3); }
.inv-card-stock.out { background: rgba(231,76,60,0.10); color: var(--red); border: 1px solid rgba(231,76,60,0.25); }

/* Sizes mini-strip on card */
.inv-card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding: 0 14px 12px;
  margin-left: -14px;
  margin-right: -14px;
}
.inv-size-chip {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--card);
  color: var(--muted);
  border: 1px solid transparent;
}
.inv-size-chip.in  { color: var(--green); border-color: rgba(46,204,113,0.25); }
.inv-size-chip.low { color: var(--accent2); border-color: rgba(245,166,35,0.25); }
.inv-size-chip.out { opacity: 0.45; }

/* ══════════════════════════════════════════
   DESKTOP / LARGE SCREEN SCALING
   Mobile layout above is untouched; this only
   kicks in on wider viewports.
══════════════════════════════════════════ */
@media (min-width: 900px) {
  .inv-main { max-width: 900px; padding: 32px 24px 100px; }

  .topbar { padding: 18px 32px; }
  .logo { font-size: 26px; }

  .inv-search-row { margin-bottom: 18px; }
  .inv-search-input { font-size: 17px; padding: 16px 22px; border-radius: 16px; }
  .inv-search-btn { font-size: 20px; padding: 16px 24px; border-radius: 16px; }

  .filter-panel { padding: 18px 20px 16px; border-radius: 18px; margin-bottom: 18px; }
  .filter-label { font-size: 11px; min-width: 50px; }
  .filter-pill { font-size: 13px; padding: 7px 16px; }

  .inv-summary { font-size: 14px; margin-bottom: 18px; }

  .inv-card { border-radius: 20px; margin-bottom: 16px; }
  .inv-card-img { width: 120px; min-height: 120px; }
  .inv-card-img .no-img { font-size: 40px; }

  .inv-card-body { padding: 18px 22px; gap: 6px; }
  .inv-card-name { font-size: 20px; }
  .inv-card-sub { font-size: 13px; }
  .inv-card-price { font-size: 19px; }
  .inv-card-stock { font-size: 13px; padding: 4px 12px; border-radius: 14px; }

  .inv-card-sizes { padding: 0 22px 16px; margin-left: -22px; margin-right: -22px; gap: 6px; margin-top: 10px; }
  .inv-size-chip { font-size: 13px; padding: 4px 10px; border-radius: 8px; }
}
