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

:root {
  --navy: #0f172a;
  --purple: #7c3aed;
  --purple-light: #8b5cf6;
  --purple-dark: #6d28d9;
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --bg: #0b1220;
  --surface: #1e293b;
  --heading: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.35); }
.btn-outline { background: transparent; color: var(--purple-light); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 10px; }

/* ===== HEADER ===== */
.site-header { background: var(--navy); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--heading); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--text-light); }
.main-nav a:hover { color: var(--heading); }
.nav-ctas { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; display: flex; align-items: center; color: var(--text-light); }
.cart-link .dashicons { font-size: 22px; width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -6px; right: -8px; background: var(--purple);
  color: var(--white); font-size: 10px; font-weight: 700; border-radius: 999px;
  min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ===== HERO ===== */
.hero { text-align: center; padding: 100px 0 64px; }
.hero h1 { font-size: 44px; font-weight: 800; color: var(--heading); margin-bottom: 18px; line-height: 1.15; }
.hero p { font-size: 18px; color: var(--text-light); max-width: 620px; margin: 0 auto 32px; }

/* ===== SECTIONS ===== */
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { font-size: 32px; font-weight: 800; color: var(--heading); margin-bottom: 10px; }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 520px; margin: 0 auto; }

.products { padding: 40px 0 80px; }

/* ===== PRODUCT GRID ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card__icon { font-size: 30px; margin-bottom: 14px; }
.product-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-card h3 a { color: var(--heading); }
.product-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; flex: 1; margin-bottom: 20px; }
.product-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-card__actions .btn { flex: 1; padding: 10px 14px; font-size: 13px; }

/* ===== SUPPORT SECTION ===== */
.support { padding: 20px 0 96px; }
.support-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bg); border: 2px solid var(--purple); border-radius: var(--radius-lg);
  padding: 32px 36px; max-width: 760px; margin: 0 auto;
}
.support-card h3 { font-size: 20px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.support-card p { font-size: 14px; color: var(--text-light); max-width: 420px; }
.support-card .btn { white-space: nowrap; }

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woo-main { padding: 56px 0 80px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; }
.woocommerce ul.products li.product {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; list-style: none;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--heading); font-size: 17px; margin: 12px 0 6px; }
.woocommerce ul.products li.product .price { color: var(--purple-light); font-weight: 700; }
.woocommerce div.product { color: var(--text); }
.woocommerce div.product .product_title { color: var(--heading); font-size: 32px; margin-bottom: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--purple-light); font-size: 22px; font-weight: 700; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--text-light); margin: 16px 0; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--purple) !important; color: var(--white) !important; border-radius: 10px !important;
  padding: 12px 22px !important; font-weight: 600 !important; border: none !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--purple-dark) !important; }
.woocommerce table.shop_table { border-color: var(--border); color: var(--text); }
.woocommerce table.shop_table th { color: var(--heading); }
.woocommerce-checkout #payment, .woocommerce-cart-form { color: var(--text); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 8px;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--bg) !important; border-top-color: var(--purple) !important; color: var(--text) !important;
}

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); border-top: 1px solid var(--border); margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 60px; padding: 56px 0 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-light); font-size: 14px; max-width: 320px; margin-top: 10px; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.footer-col a:hover { color: var(--purple-light); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--text-light); }

/* ===== GENERIC PAGE ===== */
.page-content { padding: 64px 24px; min-height: 60vh; }
.page-article { max-width: 800px; margin: 0 auto; }
.page-title { font-size: 36px; font-weight: 800; color: var(--heading); margin-bottom: 24px; }
.entry-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.entry-content p { margin-bottom: 18px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .support-card { flex-direction: column; text-align: center; }
}
