/*
Theme Name: Nu-century eShop
Theme URI: https://nucentury.org.ng
Author: Nu-century Audio Visual Production
Author URI: https://nucentury.org.ng
Description: A modern, mobile-first WooCommerce-ready theme with clean, customizable design.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nu-century-eshop
Tags: e-commerce, woocommerce, responsive, modern, clean
*/

/* --------------------------------------------------
   GOOGLE FONTS
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* --------------------------------------------------
   ROOT VARIABLES
-------------------------------------------------- */
:root {
  --nu-brand: #2a7c2a;
  --nu-accent: #1d5c1d;
  --nu-bg: #fff;
  --nu-text: #222;
  --nu-muted: #777;
  --accent: #e34234;
}

/* --------------------------------------------------
   RESET & BASE
-------------------------------------------------- */
* { box-sizing: border-box; margin:0; padding:0; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--nu-text);
  background: var(--nu-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--nu-brand);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover { opacity: 0.85; }

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Utility classes */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--nu-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn:hover { background: var(--nu-accent); }

.kicker { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--nu-muted); }
.small { font-size: 14px; color: #666; }
.flex { display: flex; }
.between { justify-content: space-between; }
.align-center { align-items: center; }

/* --------------------------------------------------
   HEADER / BANNER
-------------------------------------------------- */
.nu-banner-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.nu-banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 6s ease;
}
.nu-banner-wrap:hover .nu-banner-img { transform: scale(1.05); }

.nu-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.nu-header-text { flex: 1; text-align: right; }
.nu-search-form { position: relative; display: inline-block; max-width: 250px; }
.nu-search-field {
  width: 100%;
  padding: 8px 30px 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
}
.nu-search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  background: none;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
}

/* Icon row */
.nu-icon-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.nu-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
  font-size: 22px;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
}
.nu-icon-link i {
  font-size: 20px; 
  color: #333;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nu-icon-link:hover i {
  color: var(--nu-brand);
  transform: translateY(-3px);
}
.nu-icon-link:hover { color: var(--nu-brand); transform: translateY(-3px); }
.nu-cart-count {
  background-color: var(--nu-brand);
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
  padding: 3px 6px;
  position: absolute;
  margin-top: -10px;
  margin-left: 15px;
}

/* ----------------------------------------
   MAIN NAVIGATION — MOBILE + DESKTOP ROW
----------------------------------------- */

/* Base (mobile): menu hidden unless hamburger opened */
.nu-main-nav {
  width: 100%;
}

.nu-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 20px;
  gap: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  z-index: 999;
}

.nu-menu.active {
  display: flex;
}

/* Desktop version */
@media (min-width: 992px) {

  /* Hide hamburger */
  .nu-menu-toggle {
    display: none !important;
  }

  /* Menu becomes a horizontal row */
  .nu-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 35px;
    padding: 12px 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
  }

  /* Menu items */
  .nu-menu li {
    list-style: none;
  }

  .nu-menu li a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    padding: 8px 6px;
    transition: color 0.25s ease;
    font-size: 16px;
  }

  .nu-menu li a:hover {
    color: var(--nu-brand);
  }
}

/* Overlay for mobile */
.nu-menu-overlay {
  display: none;
}

.nu-menu-overlay.active {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}


/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero {
  padding: 48px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.hero-content { max-width: 500px; }
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 8px;
}
.hero-subtext {
  margin-bottom: 16px;
  opacity: 0.85;
}
.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;   /* ✅ maintain 18:9 ratio across all screens */
  overflow: hidden;
  border-radius: 12px;    /* optional: for smooth edges */
}

.hero-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* ✅ ensures image always fills without distortion */
}


