:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --ink: #18212f;
  --muted: #5e6b7e;
  --brand: #0f6fff;
  --accent: #ffb703;
  --border: #dbe3ee;
  --shadow: 0 18px 48px rgba(24, 33, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 111, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 100px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 4vw;
  background: rgba(24, 33, 47, 0.94);
  color: #fff;
  backdrop-filter: blur(10px);
}

.brand,
.account {
  font-weight: 800;
}

.searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}

.searchbar input,
.searchbar button {
  border: 0;
  font: inherit;
}

.searchbar input {
  padding: 0.95rem 1.1rem;
  min-width: 0;
}

.searchbar button {
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  background: var(--accent);
  color: #222;
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0 2rem;
}

.hero-copy,
.hero-card,
.product-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(219, 227, 238, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}

.subcopy {
  max-width: 48ch;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.cta {
  display: inline-block;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #084fc7);
  font-weight: 800;
}

.hero-card {
  padding: 1.5rem;
}

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

.section-head h2,
.product-card h3,
.price {
  margin: 0;
}

.section-head p,
.meta,
.rating {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.product-image {
  aspect-ratio: 1 / 1;
  padding: 1rem;
  background: var(--surface-soft);
}

.product-body {
  padding: 1rem 1rem 1.2rem;
}

.meta {
  margin-top: 0.45rem;
  min-height: 2.8em;
}

.rating {
  margin-top: 0.8rem;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.price {
  font-size: 1.2rem;
  font-weight: 800;
}

.buy-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: #ffd86b;
  color: #1d2430;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

  .hero-copy {
    grid-column: 1 / -1;
  }
}

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

  .section-head,
  .hero,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 1.5rem;
  }
}
