/* ==========================================================================
   PLATAFORMA ECONOMEX - DESIGN SYSTEM (OFERTAS MERCADO LIVRE EM TEMPO REAL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --header-bg: #ffe600;
  --header-bg-gradient: linear-gradient(180deg, #ffe600 0%, #fff159 100%);
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  
  /* Cores de Ofertas & Descontos do Mercado Livre */
  --ml-green: #00a650;
  --ml-blue: #3483fa;
  --ml-blue-hover: #2968c8;
  --ml-badge-blue: #2968c8;

  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 60px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER PRINCIPAL ECONOMEX */
.header-economex {
  background: var(--header-bg-gradient);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 14px 0 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-logo-img {
  height: 46px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-text span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #444;
  letter-spacing: 0.08em;
}

/* FRASE DE IMPACTO / SLOGAN DO HEADER */
.header-slogan-box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(30, 34, 84, 0.12);
  border-radius: 24px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.header-slogan-text {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e2254;
  line-height: 1.3;
}

.header-slogan-highlight {
  font-weight: 900;
  color: #0f172a;
}

@media (max-width: 900px) {
  .header-slogan-box {
    width: 100%;
    order: 3;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    padding: 6px 12px;
  }
  .header-slogan-text {
    font-size: 0.78rem;
  }
}

.admin-header-btn {
  background: #1e293b;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.admin-header-btn:hover {
  background: #0f172a;
}

/* SEÇÃO DE CARDS DE OFERTAS (INSPIRADO NO LAYOUT FIEL DO MERCADO LIVRE) */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 16px 0;
}

.value-sup{
  font-size: 0.7rem;
}

.section-title-bar h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: #eb0505; /* #0f172a; */
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* CARD FIEL AO LAYOUT DO PRINT */
.ml-live-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 18px;
}

.ml-live-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.ml-card-header-badge {
  display: inline-block;
  background: #2968c8;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  width: fit-content;
}

.ml-live-image-container {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ml-live-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ml-live-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #775832;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SELO DE RECOMENDAÇÃO EDITORIAL ECONOMEX */
.ml-editorial-review {
  background: #f8fafc;
  border-left: 3px solid #1e2254;
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.ml-review-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e2254;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ml-review-text {
  font-size: 0.7rem;
  color: #475569;
  line-height: 1.35;
  margin: 0;
}

/* GRUPO DE PREÇOS (CONFORME O PRINT DO ML) */
.ml-price-row-de {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.ml-price-row-por {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ml-price-symbol {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.ml-price-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: #578892;
}

.ml-badge-off-green {
  background: var(--ml-green);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.ml-installment-text {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 16px;
}

.ml-installment-text strong {
  color: var(--ml-green);
}

.btn-ml-buy-now {
  background: var(--ml-blue);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  margin-top: auto;
}

.btn-ml-buy-now:hover {
  background: var(--ml-blue-hover);
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
