/* ========================================
   MAMAZEE NAIJA SHOP - AUTHENTIC BRAND CSS
   Perfect Nigerian/African grocery theme
======================================= */

/* Reset & Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #1e272e;
  background: linear-gradient(135deg, #fef8e2 0%, #f8f9fa 50%, #e8f4f8 100%);
  overflow-x: hidden;
}

/* MAMAZEE COLOR PALETTE */
:root {
  --mamazee-teal: #026670;
  --mamazee-orange: #f4a259;
  --mamazee-cream: #fef8e2;
  --mamazee-gold: #fdcb6e;
  --mamazee-dark: #1e272e;
  --mamazee-light: #f8f9fa;
  --mamazee-accent: #e74c3c;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap');

h1, h2, h3, h4, h5 { 
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--mamazee-teal); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); color: var(--mamazee-orange); }
h3 { font-size: 1.6rem; color: var(--mamazee-teal); }
h4 { font-size: 1.3rem; }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

/* ========================================
   MAMAZEE HEADER - BRANDED
======================================= */
header {
  background: linear-gradient(135deg, rgba(2,102,112,0.95), rgba(244,162,89,0.9));
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(2,102,112,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}
header.scrolled { 
  background: rgba(2,102,112,0.98);
  box-shadow: 0 6px 30px rgba(2,102,112,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MAMAZEE LOGO */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fef8e2 0%, #fdcb6e 50%, white 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.logo span {
  display: block;
  font-size: 0.7em;
  font-weight: 400;
  background: linear-gradient(135deg, #f4a259, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.desktop-nav a {
  color: #fef8e2;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}
.desktop-nav a:hover {
  background: rgba(254,248,226,0.2);
  transform: translateY(-2px);
}

/* MOBILE HAMBURGER (Mamazee branded) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  width: 35px;
  height: 28px;
  cursor: pointer;
  padding: 5px;
}
.hamburger-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #fef8e2, #fdcb6e);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hamburger-line:nth-child(1) { margin-bottom: 7px; }
.hamburger-line:nth-child(3) { margin-top: 7px; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, #fef8e2 0%, #f8f9fa 100%);
  backdrop-filter: blur(25px);
  box-shadow: -15px 0 50px rgba(2,102,112,0.3);
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 999;
  padding: 6rem 2rem 2rem;
}
.mobile-menu.open { right: 0; }
.mobile-menu-close {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  font-size: 2.2rem;
  color: var(--mamazee-teal);
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(244,162,89,0.2);
  transition: all 0.3s ease;
}
.mobile-menu-close:hover {
  background: var(--mamazee-orange);
  color: white;
  transform: rotate(90deg);
}
.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}
.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mamazee-teal);
  text-decoration: none;
  padding: 1.2rem 1rem;
  border-radius: 16px;
  background: rgba(244,162,89,0.1);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}
.mobile-nav a:hover {
  background: var(--mamazee-orange);
  color: white;
  border-left-color: var(--mamazee-teal);
  padding-left: 1.5rem;
  transform: translateX(8px);
}

/* Checkbox hack */
#mobile-menu-toggle { display: none; }
#mobile-menu-toggle:checked ~ .mobile-menu { right: 0; }
#mobile-menu-toggle:checked + .mobile-menu-toggle .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
#mobile-menu-toggle:checked + .mobile-menu-toggle .hamburger-line:nth-child(2) { opacity: 0; }
#mobile-menu-toggle:checked + .mobile-menu-toggle .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   MAMAZEE HERO - NAIJA VIBES
======================================= */
.hero {
  min-height: 85vh;
  background: linear-gradient(rgba(2,102,112,0.7), rgba(244,162,89,0.4)),
              url('images/hero-naija-market.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 8px solid var(--mamazee-teal);
}
.hero-content {
  max-width: 650px;
  color: white;
  animation: fadeInUp 1.2s ease-out;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, white, #fef8e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--mamazee-teal), var(--mamazee-orange));
  color: white;
  box-shadow: 0 12px 35px rgba(2,102,112,0.4);
  border: 2px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 45px rgba(2,102,112,0.6);
  border-color: rgba(254,248,226,0.3);
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(254,248,226,0.9);
  margin-left: 1.5rem;
}
.btn-secondary:hover {
  background: rgba(254,248,226,0.95);
  color: var(--mamazee-teal);
}

/* Section styling */
.section-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  text-align: center;
  margin: 5rem 0 3rem;
  position: relative;
}
.section-title::before {
  content: '🍚✨';
  display: block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--mamazee-teal), var(--mamazee-orange));
  margin: 1.5rem auto 0;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(2,102,112,0.3);
}

/* Premium Mamazee Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}
.product-card {
  background: linear-gradient(145deg, rgba(254,248,226,0.95), rgba(248,249,250,0.9));
  backdrop-filter: blur(15px);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 
    0 25px 70px rgba(2,102,112,0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244,162,89,0.2);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--mamazee-teal), var(--mamazee-orange), var(--mamazee-gold));
  box-shadow: 0 2px 8px rgba(244,162,89,0.4);
}
.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    0 40px 100px rgba(2,102,112,0.25),
    0 20px 50px rgba(244,162,89,0.15);
}
.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  transition: all 0.5s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.product-card:hover .product-image {
  transform: scale(1.08) rotate(1deg);
  box-shadow: 0 20px 50px rgba(2,102,112,0.2);
}
.product-title { 
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--mamazee-dark);
  line-height: 1.3;
}
.product-price {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--mamazee-orange), var(--mamazee-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0;
}
.product-desc { 
  color: #57606f; 
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Mamazee Badges */
.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--mamazee-teal), #00a085);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(2,102,112,0.4);
}

