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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* --- HEADER --- */
.site-header {
  background: #2563eb;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}
.site-header h1 { font-size: 2.2rem; font-weight: 800; }
.site-header p { margin: .5rem 0 1.5rem; opacity: .85; }

.cta-btn {
  display: inline-block;
  background: #fff;
  color: #2563eb;
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: 2rem;
  font-size: 1rem;
  transition: opacity .15s;
}
.cta-btn:hover { opacity: .85; }

/* --- DEALS GRID --- */
.section-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #374151;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.deal-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.deal-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-price { font-size: 1.3rem; font-weight: 800; color: #16a34a; }
.deal-original { font-size: .85rem; color: #9ca3af; text-decoration: line-through; }
.deal-discount {
  display: inline-block;
  background: #fef2f2;
  color: #dc2626;
  font-size: .8rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: .4rem;
}

.deal-buy {
  display: block;
  background: #2563eb;
  color: #fff;
  text-align: center;
  padding: .55rem;
  border-radius: .6rem;
  font-weight: 600;
  font-size: .9rem;
  margin-top: auto;
  transition: background .15s;
}
.deal-buy:hover { background: #1d4ed8; }

/* --- ADMIN --- */
.admin-wrap {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.admin-wrap h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.5rem; color: #111; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  text-align: center;
}
.stat-card .val { font-size: 1.8rem; font-weight: 800; color: #2563eb; }
.stat-card .lbl { font-size: .78rem; color: #6b7280; margin-top: .2rem; }

.deals-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.deals-table th, .deals-table td { padding: .65rem .9rem; text-align: left; font-size: .85rem; border-bottom: 1px solid #f3f4f6; }
.deals-table th { background: #f9fafb; font-weight: 700; color: #374151; }
.deals-table tr:last-child td { border-bottom: none; }
.deals-table td:first-child { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-block; padding: .15rem .45rem; border-radius: .3rem; font-size: .75rem; font-weight: 600; }

footer { text-align: center; padding: 2rem; color: #9ca3af; font-size: .8rem; }
