/*
Theme Name: NuTech Hardware Zimbabwe
Description: Professional hardware e-commerce theme for Zimbabwe
Version: 1.0
Author: NuTech Hardware Zimbabwe
*/

:root {
  --primary-green: #2C5530;
  --accent-yellow: #FFC107;
  --white: #ffffff;
  --dark: #333333;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--primary-green);
  color: var(--white);
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
}

.header-main {
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-green);
  text-decoration: none;
  margin-bottom: 10px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.current {
  background: var(--accent-yellow);
  color: #000;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-green), #1a3d1f);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--accent-yellow);
  color: #000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #ffb300;
  transform: translateY(-2px);
  text-decoration: none;
  color: #000;
}

/* Products Grid */
.products-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--primary-green);
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-green);
}

.product-price {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.product-price .old-price {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  margin-left: 10px;
}

.stock-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
}

.in-stock {
  background: #d4edda;
  color: #155724;
}

.out-of-stock {
  background: #f8d7da;
  color: #721c24;
}

/* WooCommerce Compatibility */
.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.woocommerce ul.products li.product {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin: 0;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
}

.woocommerce .price {
  color: var(--primary-green);
  font-weight: bold;
  font-size: 18px;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--accent-yellow);
  color: #000;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: #ffb300;
  color: #000;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--primary-green);
  color: var(--white);
  padding: 50px 0 30px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: var(--accent-yellow);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 15px 20px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  color: white;
  text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}