/*
Theme Name: Masterboosting Store
Theme URI: https://masterboosting.com
Description: Custom WooCommerce theme for Masterboosting - pixel-perfect match to the main HTML site.
Version: 1.0
Author: Masterboosting
Text Domain: masterboosting-store
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #06111e;
  --bg-secondary: #0a192f;
  --bg-card: rgba(10, 25, 47, 0.5);
  --brand-gold: #cab6a1;
  --brand-gold-hover: #b8a490;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(202, 182, 161, 0.2);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: #e5e5e5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ UTILITIES ============ */
.text-gold-gradient {
  background: linear-gradient(to bottom, #f2e2d0, #cab6a1, #a38d78);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.bg-card {
  background: var(--bg-card);
}

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 72px;
  display: flex; align-items: center;
  background: rgba(6, 17, 30, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(202, 182, 161, 0.1);
}
.navbar .container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; z-index: 1001; }
.nav-logo img { height: 36px; width: auto; }

.nav-links { display: none; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 16px; border-radius: 12px; font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.nav-links a:hover { color: var(--brand-gold); background: var(--bg-secondary); }

.nav-menu-btn { display: flex; flex-direction: column; gap: 6px; padding: 8px; z-index: 1001; }
.nav-menu-btn span { width: 24px; height: 2px; background: #fff; transition: 0.3s; border-radius: 2px; }
.nav-menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; pointer-events: none; transition: 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600;
  color: rgba(255,255,255,0.7); padding: 10px;
}
.mobile-menu a:hover { color: var(--brand-gold); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-menu-btn { display: none; }
}

.nav-spacer { height: 72px; }

/* ============ SHOP PAGES ============ */
.shop-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.shop-wrapper video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.shop-overlay {
  position: absolute; inset: 0;
  z-index: 1;
}
.shop-overlay-light { background: rgba(6, 17, 30, 0.2); }
.shop-overlay-dark { background: rgba(6, 17, 30, 0.7); }

.shop-content {
  position: relative; z-index: 10;
  max-width: 1280px; margin: 0 auto;
  padding: 40px 16px 40px;
}
@media (min-width: 768px) {
  .shop-content { padding: 80px 24px 80px; }
}

.shop-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  font-size: clamp(1.8rem, 5vw, 3rem);
}
.shop-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border-light);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.product-card:hover {
  border-color: rgba(202, 182, 161, 0.5);
  transform: scale(1.05);
}
.product-card.featured {
  border-color: rgba(202, 182, 161, 0.3);
  box-shadow: 0 0 30px rgba(202, 182, 161, 0.1);
  position: relative;
  overflow: hidden;
}
.product-card.predator {
  border-color: rgba(255, 51, 51, 0.3);
  position: relative;
  overflow: hidden;
}
.product-card.predator:hover {
  border-color: #ff3333;
}
.product-card.predator .predator-glow {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255, 51, 51, 0.1), transparent);
  pointer-events: none;
}

.popular-badge {
  position: absolute; top: 0; right: 0;
  background: var(--brand-gold); color: var(--bg-primary);
  font-size: 10px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 0 12px;
}

.product-card-img {
  height: 128px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-img {
  transform: scale(1.1);
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.product-card-price {
  color: var(--brand-gold);
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 24px;
  margin-top: auto;
}

.product-card-btn {
  display: block; width: 100%;
  padding: 12px;
  background: var(--bg-secondary);
  color: #fff;
  border: 1px solid var(--brand-gold);
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
}
.product-card-btn:hover {
  background: var(--brand-gold);
  color: var(--bg-primary);
}

/* Rivals single card */
.rivals-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px 32px;
  max-width: 448px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
@media (min-width: 768px) { .rivals-card { padding: 32px; } }

.rivals-card-img {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  background: rgba(0,0,0,0.5);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  object-fit: contain;
  padding: 8px;
}
@media (min-width: 768px) {
  .rivals-card-img { width: 128px; height: 128px; margin-bottom: 24px; }
}

.rivals-card-title {
  font-size: 1.25rem; color: #fff; font-weight: 700; margin-bottom: 8px;
}
@media (min-width: 768px) { .rivals-card-title { font-size: 1.5rem; } }

.rivals-card-desc {
  color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-bottom: 24px;
}
@media (min-width: 768px) { .rivals-card-desc { font-size: 0.875rem; } }

.rivals-card-price {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 24px;
}
@media (min-width: 768px) {
  .rivals-card-price { font-size: 1.875rem; margin-bottom: 32px; }
}

.rivals-buy-btn {
  display: block; width: 100%;
  padding: 12px;
  background: var(--brand-gold);
  color: var(--bg-primary);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
  border: none;
  font-size: 0.875rem;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(202, 182, 161, 0.2);
  cursor: pointer;
}
@media (min-width: 768px) {
  .rivals-buy-btn { padding: 16px; font-size: 1rem; }
}
.rivals-buy-btn:hover {
  background: var(--brand-gold-hover);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 60px 0 32px;
  background: var(--bg-secondary);
}
.footer .container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 20px; color: #fff;
}
.footer-col p, .footer-col a {
  color: var(--text-secondary); margin-bottom: 12px;
  display: block; font-size: 0.95rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-gold); }
.footer-social { display: flex; gap: 16px; margin-top: 16px; }
.footer-social a { font-size: 1.2rem; }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px; text-align: center;
  font-size: 0.85rem; color: var(--text-muted);
}

/* ============ WOOCOMMERCE OVERRIDES ============ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--bg-secondary) !important;
  color: #fff !important;
  border-top-color: var(--brand-gold) !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
}
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--brand-gold) !important;
}

.woocommerce table.shop_table {
  background: var(--bg-secondary) !important;
  border-color: var(--border-light) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--border-light) !important;
  color: #fff !important;
  padding: 16px !important;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--brand-gold) !important;
  color: var(--bg-primary) !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 12px 24px !important;
  transition: all 0.2s !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--brand-gold-hover) !important;
}

/* WooCommerce form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
#billing_country_field .select2-container .select2-selection,
#shipping_country_field .select2-container .select2-selection {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-light) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
}
.woocommerce form .form-row label {
  color: var(--text-secondary) !important;
}

/* Checkout page */
.woocommerce-checkout #payment {
  background: var(--bg-secondary) !important;
  border-radius: 16px !important;
  border: 1px solid var(--border-light) !important;
}
.woocommerce-checkout #payment div.payment_box {
  background: var(--bg-primary) !important;
  color: var(--text-secondary) !important;
}
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom-color: var(--border-light) !important;
}

/* Cart */
.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--bg-secondary) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  border: 1px solid var(--border-light) !important;
}

/* Remove default WooCommerce breadcrumbs */
.woocommerce .woocommerce-breadcrumb { display: none; }

/* Hide default WooCommerce product loop (we use custom templates) */
.woocommerce ul.products { display: none !important; }
