/* ==============================================================================
   PROMORADAR — DESIGN SYSTEM & ESTILOS PRINCIPAIS
   Paleta refinada, estética moderna, glassmorphism e responsividade total
   ============================================================================== */

:root {
  /* Cores Principais */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --secondary: #0F172A;
  --secondary-light: #1E293B;

  --accent-green: #10B981;
  --accent-green-bg: #ECFDF5;
  --accent-red: #EF4444;
  --accent-amber: #F59E0B;

  /* Cores Oficiais das Lojas Parceiras */
  --store-amazon: #FF9900;
  --store-amazon-bg: #FFF7ED;
  --store-amazon-border: #FDBA74;

  --store-ml: #FFE600;
  --store-ml-text: #2D3277;
  --store-ml-bg: #FEFCE8;
  --store-ml-border: #FDE047;

  --store-shopee: #EE4D2D;
  --store-shopee-bg: #FFF1F0;
  --store-shopee-border: #FCA5A5;

  /* Cores Neutras / Superfícies */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border-subtle: #E2E8F0;
  --border-card: #CBD5E1;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Sombras Modernas */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Dimensões e Tipografia */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --sticky-header-offset: 72px;
}

/* ==============================================================================
   RESET & BASE STYLES
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1240px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==============================================================================
   TOP ANNOUNCEMENT BAR
   ============================================================================== */
.top-announcement-bar {
  background: #0F172A;
  color: #F8FAFC;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.radar-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #F59E0B;
  transition: background-color var(--transition-normal);
}

.server-dot.online {
  background-color: #10B981;
}

.server-dot.offline {
  background-color: #EF4444;
}

/* ==============================================================================
   MAIN HEADER
   ============================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.875rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.search-wrapper {
  flex: 1;
  max-width: 580px;
  min-width: 0;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 2.75rem 0.65rem 2.75rem;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  transition: all var(--transition-fast);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.clear-search-btn {
  position: absolute;
  right: 0.35rem;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-main);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.channel-icon {
  width: 18px;
  height: 18px;
}

.telegram-btn:hover {
  border-color: #0088cc;
  color: #0088cc;
  background: #F0F9FF;
}

.whatsapp-btn:hover {
  border-color: #25D366;
  color: #128C7E;
  background: #F0FDF4;
}

.badge-soon {
  font-size: 0.65rem;
  text-transform: uppercase;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero-section {
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, rgba(248, 250, 252, 0) 70%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, rgba(248, 250, 252, 0) 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EEF2FF;
  color: #3730A3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid #C7D2FE;
  margin-bottom: 1rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4F46E5;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #00D2FF 60%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.stores-supported-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.store-amazon .store-dot {
  background: var(--store-amazon);
}

.store-mercadolivre .store-dot {
  background: #FBBF24;
}

.store-shopee .store-dot {
  background: var(--store-shopee);
}

.store-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Status Card */
.hero-card-status {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB, #10B981);
}

.status-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.status-icon {
  font-size: 1.5rem;
}

.status-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.status-card-header p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.status-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.status-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-checklist li.checked {
  color: var(--text-main);
  font-weight: 500;
}

.status-checklist li.pending {
  color: var(--text-light);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 700;
}

.pending-icon {
  font-size: 0.85rem;
}

.demo-disclaimer-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: #92400E;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ==============================================================================
   FILTERS SECTION
   ============================================================================== */
.filters-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  position: sticky;
  top: var(--sticky-header-offset);
  scroll-margin-top: var(--sticky-header-offset);
  z-index: 90;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filters-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.store-filters-group,
.category-filters-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.filter-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  width: 85px;
}

.pills-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 0.15rem 0 0.4rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
}

.pills-scroll::-webkit-scrollbar {
  height: 4px;
}

.pills-scroll::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  background: #EEF2F6;
  color: var(--text-main);
  border-color: #CBD5E1;
}

.pill-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* ==============================================================================
   AD BANNER PLACEHOLDER
   ============================================================================== */
.ad-banner-container {
  margin: 1.75rem auto;
}

.ad-banner-placeholder {
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  border: 1.5px dashed #94A3B8;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: border-color var(--transition-normal);
}

.ad-banner-placeholder:hover {
  border-color: var(--primary);
}

.ad-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: #CBD5E1;
  color: #334155;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.ad-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.ad-spec {
  font-size: 0.72rem;
  color: #64748B;
}

.ad-secondary {
  margin: 2.5rem auto 1rem;
}

/* ==============================================================================
   MAIN CONTENT & DEALS GRID
   ============================================================================== */
.main-content {
  padding: 1.5rem 1.25rem 3rem;
  flex: 1;
  min-width: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sort-select {
  padding: 0.5rem 0.85rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  min-height: 44px;
}

.sort-select:focus {
  border-color: var(--primary);
}

/* Grid de Ofertas */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.5rem;
}

/* Card Individual de Oferta */
.deal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  min-width: 0;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #CBD5E1;
}

/* Header do Card (Loja e Tag de Desconto) */
.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F1F5F9;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

.store-badge.amazon {
  background: var(--store-amazon-bg);
  color: #C2410C;
  border: 1px solid var(--store-amazon-border);
}

.store-badge.mercadolivre {
  background: var(--store-ml-bg);
  color: #854D0E;
  border: 1px solid var(--store-ml-border);
}

.store-badge.shopee {
  background: var(--store-shopee-bg);
  color: #C2410C;
  border: 1px solid var(--store-shopee-border);
}

