*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.bg-mesh {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(16,185,129,.25), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(99,102,241,.2), transparent),
    var(--bg-deep);
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.85);
  border-bottom: 1px solid var(--border-glass);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 0;
}
.brand { display: flex; align-items: center; font-weight: 800; letter-spacing: 0.08em; color: inherit; text-decoration: none; }
.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.brand-text { font-size: 1.1rem; }
.nav-main { display: flex; gap: 1.25rem; margin-left: auto; }
.nav-main a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.nav-main a:hover { color: var(--text-main); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-select {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  color: var(--text-main); border-radius: 8px; padding: 0.35rem 0.5rem; font-size: 0.8rem;
}
.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border-glass); color: var(--text-main);
}
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  font-size: 0.65rem; font-weight: 700;
  background: var(--brand-primary); color: #042f1a;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-main); }
.auth-hidden { display: none !important; }
[data-auth="signin"]:not(.auth-hidden),
[data-auth="dashboard"]:not(.auth-hidden) { display: inline-flex; }
.footer-links a.auth-hidden { display: none !important; }
.footer-links a[data-auth]:not(.auth-hidden) { display: block; }
.site-main { min-height: 60vh; }
.site-footer {
  margin-top: 4rem; padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(0,0,0,.25);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links h4 { margin: 0 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border-glass); font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 768px) {
  .nav-main, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-inner.nav-open .nav-main {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg-deep);
    padding: 1rem; border-bottom: 1px solid var(--border-glass);
  }
  .footer-grid { grid-template-columns: 1fr; }
}
