/* ===== Filter Button ===== */
.filter-btn {
  position: fixed;
  top: 100px;
  left: 20px;
  background-color: #d4af37;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease;
  z-index: 999;
}
.filter-btn:hover {
  background-color: #b8962e;
}

/* ===== Sidebar ===== */
.filter-sidebar {
  position: fixed;
  top: 0;
  left: -350px;
  width: 320px;
  height: 100%;
  background-color: #fff;
  box-shadow: 4px 0 15px rgba(0,0,0,0.2);
  padding: 24px 20px;
  transition: all 0.4s ease;
  z-index: 1002;
  overflow-y: auto;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.filter-sidebar.active {
  left: 0;
}

/* ===== Overlay ===== */
.filter-overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.filter-overlay.active {
  display: block;
  opacity: 1;
}

/* ===== Sidebar Header ===== */
.filter-sidebar h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.close-btn:hover {
  transform: rotate(90deg);
  color: #000;
}

/* ===== Form Styling ===== */
.filter-sidebar form label {
  font-weight: 600;
}
.filter-sidebar form input,
.filter-sidebar form select {
  width: 100%;
  padding: 6px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* ===== Apply Button ===== */
.filter-sidebar button[type="submit"] {
  width: 100%;
  background-color: #d4af37;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.filter-sidebar button[type="submit"]:hover {
  background-color: #b8962e;
}

/* ===== Product Grid Spacing ===== */
.products-grid {
  margin-top: 80px;
}
