/*
Theme Name: EcoStride
Theme URI: https://ecostride.fit
Author: EcoStride Team
Author URI: https://ecostride.fit
Description: A clean, modern e-commerce theme inspired by sustainable footwear brands. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecostride
Tags: e-commerce, woocommerce, custom-header, custom-menu, featured-images
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #212A2F;
  --color-secondary: #2D4A3E;
  --color-accent: #8B6F4E;
  --color-bg: #FAFAF8;
  --color-white: #FFFFFF;
  --color-text: #212A2F;
  --color-text-light: #6B7280;
  --color-border: #E5E5E0;
  --color-success: #2D6A4F;
  --color-highlight: #F0EDE8;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --max-width: 1400px;
  --header-height: 72px;
  --transition: all 0.3s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--color-secondary); }

.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-actions a {
  font-size: 0.85rem;
  font-weight: 500;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-secondary);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F0EDE8 0%, #E8E4DC 100%);
  overflow: hidden;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* ===== FEATURED CATEGORIES ===== */
.featured-categories {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-highlight);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white;
}

.category-card-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.category-card-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== PRODUCT GRID ===== */
.product-section {
  padding: 6rem 0;
  background: var(--color-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.product-card {
  background: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.product-card-image {
  aspect-ratio: 1;
  background: var(--color-highlight);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-secondary);
  color: white;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-info {
  padding: 1.5rem;
}

.product-card-info h4 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.product-card-info .product-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.product-card-info .product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.color-swatches {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.color-swatch:hover, .color-swatch.active {
  border-color: var(--color-primary);
  transform: scale(1.2);
}

/* ===== SUSTAINABILITY SECTION ===== */
.sustainability {
  padding: 8rem 0;
  background: var(--color-primary);
  color: white;
}

.sustainability-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sustainability h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.sustainability p {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.eco-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.eco-stat {
  text-align: center;
}

.eco-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

.eco-stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 6rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.stars {
  color: #E8B341;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.85rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: 6rem 0;
  background: var(--color-highlight);
  text-align: center;
}

.newsletter h2 { margin-bottom: 1rem; }

.newsletter p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9rem;
  background: var(--color-white);
  font-family: var(--font-primary);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .site-logo {
  color: white;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.7;
}

.footer-column h4 {
  color: white;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce ul.products li.product {
  margin-bottom: 2rem;
}

.woocommerce ul.products li.product a img {
  border-radius: 12px;
}

.woocommerce ul.products li.product .price {
  color: var(--color-primary);
  font-weight: 700;
}

.woocommerce a.button, .woocommerce button.button {
  background: var(--color-primary) !important;
  color: white !important;
  border-radius: 4px !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.8rem 2rem !important;
}

.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--color-secondary) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content { gap: 2rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .hero { min-height: 70vh; }
  .hero-text p { margin: 0 auto 2rem; }
  .hero-image img { max-width: 400px; }
  
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .sustainability-inner { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .eco-stats { grid-template-columns: 1fr; }
}
