/* ═══════════════════════════════════════════════════════════
   AfriMarket — Layout: Header, Nav, Footer
   ═══════════════════════════════════════════════════════════ */

/* ── TOPBAR */
#topbar {
  background: var(--dark2);
  padding: 7px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
#topbar a { color: var(--gold-light); transition: var(--transition); }
#topbar a:hover { color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-sep { opacity: 0.3; }

/* ── HEADER */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: var(--z-sticky);
  box-shadow: 0 1px 8px rgba(15,30,20,0.06);
}
.header-main { padding: 13px 0; }
.header-inner { display: flex; align-items: center; gap: 20px; }

/* ── LOGO */
.logo {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  color: var(--dark); flex-shrink: 0;
  display: flex; align-items: center; gap: 9px; cursor: pointer;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--green);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; transition: var(--transition);
}
.logo:hover .logo-icon { background: var(--dark2); }
.logo .accent { color: var(--green); }

/* ── SEARCH BAR */
.search-bar {
  flex: 1; display: flex; align-items: center;
  background: var(--light); border: 1.5px solid var(--border);
  border-radius: 10px; overflow: hidden; transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(27,107,58,0.08); }
.search-select {
  padding: 10px 12px; border: none; background: transparent;
  font-size: 13px; color: var(--muted); cursor: pointer;
  border-right: 1px solid var(--border); font-family: var(--font-body);
  white-space: nowrap;
}
.search-input {
  flex: 1; padding: 10px 14px; border: none; background: transparent;
  font-size: 14px; color: var(--dark); font-family: var(--font-body); outline: none;
}
.search-btn {
  padding: 10px 20px; background: var(--green); color: #fff;
  font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 7px;
  transition: var(--transition); white-space: nowrap; border: none; cursor: pointer;
}
.search-btn:hover { background: var(--dark2); }

/* ── HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.action-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--dark);
  transition: var(--transition); position: relative;
}
.action-btn:hover { background: var(--light); }
.action-label { display: flex; flex-direction: column; line-height: 1.3; }
.action-label small  { font-size: 10px; color: var(--muted); }
.action-label strong { font-size: 13px; font-weight: 500; }
.cart-badge {
  position: absolute; top: 3px; right: 5px;
  background: var(--red); color: #fff;
  width: 17px; height: 17px; border-radius: 50%;
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ── MAIN NAV */
nav#main-nav {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner { display: flex; align-items: center; }
.nav-all-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: var(--green);
  color: #fff; font-size: 14px; font-weight: 500;
  transition: var(--transition); cursor: pointer; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.nav-all-btn:hover { background: var(--green-light); }
.nav-links { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; color: rgba(255,255,255,0.8); font-size: 13.5px;
  white-space: nowrap; transition: var(--transition); position: relative; cursor: pointer;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.active { color: var(--gold-light); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--gold-light); border-radius: 2px 2px 0 0;
}
.nav-hot {
  font-size: 9px; background: var(--red); color: #fff;
  padding: 1px 5px; border-radius: 3px; font-weight: 700; letter-spacing: 0.3px;
}
.nav-right {
  margin-left: auto; display: flex; align-items: center; gap: 20px; padding: 0 20px;
}
.nav-right a { color: rgba(255,255,255,0.65); font-size: 13px; transition: var(--transition); white-space: nowrap; }
.nav-right a:hover { color: var(--gold-light); }

/* ── PROMO TICKER */
.ticker { overflow: hidden; background: var(--gold); padding: 7px 0; }
.ticker-inner {
  display: flex; gap: 56px; white-space: nowrap;
  animation: tickerScroll 32s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--dark); }
.ticker-dot  { width: 4px; height: 4px; background: var(--dark); border-radius: 50%; opacity: 0.35; }

/* ── TRUST BAR */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 0; }
.trust-items { display: flex; align-items: center; }
.trust-item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 20px; border-right: 1px solid var(--border); font-size: 13px;
}
.trust-item:last-child { border-right: none; }
.trust-item svg   { color: var(--green); flex-shrink: 0; }
.trust-item span  { color: var(--muted); }
.trust-item strong{ color: var(--dark); }

/* ── FOOTER */
footer { background: var(--dark2); color: rgba(255,255,255,0.7); margin-top: 80px; }
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding: 56px 0 44px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px; background: rgba(255,255,255,0.07);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; transition: var(--transition); cursor: pointer;
}
.social-btn:hover { background: var(--green); color: #fff; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.7px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-payments { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.pay-pill {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px; padding: 3px 8px; font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.5); white-space: nowrap;
}

/* ── RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .search-select { display: none; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .search-bar   { order: 3; flex-basis: 100%; }
  .trust-items  { flex-wrap: wrap; }
  .trust-item   { flex: 50%; border-right: none; padding: 8px 12px; }
  nav#main-nav .nav-right { display: none; }
  .footer-main  { grid-template-columns: 1fr; }
  .topbar-left  { display: none; }
}
