/* ═══════════════════════════════════════════════════════════
   AfriMarket — Base Reset & Utilities
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; background: none; }
input, select, textarea { font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ── LAYOUT */
.container       { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm    { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
.section         { padding: 64px 0; }
.section-sm      { padding: 40px 0; }

/* ── GRID */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* ── FLEX */
.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-col       { display: flex; flex-direction: column; }
.gap-4          { gap: 4px; }
.gap-8          { gap: 8px; }
.gap-12         { gap: 12px; }
.gap-16         { gap: 16px; }
.gap-24         { gap: 24px; }

/* ── CARD */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ── SCROLL */
.scroll-x { overflow-x: auto; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ── TEXT */
.text-primary   { color: var(--dark); }
.text-muted     { color: var(--muted); }
.text-green     { color: var(--green); }
.text-gold      { color: var(--gold); }
.text-red       { color: var(--red); }
.text-sm        { font-size: 13px; }
.text-xs        { font-size: 11px; }
.text-center    { text-align: center; }
.font-head      { font-family: var(--font-head); }
.font-600       { font-weight: 600; }
.font-700       { font-weight: 700; }
.font-800       { font-weight: 800; }

/* ── SPACING */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16  { padding: 16px; }
.p-24  { padding: 24px; }

/* ── DIVIDER */
.divider { height: 1px; background: var(--border); }

/* ── RESPONSIVE HELPERS */
@media (max-width: 1024px) {
  .hide-lg { display: none !important; }
}
@media (max-width: 768px) {
  .hide-md { display: none !important; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .hide-sm { display: none !important; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}
