@import url('https://fonts.googleapis.com/css2?family=Andika:ital,wght@0,400;0,700;1,400;1,700&family=Lexend:wght@100..900&display=swap');


:root {
  --primary: #5170FF;
  --text: #2E2E2E;
  --muted: #6B7280;
  --bg: #ffffff;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* HEADER */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tagline {
  font-size: 0.8em;
  color: var(--muted);
  margin-top: 4px;
}

.logo {
  height: 40px;
}

/* CONTAINER */
.container {
  margin: 0 25px auto;
  padding: 20px 5px;
}

/* FILTER SECTION*/
.filter-section {
  display: flex;
  justify-content: space-between;
  justify-items: center;
  align-items: center;
  margin-bottom: 20px;
}

/* FILTERS */
.filters {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 14px;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.5s ease;
}

.filter-btn:hover {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

/* SEARCH */
/*  .search-wrapper {
  margin-bottom: 20px;
}*/

.search-wrapper {
  width: 40%;
}

.search-wrapper input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
  outline: none;
  font-size: 14px;
}

/* GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* CARD */
.card {
  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: 0.2s ease;
}

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

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

.card h3 {
  font-size: 15px;
  margin: 10px 12px 4px;
}

.price {
  color: var(--primary);
  font-weight: 600;
  margin: 0 12px 12px;
}

/* EMPTY STATE */
.empty-state {
  grid-column: 1 / -1;
  /* 🔥 THIS IS THE KEY FIX */
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}


.empty-state h2 {
  margin-bottom: 10px;
  font-weight: 500;
}

.empty-state p {
  font-size: 14px;
}

.empty-state h2 {
  margin-bottom: 10px;
  font-weight: 500;
}

.empty-state p {
  font-size: 14px;
}

/* FOOTER */
.footer {
  margin-top: 40px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.footer-bottom {
  background: var(--primary);
  color: white;
  padding: 14px;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .filter-section {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .filters {
    width: 100%;
    justify-content: space-between;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
  }

  .search-wrapper {
    width: 100%;
    margin-top: 10px;
  }

  .logo {
    height: 28px;
  }

  .container {
    padding: 20px 0px;
  }
}