/* === HERO SECTION === */
.hero-wrapper {
  width: 100%;
  background-color: #E2DFD2;
  color: #000000;
  padding: 40px 20px;
  box-sizing: border-box;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
}

.hero h1 {
  font-size: 2.8em;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.hero p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333333;
}

/* === SEARCH BAR === */
.search {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.search input {
  flex: 1;
  border: none;
  background: transparent;
  color: #000000;
  font-size: 1em;
  outline: none;
  padding-left: 10px;
}

.search svg {
  width: 20px;
  height: 20px;
  fill: #000000;
}

/* === FILTER BUTTONS === */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters button {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.filters button:hover {
  background-color: #333333;
}

/* === RESPONSIVE HERO + FILTERS === */
@media screen and (max-width: 1024px) {
  .hero {
    padding-left: 0;
    text-align: center;
  }
  .search {
    margin: 0 auto 40px auto;
  }
  .filters {
    justify-content: center;
  }

}

@media screen and (max-width: 600px) {
  .hero h1 {
    font-size: 2.2em;
    text-align: left;
  }
  .hero p {
    font-size: 1em;
    font-weight: 500 ;
    text-align: left;
  }
  .hero-wrapper {
    padding-top: 20px;
    padding-bottom: 10px;
  }
  .filters {
    overflow-x: auto;
    min-width: 360px;
    justify-content: flex-start;
  }
  .filters button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* === SEARCH OVERLAY === */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  
  width: 100vw;
  height: 100vh;
  background-color: rgba(180, 180, 180, 0.41);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.search-centered {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  position: absolute;
  top: 80px; 
}

.search-centered input {
  background: transparent;
  border: none;
  color: #000000;
  font-size: 1.1em;
  outline: none;
  padding-left: 5px;
}

.search-centered svg {
  width: 20px;
  height: 20px;
  fill: #000000;
}
@media screen and (min-width: 1024px) {
  .search-centered {
    min-width: 500px; 
  }
}

/* === PRODUCT CATEGORY SECTION === */
.product-category {
  padding: 10px 20px 30px;
  background-color: #FAF9F6;
  box-sizing: border-box;
}

.product-category h1 {
  padding-left: 60px;
  padding-top: 20px;
  padding-bottom: 40px;
  margin: 0;
  font-size: 2.5em;
  color: #000000;
}

.product-grid {
  display: grid;
  justify-content: center;
  gap: 20px;
  grid-template-columns: repeat(5, 250px);
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #3c3c3c;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
  width: 250px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #e0e0e0;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 12px;
  flex-grow: 1;
  box-sizing: border-box;
}

.product-info h3 {
  margin: 0 0 6px 0;
  font-size: 1.1em;
  color: #000000;
}

.product-info p {
  margin: 0;
  font-size: 0.9em;
  color: #000000;
}

/* === RESPONSIVE PRODUCT GRID === */
@media screen and (max-width: 1350px) {
  .product-grid {
    grid-template-columns: repeat(4, 250px);
  }
}

@media screen and (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, 250px);
  }
}

@media screen and (max-width: 1024px) {
  .product-category h1 {
    padding-left: 0;
    display: flex;
    justify-content: center;
  }
}

@media screen and (max-width: 830px) {
  .product-grid {
    grid-template-columns: repeat(2, 180px);
    gap: 11px;
  }

  .product-card {
    height: 250px;
    width: 180px;
  }

  .product-info h3 {
    font-size: 1em;
  }

  .product-info p {
    font-size: 0.8em;
  }
}

@media screen and (max-width: 500px) {
  .product-category h1 {
    font-size: 2em;
    padding: 20px 0;
    display: flex;
    justify-content: center;
  }
}
