/*
Theme Name: ForzaFit Pro
Theme URI: https://yourfitnessstore.it
Author: Your Name
Author URI: https://yourfitnessstore.it
Description: A modern, high-performance WooCommerce theme for Italian fitness stores. Built with Bootstrap 5, optimized for speed and conversions.
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: forzafit
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
  /* Primary Colors */
  --color-black: #0a0a0a;
  --color-dark-grey: #1a1a1a;
  --color-medium-grey: #2a2a2a;
  --color-light-grey: #f5f5f5;
  --color-white: #ffffff;
  
  /* Accent Colors */
  --color-electric-blue: #00d4ff;
  --color-energy-orange: #ff6b35;
  
  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Effects */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 212, 255, 0.1);
  --shadow-md: 0 4px 24px rgba(0, 212, 255, 0.15);
  --shadow-lg: 0 8px 48px rgba(0, 212, 255, 0.2);
  
  /* Glamour Effects */
  --glass-bg: rgba(20, 20, 20, 0.95);
  --glass-border: rgba(0, 212, 255, 0.5);
  --neon-glow: 0 0 15px rgba(0, 212, 255, 0.4);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-light-grey);
  background: var(--color-black);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

a { color: var(--color-electric-blue); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--color-energy-orange); }

/* ========================================
   HEADER & NAVIGATION
======================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: var(--transition-smooth);
}
.site-header.scrolled { background: rgba(10, 10, 10, 0.98); box-shadow: var(--shadow-md); }

.header-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 2rem; max-width: 1400px; margin: 0 auto;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 1rem; }
.custom-logo-link img { max-height: 60px; width: auto; max-width: 200px; object-fit: contain; }
.logo-placeholder {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--color-electric-blue), var(--color-energy-orange));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff;
}
.site-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0; }

/* Menu */
.main-navigation { display: flex; align-items: center; gap: 3rem; }
.nav-menu { display: flex; list-style: none; gap: 2.5rem; margin: 0; }
.nav-menu a {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  color: #fff; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.5rem 0; display: block; position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-electric-blue), var(--color-energy-orange));
  transition: var(--transition-smooth);
}
.nav-menu a:hover::after { width: 100%; }

/* Icons */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.search-toggle, .cart-icon, .mobile-menu-toggle {
  background: transparent; border: none; color: #fff; font-size: 1.4rem;
  cursor: pointer; transition: var(--transition-fast); padding: 0.5rem;
  display: flex; align-items: center; justify-content: center; opacity: 0.9;
}
.search-toggle:hover, .cart-icon:hover, .mobile-menu-toggle:hover {
  color: var(--color-electric-blue); transform: scale(1.1); opacity: 1;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.cart-count {
  position: absolute; top: -2px; right: -5px;
  background: var(--color-energy-orange); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 2px 6px;
  border-radius: 10px; min-width: 18px; text-align: center;
  border: 1px solid var(--color-black);
}

/* Search Bar */
.search-bar {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-dark-grey); padding: 2rem;
  border-bottom: 2px solid var(--color-electric-blue);
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: var(--transition-smooth);
}
.search-bar.active { transform: translateY(0); opacity: 1; visibility: visible; }
.search-form { max-width: 800px; margin: 0 auto; display: flex; gap: 1rem; }
.search-input {
  flex: 1; padding: 1rem 1.5rem; background: var(--color-black);
  border: 2px solid var(--color-medium-grey); border-radius: 8px;
  color: #fff; font-size: 1.1rem;
}
.search-submit {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--color-electric-blue), var(--color-energy-orange));
  border: none; border-radius: 8px; color: #fff;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; cursor: pointer;
}
.mobile-menu-toggle { display: none; }

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-block; padding: 1rem 2.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.05em; border-radius: 8px;
  transition: var(--transition-smooth); cursor: pointer; border: none; text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-electric-blue), var(--color-energy-orange));
  color: #fff; box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5); color: #fff; }
.btn-secondary {
  background: transparent; border: 2px solid var(--color-electric-blue);
  color: var(--color-electric-blue);
}
.btn-secondary:hover {
  background: var(--color-electric-blue); color: var(--color-black);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  background: 
    linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(255, 107, 53, 0.05)),
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.1), transparent),
    var(--color-black);
  overflow: hidden; margin-top: 80px; padding-bottom: 3rem;
}
.hero-content {
  text-align: center; z-index: 2; max-width: 1200px; padding: 2rem;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--color-white), var(--color-electric-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-family: var(--font-body); font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-light-grey); margin-bottom: var(--spacing-md); font-weight: 300;
}

