/*
 * ECONOBIA TERMINAL THEME
 * Bloomberg-inspired deal hunting interface
 * Dense data, mono typography, zero fluff
 */

/* ============================================
 * THEME VARIABLES - Default (Neon/Dark)
 * ============================================ */
:root,
[data-theme="v0-neon"] {
  --term-bg: #0a0a0a;
  --term-bg-elevated: #111111;
  --term-bg-card: #161616;
  --term-bg-hover: #1a1a1a;

  --term-border: #2a2a2a;
  --term-border-hover: #3a3a3a;

  --term-text: #e0e0e0;
  --term-text-dim: #888888;
  --term-text-muted: #555555;

  --term-green: #00ff88;
  --term-green-dim: #00cc6a;
  --term-red: #ff3366;
  --term-red-dim: #cc2952;
  --term-cyan: #00d4ff;
  --term-yellow: #ffcc00;
  --term-orange: #00e676; /* hype badge — verde neon (sem laranja) */

  --term-font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --term-font-display: 'Archivo', sans-serif;

  --term-radius: 2px;
  --term-transition: 120ms ease;
}

/* ============================================
 * THEME: Emerald
 * ============================================ */
[data-theme="v1-emerald"] {
  --term-bg: #0d1117;
  --term-bg-elevated: #161b22;
  --term-bg-card: #1c2128;
  --term-bg-hover: #21262d;

  --term-border: #30363d;
  --term-border-hover: #484f58;

  --term-text: #c9d1d9;
  --term-text-dim: #8b949e;
  --term-text-muted: #6e7681;

  --term-green: #3fb950;
  --term-green-dim: #2ea043;
  --term-red: #f85149;
  --term-red-dim: #da3633;
  --term-cyan: #58a6ff;
  --term-yellow: #d29922;
  --term-orange: #56d364; /* hype badge — verde (sem laranja) */
}

/* ============================================
 * THEME: Light
 * ============================================ */
[data-theme="v2-light"] {
  --term-bg: #f6f8fa;
  --term-bg-elevated: #ffffff;
  --term-bg-card: #ffffff;
  --term-bg-hover: #f3f4f6;

  --term-border: #d0d7de;
  --term-border-hover: #afb8c1;

  --term-text: #1f2328;
  --term-text-dim: #57606a;
  --term-text-muted: #8c959f;

  --term-green: #1a7f37;
  --term-green-dim: #116329;
  --term-red: #cf222e;
  --term-red-dim: #a40e26;
  --term-cyan: #0969da;
  --term-yellow: #9a6700;
  --term-orange: #1a7f37; /* hype badge — verde (sem laranja) */
}

/* ============================================
 * THEME: Pulse (segue as variáveis --eco-* da marca)
 * pulse-light = branco + verde neon | pulse-dark = escuro + verde neon
 * (accents herdam --eco-color-primary/secondary, agora verdes)
 * ============================================ */
[data-theme="v1-pulse-light"],
[data-theme="v1-pulse-dark"] {
  --term-bg: var(--eco-color-surface-base);
  --term-bg-elevated: var(--eco-color-surface-elevated);
  --term-bg-card: var(--eco-color-surface-elevated);
  --term-bg-hover: var(--eco-color-surface-hover);

  --term-border: var(--eco-color-border);
  --term-border-hover: var(--eco-color-border-hover);

  --term-text: var(--eco-color-text-primary);
  --term-text-dim: var(--eco-color-text-secondary);
  --term-text-muted: var(--eco-color-text-muted);

  /* accent da marca = verde neon: preço, botão "VER", abas ativas, badges */
  --term-green: var(--eco-color-primary);
  --term-green-dim: var(--eco-color-primary-hover);
  --term-cyan: var(--eco-color-primary);
  --term-orange: var(--eco-color-secondary);
  /* desconto continua vermelho (contraste em light e dark) */
  --term-red: #e5484d;
  --term-red-dim: #c62828;
  --term-yellow: var(--eco-color-warning);
}

/* ============================================
 * BASE
 * ============================================ */
.terminal-body {
  font-family: var(--term-font-mono);
  font-size: 13px;
  line-height: 1.4;
  background: var(--term-bg);
  color: var(--term-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
 * HEADER
 * ============================================ */
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  background: var(--term-bg-elevated);
  border-bottom: 1px solid var(--term-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.logo-bracket {
  color: var(--term-green);
  font-weight: 700;
}

.logo-text {
  font-family: var(--term-font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--term-text);
}

.header-divider {
  color: var(--term-text-muted);
}

.header-label {
  color: var(--term-text-dim);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.header-link {
  color: var(--term-text-dim);
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--term-transition);
}

.header-link:hover {
  color: var(--term-cyan);
}

.header-time {
  font-variant-numeric: tabular-nums;
  color: var(--term-cyan);
  font-size: 12px;
}

.header-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--term-text-muted);
}

.header-status.online {
  background: var(--term-green);
  box-shadow: 0 0 8px var(--term-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  gap: 2px;
  background: var(--term-bg);
  padding: 2px;
  border-radius: 3px;
  border: 1px solid var(--term-border);
}

.theme-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--term-text-muted);
  font-family: var(--term-font-mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--term-transition);
}

