/*
Theme Name: FIFA Store 2026
Theme URI: https://yourstore.com
Author: Your Name
Description: Thème officiel pour store de maillots Coupe du Monde 2026 - inspiré du store FIFA
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fifa-store-2026
Tags: e-commerce, woocommerce, football, sport
*/

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

:root {
  --fifa-blue: #003580;
  --fifa-blue-light: #0066cc;
  --fifa-gold: #ffd700;
  --fifa-red: #cc0000;
  --fifa-dark: #111111;
  --fifa-gray: #f5f5f5;
  --fifa-border: #e8e8e8;
  --fifa-text: #111111;
  --fifa-text-muted: #888888;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  color: var(--fifa-text);
  background: #fff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   TOP BAR
=========================== */
.topbar {
  background: var(--fifa-dark);
  color: #aaa;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.4px;
}
.topbar strong { color: var(--fifa-gold); }

/* ===========================
   NAVIGATION
=========================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--fifa-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--fifa-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo .logo-fifa { color: var(--fifa-blue-light); }
.site-logo .logo-badge {
  background: var(--fifa-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.primary-nav { display: flex; gap: 24px; }
.primary-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--fifa-dark);
  letter-spacing: 0.2px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: var(--fifa-blue-light);
  border-bottom-color: var(--fifa-blue-light);
}
.primary-nav a.promo { color: var(--fifa-red); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions a {
  font-size: 22px;
  color: var(--fifa-dark);
  transition: color var(--transition);
  position: relative;
}
.header-actions a:hover { color: var(--fifa-blue-light); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--fifa-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--fifa-dark);
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  background: linear-gradient(135deg, #001a3a 0%, #003580 50%, #001a3a 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,215,0,0.12) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-text { flex: 1; max-width: 560px; }

.hero-badge {
  display: inline-block;
  background: var(--fifa-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title .accent { color: var(--fifa-gold); }

.hero-subtitle {
  font-size: 16px;
  color: #99b8e0;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 440px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--fifa-gold);
  color: #001a3a;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 30px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: #ffcc00; transform: translateY(-1px); color: #001a3a; }

.btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 30px;
  border: 2px solid rgba(255,255,255,0.35);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  transition: border-color var(--transition), background var(--transition);
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); color: #fff; }

.hero-image { flex-shrink: 0; }
.hero-image img { max-width: 320px; border-radius: 4px; }

/* ===========================
   PROMO BAR
=========================== */
.promo-bar {
  background: var(--fifa-blue-light);
  color: #fff;
  text-align: center;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.promo-bar strong { color: var(--fifa-gold); }

/* ===========================
   FEATURES STRIP
=========================== */
.features-strip {
  border-top: 1px solid var(--fifa-border);
  border-bottom: 1px solid var(--fifa-border);
  background: #fff;
}

.features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-item {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--fifa-border);
}
.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 26px; margin-bottom: 8px; }
.feature-item h4 { font-size: 13px; font-weight: 700; color: var(--fifa-dark); margin-bottom: 3px; }
.feature-item p { font-size: 12px; color: var(--fifa-text-muted); }

/* ===========================
   SECTION COMMON
=========================== */
.section { padding: 56px 0; }
.section-alt { background: var(--fifa-gray); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--fifa-dark);
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--fifa-blue-light);
  border-radius: 2px;
}

.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--fifa-blue-light);
  transition: color var(--transition);
}
.section-link:hover { color: var(--fifa-blue); }

