/*
Theme Name: SportsGear Child
Theme URI: https://sportsgear.com
Template: astra
Author: SportsGear
Description: SportsGear custom child theme for sportswear e-commerce - World Cup theme dark mode
Version: 1.0.0
Text Domain: sportsgear-child
*/

/* ===== SportsGear Design System ===== */
:root {
  --sg-pitch-green: #2d8a4e;
  --sg-pitch-dark: #1e6b3a;
  --sg-pitch-light: #3da55d;
  --sg-black: #1a1a1a;
  --sg-white: #ffffff;
  --sg-accent: #22c55e;
  --sg-accent-dark: #16a34a;
  --sg-whatsapp: #25D366;
  --sg-gold: #f5c518;
  --sg-error: #ef4444;
  --sg-danger: #dc2626;
  --sg-border-light: #e5e5e5;
  --sg-text-secondary: #4a4a4a;
  --sg-text-muted: #7a7a7a;
  --sg-gradient-primary: linear-gradient(135deg, #2d8a4e 0%, #1e6b3a 100%);
  --sg-gradient-accent: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --sg-gradient-gold: linear-gradient(135deg, #f5c518 0%, #ff8c00 100%);
  --sg-radius-sm: 8px;
  --sg-radius-md: 12px;
  --sg-radius-lg: 16px;
  --sg-max-width: 1200px;
}

/* ===== WooCommerce Product Grid Fixes ===== */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product a img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== Navigation Bar Fixes ===== */
.sg-header {
  background: linear-gradient(135deg, #2d8a4e 0%, #1e6b3a 100%) !important;
}
.sg-header a {
  color: #ffffff !important;
}
.sg-header a:hover {
  color: #f5c518 !important;
}

/* ===== Footer Fixes ===== */
.sg-footer {
  background: #1e6b3a !important;
  color: #ffffff !important;
}
.sg-footer a {
  color: #ffffff !important;
}
.sg-footer a:hover {
  color: #f5c518 !important;
}
.sg-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: var(--sg-max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== Cart Bar Fixes ===== */
.sg-cart-bar {
  z-index: 999 !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #ffffff;
  padding: 10px 20px;
}

/* ===== Button Styles ===== */
.sg-btn-primary {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #f5c518 !important;
  border: none;
  padding: 10px 20px;
  border-radius: var(--sg-radius-sm);
  cursor: pointer;
}
.sg-btn-whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
  border: none;
  padding: 10px 20px;
  border-radius: var(--sg-radius-sm);
  cursor: pointer;
}
.sg-btn-accent {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff !important;
  border: none;
  padding: 10px 20px;
  border-radius: var(--sg-radius-sm);
  cursor: pointer;
}

/* ===== Responsive Fixes ===== */
@media (max-width: 768px) {
  .sg-footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

/* ===== Front Page Category Grid ===== */
.sg-categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: var(--sg-max-width);
  margin: 20px auto;
  padding: 0 20px;
}
.sg-cat-card {
  background: #f8fafc;
  border: 1px solid #e5e5e5;
  border-radius: var(--sg-radius-md);
  padding: 20px;
  min-width: 160px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sg-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sg-cat-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.sg-cat-card .sg-cat-count {
  font-size: 12px;
  color: #7a7a7a;
}
