* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f5f6f8;
  color: #121212;
  font-family: "Cairo", system-ui, sans-serif;
}
.container {
  width: min(1180px, 94%);
  margin-inline: auto;
}
.topbar {
  background: #161a20;
  color: #fff;
  padding: 10px 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.email { opacity: .9; font-size: 14px; }
.search-wrap { display: flex; gap: 10px; align-items: center; }
.search-wrap input {
  width: 260px;
  max-width: 44vw;
  border-radius: 999px;
  border: 1px solid #2a303a;
  background: #222834;
  color: #fff;
  padding: 8px 14px;
}
.search-wrap button {
  border: 1px solid #3f4654;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.navbar {
  background: #fff;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.logo { font-weight: 800; letter-spacing: 1px; }
.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
}
.navbar a { color: #1f2530; text-decoration: none; font-weight: 700; }
.cart { font-weight: 700; }

.hero img,
.promo img,
.reviews img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.hero, .promo, .reviews { margin-top: 16px; }

.features {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
}
.feature-card .icon {
  width: 56px; height: 56px;
  margin-inline: auto;
  border-radius: 50%;
  background: #5ba8e4;
  color: #08203a;
  display: grid;
  place-items: center;
  font-size: 25px;
}
.feature-card h3 { margin: 12px 0 6px; }
.feature-card p { margin: 0; color: #646d78; }

.products { margin-top: 30px; }
.products h2, .reviews h2 { margin: 0 0 14px; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}
.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}
.product-card h3 { margin: 10px 0 8px; }
.price { color: #8c94a2; margin: 0 0 10px; }
.price .old { text-decoration: line-through; margin-left: 8px; }
.product-card button {
  width: 100%;
  border: 1px solid #d2d9e2;
  background: #fff;
  color: #2f4f68;
  border-radius: 999px;
  padding: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.footer-note {
  text-align: center;
  color: #707783;
  padding: 22px 0 28px;
}

@media (max-width: 860px) {
  .navbar { flex-direction: column; gap: 10px; }
  .navbar ul { flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
  .features { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: stretch; }
  .search-wrap { justify-content: space-between; }
  .search-wrap input { width: 100%; }
}
