/* -------- RESET -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
}

/* -------- HEADER -------- */
header {
  background: #111;
  color: #fff;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: 0.3s;
}

header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}

/* -------- HERO -------- */
.hero {
  height: 80vh;
  background: url("https://images.unsplash.com/photo-1521334884684-d80222895322") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem 3rem;
  border-radius: 8px;
}

.hero h2 {
  font-size: 3rem;
}

.hero p {
  margin: 1rem 0;
}

.btn {
  background: #ff3f6c;
  border: none;
  color: white;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

/* -------- PRODUCTS -------- */
.products {
  padding: 4rem 3rem;
}

.products h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

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

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-card h3 {
  margin-top: 1rem;
}

.product-card p {
  color: #ff3f6c;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* -------- FOOTER -------- */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

/* -------- MEDIA QUERIES -------- */

/* Tablet */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  header {
    flex-direction: column;
  }

  nav {
    margin-top: 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .products {
    padding: 2rem 1.5rem;
  }
}
