@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ds-bg: #050a14;
  --ds-bg-elevated: #0c1222;
  --ds-card: #121a2e;
  --ds-card-hover: #161f38;
  --ds-border: rgba(255, 255, 255, 0.08);
  --ds-text: #f1f5f9;
  --ds-muted: #94a3b8;
  --ds-blue: #0066ff;
  --ds-blue-light: #3b8cff;
  --ds-blue-glow: rgba(0, 102, 255, 0.35);
  --ds-green: #22c55e;
  --ds-red: #ef4444;
  --ds-yellow: #eab308;
  --ds-radius: 12px;
  --ds-radius-lg: 16px;
  --ds-font: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.ds-body {
  font-family: var(--ds-font);
  background: var(--ds-bg);
  color: var(--ds-text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 255, 0.15), transparent),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* —— Top bar —— */
.ds-topbar {
  background: linear-gradient(90deg, #0052cc, var(--ds-blue));
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.45rem 0;
  color: #fff;
}
.ds-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.75rem;
}

/* —— Navbar —— */
.ds-nav {
  background: rgba(5, 10, 20, 0.92);
  border-bottom: 1px solid var(--ds-border);
  backdrop-filter: blur(12px);
  padding: 0.65rem 0;
}
.ds-nav .navbar-brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #fff !important;
}
.ds-logo {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ds-blue), #0044aa);
  color: #fff;
  margin-right: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 20px var(--ds-blue-glow);
}
.ds-search {
  max-width: 420px;
  width: 100%;
  position: relative;
}
.ds-search .form-control {
  border-radius: 999px;
  padding: 0.55rem 3rem 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ds-border);
}
.ds-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--ds-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-nav-actions .btn {
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
}
.btn-ds {
  border: 0;
  background: var(--ds-blue);
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-ds:hover {
  background: var(--ds-blue-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--ds-blue-glow);
}
.btn-ds-outline {
  border: 1px solid var(--ds-blue);
  color: var(--ds-blue-light) !important;
  background: transparent;
  font-weight: 600;
  border-radius: 8px;
}
.btn-ds-outline:hover {
  background: rgba(0, 102, 255, 0.12);
  color: #fff !important;
}
.btn-ds-ghost {
  border: 1px solid var(--ds-border);
  color: var(--ds-text) !important;
  background: rgba(255, 255, 255, 0.04);
}
.ds-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--ds-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ds-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s;
}
.ds-icon-btn:hover {
  background: rgba(0, 102, 255, 0.15);
  color: #fff;
}

/* —— Main —— */
.ds-main {
  padding-bottom: 3rem;
}
.ds-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* —— Hero —— */
.ds-hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  position: relative;
}
.ds-hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-blue-light);
  border: 1px solid rgba(0, 102, 255, 0.4);
  background: rgba(0, 102, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.ds-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 1rem;
  color: #fff;
}
.ds-hero-lead {
  color: var(--ds-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}
.ds-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.ds-hero-cta .btn-lg {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
}
.ds-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--ds-muted);
}
.ds-trust-row i { color: var(--ds-blue-light); margin-right: 0.35rem; }

/* —— Social proof card —— */
.ds-social-proof {
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 480px;
  margin: 2rem auto 0;
}
.ds-avatars {
  display: flex;
}
.ds-avatars span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ds-card);
  margin-left: -10px;
  background: linear-gradient(135deg, var(--ds-blue), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}
.ds-avatars span:first-child { margin-left: 0; }

/* —— Section titles —— */
.ds-section {
  padding: 2.5rem 0 1rem;
}
.ds-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ds-blue-light);
  margin-bottom: 0.35rem;
}
.ds-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ds-section-title::before {
  content: '';
  width: 4px;
  height: 1.4em;
  background: var(--ds-blue);
  border-radius: 2px;
}