.theme-btn:hover {
  color: var(--term-text);
  background: var(--term-bg-hover);
}

.theme-btn.active {
  background: var(--term-green);
  color: var(--term-bg);
}

/* Search */
.header-center {
  flex: 1;
  max-width: 500px;
  margin: 0 24px;
}

.search-terminal {
  display: flex;
  align-items: center;
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: var(--term-radius);
  padding: 0 12px;
  height: 28px;
  position: relative;
}

.search-terminal:focus-within {
  border-color: var(--term-green);
  box-shadow: 0 0 0 1px var(--term-green);
}

.search-prompt {
  color: var(--term-green);
  margin-right: 8px;
  font-weight: 600;
}

.search-input-terminal {
  flex: 1;
  background: none;
  border: none;
  color: var(--term-text);
  font-family: var(--term-font-mono);
  font-size: 12px;
  outline: none;
}

.search-input-terminal::placeholder {
  color: var(--term-text-muted);
}

.search-kbd {
  background: var(--term-bg-hover);
  border: 1px solid var(--term-border);
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--term-text-dim);
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  background: var(--term-bg-elevated);
  border: 1px solid var(--term-border);
  border-top: none;
  border-radius: 0 0 var(--term-radius) var(--term-radius);
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.search-dropdown:not(:empty) {
  display: block;
}

/* ============================================
 * TICKER BAR
 * ============================================ */
.ticker-bar {
  background: linear-gradient(90deg, var(--term-bg-elevated), var(--term-bg), var(--term-bg-elevated));
  border-bottom: 1px solid var(--term-border);
  overflow: hidden;
  height: 28px;
}

.ticker-content {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

/* Itens são links pro detalhe do produto: pausa o scroll no hover
   (sem isso o alvo foge do mouse) e dá affordance de clique. */
.ticker-bar:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 28px;
  border-right: 1px solid var(--term-border);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ticker-item:hover {
  background: var(--term-bg-elevated);
}

.ticker-item:hover .ticker-name {
  color: var(--term-text);
}

.ticker-name {
  color: var(--term-text-dim);
  font-size: 11px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-price {
  color: var(--term-text);
  font-weight: 600;
}

.ticker-change {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 2px;
}

.ticker-change.down {
  background: rgba(255, 51, 102, 0.15);
  color: var(--term-red);
}

.ticker-change.up {
  background: rgba(0, 255, 136, 0.15);
  color: var(--term-green);
}

/* ============================================
 * MAIN LAYOUT
 * ============================================ */
.terminal-wrapper {
  height: calc(100vh - 68px);
  overflow: hidden;
}

.deals-terminal {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.terminal-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ============================================
 * SIDEBAR
 * ============================================ */
.terminal-sidebar {
  width: 200px;
  background: var(--term-bg-elevated);
  border-right: 1px solid var(--term-border);
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--term-text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--term-border);
}

/* Filters */
.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: var(--term-radius);
  color: var(--term-text-dim);
  font-family: var(--term-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--term-transition);
}

.terminal-filter:hover {
  border-color: var(--term-text-muted);
  color: var(--term-text);
}

.terminal-filter.active {
  background: var(--term-green);
  border-color: var(--term-green);
  color: var(--term-bg);
}

.filter-icon {
  width: 14px;
  text-align: center;
}

/* Stats */
.stats-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--term-border);
}

.stat-label {
  font-size: 10px;
  color: var(--term-text-muted);
  letter-spacing: 0.05em;
}

.stat-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-value.green { color: var(--term-green); }
.stat-value.red { color: var(--term-red); }
.stat-value.cyan { color: var(--term-cyan); }

/* Stores */
.store-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  color: var(--term-text-dim);
  text-decoration: none;
  font-size: 11px;
  border-radius: var(--term-radius);
  transition: all var(--term-transition);
}

.store-link:hover {
  background: var(--term-bg-hover);
  color: var(--term-text);
}

.store-count {
  color: var(--term-text-muted);
  font-size: 10px;
}

/* ============================================
 * CONTENT AREA
 * ============================================ */
