:root {
  --bg: #0b0e17;
  --bg2: #121627;
  --text: #e8eaf2;
  --muted: #9aa0b4;
  --primary: #6c5ce7;
  --primary2: #00d2ff;
  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --radius: 18px;
}
[data-theme="light"] {
  --bg: #f4f6fb;
  --bg2: #ffffff;
  --text: #1a1d2b;
  --muted: #5b6175;
  --glass: rgba(255,255,255,0.7);
  --border: rgba(0,0,0,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(108,92,231,0.25), transparent), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.glass { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: var(--radius); }
.pad { padding: 1.5rem; }
.narrow { max-width: 640px; }

/* Header */
.site-header { position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; width: min(1140px, 94%); border-radius: 999px; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1.4rem; }
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { background: linear-gradient(90deg, var(--primary), var(--primary2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: 1.4rem; }
.main-nav a { color: var(--muted); font-weight: 600; transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.icon-btn { background: none; border: none; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.menu-btn { display: none; }
.cart-link { position: relative; font-size: 1.1rem; }
.cart-count { position: absolute; top: -8px; right: -12px; background: var(--primary); color: #fff; font-size: 0.7rem; border-radius: 999px; padding: 1px 6px; }

/* Hero */
.hero { padding: 5rem 0 3rem; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.badge { display: inline-block; background: var(--glass); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 1rem; font-size: 0.85rem; color: var(--primary2); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.15; margin-bottom: 1rem; }
.grad { background: linear-gradient(90deg, var(--primary), var(--primary2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.stats { display: flex; gap: 2rem; margin-top: 2.4rem; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 1.5rem; }
.stats span { color: var(--muted); font-size: 0.85rem; }
.hero-card { padding: 2rem; position: relative; overflow: hidden; }
.hero-card h3 { margin-bottom: 0.3rem; }
.hero-card p { color: var(--muted); margin-bottom: 1.2rem; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.5; }
.orb-1 { width: 180px; height: 180px; background: var(--primary); top: -60px; right: -40px; }
.orb-2 { width: 140px; height: 140px; background: var(--primary2); bottom: -50px; left: -30px; }
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Buttons */
.btn { display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 700; border: none; cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary2)); color: #fff; box-shadow: 0 8px 24px rgba(108,92,231,0.35); }
.btn-ghost { background: var(--glass); border: 1px solid var(--border); color: var(--text); }

/* Sections & cards */
.section { padding: 3rem 0; }
.section-title { font-size: 1.8rem; margin-bottom: 1.6rem; }
.grid { display: grid; gap: 1.4rem; }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.testi-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.25); }
.card-img { aspect-ratio: 4/3; background: var(--bg2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.4rem; color: var(--muted); }
.img-ph.big { aspect-ratio: 4/3; }
.card-body { padding: 1rem 1.2rem 1.3rem; }
.price { font-weight: 800; color: var(--primary2); margin-top: 0.4rem; }
.price.big { font-size: 1.8rem; margin: 0.6rem 0 1rem; }

/* Filter bar */
.filter-bar { display: flex; gap: 0.8rem; padding: 0.9rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { flex: 1; min-width: 160px; }

/* Forms */
input, select, textarea { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; color: var(--text); font: inherit; width: 100%; }
.form label { display: block; margin-bottom: 1rem; font-weight: 600; }
.form input, .form textarea { margin-top: 0.35rem; }
.alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1rem; }
.alert.success { border: 1px solid #2ecc71; color: #2ecc71; }
.alert.error { border: 1px solid #e74c3c; color: #e74c3c; background: rgba(231,76,60,0.08); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.detail-img { overflow: hidden; }
.add-cart-form { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.add-cart-form input { width: 90px; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table input { width: 70px; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; flex-wrap: wrap; gap: 1rem; }

/* FAQ */
.faq { margin-bottom: 0.8rem; padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin-top: 0.5rem; }

/* Footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 1.6rem; }
.footer-grid h4 { margin-bottom: 0.6rem; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 0.3rem; }
.footer-grid p { color: var(--muted); }
.copy { color: var(--muted); font-size: 0.85rem; text-align: center; border-top: 1px solid var(--border); padding-top: 1.2rem; }

/* Responsive */
@media (max-width: 820px) {
  .hero-inner, .product-detail { grid-template-columns: 1fr; }
  .main-nav { display: none; position: absolute; top: 110%; left: 0; right: 0; flex-direction: column; padding: 1.2rem; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
  .main-nav.open { display: flex; }
  .menu-btn { display: block; }
}
