/* ---------- Global Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* ---------- Header ---------- */
header {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
}

header h1 {
  margin-bottom: 10px;
}

/* ---------- Navigation ---------- */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #555;
}

/* ---------- Home Banner ---------- */
.home-banner {
  position: relative;
  text-align: center;
  height: 400px; /* Set fixed banner height */
  overflow: hidden;
}

.home-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.banner-text h2 {
  font-size: 2rem;
  margin: 0;
}

.banner-text p {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* ---------- Products Grid ---------- */
.products {
  padding: 20px;
  text-align: center;
}

.products h2 {
  margin-bottom: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product {
  background-color: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.product:hover {
  transform: scale(1.05);
}

.product img {
  max-width: 100%;
  height: 120px;
  object-fit: contain;
}

.product p {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}