.terminal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--term-bg);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--term-border);
  background: var(--term-bg-elevated);
}

.view-tabs {
  display: flex;
  gap: 2px;
}

.view-tab {
  padding: 4px 12px;
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  color: var(--term-text-dim);
  font-family: var(--term-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--term-transition);
}

.view-tab:first-child {
  border-radius: var(--term-radius) 0 0 var(--term-radius);
}

.view-tab:last-child {
  border-radius: 0 var(--term-radius) var(--term-radius) 0;
}

.view-tab.active {
  background: var(--term-cyan);
  border-color: var(--term-cyan);
  color: var(--term-bg);
}

.results-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.results-count {
  color: var(--term-text-dim);
  font-size: 11px;
}

.results-time {
  color: var(--term-green);
  font-size: 10px;
}

.results-time::before {
  content: '●';
  margin-right: 4px;
  animation: pulse 2s infinite;
}

/* Loading */
.terminal-loading {
  height: 2px;
  background: var(--term-bg);
  overflow: hidden;
  opacity: 0;
  transition: opacity 150ms;
}

.htmx-request .terminal-loading,
.terminal-loading.htmx-request {
  opacity: 1;
}

.loading-bar {
  height: 100%;
  width: 30%;
  background: var(--term-green);
  animation: loading-slide 1s ease-in-out infinite;
}

@keyframes loading-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ============================================
 * DEALS GRID
 * ============================================ */
.deals-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 12px;
  align-content: start;
}

/* List view */
.deals-grid.list-view {
  grid-template-columns: 1fr;
}

.deals-grid.list-view .deal-card {
  grid-template-columns: 60px 1fr auto auto;
  grid-template-rows: auto;
  gap: 16px;
}

.deals-grid.list-view .deal-image {
  width: 60px;
  height: 60px;
}

.deals-grid.list-view .deal-info {
  align-self: center;
}

.deals-grid.list-view .deal-price-section {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* ============================================
 * DEAL CARD
 * ============================================ */
.deal-card {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  grid-template-rows: auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: var(--term-bg-card);
  border: 1px solid var(--term-border);
  border-radius: var(--term-radius);
  position: relative;
  z-index: 0;
  /* "salta": mola com overshoot no transform/sombra; cor e fundo seguem o tempo padrão */
  transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 160ms ease,
              border-color var(--term-transition),
              background var(--term-transition);
  will-change: transform;
}

.deal-card:hover {
  border-color: var(--term-border-hover);
  background: var(--term-bg-hover);
  transform: translateY(-4px) scale(1.035);
  z-index: 5; /* salta por cima dos vizinhos */
  /* glow segue a cor primária da marca (verde neon) */
  box-shadow:
    0 10px 26px -8px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--eco-color-primary),
    0 0 20px -2px color-mix(in srgb, var(--eco-color-primary) 50%, transparent);
}

/* Image */
.deal-image {
  display: block;
  width: 140px;
  height: 140px;
  background: var(--term-bg);
  border-radius: var(--term-radius);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.deal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Zoom da imagem dentro do quadro quando o card salta */
.deal-card:hover .deal-image img {
  transform: scale(1.14);
}

/* Acessibilidade: sem saltos/zoom para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .deal-card {
    transition: border-color var(--term-transition), background var(--term-transition);
    will-change: auto;
  }
  .deal-card:hover {
    transform: none;
    box-shadow: none;
  }
  .deal-image img {
    transition: none;
  }
  .deal-card:hover .deal-image img {
    transform: none;
  }
}

.deal-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--term-text-muted);
  font-size: 10px;
}

.deal-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.deal-badge.hot {
  background: var(--term-red);
  color: white;
  animation: badge-pulse 1.5s ease-in-out infinite;
}

.deal-badge.rising {
  background: var(--term-green);
  color: var(--term-bg);
}

/* Destaque editorial (pin no topo do feed). Prioridade sobre hot/rising. Ver docs/FEATURED-DEALS.md */
.deal-badge.featured {
  background: #ff3366;
  color: white;
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.55);
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 4px var(--term-red); }
  50% { box-shadow: 0 0 12px var(--term-red); }
}

/* Info */
.deal-info {
  min-width: 0;
  overflow: hidden;
}

.deal-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--term-text);
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* Título é link p/ a página de detalhe: herda a cor, destaca no hover */
.deal-title a {
  color: inherit;
  text-decoration: none;
}

.deal-title a:hover {
  color: var(--eco-color-primary);
}

/* Link "esticado": o card INTEIRO leva ao detalhe (o ::after cobre o .deal-card,
   que é position:relative). O botão "IR À LOJA" sobe de z-index e continua
   levando direto pra loja. */