/* Hero Boxes (Side by Side) */
.hero-featured-products {
  display: flex; gap: 2rem; justify-content: center; margin: 2rem 0 3rem 0;
  width: 100%; max-width: 900px; flex-wrap: wrap;
}
.hero-product-card {
  flex: 1; min-width: 300px; max-width: 400px; padding: 1.25rem;
  display: flex; align-items: center;
  background: var(--glass-bg);
  border: 2px solid var(--color-electric-blue);
  border-radius: 12px;
  text-decoration: none; cursor: pointer;
  transition: all 0.3s ease; position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.hero-product-card:hover {
  transform: translateY(-5px); background: rgba(30, 30, 30, 1);
  border-color: var(--color-energy-orange);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}
.hero-product-image {
  width: 90px; height: 90px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; margin-right: 1.5rem; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 5px;
}
.hero-product-image img { width: 100%; height: 100%; object-fit: contain; }
.hero-product-info { text-align: left; flex: 1; }
.hero-product-info h3 {
  font-size: 1.1rem; margin-bottom: 0.5rem; color: #fff;
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.2;
}
.hero-product-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-price { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-electric-blue); font-weight: 700; }
.hero-cta { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* ========================================
   SHOPIFY-STYLE PRODUCT GRID
======================================== */
.products-section { padding: var(--spacing-xl) 2rem; background: var(--color-black); }
.section-header { text-align: center; margin-bottom: var(--spacing-lg); }

.products-grid {
  display: grid;
  /* Fixed 4 Columns */
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; max-width: 1400px; margin: 0 auto;
}

.product-card {
  background: #ffffff; border-radius: 8px; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.product-image {
  position: relative; aspect-ratio: 1; background: #f1f1f1; overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }

.product-badge {
  position: absolute; top: 1rem; right: 1rem; padding: 0.4rem 1rem;
  background: var(--color-energy-orange); color: #fff;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  border-radius: 20px; z-index: 2;
}

.product-info {
  padding: 1.25rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.product-category { font-size: 0.75rem; color: #888; text-transform: uppercase; margin-bottom: 0.25rem; }
.product-title {
  font-size: 1rem; font-weight: 600; color: #1a1a1a;
  margin-bottom: 0.5rem; font-family: var(--font-body); line-height: 1.3;
}
.product-title a { color: #1a1a1a; }
.product-title a:hover { color: var(--color-electric-blue); }

.product-price { font-weight: 700; color: #1a1a1a; font-size: 1.1rem; margin-bottom: 1rem; }
.product-price del { color: #999; font-weight: 400; margin-right: 5px; font-size: 0.9rem; }
.product-price ins { text-decoration: none; }

.add-to-cart {
  width: 100%; padding: 0.75rem; background: var(--color-black);
  color: #fff; border: none; border-radius: 4px; font-weight: 600;
  text-transform: uppercase; font-size: 0.85rem; cursor: pointer; transition: 0.2s;
}
.add-to-cart:hover { background: var(--color-electric-blue); }

/* ========================================
   FILTERS & SIDEBAR (RESTORED)
======================================== */
.shop-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 3rem; max-width: 1400px; margin: 0 auto; padding: var(--spacing-lg) 2rem;
}
.filters-sidebar {
  background: var(--color-dark-grey); padding: 2rem;
  border-radius: 12px; border: 1px solid var(--color-medium-grey);
  height: fit-content; position: sticky; top: 120px;
}
.filter-group { margin-bottom: 2rem; }
.filter-title { font-size: 1.1rem; color: #fff; margin-bottom: 1rem; letter-spacing: 0.05em; }
.filter-options { display: flex; flex-direction: column; gap: 0.75rem; }
.filter-option { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.filter-option label { color: var(--color-light-grey); cursor: pointer; font-size: 0.95rem; }
.price-inputs { display: flex; gap: 1rem; margin-bottom: 1rem; }
.price-input {
  flex: 1; padding: 0.5rem; background: var(--color-black);
  border: 1px solid var(--color-medium-grey); border-radius: 6px; color: #fff;
}
.price-slider { width: 100%; height: 4px; background: var(--color-medium-grey); accent-color: var(--color-electric-blue); }

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--color-dark-grey); border-top: 2px solid var(--color-electric-blue);
  padding: var(--spacing-lg) 0 var(--spacing-md); margin-top: var(--spacing-xl); text-align: left;
}
.site-footer .container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.footer-content {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; margin-bottom: var(--spacing-lg); align-items: start;
}
.footer-section h3 {
  font-size: 1.2rem; margin-bottom: 1.5rem; color: #fff;
  position: relative; padding-bottom: 0.75rem;
}
.footer-section h3::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 30px; height: 3px; background: var(--color-energy-orange);
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: 0.75rem; }
.footer-section ul li a { color: var(--color-light-grey); font-size: 0.95rem; transition: var(--transition-fast); }
.footer-section ul li a:hover { color: var(--color-electric-blue); padding-left: 5px; }
.footer-contact-info p { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--color-light-grey); }
.footer-bottom {
  text-align: center; padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-medium-grey); color: var(--color-light-grey);
}
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--color-medium-grey); border: 2px solid var(--color-electric-blue);
  border-radius: 50%; color: #fff; transition: var(--transition-fast);
}
.social-links a:hover { background: var(--color-electric-blue); color: #000; transform: translateY(-3px); }

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; } /* Hidden on mobile by default */
  .filters-sidebar.active { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; overflow-y: auto; }
  
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .main-navigation { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-featured-products { max-width: 100%; }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-featured-products { flex-direction: column; align-items: center; }
  .hero-product-card { width: 100%; max-width: 100%; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}

@media (max-width: 576px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-section h3::after { left: 50%; transform: translateX(-50%); }
  .hero-title { font-size: 2.5rem; }
}

/* ========================================
   UTILITY CLASSES (RESTORED)
======================================== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Animations */
.animate-fade-in { animation: fadeInUp 0.8s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}