/* —— Category cards —— */
.ds-cat-card {
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.ds-cat-card:hover {
  border-color: rgba(0, 102, 255, 0.4);
  transform: translateY(-2px);
  color: inherit;
}
.ds-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.25), rgba(99, 102, 241, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.ds-cat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.ds-cat-card p {
  font-size: 0.8rem;
  color: var(--ds-muted);
  margin: 0;
}
.ds-cat-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ds-blue-light);
  margin-top: 0.35rem;
  display: inline-block;
}

/* —— Product card —— */
.ds-product-card {
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.ds-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 102, 255, 0.1);
}
.ds-product-img {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, #0a1628 0%, #152238 50%, #0d1830 100%);
  overflow: hidden;
}
.ds-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.2);
}
.ds-product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.ds-badge-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}
.ds-badge-new { background: var(--ds-blue); color: #fff; }
.ds-badge-sale { background: var(--ds-red); color: #fff; }
.ds-badge-top { background: var(--ds-yellow); color: #0a0a0a; }

.ds-product-body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ds-product-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: #fff;
}
.ds-delivery {
  font-size: 0.75rem;
  color: var(--ds-green);
  font-weight: 600;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.ds-price-row {
  margin-bottom: 0.75rem;
}
.ds-price-old {
  font-size: 0.75rem;
  color: var(--ds-red);
  text-decoration: line-through;
  display: block;
}
.ds-price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.ds-price-pix {
  font-size: 0.7rem;
  color: var(--ds-muted);
}
.ds-product-card .btn-buy {
  width: 100%;
  padding: 0.65rem;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: auto;
}
.ds-sales-hint {
  font-size: 0.7rem;
  color: var(--ds-blue-light);
  text-align: center;
  margin-top: 0.5rem;
}

/* —— Cards genéricos —— */
.ds-card {
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
}
.ds-badge {
  border: 1px solid var(--ds-border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ds-muted);
  font-size: 12px;
}
.ds-price { font-weight: 800; color: #fff; }

/* —— Footer —— */
.ds-footer {
  border-top: 1px solid var(--ds-border);
  background: var(--ds-bg-elevated);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.ds-footer a {
  color: var(--ds-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.ds-footer a:hover { color: var(--ds-blue-light); }
.ds-footer h6 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-muted);
  margin-bottom: 0.75rem;
}

/* —— Forms —— */
.form-control, .form-select {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--ds-border);
  color: var(--ds-text);
  border-radius: 8px;
}
.form-control:focus, .form-select:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--ds-blue);
  box-shadow: 0 0 0 3px var(--ds-blue-glow);
  color: var(--ds-text);
}
.form-control::placeholder { color: var(--ds-muted); }

.alert {
  border-radius: var(--ds-radius);
  border: 1px solid var(--ds-border);
}

/* —— Product page —— */
.ds-product-detail {
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
}
.ds-checkout-box {
  background: var(--ds-card);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

/* —— Admin theme —— */
.ds-admin-theme .btn-ds { background: var(--ds-red); }
.ds-admin-theme .btn-ds:hover { background: #dc2626; box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35); }
.ds-logo-admin { background: linear-gradient(135deg, var(--ds-red), #b91c1c) !important; box-shadow: 0 0 16px rgba(239, 68, 68, 0.35); }

.ds-admin-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.ds-admin-auth-wrap { width: 100%; max-width: 400px; }
.ds-admin-auth-brand {
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: block;
}
.ds-admin-login-card { border-color: rgba(239, 68, 68, 0.2); }

.ds-admin-bar {
  background: #0a0e18;
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.ds-admin-bar-brand {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ds-admin-nav-link {
  color: var(--ds-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ds-admin-nav-link:hover,
.ds-admin-nav-link.active {
  color: #fff;
  background: rgba(239, 68, 68, 0.15);
}
.ds-admin-main { min-height: calc(100vh - 60px); }

/* —— Responsive —— */
@media (max-width: 991px) {
  .ds-search { max-width: 100%; margin: 0.75rem 0; }
  .ds-hero { padding: 2rem 0.5rem; }
}
