* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f1f3f6;
}

/* ===== Navbar ===== */
.navbar {
  background: #2874f0;
  color: white;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.search-box input {
  width: 350px;
  padding: 8px;
  border: none;
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-btn {
  padding: 6px 15px;
  background: white;
  color: #2874f0;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.cart {
  cursor: pointer;
}

/* ===== Categories ===== */
.categories {
  display: flex;
  justify-content: space-around;
  background: white;
  padding: 15px 0;
}

.cat {
  cursor: pointer;
  font-weight: 500;
}

.cat:hover {
  color: #2874f0;
}

/* ===== Banner ===== */
.banner {
  width: 100%;
  height: 320px;
  background: #ddd;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Products ===== */
.products {
  padding: 30px;
}

.products h2 {
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  padding: 15px;
  text-align: center;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card h3 {
  margin: 10px 0;
}

.product-card button {
  margin-top: 10px;
  padding: 8px 15px;
  background: #ff9f00;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* ===== Footer ===== */
.footer {
  background: #172337;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}
