@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Fraunces:wght@600;700&display=swap');

:root {
  --primary:         #C1121F;
  --primary-rgb:     193, 18, 31;
  --primary-dark:    #A10F1A;
  --primary-darker:  #7F0C14;
  --primary-light:   #FEE2E2;
  --primary-xlt:     #FFF5F5;
  --secondary:       #6C757D;
  --success:         #2E7D32;
  --warning:         #F9A825;
  --danger:          #8B0000;
  --info:            #0288D1;
  --white:           #ffffff;
  --grey-bg:         #F8F9FA;
  --grey-border:     #e4e8ef;
  --grey-text:       #6b7280;
  --dark:            #111827;
  --accent-gold:     #E8A020;
  --font-display:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'DM Sans', sans-serif;
  --radius-card:     1rem;
  --radius-pill:     100px;
  --shadow-card:     0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover:    0 8px 28px rgba(193,18,31,0.15);
  --transition:      all 0.25s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: #FAFAF8;
  color: var(--dark);
  line-height: 1.65;
}
/* Base pattern overlay (subtle, non‑intrusive) */
.pattern-dot-overlay {
  position: relative;
  isolation: isolate; /* optional, creates a stacking context */
}

.pattern-dot-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #e5e5f7;
  background-image: radial-gradient(#7F0C14 0.75px, #e5e5f7 0.75px);
  background-size: 15px 15px;
  opacity: 0.7;
  z-index: -1;
  pointer-events: none; /* so clicks pass through */
}
/* Circular logo in navbar */
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;    
  display: block;
}

/* Optional: add a subtle border or shadow */
.brand-logo {
  border: 1px solid rgba(255,255,255,0.2);
}

/* ===== TYPOGRAPHY ===== */
.font-display { font-family: var(--font-display); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

/* ===== NAVBAR ===== */
.navbar-cocorico {
  background: var(--dark);
  border-bottom: 3px solid var(--primary);
  padding: 0.75rem 0;
}
.navbar-cocorico .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-cocorico .navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.navbar-cocorico .nav-link {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
  border-radius: 6px;
  transition: var(--transition);
}
.navbar-cocorico .nav-link:hover,
.navbar-cocorico .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}
.btn-cart {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-cart:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.cart-badge {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

/* ===== BOTTOM NAV (mobile) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: var(--dark);
  border-top: 2px solid var(--primary);
  z-index: 2000;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.25rem 0;
}
.bottom-nav-item i { font-size: 1.2rem; }
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--primary); }
@media (max-width: 991px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .navbar-cocorico .d-lg-flex { display: none !important; }
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(193,18,31,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.015) 30px,
    rgba(255,255,255,0.015) 31px
  );
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(193,18,31,0.15);
  border: 1px solid rgba(193,18,31,0.4);
  color: #FCA5A5;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: #FCA5A5;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-title .highlight { color: var(--primary); }
.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-image-wrap {
  position: relative;
}
.hero-image-wrap img {
  border-radius: 1.5rem;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.08);
}
.hero-image-badge {
  position: absolute;
  bottom: 1.5rem; left: -1.5rem;
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-image-badge .badge-icon {
  width: 42px; height: 42px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}
.hero-image-badge .badge-label { font-size: 0.7rem; color: var(--grey-text); }
.hero-image-badge .badge-value { font-size: 0.95rem; font-weight: 700; color: var(--dark); }

/* ===== BUTTONS ===== */
.btn-primary-red {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-primary-red:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--grey-border);
  padding: 1.25rem 0;
}
.stat-item { display: flex; align-items: center; gap: 0.75rem; }
.stat-icon {
  width: 42px; height: 42px;
  background: var(--primary-xlt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-label { font-size: 0.72rem; color: var(--grey-text); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.stat-divider { width: 1px; background: var(--grey-border); height: 40px; }

/* ===== SECTION ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  display: block;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); color: var(--dark); }
.category-card:hover::after { transform: scaleX(1); }
.cat-icon {
  width: 100%; height: 80px;
  background: var(--primary-xlt);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}
.category-card:hover .cat-icon { background: var(--primary); color: #fff; }
.cat-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.cat-sub { font-size: 0.78rem; color: var(--grey-text); }

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--grey-bg);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-cat-badge {
  position: absolute;
  top: 0.65rem; left: 0.65rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(193,18,31,0.2);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-body {
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; color: var(--dark); }
.product-unit { font-size: 0.75rem; color: var(--grey-text); margin-bottom: 0.6rem; }
.product-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 0.8rem; }
.product-price small { font-family: var(--font-body); font-size: 0.72rem; color: var(--grey-text); font-weight: 400; }
.btn-add {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  width: 100%;
  transition: var(--transition);
  cursor: pointer;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-add:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== FILTER CHIPS ===== */
.filter-chip {
  background: #fff;
  border: 1.5px solid var(--grey-border);
  color: var(--grey-text);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--dark);
  border-radius: 1.5rem;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(193,18,31,0.25) 0%, transparent 70%);
}
.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.015) 20px,
    rgba(255,255,255,0.015) 21px
  );
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
  color: #fff;
}
.about-stat-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-top: 3px solid var(--primary);
}
.about-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.value-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--primary-xlt);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== PAYMENT PAGE ===== */
.step-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}
.step-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.payment-method {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
}
.payment-method i { font-size: 1.3rem; color: var(--primary); }
.payment-method .pm-label { font-weight: 700; font-size: 0.9rem; }
.payment-method .pm-desc { font-size: 0.75rem; color: var(--grey-text); }

/* ===== SHOP SIDEBAR ===== */
.shop-sidebar {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.sidebar-cat-item:hover, .sidebar-cat-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.sidebar-cat-item .count { font-size: 0.75rem; color: var(--grey-text); }
.sidebar-cat-item.active .count { color: var(--primary); }

/* ===== FOOTER ===== */
.footer-cocorico {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 4rem;
  border-top: 3px solid var(--primary);
}
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer-link { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.88rem; display: block; margin-bottom: 0.5rem; transition: var(--transition); }
.footer-link:hover { color: #fff; padding-left: 4px; }
.footer-social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}
.footer-social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-size: 0.8rem; color: rgba(255,255,255,0.35); padding-bottom: 1.5rem; }

/* ===== SHOP TOP BAR ===== */
.shop-topbar {
  background: #fff;
  border-bottom: 1px solid var(--grey-border);
  padding: 1rem 0;
  position: sticky;
  top: 65px;
  z-index: 100;
}
.search-field {
  background: var(--grey-bg);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-size: 0.88rem;
  width: 100%;
  transition: var(--transition);
  outline: none;
}
.search-field:focus { border-color: var(--primary); background: #fff; }
.search-wrap { position: relative; }
.search-wrap i { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--grey-text); font-size: 0.9rem; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 90px; right: 20px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 1500;
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
@media (min-width: 992px) { .wa-float { bottom: 24px; } }

/* ===== DIVIDER ===== */
.divider-african {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 20px, var(--accent-gold) 20px, var(--accent-gold) 40px);
  border-radius: 2px;
  margin: 3.5rem 0;
  opacity: 0.6;
}

/* ===== UTILITIES ===== */
.text-primary-red { color: var(--primary) !important; }
.bg-primary-xlt { background: var(--primary-xlt) !important; }
.rounded-card { border-radius: var(--radius-card) !important; }