.deal-card .deal-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.deal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-store {
  font-size: 13px;
  color: var(--term-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deal-hype {
  font-size: 9px;
  font-weight: 600;
  color: var(--term-orange);
  background: color-mix(in srgb, var(--term-orange) 12%, transparent);
  padding: 1px 5px;
  border-radius: 2px;
}

/* Price */
.deal-price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  min-width: 0;
}

.deal-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.deal-price-main {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.deal-original {
  font-size: 14px;
  color: var(--term-text-muted);
  text-decoration: line-through;
}

.deal-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--term-red);
  background: color-mix(in srgb, var(--term-red) 15%, transparent);
  padding: 3px 7px;
  border-radius: 2px;
}

.deal-hype {
  font-size: 10px;
  font-weight: 700;
  color: var(--term-orange);
  background: color-mix(in srgb, var(--term-orange) 15%, transparent);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.deal-hype::before {
  content: 'HYPE ';
}

.deal-current {
  font-size: 24px;
  font-weight: 700;
  color: var(--term-green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Action */
.deal-action {
  position: relative;
  z-index: 2; /* fica acima do link esticado do card -> mantém o clique pra loja */
  padding: 13px 26px;
  background: transparent;
  border: 1px solid var(--term-green);
  border-radius: var(--term-radius);
  color: var(--term-green);
  font-family: var(--term-font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all var(--term-transition);
  white-space: nowrap;
}

.deal-action:hover {
  background: var(--term-green);
  color: var(--term-bg);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.4);
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--term-text-muted);
  gap: 8px;
}

.no-results-icon {
  font-size: 24px;
  color: var(--term-yellow);
}

/* ============================================
 * INFINITE SCROLL (sentinel + fim de lista)
 * ============================================ */
/* Ocupa a linha inteira da grade para ficar centralizado abaixo dos cards. */
.infinite-sentinel,
.infinite-end {
  grid-column: 1 / -1;
}

.infinite-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: var(--term-text-muted);
  font-family: var(--term-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.infinite-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--term-border);
  border-top-color: var(--term-cyan);
  border-radius: 50%;
  animation: infinite-spin 0.7s linear infinite;
}

@keyframes infinite-spin {
  to { transform: rotate(360deg); }
}

.infinite-end {
  text-align: center;
  padding: 16px;
  color: var(--term-text-muted);
  font-family: var(--term-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ============================================
 * SCROLLBAR
 * ============================================ */
.deals-grid::-webkit-scrollbar,
.terminal-sidebar::-webkit-scrollbar {
  width: 6px;
}

.deals-grid::-webkit-scrollbar-track,
.terminal-sidebar::-webkit-scrollbar-track {
  background: var(--term-bg);
}

.deals-grid::-webkit-scrollbar-thumb,
.terminal-sidebar::-webkit-scrollbar-thumb {
  background: var(--term-border);
  border-radius: 3px;
}

.deals-grid::-webkit-scrollbar-thumb:hover,
.terminal-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--term-text-muted);
}

/* ============================================
 * RESPONSIVE
 * ============================================ */
@media (max-width: 768px) {
  .terminal-sidebar {
    display: none;
  }

  /* Header em DUAS linhas no mobile: logo + links em cima, busca full-width
     embaixo. Numa linha só de 40px a busca encolhia e o conteúdo dela vazava
     por baixo dos links (header "encavalado"). */
  .terminal-header {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 12px;
    row-gap: 8px;
  }

  .header-center {
    order: 3;          /* quebra pra segunda linha */
    flex-basis: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
  }

  .search-input-terminal {
    min-width: 0; /* inputs têm min-width intrínseco (~170px); sem isso não comprimem */
  }

  .header-label {
    display: none;
  }

  /* O header-right (temas + relógio + status + divisores, ~400px fixos) empurrava
     a página pra ~2x a largura da tela e causava scroll horizontal no celular.
     No mobile fica só o essencial: logo, busca e links de navegação. */
  .theme-toggle,
  .header-time,
  .header-status,
  .header-divider {
    display: none;
  }

  .header-left,
  .header-right {
    gap: 8px;
  }

  .search-kbd {
    display: none; /* atalho de teclado "/" não existe no touch */
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .deal-card {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  /* A coluna mobile é 64px mas a .deal-image base é 140px fixos — e com
     position:relative ela pintava POR CIMA do nome do produto. */
  .deal-image {
    width: 64px;
    height: 64px;
  }

  .deal-price-section {
    grid-column: 2;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
  }

  .deal-action {
    grid-column: 1 / -1;
    text-align: center;
  }
}