/* ------------------------------
   PRODUCTS GRID — MOBILE FIRST
------------------------------ */
ul.products {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 30px auto;
  justify-content: center;  /* center items on small screens */
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Tablets / Medium screens */
@media (min-width: 600px) {
  ul.products {
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Desktop / Laptop */
@media (min-width: 992px) {
  ul.products {
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* 2 per row fixed */
    max-width: 900px;  /* 2 cards × 400px + gaps ≈ 900px */
    margin: 30px auto;
  }
}

/* Large screens — 3 per row */
@media (min-width: 1500px) {
  ul.products {
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* 3 per row */
    max-width: 1320px; /* 3 cards × 400px + gaps ≈ 1320px */
    margin: 30px auto;
  }
}

/* Ultra-wide screens — 4 per row */
@media (min-width: 2000px) {
  ul.products {
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* 4 per row */
    max-width: 1680px; /* 4 cards × 400px + gaps ≈ 1680px */
    margin: 30px auto;
  }
}

/* Product card container */
.product-card,
.nu-product-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  position: relative;
}

/* Hover effects */
.product-card:hover,
.nu-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* Product image area (bigger + consistent) */
.product-card .thumb,
.nu-product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #f8f8f8;
  border-radius: 10px;
  transition: transform .4s ease;
}

.product-card:hover .thumb,
.nu-product-card:hover .nu-product-image {
  transform: scale(1.06);
}

/* Product meta area */
.product-card .meta,
.nu-product-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

/* Title */
.product-card .title,
.nu-product-title {
  font-weight: 600;
  font-size: 17px;
  margin: 6px 0 4px;
  color: #222;
  line-height: 1.3;
}

/* Price */
.product-card .price,
.nu-product-price {
  color: var(--nu-brand);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Add to cart button */
.product-card .add-to-cart,
.nu-product-details a.button {
  background: var(--nu-brand);
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  transition: background 0.3s ease;
  text-decoration: none;
}

.product-card .add-to-cart:hover,
.nu-product-details a.button:hover {
  background: var(--nu-accent);
}

/* Animation for staggered loading */
.products-grid li.product {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
  animation-delay: var(--animation-delay);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------
   SINGLE PRODUCT PAGE (unchanged, preserved)
-------------------------------------------------- */

.nu-single-product { padding: 60px 0; }

.nu-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.nu-main-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.nu-color-variants-gallery {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.nu-color-thumb-item {
  position: relative;
  cursor: pointer;
}

.nu-color-variant-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid #ddd;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nu-color-variant-thumb:hover {
  transform: scale(1.1);
}

.nu-color-label {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #999;
  position: absolute;
  bottom: -6px;
  right: -6px;
}

.nu-size-selector { margin: 20px 0; }

.nu-size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nu-size-item {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nu-size-item:hover {
  background: var(--nu-brand);
  color: #fff;
}

.nu-single-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #111;
}

.nu-single-price {
  color: var(--nu-brand);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.nu-single-desc {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 25px;
}

.nu-add-to-cart .button {
  background: var(--nu-brand);
  padding: 10px 24px;
  border-radius: 25px;
  transition: background 0.3s ease;
}

.nu-add-to-cart .button:hover {
  background: var(--nu-accent);
}

/* --------------------------------------------------
   CATEGORY STRIP
-------------------------------------------------- */
.nu-cat-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  -webkit-overflow-scrolling: touch;
}
.nu-cat-strip .nu-cat {
  background: #fff;
  border: 1px solid #eee;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}
.nu-cat-strip .nu-cat:hover {
  background: var(--nu-brand);
  color: #fff;
  border-color: transparent;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.nu-footer {
  border-top: 1px solid #eee;
  padding: 30px 0;
  background: #fafafa;
}
.nu-footer .footer-menu a:hover { color: var(--nu-brand); }
.hbg-footer {
  border-top: 1px solid #222;
  padding: 40px;
  text-align: center;
  color: var(--nu-muted);
  background: #000;
  font-size: 15px;
}
.hbg-footer a { color: var(--nu-brand); transition: color 0.3s ease; }
.hbg-footer a:hover { color: var(--nu-accent); }

.hbg-footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.hbg-footer-social a {
  color: var(--nu-brand);
  font-size: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hbg-footer-social a:hover {
  color: var(--nu-accent);
  transform: translateY(-3px);
}

/* --------------------------------------------------
   SECTION SPACING / TITLES
-------------------------------------------------- */
.section-spacing { margin-top: 48px; }
.section-title { margin-bottom: 16px; }

/* --------------------------------------------------
   PRIMARY BUTTONS (Overrides)
-------------------------------------------------- */
.btn.primary {
  background: var(--accent, #e34234);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}
.btn.primary:hover { opacity: 0.85; }

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media(max-width:900px){
  .product-card .thumb, .nu-product-image { height: 260px; }
}

@media(max-width:768px){
  .nu-header-top { flex-direction: column; text-align: center; }
  .nu-header-text { text-align: center; }
  .nu-icon-row { gap: 25px; }
  
  /* Mobile menu styles */
  .nu-menu-toggle {
  display: block;
  position: fixed;           /* stay on screen */
  top: calc(100px + 15px);   /* adjust 100px to match your header height */
  right: 15px;
  font-size: 28px;
  z-index: 9999;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #222;
  transition: top 0.3s ease;
}

.nu-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  padding: 60px 20px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9998;
}

.nu-menu.active { transform: translateX(0); }

.nu-menu-overlay {
  display: none;
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.4);
  z-index: 9997;
}

.nu-menu-overlay.active { display: block; }

  .hero-grid { grid-template-columns: 1fr; }
}
/* Floating WhatsApp styling */
#whatsappChat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#whatsappChat i {
  font-size: 1.5rem;
}

/* Hide “Chat With Us” text on smaller screens */
@media (max-width: 768px) {
  #whatsappChat span {
    display: none;
  }
  #whatsappChat {
    padding: 14px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
  }
}
