* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f4f4f4;
}
        body { margin: 0; padding-top: 80px; } /* Added padding so content doesn't jump */

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HERO */
.hero {
  background: linear-gradient(120deg, #000000, #006837);
  color: white;
  padding: 80px 0;
}

.hero h1 {
  font-size: 48px;
  margin: 15px 0;
}

.hero h1 span {
  color: #facc15;
}

.subtitle {
  max-width: 500px;
  margin-bottom: 25px;
  opacity: 0.9;
}

.btn {
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 5px;
}

.primary {
  background: #f97316;
  color: white;
}

.secondary {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.stats h3 {
  font-size: 22px;
  color: #facc15;
}

/* PRODUCTS */
.products {
  padding: 60px 0;
}

.products h2 {
  margin-bottom: 20px;
}

#searchInput {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.filters {
  margin-bottom: 10px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #ddd;
  margin-right: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  background: white;
}

.filter-btn.active {
  background: #006837;
  color: white;
  border: none;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px;
}

/* CARD */
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
/* STICKY SEARCH + FILTER BAR */
.sticky-bar {
  position: sticky;
  top: 0;
  background: #f4f4f4;
  padding: 15px 0;
  z-index: 100;
  transition: all 0.3s ease;
}

/* Add subtle shadow when sticky */
.sticky-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ddd;
}

.card img {
    height: 200px;
  width: 100%;
  object-fit: contain;
}
.sticky-bar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(244,244,244,0.9);
  padding: 15px 0;
  z-index: 100;
  /* border-bottom: 1px solid #e5e5e5; */
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #006837;  
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 20px;
}

.badge.new { background: green; }
.badge.trending { background: #ef4444; }

.card-body {
  padding: 20px;
}

.category {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
}

.desc {
  font-size: 14px;
  margin: 10px 0;
  color: #555;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer button {
  background: #000000;
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 3px;
  cursor: pointer;
}

/* CTA */
.cta {
  background: #006837;
  color: white;
  padding: 50px 0;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .cta-content {
    flex-direction: column;
    gap: 20px;
  }

  .hero h1 {
    font-size: 32px;
  }
}
/* MOBILE FILTER SLIDER */
@media (max-width: 768px) {

  .filters {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
  }

  .filters::-webkit-scrollbar {
    display: none; /* Chrome */
  }

  .filter-btn {
    flex: 0 0 auto;   /* Prevent wrapping */
    white-space: nowrap;
  }
  .badge-row{
    display: block;
  }

}
/* GRID FIX */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  align-items: stretch; /* Important */
}

/* CARD */
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  position: relative;
  display: flex;              /* Important */
  flex-direction: column;     /* Important */
  height: 100%;               /* Equal height */
}

/* IMAGE */
.card img {
  height: 220px;
  width: 100%;
  object-fit: contain;
  padding: 20px;
  background: #fafafa;
}

/* CARD BODY */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;  
}

/* TITLE */


/* DESCRIPTION */
.desc {
  font-size: 14px;
  /* margin: 10px 0 20px; */
  color: #555;
  flex-grow: 1; /* Push button to bottom */
}

/* FOOTER */
.card-footer {
  margin-top: auto;  /* Push footer to bottom */
}

.card-footer button {
  background: #000000;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%; /* Equal button width */
}
