/*
Theme Name: BuyNexe Store
Theme URI: https://buynexe.com
Author: Your Name
Author URI: https://buynexe.com
Description: Modern, mobile-responsive digital products marketplace theme for buynexe.com. Built on WooCommerce for secure payments and protected downloads. Auto-creates categories, legal pages, menu and homepage on activation.
Version: 1.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: buynexe-store
*/

:root {
  --navy: #0f1b3d;
  --navy-light: #1a2a5e;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --white: #ffffff;
  --bg: #f7f8fc;
  --text: #1b1f3b;
  --muted: #6b7280;
  --success: #22c55e;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding .custom-logo { max-height: 42px; }
.site-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0; }
.site-title a { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions a { color: #fff; font-size: 0.95rem; }
.cart-icon { position: relative; }
.cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  padding: 1px 6px;
  position: absolute;
  top: -8px;
  right: -12px;
}

.main-nav { background: var(--navy-light); padding: 8px 5%; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
}
.main-nav a { color: #e5e7eb; font-weight: 500; font-size: 0.92rem; }
.main-nav a:hover { color: #fff; }

/* Search bar */
.product-search-bar { max-width: 560px; margin: 18px auto; padding: 0 15px; display: flex; }
.product-search-bar input[type="search"], .product-search-bar input[type="text"] {
  flex: 1; padding: 11px 16px; border: 1px solid #ddd; border-radius: 8px 0 0 8px; font-size: 1rem;
}
.product-search-bar button {
  padding: 11px 20px; background: var(--accent); color: #fff; border: none;
  border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--accent) 140%);
  color: #fff;
  padding: 70px 5% 60px;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 14px; font-weight: 800; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 640px; margin: 0 auto 28px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-block; padding: 13px 28px; border-radius: 30px; font-weight: 700;
  font-size: 0.98rem; transition: transform 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }

/* Content wrap */
.content-wrap { max-width: 1180px; margin: 0 auto; padding: 40px 15px 70px; }
.section-title { font-size: 1.6rem; font-weight: 800; margin: 50px 0 20px; text-align: center; color: var(--navy); }
.section-sub { text-align: center; color: var(--muted); margin-top: -12px; margin-bottom: 24px; }

/* Category tiles */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
.category-tile {
  background: #fff; border-radius: 14px; padding: 22px 14px; text-align: center;
  box-shadow: 0 2px 10px rgba(15,27,61,0.06); font-weight: 600; color: var(--navy);
  border: 1px solid #eef0f7; transition: transform 0.15s ease;
}
.category-tile:hover { transform: translateY(-3px); border-color: var(--accent-light); }

/* Why choose us */
.why-us-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.why-us-card {
  background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 2px 10px rgba(15,27,61,0.06);
}
.why-us-card .icon { font-size: 1.8rem; margin-bottom: 8px; }

/* FAQ */
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 10px; padding: 4px 18px; box-shadow: 0 1px 6px rgba(15,27,61,0.05); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--navy); }
.faq-item p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Newsletter */
.newsletter {
  background: var(--navy); color: #fff; border-radius: 16px; padding: 40px 30px; text-align: center; margin-top: 50px;
}
.newsletter h2 { margin-top: 0; }
.newsletter form { display: flex; max-width: 420px; margin: 18px auto 0; gap: 0; }
.newsletter input[type="email"] { flex: 1; padding: 12px 14px; border: none; border-radius: 8px 0 0 8px; }
.newsletter button { padding: 12px 22px; background: var(--accent); color: #fff; border: none; border-radius: 0 8px 8px 0; font-weight: 700; cursor: pointer; }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 30px 0; }
.trust-badges span { background: #fff; border-radius: 30px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; color: var(--navy); box-shadow: 0 1px 6px rgba(15,27,61,0.06); }

/* WooCommerce product grid tuning */
ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; list-style: none; padding: 0; }
ul.products li.product {
  background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 10px rgba(15,27,61,0.06);
}
ul.products li.product img { border-radius: 10px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--accent) !important; color: #fff !important; border-radius: 30px !important;
  padding: 10px 20px !important; border: none !important; font-weight: 700 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--navy) !important; }
.woocommerce span.price { color: var(--navy); font-weight: 700; }
.woocommerce span.price del { color: #aaa; font-weight: 400; }

/* Static page article */
.page-article { background: #fff; border-radius: 14px; padding: 34px 28px; box-shadow: 0 2px 10px rgba(15,27,61,0.06); }
.page-article h1 { color: var(--navy); margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 40px 5% 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto 24px; }
.footer-grid h4 { color: #fff; margin-top: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #cbd5e1; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; font-size: 0.85rem; }

/* Mobile sticky nav */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08); z-index: 200; padding: 8px 0;
}
.mobile-nav ul { list-style: none; display: flex; justify-content: space-around; margin: 0; padding: 0; }
.mobile-nav a { color: var(--navy); font-size: 0.7rem; display: flex; flex-direction: column; align-items: center; gap: 2px; }

@media (max-width: 768px) {
  .mobile-nav { display: block; }
  body { padding-bottom: 60px; }
  .hero h1 { font-size: 1.7rem; }
}

/* Admin required-plugins notice */
.buynexe-plugin-notice { background: #fff; border-left: 4px solid var(--accent, #6c5ce7); padding: 16px 18px; }
.buynexe-plugin-notice ul { margin: 10px 0; padding-left: 20px; }
.buynexe-plugin-notice .button { margin-right: 8px; margin-top: 6px; }