/* ===========================
   PRODUCT GRID (WooCommerce)
=========================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* WooCommerce product card override */
ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card,
ul.products li.product {
  background: #fff;
  border: 1px solid var(--fifa-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.product-card:hover,
ul.products li.product:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.product-img-wrap {
  background: #f7f7f7;
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-new { background: var(--fifa-blue-light); color: #fff; }
.badge-hot { background: #ff6600; color: #fff; }
.badge-sale { background: var(--fifa-red); color: #fff; }

.product-info { padding: 14px 16px; }
.product-country { font-size: 11px; font-weight: 700; color: var(--fifa-text-muted); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 700; color: var(--fifa-dark); margin-bottom: 12px; line-height: 1.3; }

.product-footer { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 17px; font-weight: 900; color: var(--fifa-dark); }
del.price, .price del { font-size: 13px; color: var(--fifa-text-muted); font-weight: 400; margin-right: 6px; }

.add-to-cart-btn {
  background: var(--fifa-blue-light);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  font-weight: 300;
}
.add-to-cart-btn:hover { background: var(--fifa-blue); transform: scale(1.1); }

/* WooCommerce button override */
ul.products li.product .button,
.woocommerce .button {
  background: var(--fifa-blue-light);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background var(--transition);
  cursor: pointer;
  display: inline-block;
}
ul.products li.product .button:hover,
.woocommerce .button:hover {
  background: var(--fifa-blue);
  color: #fff;
}
.woocommerce .button.alt { background: var(--fifa-gold); color: #001a3a; }
.woocommerce .button.alt:hover { background: #e6c200; color: #001a3a; }

/* ===========================
   STATS BAR
=========================== */
.stats-bar {
  background: var(--fifa-dark);
  color: #fff;
  padding: 36px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}

.stat-item h3 {
  font-size: 36px;
  font-weight: 900;
  color: var(--fifa-gold);
  margin-bottom: 6px;
}
.stat-item p { font-size: 12px; color: #888; letter-spacing: 0.8px; text-transform: uppercase; }

/* ===========================
   CATEGORY CARDS
=========================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  border-radius: 6px;
  padding: 36px 28px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cat-card:hover { transform: scale(1.02); }
.cat-card .cat-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.3; }

.cat-card-inner { position: relative; z-index: 2; }
.cat-card h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; margin-bottom: 6px; }
.cat-card p { font-size: 13px; opacity: 0.8; margin-bottom: 16px; }
.cat-cta { font-size: 12px; font-weight: 700; color: var(--fifa-gold); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===========================
   NEWSLETTER
=========================== */
.newsletter-section {
  background: linear-gradient(135deg, #003580, #0066cc);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.newsletter-section h2 { font-size: 30px; font-weight: 900; margin-bottom: 12px; text-transform: uppercase; }
.newsletter-section p { font-size: 15px; opacity: 0.8; margin-bottom: 28px; }
.newsletter-form { display: flex; justify-content: center; gap: 0; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 2px 0 0 2px;
  font-size: 14px;
  outline: none;
}
.newsletter-form button {
  background: var(--fifa-gold);
  color: #001a3a;
  border: none;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: #e6c200; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--fifa-dark);
  color: #aaa;
}

.footer-main {
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: #222;
  border-radius: 50%;
  font-size: 16px;
  color: #aaa;
  transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--fifa-blue-light); color: #fff; }

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #888; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #222;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #555;
}
.payment-icons { display: flex; gap: 8px; align-items: center; font-size: 24px; }

/* ===========================
   WOOCOMMERCE - CART & CHECKOUT
=========================== */
.woocommerce-page .woocommerce {
  padding: 40px 0;
}
.woocommerce table.shop_table { border: 1px solid var(--fifa-border); border-radius: 4px; }
.woocommerce table.shop_table th { background: var(--fifa-gray); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.woocommerce #payment { background: var(--fifa-gray); border-radius: 4px; }

/* ===========================
   SINGLE PRODUCT
=========================== */
.woocommerce div.product .product_title {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}
.woocommerce div.product p.price { font-size: 26px; font-weight: 900; color: var(--fifa-dark); }
.woocommerce div.product .woocommerce-product-gallery { border: 1px solid var(--fifa-border); border-radius: 4px; overflow: hidden; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .products-grid, ul.products { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .primary-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-top: 1px solid var(--fifa-border); padding: 16px 24px; gap: 16px; z-index: 999; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  .menu-toggle { display: block; }

  .hero-inner { flex-direction: column; text-align: center; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-image { display: none; }

  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .products-grid, ul.products { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .products-grid, ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-title { font-size: 26px; }
  .section-title { font-size: 20px; }
  .newsletter-form { flex-direction: column; border-radius: 4px; }
  .newsletter-form input { border-radius: 2px; }
  .newsletter-form button { border-radius: 2px; }
}
