/*
Theme Name: Ammo Nation
Theme URI: https://max556ammo.com
Author: Your Name
Description: Ammo eCommerce theme built on WooCommerce
Version: 1.0
*/

:root {
  --primary:   #cc0000;
  --dark:      #111111;
  --light:     #f5f5f5;
  --accent:    #ffcc00;
  --text:      #333333;
  --white:     #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--light);
  color: var(--text);
}

/* Top Bar */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.top-bar a { color: var(--accent); text-decoration: none; }

/* Header */
.site-header {
  background: var(--white);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-logo img { max-height: 70px; }

.header-search input {
  padding: 8px 15px;
  border: 2px solid var(--primary);
  border-radius: 4px 0 0 4px;
  width: 280px;
}

.header-search button {
  padding: 8px 15px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Navigation */
.main-nav {
  background: var(--dark);
  padding: 0 30px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 5px;
}

.main-nav ul li a {
  display: block;
  padding: 14px 18px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  background: var(--primary);
}

/* Free Shipping Banner */
.shipping-banner {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 { font-size: 48px; margin-bottom: 15px; }
.hero p  { font-size: 20px; margin-bottom: 30px; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 14px 35px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: #aa0000; }

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 30px;
}

.category-card {
  background: var(--white);
  border-radius: 6px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.category-card img { width: 80px; margin-bottom: 12px; }
.category-card h3  { font-size: 16px; font-weight: 700; }

/* Products Section */
.products-section { padding: 40px 30px; }
.products-section h2 {
  font-size: 28px;
  margin-bottom: 25px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

/* WooCommerce Product Cards */
.woocommerce ul.products li.product {
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 15px;
  transition: transform 0.2s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
}

.woocommerce ul.products li.product .price {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.woocommerce ul.products li.product .button {
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--dark);
}

/* Stock Badge */
.stock-badge {
  background: #28a745;
  color: var(--white);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #aaaaaa;
  padding: 50px 30px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}

.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-grid ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .hero h1       { font-size: 28px; }
  .header-search input { width: 180px; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
}