/* =====================================================================
   AfricaChemist – "Modern African" design layer
   Kente-inspired woven bands, mudcloth (bògòlanfini) line patterns and
   warm earth accents, used sparingly on top of the teal + orange brand.
   ===================================================================== */
:root {
  --af-teal: #0B4D44;
  --af-teal-dk: #06231F;
  --af-teal-2: #146B5F;
  --af-orange: #F0883E;
  --af-gold: #E3B23C;
  --af-clay: #B5532E;
  --af-cream: #FFF3E3;

  /* Kente-style woven stripe: colour blocks + a fine weft texture on top */
  --af-kente:
    repeating-linear-gradient(0deg, rgba(6,35,31,.22) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,
      var(--af-orange) 0 22px, var(--af-teal-dk) 22px 26px, var(--af-gold) 26px 44px,
      var(--af-teal) 44px 58px, var(--af-clay) 58px 66px, var(--af-gold) 66px 70px,
      var(--af-teal-2) 70px 90px, var(--af-teal-dk) 90px 94px);

  /* Mudcloth-style motif tile: zigzag, crosses + diamond, dotted line (cream strokes) */
  --af-mud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FFF3E3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 8l8-5 8 5 8-5 8 5 8-5 8 5 8-5 8 5'/%3E%3Cpath d='M8 26l8 8M16 26l-8 8M48 26l8 8M56 26l-8 8'/%3E%3Cpath d='M32 23l7 7-7 7-7-7z'/%3E%3C/g%3E%3Cg fill='%23FFF3E3'%3E%3Ccircle cx='4' cy='52' r='1.7'/%3E%3Ccircle cx='14' cy='52' r='1.7'/%3E%3Ccircle cx='24' cy='52' r='1.7'/%3E%3Ccircle cx='34' cy='52' r='1.7'/%3E%3Ccircle cx='44' cy='52' r='1.7'/%3E%3Ccircle cx='54' cy='52' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
  /* Same tile in teal, for light backgrounds */
  --af-mud-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230B4D44' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 8l8-5 8 5 8-5 8 5 8-5 8 5 8-5 8 5'/%3E%3Cpath d='M8 26l8 8M16 26l-8 8M48 26l8 8M56 26l-8 8'/%3E%3Cpath d='M32 23l7 7-7 7-7-7z'/%3E%3C/g%3E%3Cg fill='%230B4D44'%3E%3Ccircle cx='4' cy='52' r='1.7'/%3E%3Ccircle cx='14' cy='52' r='1.7'/%3E%3Ccircle cx='24' cy='52' r='1.7'/%3E%3Ccircle cx='34' cy='52' r='1.7'/%3E%3Ccircle cx='44' cy='52' r='1.7'/%3E%3Ccircle cx='54' cy='52' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Kente band under the header and on top of the footer ---------- */
body > header { position: relative; }
body > header::after { content: ""; display: block; height: 5px; background: var(--af-kente); }
body footer.amf::before { height: 6px; background: var(--af-kente); }

/* ---------- Mudcloth texture ---------- */
body .am-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--af-mud); background-size: 64px 64px; opacity: .07;
  -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 75%);
          mask-image: linear-gradient(100deg, transparent 25%, #000 75%);
}
body footer.amf { isolation: isolate; }
body footer.amf > .container { position: relative; z-index: 1; }
body footer.amf::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--af-mud); background-size: 64px 64px; opacity: .04;
}

/* ---------- Eyebrow labels get a small beadwork mark ---------- */
body .am .am-eyebrow, body .fp-section .fp-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
body .am .am-eyebrow::before, body .fp-section .fp-eyebrow::before {
  content: ""; width: 30px; height: 8px; flex: 0 0 30px; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='8' viewBox='0 0 30 8'%3E%3Cpath d='M4 0l4 4-4 4-4-4z' fill='%23F0883E'/%3E%3Cpath d='M15 1l3 3-3 3-3-3z' fill='%23E3B23C'/%3E%3Cpath d='M26 0l4 4-4 4-4-4z' fill='%23B5532E'/%3E%3C/svg%3E") no-repeat !important;
}

