:root {
  --bg: #f4f7fb;
  --text: #0f172a;
  --muted: #475569;
  --card: rgba(255, 255, 255, 0.85);
  --border: rgba(148, 163, 184, 0.25);
  --primary: #0ea5e9;
  --primary-2: #0284c7;
  --accent: #10b981;
  --danger: #dc2626;
  --ok: #059669;
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  --radius: 18px;
}

html[data-theme='dark'] {
  --bg: #020617;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --card: rgba(15, 23, 42, 0.75);
  --border: rgba(148, 163, 184, 0.2);
  --primary: #38bdf8;
  --primary-2: #0ea5e9;
  --accent: #34d399;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 4% 8%, rgba(14, 165, 233, 0.18) 0, transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(16, 185, 129, 0.14) 0, transparent 30%),
    radial-gradient(circle at 75% 90%, rgba(14, 165, 233, 0.1) 0, transparent 28%),
    var(--bg);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.sphere {
  position: absolute;
  filter: blur(56px);
  opacity: 0.45;
  border-radius: 50%;
}

.sphere-a {
  width: 260px;
  height: 260px;
  background: #7dd3fc;
  top: 5%;
  left: 2%;
}

.sphere-b {
  width: 340px;
  height: 340px;
  background: #86efac;
  top: 56%;
  left: 62%;
}

.sphere-c {
  width: 260px;
  height: 260px;
  background: #a5b4fc;
  top: 30%;
  left: 32%;
}

.container {
  width: min(1180px, 94%);
  margin: 0 auto;
}

.glass {
  backdrop-filter: blur(12px);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 10px;
  margin: 12px auto 18px;
  border-radius: 16px;
  width: min(1180px, 94%);
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.7);
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

nav a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.main-content {
  padding-bottom: 96px;
}

.menu-toggle {
  display: none;
}

.hero {
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr 1fr;
  margin-bottom: 16px;
}

.hero-kicker {
  margin: 0;
  font-weight: 700;
  color: var(--primary-2);
  letter-spacing: 0.3px;
}

.hero h1 {
  margin: 8px 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.hero-cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span {
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.hero-panel {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 18px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-panel h3 {
  margin: 0 0 10px;
}

.hero-form {
  display: grid;
  gap: 10px;
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px;
  margin-bottom: 4px;
}

.chip {
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.42);
}

.chip.active,
.chip:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
}

.section-head h2 {
  margin: 0;
}

.section-head p,
.section-head a {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.products-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-media-wrap {
  position: relative;
}

.product-media {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  border-radius: 999px;
  padding: 6px 10px;
}

.product-content {
  padding: 14px;
}

.product-category {
  margin: 0;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-content h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.product-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mini-row {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.feature-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.feature-list li {
  margin: 4px 0;
}

.price {
  margin: 14px 0 10px;
  font-size: 22px;
  font-weight: 800;
}

.strike {
  text-decoration: line-through;
  color: var(--muted);
  margin-left: 8px;
  font-size: 14px;
  font-weight: 600;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.blog-grid .product-media {
  height: 160px;
}

.card {
  border-radius: var(--radius);
  padding: 16px;
}

.empty-state {
  text-align: center;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
}

textarea {
  min-height: 120px;
}

.toast {
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.toast-success {
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.toast-error {
  background: rgba(220, 38, 38, 0.13);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.footer {
  border-radius: 18px 18px 0 0;
  padding: 24px 0;
  margin-top: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

.footer a {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  text-decoration: none;
}

.support-fab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  border-radius: 14px;
  padding: 8px;
  z-index: 120;
}

.fab-main {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.fab-links {
  display: none;
  margin-top: 8px;
}

.support-fab.open .fab-links {
  display: block;
}

.fab-links a {
  display: block;
  margin: 4px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.pagination {
  margin-top: 16px;
}

.pagination a {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  margin-right: 6px;
  color: var(--text);
  display: inline-block;
}

.pagination a.active,
.pagination a:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  nav.open {
    display: flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-actions {
    margin-left: auto;
  }

  .product-media {
    height: 170px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
