/* NexusDrop Store — mobile-first, modern tech store */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-hover: #1a1a1a;
  --surface: #1e1e1e;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --text-muted: #888;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --green: #00b894;
  --orange: #fdcb6e;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
}
.nav__logo-icon { font-size: 1.5rem; }
.nav__logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cart-btn {
  position: relative;
  background: none; border: none; color: var(--text);
  cursor: pointer; padding: 8px;
  transition: color 0.2s;
}
.nav__cart-btn:hover { color: var(--accent-light); }
.nav__cart-count {
  position: absolute; top: 0; right: 0;
  background: var(--accent);
  color: #fff; font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.nav__cart-count.bump { animation: bump 0.3s ease; }
@keyframes bump {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* --- HERO --- */
.hero {
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1030 50%, #0a0a0a 100%);
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(108,92,231,0.15);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(108,92,231,0.3);
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero__trust-item {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.85rem;
}
.hero__trust-icon { font-size: 1.1rem; }
.hero__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: #5a4bd6; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.05); }
.btn--sm { padding: 8px 20px; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* --- PRODUCTS --- */
.products {
  padding: 80px 20px;
}
.products__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.products__header {
  text-align: center;
  margin-bottom: 48px;
}
.products__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.products__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}
.products__filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-muted); }
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.products__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* --- PRODUCT CARD --- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.product-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
}
.product-card__body {
  padding: 16px;
}
.product-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 6px;
}
.product-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
}
.product-card__add {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.product-card__add:hover { background: #5a4bd6; }
.product-card__add:active { transform: scale(0.96); }

/* --- WHY US --- */
.why {
  padding: 80px 20px;
  background: var(--surface);
}
.why__inner { max-width: var(--max-w); margin: 0 auto; }
.why__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: border-color 0.2s;
}
.why__card:hover { border-color: var(--accent); }
.why__card-icon { font-size: 2rem; margin-bottom: 16px; }
.why__card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.why__card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* --- FOOTER --- */
.footer {
  padding: 48px 20px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.footer__brand { margin-bottom: 16px; }
.footer__tagline { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }
.footer__links {
  display: flex; gap: 24px; justify-content: center;
  margin-bottom: 20px;
}
.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }
.footer__copy { font-size: 0.75rem; color: var(--text-muted); }

/* --- CART DRAWER --- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: -420px; bottom: 0;
  width: min(400px, 90vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h2 { font-size: 1.2rem; font-weight: 700; }
.cart-drawer__close {
  background: none; border: none;
  color: var(--text-muted); font-size: 1.5rem;
  cursor: pointer; padding: 4px;
  transition: color 0.2s;
}
.cart-drawer__close:hover { color: var(--text); }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.cart-drawer__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-drawer__empty p { margin-bottom: 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item__info { flex: 1; }
.cart-item__name { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.cart-item__price { font-size: 0.85rem; color: var(--green); }
.cart-item__controls {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
}
.cart-item__qty-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.cart-item__qty-btn:hover { background: var(--bg-hover); }
.cart-item__qty { font-size: 0.85rem; min-width: 20px; text-align: center; }
.cart-item__remove {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer; font-size: 0.75rem;
  margin-left: auto;
  transition: color 0.2s;
}
.cart-item__remove:hover { color: #e74c3c; }

.cart-drawer__footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cart-drawer__shipping-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__image { order: -1; }
  .products__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-card__desc { display: none; }
  .product-card__body { padding: 12px; }
  .product-card__name { font-size: 0.9rem; }
  .product-card__price { font-size: 1rem; }
  .product-card__add { padding: 6px 12px; font-size: 0.75rem; }
  .why__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 16px 40px; }
  .products { padding: 48px 16px; }
  .why { padding: 48px 16px; }
  .why__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr 1fr; }
}