/* ---------- Category cards: woven strip slides in on hover ---------- */
.am-cat::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: var(--af-kente); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.am-cat:hover::after, .am-cat:focus-visible::after { transform: scaleX(1); }
.am-cat::before { background: var(--af-cream) var(--af-mud-teal) center / 40px 40px !important; opacity: .55; }


/* Product cards: thin woven edge on hover */
.am-pcard, .prod-box { position: relative; }
.am-pcard::after, .shop-grid .prod-box::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--af-kente);
  opacity: 0; transition: opacity .25s ease; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.am-pcard:hover::after, .shop-grid .prod-box:hover::after { opacity: 1; }

/* Product page buy box */
.pd-buy { position: relative; overflow: hidden; }
.pd-buy::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--af-kente); }

/* ---------- Pan-African welcome band (homepage) ---------- */
.af-welcome { background: var(--af-teal-dk); color: var(--af-cream); overflow: hidden; position: relative;
              border-top: 1px solid rgba(240,136,62,.25); border-bottom: 1px solid rgba(240,136,62,.25); }
.af-welcome-track { display: flex; width: max-content; animation: af-marquee 48s linear infinite; }
.af-welcome:hover .af-welcome-track { animation-play-state: paused; }
.af-welcome ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.af-welcome li { display: inline-flex; align-items: baseline; gap: 10px; padding: 16px 28px; white-space: nowrap; font-family: "Lexend", sans-serif; }
.af-welcome li b { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.af-welcome li small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--af-gold); }
.af-welcome li::after { content: ""; width: 9px; height: 9px; margin-left: 46px; align-self: center; transform: rotate(45deg); background: var(--af-orange); }
@keyframes af-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .af-welcome-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .af-welcome ul[aria-hidden] { display: none; }
}

/* ---------- Ubuntu banner ---------- */
.af-ubuntu { position: relative; overflow: hidden; border-radius: 28px; padding: 56px 48px; margin-top: 48px; color: var(--af-cream);
             background: radial-gradient(500px 260px at 0% 100%, rgba(227,178,60,.22), transparent 70%),
                         linear-gradient(135deg, var(--af-teal-dk), var(--af-teal) 70%); }
.af-ubuntu::before { content: ""; position: absolute; inset: 0; background-image: var(--af-mud); background-size: 64px 64px; opacity: .06; }
.af-ubuntu::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
                    background: repeating-linear-gradient(90deg, rgba(6,35,31,.22) 0 1px, transparent 1px 3px),
                      repeating-linear-gradient(180deg, var(--af-orange) 0 22px, var(--af-teal-dk) 22px 26px, var(--af-gold) 26px 44px,
                      var(--af-teal-2) 44px 58px, var(--af-clay) 58px 66px, var(--af-gold) 66px 70px, #fff3e3 70px 74px, var(--af-teal-dk) 74px 78px); }
.af-ubuntu > * { position: relative; }
.af-ubuntu-grid { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.af-sun { width: 132px; height: 132px; }
.af-ubuntu blockquote { margin: 0; }
.af-ubuntu .af-word { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--af-gold); font-weight: 700; margin-bottom: 8px; display: block; }
.af-ubuntu p.af-quote { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; font-weight: 800; color: #fff; margin: 0 0 12px; letter-spacing: -.02em; }
.af-ubuntu p.af-quote em { font-style: normal; color: var(--af-orange); }
.af-ubuntu p.af-body { max-width: 640px; margin: 0; opacity: .85; font-size: .98rem; line-height: 1.65; }
.af-ubuntu cite { display: block; margin-top: 14px; font-style: normal; font-size: .8rem; opacity: .7; }
@media (max-width: 767.98px) {
  .af-ubuntu { padding: 36px 26px 36px 34px; border-radius: 22px; }
  .af-ubuntu-grid { grid-template-columns: 1fr; gap: 20px; }
  .af-sun { width: 84px; height: 84px; }
}