.discount-pill {
  background: var(--accent-green);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* Thumbnail do Produto */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-wrapper.image-unavailable::before {
  content: 'Imagem indisponível';
  color: var(--text-muted);
  font-size: 0.875rem;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
  transition: transform 0.3s ease;
}

.deal-card:hover .card-img {
  transform: scale(1.05);
}

.card-category-tag {
  position: absolute;
  bottom: 0.5rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.demo-flag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(245, 158, 11, 0.9);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

/* Corpo do Card */
.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  height: 2.8em;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.stars {
  color: #F59E0B;
}

.card-prices {
  margin-top: auto;
  margin-bottom: 0.85rem;
}

.original-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.current-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin: 0.15rem 0;
}

.installment-text {
  font-size: 0.8125rem;
  color: #059669;
  font-weight: 600;
}

/* Aviso fixo das ofertas da Shopee (a API de afiliados não informa cupons). Contraste AA sobre o card branco. */
.price-note {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #475569;
}

.coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F1F5F9;
  border: 1px dashed #94A3B8;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  margin-top: 0.5rem;
}

/* Ações do Card */
.card-footer {
  padding: 0 1rem 1rem;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-deal {
  flex: 1 1 135px;
  min-height: 44px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px var(--primary-glow);
}

.btn-deal:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-deal-unavailable {
  background: #E2E8F0;
  color: #475569;
  box-shadow: none;
  cursor: default;
}

.btn-share {
  background: #F1F5F9;
  color: var(--text-main);
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-share:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

.btn-share:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-share:disabled:hover {
  background: #F1F5F9;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem auto 0;
}

.pagination-controls[hidden],
.pagination-controls [hidden] {
  display: none !important;
}

.pagination-status {
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* Estado de Carregamento (Skeleton) */
.deals-loading-skeleton {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 1.5rem;
}

.skeleton-card {
  height: 400px;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-card);
  margin-top: 1rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.empty-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-sm {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
}

/* ==============================================================================
   SERVER HEALTH SECTION
   ============================================================================== */
.server-health-section {
  margin-bottom: 3.5rem;
}

.health-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.health-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.health-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.health-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.health-subtitle code {
  background: #F1F5F9;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
}

.health-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1rem;
}

.metric-box {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.metric-value.status-online {
  color: var(--accent-green);
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.main-footer {
  background: #0B1120;
  color: #94A3B8;
  padding: 4rem 0 1.5rem;
  border-top: 1px solid #1E293B;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #CBD5E1;
}

.footer-status-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60A5FA;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.footer-heading {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
}

.store-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.bullet-amazon { background: var(--store-amazon); }
.bullet-ml { background: #FBBF24; }
.bullet-shopee { background: var(--store-shopee); }

.phase-tag {
  background: #1E293B;
  color: #38BDF8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-right: 0.35rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748B;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 1.5rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #64748B;
}

.footer-tech-stack {
  display: flex;
  gap: 0.5rem;
}

.footer-tech-stack span {
  color: #94A3B8;
  font-weight: 500;
}

/* ==============================================================================
   TOAST FEEDBACK
   ============================================================================== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid #334155;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==============================================================================
   RESPONSIVIDADE (MEDIA QUERIES: DESKTOP, 768px, 430px, 390px, 375px, 320px)
   ============================================================================== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .top-announcement-bar {
    padding: 0.45rem 0;
  }

  .announcement-content {
    gap: 0.5rem;
  }

  .live-text {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .main-header {
    padding: 0.65rem 0;
  }

  .header-container {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .brand-logo {
    height: 36px;
  }

  .search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }

  .hero-section {
    padding: 2rem 0 1.75rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  /* Evita colisão entre cabeçalho quebrado em 2 linhas e barra de filtros no mobile */
  .filters-section {
    position: static;
    top: auto;
    padding: 0.85rem 0;
  }

  .filters-container {
    gap: 0.75rem;
  }

  .store-filters-group,
  .category-filters-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .filter-label {
    width: auto;
  }

  .pills-scroll {
    width: 100%;
  }

  .main-content {
    padding: 1.25rem 1rem 2.5rem;
  }

  .section-heading {
    align-items: stretch;
    gap: 0.85rem;
  }

  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
    max-width: 240px;
  }

  .deals-grid,
  .deals-loading-skeleton {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 1.15rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .announcement-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-section {
    padding: 1.5rem 0;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-card-status {
    padding: 1.15rem;
  }

  .ad-banner-container {
    margin: 1.25rem auto;
  }

  .ad-banner-placeholder {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .sort-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .sort-select {
    max-width: 100%;
    width: 100%;
  }

  .deals-grid,
  .deals-loading-skeleton {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pagination-controls .btn {
    width: 100%;
  }

  .health-card {
    padding: 1.15rem;
  }

  .health-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .health-card-header .btn {
    width: 100%;
  }

  .health-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 2rem);
  }
}

@media (max-width: 390px) {
  .container {
    padding: 0 0.875rem;
  }

  .brand-logo {
    height: 32px;
  }

  .search-input {
    font-size: 0.9375rem;
    padding-left: 2.5rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .store-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }

  .card-header-bar {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .card-body {
    padding: 0.85rem;
  }

  .card-footer {
    padding: 0 0.85rem 0.85rem;
  }

  .btn-deal,
  .btn-share {
    flex: 1 1 100%;
    width: 100%;
  }

  .health-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
