/* Palette derived from the store logo (Burkina Faso flag: red, green, gold, black) */
:root {
  --color-bg: #FFFBF3;
  --color-bg-alt: #FDF4DF;
  --color-text: #171717;
  --color-text-muted: #5F5C57;
  --color-primary: #1E7A3E;
  --color-primary-dark: #17612F;
  --color-secondary: #2E8B4F;
  --color-accent: #E3242B;
  --color-accent-dark: #C01B21;
  --color-gold: #F0C419;
  /* The brand gold is a decorative accent only: #F0C419 on white measures 1.66:1,
     far below WCAG AA. Any gold-coloured *text* on a light surface uses this
     darkened tone instead (5.02:1 on white, 4.86:1 on the page background). */
  --color-gold-text: #8A6B00;
  --color-white: #FFFFFF;
  --color-border: #E9DFC6;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 4px 14px rgba(43, 33, 24, 0.12);
  --font-base: "Segoe UI", system-ui, -apple-system, sans-serif;
  --container-width: 1180px;
}

* { box-sizing: border-box; }

/* Visible keyboard focus. The gold core reads on the dark surfaces (announcement
   bar, footer, hero) and the near-black halo reads on the light ones, so a single
   rule works everywhere without checking each component. */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(23, 23, 23, 0.55);
  border-radius: 4px;
}
/* Older engines that lack :focus-visible still get the default ring. */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 700; }

section { padding: 56px 0; }
/* .page-title is the <h1> on the shop and about pages; it shares the section
   heading look without pulling the hero <h1> into the same rule. */
section h2, .page-title { text-align: center; font-size: 2rem; margin-bottom: 32px; color: var(--color-primary-dark); }
.page-title { margin-top: 0; font-weight: 700; }

/* Announcement bar */
.announcement-bar {
  background: var(--color-text);
  color: var(--color-white);
}
.announcement-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
}
.announcement-nav {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  opacity: 0.8;
}
.announcement-nav:hover { opacity: 1; }
.announcement-text {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.announcement-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.7;
}
.announcement-close:hover { opacity: 1; }

/* Contact bar — permanent, sits directly above the header on every page.
   Both items are actionable: the address opens Maps, the number dials on mobile. */
.contact-bar {
  background: var(--color-primary-dark);
  color: var(--color-white);
}
.contact-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 26px;
  padding: 7px 20px;
  font-size: .82rem;
  font-weight: 600;
}
.contact-item {
  color: var(--color-white);
  white-space: nowrap;
}
.contact-item:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-stripe {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent) 0 33.34%,
    var(--color-gold) 33.34% 66.67%,
    var(--color-primary) 66.67% 100%
  );
}
@media (max-width: 480px) {
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo-img { width: 38px; height: 38px; }
}
.main-nav { display: flex; gap: 24px; }
.main-nav a { font-weight: 600; }
.main-nav a:hover { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
}
.lang-toggle, .cart-toggle, .nav-toggle {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
.cart-count {
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.75rem;
  margin-left: 4px;
}
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
  }
  /* The search box used to be display:none below 780px, which left the shop page
     with no way to search on a phone. Give it its own full-width row instead. */
  .header-inner { flex-wrap: wrap; row-gap: 12px; }
  .header-actions { flex-wrap: wrap; width: 100%; }
  .header-search { order: 3; flex: 1 0 100%; width: 100%; }
}

/* Footer */
/* Extra bottom room so the fixed WhatsApp bubble lands on empty footer space
   instead of covering the footer navigation when the page is scrolled to the end. */
.site-footer { background: var(--color-text); color: var(--color-white); margin-top: 60px; padding-bottom: 56px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 20px;
}
.footer-inner .logo { color: var(--color-gold); }
.footer-inner a:hover { color: var(--color-gold); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 20px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
}
.btn-outline:hover { background: var(--color-primary-dark); color: var(--color-white); }

.btn-add-to-cart {
  width: 100%;
  margin-top: 6px;
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-add-to-cart:hover:not(:disabled) { background: var(--color-primary-dark); }
.btn-add-to-cart:disabled {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Hero TikTok highlight badge */
.hero-tiktok-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 10px 14px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  color: var(--color-white);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.hero-tiktok-badge:hover,
.hero-tiktok-badge:focus-visible {
  transform: translateY(-2px);
  background: rgba(17, 17, 17, 0.95);
}
.hero-tiktok-badge-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: #111111;
  border-radius: 50%;
  font-size: 0.7rem;
}
.hero-tiktok-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hero-tiktok-badge-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-gold);
  font-weight: 700;
}
.hero-tiktok-badge-caption {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 780px) {
  .hero-tiktok-badge { top: 12px; right: 12px; max-width: 180px; padding: 8px 10px; }
  .hero-tiktok-badge-caption { display: none; }
  .hero-tiktok-badge-label { color: var(--color-white); }
}

/* Utility */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-out-of-stock { background: var(--color-accent); color: var(--color-white); }
/* "Frozen" is product state, not brand — a cold blue reads instantly and stays
   clear of the red/green/gold identity. #1B6C88 carries white text at 5.6:1. */
.badge-frozen { background: #1B6C88; color: var(--color-white); }

/* Reserves a row for the state badges so cards with none still line up with cards
   that have one, keeping prices and buttons on a shared baseline across the grid. */
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
}

/* 404 */
.not-found { text-align: center; max-width: 640px; padding-top: 72px; padding-bottom: 72px; }
.not-found-code {
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--color-primary);
  opacity: 0.25;
}
.not-found h1 { font-size: 2rem; color: var(--color-primary-dark); }
.not-found-text { color: var(--color-text-muted); margin: 0 auto 28px; max-width: 46ch; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
