:root {
  --brand-blue: #0000f8;
  --brand-blue-deep: #0a0f4d;
  --brand-purple: #800080;
  --brand-ink: #0c1020;
  --brand-muted: #5b6478;
  --bg: #f3f5fb;
  --surface: #ffffff;
  --line: #e1e6f2;
  --success: #0f9d58;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--brand-ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title,
.section-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: linear-gradient(90deg, #11163f, #1e1458 60%, #29134c);
  color: #dce3ff;
  font-size: 0.9rem;
}

.topbar a {
  color: #ffffff;
  font-weight: 600;
}

.main-nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand-mark {
  height: 46px;
  width: auto;
}

.search-wrap {
  position: relative;
}

.search-wrap .form-control {
  border-radius: 999px;
  border: 1px solid #ced5e5;
  padding-left: 2.8rem;
  height: 46px;
}

.search-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6f7a96;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--brand-blue), #3943ff);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  line-height: 1.2;
}

.btn-brand:hover {
  background: linear-gradient(120deg, #0000d9, #2d37f5);
  color: #fff;
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  font-weight: 700;
  color: var(--brand-ink);
  padding: 0.75rem 1.2rem;
  line-height: 1.2;
}

.btn-soft:hover {
  border-color: #bcc7df;
}

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 15%, rgba(128, 0, 128, 0.2), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(0, 0, 248, 0.18), transparent 35%),
    linear-gradient(145deg, #0f1433, #182158 48%, #11193c);
  color: #fff;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -70% -10%;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93a5ff;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.02;
  margin: 0.75rem 0 1rem;
}

.hero p {
  color: #ced8ff;
  max-width: 52ch;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.1rem;
  background: rgba(14, 20, 51, 0.6);
  backdrop-filter: blur(6px);
}

.promo-grid {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
}

.promo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 36px rgba(11, 20, 54, 0.08);
  padding: 1rem;
}

.promo-card .badge {
  align-self: flex-start;
  width: auto;
  background: #e8ebff;
  color: #222ea7;
  font-weight: 700;
}

.promo-card .btn {
  margin-top: auto;
}

.promo-card .section-sub {
  margin-bottom: 1rem;
}

.section-wrap {
  padding: 3.5rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-sub {
  color: var(--brand-muted);
  margin: 0.3rem 0 0;
}

.category-card {
  display: block;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff, #f7f8ff);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10, 15, 77, 0.12);
}

.category-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.category-card .title {
  font-weight: 800;
}

.category-card .meta {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.trust-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #2735bb;
}

.retail-surface {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(12, 16, 32, 0.06);
  padding: 1rem;
}

/* Reflow output styling overrides */
[data-reflow-type="product-list"],
[data-reflow-type="product"],
[data-reflow-type="shopping-cart"] {
  min-height: 120px;
}

[data-reflow-type="product-list"] .ref-product,
[data-reflow-type="product-list"] [class*="product"],
[data-reflow-type="shopping-cart"] [class*="item"],
[data-reflow-type="product"] [class*="product"] {
  border-radius: 16px !important;
}

[data-reflow-type="product-list"] button,
[data-reflow-type="product"] button,
[data-reflow-type="shopping-cart"] button,
[data-reflow-type="view-cart"] button {
  border-radius: 12px !important;
}

[data-reflow-type="product-list"] a,
[data-reflow-type="product"] a,
[data-reflow-type="shopping-cart"] a {
  text-decoration: none !important;
}

.shell-page {
  padding: 2rem 0 3rem;
}

.page-hero {
  border-radius: 22px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff, #f4f7ff);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.breadcrumb-wrap {
  font-size: 0.92rem;
  color: #6b7490;
}

.footer {
  background: #0a0f2e;
  color: #d3dcff;
  margin-top: auto;
}

.footer a {
  color: #fff;
}

.footer .brand-mini {
  max-height: 36px;
  width: auto;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1rem;
  padding-top: 1rem;
  color: #98a4cc;
  font-size: 0.9rem;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dff4;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #fff;
  min-height: 38px;
  color: var(--brand-ink);
}

.cart-fallback-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

.category-mega {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.5rem;
  background: #fff;
}

.category-mega .ref-categories,
.category-mega .ref-categories ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-mega .ref-category > a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
}

.category-mega .ref-category > a:hover {
  background: #eef2ff;
}

@media (max-width: 991.98px) {
  .brand-mark {
    height: 40px;
  }

  .hero {
    text-align: left;
  }

  .promo-grid {
    margin-top: 1rem;
  }

  .section-wrap {
    padding: 2.4rem 0;
  }
}
