/*
Theme Name: Sport Community Theme
Author: Ayan Mohammed
Description: Premium sport community WordPress theme
Version: 2.0
*/

/* RESET */
*{box-sizing:border-box;margin:0;padding:0}
img{max-width:100%;display:block}
a{text-decoration:none}

/* VARIABLES */
:root{
  --bg:#020617;
  --card:#0b1220;
  --muted:#9ca3af;
  --accent:#22c55e;
  --border:#1f2937;
}

/* BASE */
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background:var(--bg);
  color:#fff;
  line-height:1.6;
}

.container{
  width:min(1200px, 92%);
  margin:0 auto;
}

.section{
  padding:60px 0;
}

h1,h2,h3{
  margin-bottom:10px;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(2,6,23,.9);
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 0;
}

.logo{
  font-weight:bold;
}

/* NAV */
.nav ul{
  display:flex;
  gap:20px;
  list-style:none;
}

.nav a{
  color:#e5e7eb;
  font-weight:600;
}

.nav a:hover{
  color:var(--accent);
}

/* HERO */
.hero{
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:
    linear-gradient(rgba(2,6,23,.8), rgba(2,6,23,.9)),
    url('https://images.unsplash.com/photo-1517649763962-0c623066013b?q=80&w=1920');
  background-size:cover;
}

.hero h1{
  font-size:48px;
}

.hero p{
  color:var(--muted);
}

/* BUTTON */
.btn{
  background:var(--accent);
  color:black;
  padding:12px 18px;
  border-radius:10px;
  display:inline-block;
  margin-top:15px;
  font-weight:bold;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:25px;
}

/* CARD */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:20px;
  transition:0.3s;
}

.card:hover{
  transform:translateY(-5px);
}

.card p{
  color:var(--muted);
}

/* NEWS IMAGE */
.news-img img{
  height:220px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:15px;
}

/* ACTIVITY IMAGE */
.activity-img img{
  height:180px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:10px;
}

/* FORM */
form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

input,textarea{
  padding:10px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--bg);
  color:white;
}

button{
  background:var(--accent);
  border:none;
  padding:12px;
  border-radius:8px;
  cursor:pointer;
}

/* FOOTER */
.site-footer{
  border-top:1px solid var(--border);
  padding:30px 0;
  color:var(--muted);
}

/* ========================= */
/* 🔥 WOOCOMMERCE FIX */
/* ========================= */

/* dubbele titel weg */
.woocommerce-products-header h1{
  display:none;
}

/* GRID FIX */
.woocommerce ul.products{
  display:grid !important;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
  max-width:1100px;
  margin:auto;
}

/* PRODUCT FIX */
.woocommerce ul.products li.product{
  width:100% !important;
  float:none !important;
  background:var(--card);
  padding:15px;
  border-radius:12px;
  border:1px solid var(--border);
  text-align:center;
}

/* IMAGE */
.woocommerce ul.products li.product img{
  height:200px;
  object-fit:cover;
  border-radius:10px;
}

/* TITLE */
.woocommerce ul.products li.product h2{
  color:white;
  font-size:16px;
}

/* PRICE */
.woocommerce ul.products li.product .price{
  color:var(--accent);
  font-weight:bold;
}

/* BUTTON */
.woocommerce a.button{
  background:var(--accent) !important;
  color:black !important;
  border-radius:8px;
  padding:10px;
  display:block;
  margin-top:10px;
}

/* EXTERNAL BUTTON */
.woocommerce a.button.product_type_external{
  background:#3b82f6 !important;
  color:white !important;
}

/* PRODUCT PAGE */
.product-single{
  display:flex;
  gap:40px;
  align-items:center;
}

.product-single img{
  width:400px;
  border-radius:12px;
}

/* RESPONSIVE */
@media(max-width:900px){
  .grid{
    grid-template-columns:1fr 1fr;
  }

  .woocommerce ul.products{
    grid-template-columns:1fr 1fr;
  }

  .product-single{
    flex-direction:column;
  }
}

@media(max-width:600px){
  .grid{
    grid-template-columns:1fr;
  }

  .woocommerce ul.products{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:32px;
  }
}