/* Checkout Button */
.btn-checkout {
  width: 100%;
  padding: 1.2rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--mamazee-teal), var(--mamazee-orange));
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(2,102,112,0.4);
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-checkout:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(2,102,112,0.6);
}
.btn-checkout:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: #95a5a6;
}
.btn-checkout.loading::after {
  content: '⟳';
  margin-left: 1rem;
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* Footer - Mamazee Branded */
footer {
  background: linear-gradient(135deg, var(--mamazee-dark) 0%, var(--mamazee-teal) 100%);
  color: #fef8e2;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mamazee-gold), var(--mamazee-orange));
}
.footer-content { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 3rem; 
}
.footer-section h3 { 
  color: var(--mamazee-gold); 
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}
.footer-links a {
  color: #dfe6e9;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}
.footer-links a:hover { 
  color: var(--mamazee-orange);
  padding-left: 1rem;
  transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE - Mobile optimized */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero { min-height: 75vh; padding-top: 4rem; }
  .products-grid { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  .btn { 
    display: block;
    width: 100%;
    margin: 1rem 0;
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .product-card { padding: 1.5rem; }
  .hero-content { padding: 0 1rem; text-align: center; }
  .mobile-menu { width: 100%; }
}

/* ========================================
   COMPLETE MAMAZEE MOBILE MENU - WORKING
======================================= */

/* Mobile Hamburger (ONLY visible <768px) */
.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  width: 35px;
  height: 28px;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #fef8e2, #fdcb6e);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transform-origin: center;
}

.hamburger-line:nth-child(1) { margin-bottom: 6px; }
.hamburger-line:nth-child(3) { margin-top: 6px; }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, #fef8e2 0%, #f8f9fa 100%);
  backdrop-filter: blur(25px);
  box-shadow: -15px 0 50px rgba(2,102,112,0.3);
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open { right: 0; }

/* Checkbox Hack (Pure CSS - NO JS needed) */
#mobile-menu-toggle {
  display: none;
}

/* OPEN MENU ANIMATION */
#mobile-menu-toggle:checked ~ .mobile-menu {
  right: 0;
}

/* HAMBURGER → X TRANSFORM */
#mobile-menu-toggle:checked + .mobile-menu-toggle .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

#mobile-menu-toggle:checked + .mobile-menu-toggle .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

#mobile-menu-toggle:checked + .mobile-menu-toggle .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Close Button */
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--mamazee-teal, #026670);
  cursor: pointer;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(244,162,89,0.2);
  transition: all 0.3s ease;
  font-weight: 100;
}

.mobile-menu-close:hover {
  background: var(--mamazee-orange, #f4a259);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

/* Mobile Menu Links */
.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.mobile-nav a {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--mamazee-teal, #026670);
  text-decoration: none;
  padding: 1.2rem 1.5rem;
  border-radius: 20px;
  background: rgba(244,162,89,0.15);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  border-left: 5px solid transparent;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-nav a:hover {
  background: linear-gradient(135deg, var(--mamazee-orange, #f4a259), #fdcb6e);
  color: white;
  border-left-color: var(--mamazee-teal, #026670);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(244,162,89,0.4);
}

/* MOBILE BREAKPOINT - SHOW HAMBURGER */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .header-inner {
    padding: 1rem;
  }
}

/* VERY SMALL MOBILE */
@media (max-width: 480px) {
  .mobile-menu {
    width: 100% !important;
    right: -100% !important;
  }
}
