/*
Theme Name: Ch3m G33k
Theme URI: https://ch3mg33k.com
Author: Jayson Giroux
Description: Complete cyberpunk neon Ch3m G33k theme. Working membership applications, full product pages, category sorting, featured slider, hardened security.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ch3m-g33k
Tags: cyberpunk, neon, ecommerce, membership, responsive
*/

:root {
  --bg: #0a0a12;
  --surface: #12121c;
  --text: #e0e0f0;
  --muted: #8888aa;
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00aa;
  --glow: 0 0 12px rgba(0,240,255,0.45);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Share Tech Mono', monospace;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  background-image:
    linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.site-header {
  background: rgba(10,10,18,0.96);
  border-bottom: 1px solid var(--neon-cyan);
  box-shadow: 0 0 18px rgba(0,240,255,0.3);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.6rem;
  margin: 0;
  color: var(--neon-cyan);
  text-shadow: var(--glow);
  letter-spacing: 0.08em;
}
.site-title a { color: inherit; text-decoration: none; }

nav a { color: var(--neon-cyan); margin-left: 1rem; text-decoration: none; }
nav a:hover { color: var(--neon-magenta); }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  color: var(--neon-cyan);
  text-shadow: var(--glow);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-block;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 0.65rem 1.3rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  box-shadow: var(--glow);
  margin: 0.25rem;
}
.btn:hover { background: var(--neon-cyan); color: #0a0a12; }

.section {
  background: var(--surface);
  border: 1px solid #2a2a3a;
  padding: 1.25rem;
  margin: 1.25rem 0;
  border-radius: 6px;
}
.section h2 {
  color: var(--neon-magenta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--neon-magenta);
  padding-bottom: 0.35rem;
  margin-top: 0;
  font-size: 1.2rem;
}

/* Featured slider */
.featured-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.featured-slider .product-card {
  background: #0e0e18;
  border: 1px solid var(--neon-cyan);
  padding: 0.75rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s;
}
.featured-slider .product-card:hover {
  box-shadow: 0 0 15px rgba(0,240,255,0.4);
}
.featured-slider img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}
.featured-slider h3 {
  font-size: 0.85rem;
  margin: 0.3rem 0;
  color: var(--text);
  max-height: 2.4em;
  overflow: hidden;
}
.featured-slider .price { color: var(--neon-magenta); font-size: 0.9rem; }

/* Product grid */
.woocommerce ul.products,
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product,
.product-grid .product-card {
  background: #0e0e18;
  border: 1px solid var(--neon-cyan);
  padding: 0.75rem;
  text-align: center;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.woocommerce ul.products li.product img,
.product-grid img {
  width: 100% !important;
  height: 150px !important;
  object-fit: cover;
  margin-bottom: 0.4rem;
}

.woocommerce-loop-product__title,
.product-grid h3 {
  font-size: 0.85rem;
  line-height: 1.25;
  margin: 0.3rem 0;
  max-height: 2.5em;
  overflow: hidden;
  word-break: break-word;
}

.price, .woocommerce .price { color: var(--neon-magenta); }

.short-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.3rem 0;
  max-height: 2.4em;
  overflow: hidden;
}

/* Single product */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.single-product-layout img {
  width: 100%;
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--glow);
}
.single-product-layout h1 { color: var(--neon-cyan); margin-top: 0; }
.single-product-layout .price { font-size: 1.4rem; color: var(--neon-magenta); }

/* Category filter */
.category-filter {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.category-filter a {
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  font-size: 0.8rem;
}
.category-filter a.active,
.category-filter a:hover {
  background: var(--neon-cyan);
  color: #0a0a12;
}

footer {
  border-top: 1px solid var(--neon-cyan);
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  background: #08080f;
}

@media (max-width: 900px) {
  .featured-slider { grid-template-columns: repeat(2, 1fr); }
  .single-product-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; text-align: center; }
  .featured-slider { grid-template-columns: 1fr; }
  .woocommerce ul.products,
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.7rem; }
}
@media (max-width: 400px) {
  .woocommerce ul.products,
  .product-grid { grid-template-columns: 1fr; }
}
